xonecode 0.24.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/web/dist/assets/{EditorDeFichero-DP2FWRar.js → EditorDeFichero-BOMIz5Wx.js} +1 -1
- package/apps/web/dist/assets/index-DICdq4UC.css +1 -0
- package/apps/web/dist/assets/index-DTsPoUh_.js +499 -0
- package/apps/web/dist/assets/{php-fWJ9hMOH.js → php-BHWCwDKR.js} +1 -1
- package/apps/web/dist/assets/{ruby-CpEKEsYx.js → ruby-D3HLU4IP.js} +1 -1
- package/apps/web/dist/index.html +2 -2
- package/dist/agent/cloudstudio/subida.js +22 -7
- package/dist/agent/cloudstudio/subida.js.map +1 -1
- package/dist/agent/grafo/arbolDeProyecto.js +68 -1
- package/dist/agent/grafo/arbolDeProyecto.js.map +1 -1
- package/dist/agent/sesiones/gitSync.js +166 -1
- package/dist/agent/sesiones/gitSync.js.map +1 -1
- package/dist/cli/aprobar.js.map +1 -1
- package/dist/cli/consola.js +58 -9
- package/dist/cli/consola.js.map +1 -1
- package/dist/cli/main.js +13 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/core/actos.js.map +1 -1
- package/dist/core/cloudstudio.js +15 -1
- package/dist/core/cloudstudio.js.map +1 -1
- package/dist/core/descriptoresDeApp.js +27 -1
- package/dist/core/descriptoresDeApp.js.map +1 -1
- package/dist/core/imagenesDeDocumento.js +7 -0
- package/dist/core/imagenesDeDocumento.js.map +1 -1
- package/dist/web/servidor/arranque.js +185 -5
- package/dist/web/servidor/arranque.js.map +1 -1
- package/dist/web/servidor/consolaWeb.js +32 -0
- package/dist/web/servidor/consolaWeb.js.map +1 -1
- package/dist/web/servidor/transporte.js.map +1 -1
- package/package.json +1 -1
- package/apps/web/dist/assets/index-C-U_ay7l.css +0 -1
- package/apps/web/dist/assets/index-DT_LY-_I.js +0 -495
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ruby-D3HLU4IP.js","./html-CfGypltT.js","./css-CLj8gQPS.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-CRqJ_cUM.js","./cpp-DddhVWhK.js","./c-BIGW1oBm.js","./lua-BaeVxFsk.js","./yaml-Buea-lGh.js","./php-BHWCwDKR.js","./scss-D5BDwBP9.js","./EditorDeFichero-BOMIz5Wx.js","./EditorDeFichero-BX_LfESa.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var T9=Object.defineProperty;var M9=Object.getPrototypeOf;var L9=Reflect.get;var Rg=e=>{throw TypeError(e)};var I9=(e,t,n)=>t in e?T9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var se=(e,t,n)=>I9(e,typeof t!="symbol"?t+"":t,n),K1=(e,t,n)=>t.has(e)||Rg("Cannot "+n);var Br=(e,t,n)=>(K1(e,t,"read from private field"),n?n.call(e):t.get(e)),jl=(e,t,n)=>t.has(e)?Rg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),jo=(e,t,n,r)=>(K1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J1=(e,t,n)=>(K1(e,t,"access private method"),n);var Pg=(e,t,n)=>L9(M9(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();var eh={exports:{}},e0={},th={exports:{}},bt={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var qg;function R9(){if(qg)return bt;qg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),f=Symbol.iterator;function h(V){return V===null||typeof V!="object"?null:(V=f&&V[f]||V["@@iterator"],typeof V=="function"?V:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,j={};function C(V,ie,T){this.props=V,this.context=ie,this.refs=j,this.updater=T||b}C.prototype.isReactComponent={},C.prototype.setState=function(V,ie){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,ie,"setState")},C.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function N(){}N.prototype=C.prototype;function z(V,ie,T){this.props=V,this.context=ie,this.refs=j,this.updater=T||b}var E=z.prototype=new N;E.constructor=z,y(E,C.prototype),E.isPureReactComponent=!0;var P=Array.isArray,M=Object.prototype.hasOwnProperty,L={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function W(V,ie,T){var Se,ge={},Oe=null,be=null;if(ie!=null)for(Se in ie.ref!==void 0&&(be=ie.ref),ie.key!==void 0&&(Oe=""+ie.key),ie)M.call(ie,Se)&&!U.hasOwnProperty(Se)&&(ge[Se]=ie[Se]);var Te=arguments.length-2;if(Te===1)ge.children=T;else if(1<Te){for(var Ee=Array(Te),rt=0;rt<Te;rt++)Ee[rt]=arguments[rt+2];ge.children=Ee}if(V&&V.defaultProps)for(Se in Te=V.defaultProps,Te)ge[Se]===void 0&&(ge[Se]=Te[Se]);return{$$typeof:e,type:V,key:Oe,ref:be,props:ge,_owner:L.current}}function O(V,ie){return{$$typeof:e,type:V.type,key:ie,ref:V.ref,props:V.props,_owner:V._owner}}function q(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function F(V){var ie={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(T){return ie[T]})}var K=/\/+/g;function le(V,ie){return typeof V=="object"&&V!==null&&V.key!=null?F(""+V.key):ie.toString(36)}function me(V,ie,T,Se,ge){var Oe=typeof V;(Oe==="undefined"||Oe==="boolean")&&(V=null);var be=!1;if(V===null)be=!0;else switch(Oe){case"string":case"number":be=!0;break;case"object":switch(V.$$typeof){case e:case t:be=!0}}if(be)return be=V,ge=ge(be),V=Se===""?"."+le(be,0):Se,P(ge)?(T="",V!=null&&(T=V.replace(K,"$&/")+"/"),me(ge,ie,T,"",function(rt){return rt})):ge!=null&&(q(ge)&&(ge=O(ge,T+(!ge.key||be&&be.key===ge.key?"":(""+ge.key).replace(K,"$&/")+"/")+V)),ie.push(ge)),1;if(be=0,Se=Se===""?".":Se+":",P(V))for(var Te=0;Te<V.length;Te++){Oe=V[Te];var Ee=Se+le(Oe,Te);be+=me(Oe,ie,T,Ee,ge)}else if(Ee=h(V),typeof Ee=="function")for(V=Ee.call(V),Te=0;!(Oe=V.next()).done;)Oe=Oe.value,Ee=Se+le(Oe,Te++),be+=me(Oe,ie,T,Ee,ge);else if(Oe==="object")throw ie=String(V),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.");return be}function ne(V,ie,T){if(V==null)return V;var Se=[],ge=0;return me(V,Se,"","",function(Oe){return ie.call(T,Oe,ge++)}),Se}function ce(V){if(V._status===-1){var ie=V._result;ie=ie(),ie.then(function(T){(V._status===0||V._status===-1)&&(V._status=1,V._result=T)},function(T){(V._status===0||V._status===-1)&&(V._status=2,V._result=T)}),V._status===-1&&(V._status=0,V._result=ie)}if(V._status===1)return V._result.default;throw V._result}var Ae={current:null},de={transition:null},te={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:de,ReactCurrentOwner:L};function I(){throw Error("act(...) is not supported in production builds of React.")}return bt.Children={map:ne,forEach:function(V,ie,T){ne(V,function(){ie.apply(this,arguments)},T)},count:function(V){var ie=0;return ne(V,function(){ie++}),ie},toArray:function(V){return ne(V,function(ie){return ie})||[]},only:function(V){if(!q(V))throw Error("React.Children.only expected to receive a single React element child.");return V}},bt.Component=C,bt.Fragment=n,bt.Profiler=a,bt.PureComponent=z,bt.StrictMode=r,bt.Suspense=d,bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,bt.act=I,bt.cloneElement=function(V,ie,T){if(V==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+V+".");var Se=y({},V.props),ge=V.key,Oe=V.ref,be=V._owner;if(ie!=null){if(ie.ref!==void 0&&(Oe=ie.ref,be=L.current),ie.key!==void 0&&(ge=""+ie.key),V.type&&V.type.defaultProps)var Te=V.type.defaultProps;for(Ee in ie)M.call(ie,Ee)&&!U.hasOwnProperty(Ee)&&(Se[Ee]=ie[Ee]===void 0&&Te!==void 0?Te[Ee]:ie[Ee])}var Ee=arguments.length-2;if(Ee===1)Se.children=T;else if(1<Ee){Te=Array(Ee);for(var rt=0;rt<Ee;rt++)Te[rt]=arguments[rt+2];Se.children=Te}return{$$typeof:e,type:V.type,key:ge,ref:Oe,props:Se,_owner:be}},bt.createContext=function(V){return V={$$typeof:i,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},V.Provider={$$typeof:l,_context:V},V.Consumer=V},bt.createElement=W,bt.createFactory=function(V){var ie=W.bind(null,V);return ie.type=V,ie},bt.createRef=function(){return{current:null}},bt.forwardRef=function(V){return{$$typeof:u,render:V}},bt.isValidElement=q,bt.lazy=function(V){return{$$typeof:v,_payload:{_status:-1,_result:V},_init:ce}},bt.memo=function(V,ie){return{$$typeof:m,type:V,compare:ie===void 0?null:ie}},bt.startTransition=function(V){var ie=de.transition;de.transition={};try{V()}finally{de.transition=ie}},bt.unstable_act=I,bt.useCallback=function(V,ie){return Ae.current.useCallback(V,ie)},bt.useContext=function(V){return Ae.current.useContext(V)},bt.useDebugValue=function(){},bt.useDeferredValue=function(V){return Ae.current.useDeferredValue(V)},bt.useEffect=function(V,ie){return Ae.current.useEffect(V,ie)},bt.useId=function(){return Ae.current.useId()},bt.useImperativeHandle=function(V,ie,T){return Ae.current.useImperativeHandle(V,ie,T)},bt.useInsertionEffect=function(V,ie){return Ae.current.useInsertionEffect(V,ie)},bt.useLayoutEffect=function(V,ie){return Ae.current.useLayoutEffect(V,ie)},bt.useMemo=function(V,ie){return Ae.current.useMemo(V,ie)},bt.useReducer=function(V,ie,T){return Ae.current.useReducer(V,ie,T)},bt.useRef=function(V){return Ae.current.useRef(V)},bt.useState=function(V){return Ae.current.useState(V)},bt.useSyncExternalStore=function(V,ie,T){return Ae.current.useSyncExternalStore(V,ie,T)},bt.useTransition=function(){return Ae.current.useTransition()},bt.version="18.3.1",bt}var Fg;function d2(){return Fg||(Fg=1,th.exports=R9()),th.exports}/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Og;function P9(){if(Og)return e0;Og=1;var e=d2(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(u,d,m){var v,f={},h=null,b=null;m!==void 0&&(h=""+m),d.key!==void 0&&(h=""+d.key),d.ref!==void 0&&(b=d.ref);for(v in d)r.call(d,v)&&!l.hasOwnProperty(v)&&(f[v]=d[v]);if(u&&u.defaultProps)for(v in d=u.defaultProps,d)f[v]===void 0&&(f[v]=d[v]);return{$$typeof:t,type:u,key:h,ref:b,props:f,_owner:a.current}}return e0.Fragment=n,e0.jsx=i,e0.jsxs=i,e0}var Bg;function q9(){return Bg||(Bg=1,eh.exports=P9()),eh.exports}var o=q9(),S=d2(),Yd={},nh={exports:{}},la={},rh={exports:{}},ah={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Hg;function F9(){return Hg||(Hg=1,(function(e){function t(de,te){var I=de.length;de.push(te);e:for(;0<I;){var V=I-1>>>1,ie=de[V];if(0<a(ie,te))de[V]=te,de[I]=ie,I=V;else break e}}function n(de){return de.length===0?null:de[0]}function r(de){if(de.length===0)return null;var te=de[0],I=de.pop();if(I!==te){de[0]=I;e:for(var V=0,ie=de.length,T=ie>>>1;V<T;){var Se=2*(V+1)-1,ge=de[Se],Oe=Se+1,be=de[Oe];if(0>a(ge,I))Oe<ie&&0>a(be,ge)?(de[V]=be,de[Oe]=I,V=Oe):(de[V]=ge,de[Se]=I,V=Se);else if(Oe<ie&&0>a(be,I))de[V]=be,de[Oe]=I,V=Oe;else break e}}return te}function a(de,te){var I=de.sortIndex-te.sortIndex;return I!==0?I:de.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var d=[],m=[],v=1,f=null,h=3,b=!1,y=!1,j=!1,C=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(de){for(var te=n(m);te!==null;){if(te.callback===null)r(m);else if(te.startTime<=de)r(m),te.sortIndex=te.expirationTime,t(d,te);else break;te=n(m)}}function P(de){if(j=!1,E(de),!y)if(n(d)!==null)y=!0,ce(M);else{var te=n(m);te!==null&&Ae(P,te.startTime-de)}}function M(de,te){y=!1,j&&(j=!1,N(W),W=-1),b=!0;var I=h;try{for(E(te),f=n(d);f!==null&&(!(f.expirationTime>te)||de&&!F());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var ie=V(f.expirationTime<=te);te=e.unstable_now(),typeof ie=="function"?f.callback=ie:f===n(d)&&r(d),E(te)}else r(d);f=n(d)}if(f!==null)var T=!0;else{var Se=n(m);Se!==null&&Ae(P,Se.startTime-te),T=!1}return T}finally{f=null,h=I,b=!1}}var L=!1,U=null,W=-1,O=5,q=-1;function F(){return!(e.unstable_now()-q<O)}function K(){if(U!==null){var de=e.unstable_now();q=de;var te=!0;try{te=U(!0,de)}finally{te?le():(L=!1,U=null)}}else L=!1}var le;if(typeof z=="function")le=function(){z(K)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ne=me.port2;me.port1.onmessage=K,le=function(){ne.postMessage(null)}}else le=function(){C(K,0)};function ce(de){U=de,L||(L=!0,le())}function Ae(de,te){W=C(function(){de(e.unstable_now())},te)}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(de){de.callback=null},e.unstable_continueExecution=function(){y||b||(y=!0,ce(M))},e.unstable_forceFrameRate=function(de){0>de||125<de?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<de?Math.floor(1e3/de):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(de){switch(h){case 1:case 2:case 3:var te=3;break;default:te=h}var I=h;h=te;try{return de()}finally{h=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(de,te){switch(de){case 1:case 2:case 3:case 4:case 5:break;default:de=3}var I=h;h=de;try{return te()}finally{h=I}},e.unstable_scheduleCallback=function(de,te,I){var V=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?V+I:V):I=V,de){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=I+ie,de={id:v++,callback:te,priorityLevel:de,startTime:I,expirationTime:ie,sortIndex:-1},I>V?(de.sortIndex=I,t(m,de),n(d)===null&&de===n(m)&&(j?(N(W),W=-1):j=!0,Ae(P,I-V))):(de.sortIndex=ie,t(d,de),y||b||(y=!0,ce(M))),de},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(de){var te=h;return function(){var I=h;h=te;try{return de.apply(this,arguments)}finally{h=I}}}})(ah)),ah}var Ug;function O9(){return Ug||(Ug=1,rh.exports=F9()),rh.exports}/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Vg;function B9(){if(Vg)return la;Vg=1;var e=d2(),t=O9();function n(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function l(s,c){i(s,c),i(s+"Capture",c)}function i(s,c){for(a[s]=c,s=0;s<c.length;s++)r.add(c[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=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]*$/,v={},f={};function h(s){return d.call(f,s)?!0:d.call(v,s)?!1:m.test(s)?f[s]=!0:(v[s]=!0,!1)}function b(s,c,p,g){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function y(s,c,p,g){if(c===null||typeof c>"u"||b(s,c,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function j(s,c,p,g,x,w,A){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=w,this.removeEmptyString=A}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){C[s]=new j(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];C[c]=new j(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){C[s]=new j(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){C[s]=new j(s,2,!1,s,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(s){C[s]=new j(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){C[s]=new j(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){C[s]=new j(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){C[s]=new j(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){C[s]=new j(s,5,!1,s.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function z(s){return s[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(s){var c=s.replace(N,z);C[c]=new j(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(N,z);C[c]=new j(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(N,z);C[c]=new j(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){C[s]=new j(s,1,!1,s.toLowerCase(),null,!1,!1)}),C.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){C[s]=new j(s,1,!1,s.toLowerCase(),null,!0,!0)});function E(s,c,p,g){var x=C.hasOwnProperty(c)?C[c]:null;(x!==null?x.type!==0:g||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(y(c,p,x,g)&&(p=null),g||x===null?h(c)&&(p===null?s.removeAttribute(c):s.setAttribute(c,""+p)):x.mustUseProperty?s[x.propertyName]=p===null?x.type===3?!1:"":p:(c=x.attributeName,g=x.attributeNamespace,p===null?s.removeAttribute(c):(x=x.type,p=x===3||x===4&&p===!0?"":""+p,g?s.setAttributeNS(g,c,p):s.setAttribute(c,p))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),F=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),Ae=Symbol.for("react.offscreen"),de=Symbol.iterator;function te(s){return s===null||typeof s!="object"?null:(s=de&&s[de]||s["@@iterator"],typeof s=="function"?s:null)}var I=Object.assign,V;function ie(s){if(V===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);V=c&&c[1]||""}return`
|
|
35
|
+
`+V+s}var T=!1;function Se(s,c){if(!s||T)return"";T=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(oe){var g=oe}Reflect.construct(s,[],c)}else{try{c.call()}catch(oe){g=oe}s.call(c.prototype)}else{try{throw Error()}catch(oe){g=oe}s()}}catch(oe){if(oe&&g&&typeof oe.stack=="string"){for(var x=oe.stack.split(`
|
|
36
|
+
`),w=g.stack.split(`
|
|
37
|
+
`),A=x.length-1,B=w.length-1;1<=A&&0<=B&&x[A]!==w[B];)B--;for(;1<=A&&0<=B;A--,B--)if(x[A]!==w[B]){if(A!==1||B!==1)do if(A--,B--,0>B||x[A]!==w[B]){var Z=`
|
|
38
|
+
`+x[A].replace(" at new "," at ");return s.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",s.displayName)),Z}while(1<=A&&0<=B);break}}}finally{T=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?ie(s):""}function ge(s){switch(s.tag){case 5:return ie(s.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return s=Se(s.type,!1),s;case 11:return s=Se(s.type.render,!1),s;case 1:return s=Se(s.type,!0),s;default:return""}}function Oe(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case U:return"Fragment";case L:return"Portal";case O:return"Profiler";case W:return"StrictMode";case le:return"Suspense";case me:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case F:return(s.displayName||"Context")+".Consumer";case q:return(s._context.displayName||"Context")+".Provider";case K:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ne:return c=s.displayName||null,c!==null?c:Oe(s.type)||"Memo";case ce:c=s._payload,s=s._init;try{return Oe(s(c))}catch{}}return null}function be(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oe(c);case 8:return c===W?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Te(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ee(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function rt(s){var c=Ee(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),g=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,w=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(A){g=""+A,w.call(this,A)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(A){g=""+A},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Nt(s){s._valueTracker||(s._valueTracker=rt(s))}function Jt(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),g="";return s&&(g=Ee(s)?s.checked?"true":"false":s.value),s=g,s!==p?(c.setValue(s),!0):!1}function Dn(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function en(s,c){var p=c.checked;return I({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function Ut(s,c){var p=c.defaultValue==null?"":c.defaultValue,g=c.checked!=null?c.checked:c.defaultChecked;p=Te(c.value!=null?c.value:p),s._wrapperState={initialChecked:g,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Qn(s,c){c=c.checked,c!=null&&E(s,"checked",c,!1)}function Xn(s,c){Qn(s,c);var p=Te(c.value),g=c.type;if(p!=null)g==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(g==="submit"||g==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?tn(s,c.type,p):c.hasOwnProperty("defaultValue")&&tn(s,c.type,Te(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function ha(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var g=c.type;if(!(g!=="submit"&&g!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function tn(s,c,p){(c!=="number"||Dn(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var yn=Array.isArray;function cr(s,c,p,g){if(s=s.options,c){c={};for(var x=0;x<p.length;x++)c["$"+p[x]]=!0;for(p=0;p<s.length;p++)x=c.hasOwnProperty("$"+s[p].value),s[p].selected!==x&&(s[p].selected=x),x&&g&&(s[p].defaultSelected=!0)}else{for(p=""+Te(p),c=null,x=0;x<s.length;x++){if(s[x].value===p){s[x].selected=!0,g&&(s[x].defaultSelected=!0);return}c!==null||s[x].disabled||(c=s[x])}c!==null&&(c.selected=!0)}}function qn(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return I({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Yn(s,c){var p=c.value;if(p==null){if(p=c.children,c=c.defaultValue,p!=null){if(c!=null)throw Error(n(92));if(yn(p)){if(1<p.length)throw Error(n(93));p=p[0]}c=p}c==null&&(c=""),p=c}s._wrapperState={initialValue:Te(p)}}function Vt(s,c){var p=Te(c.value),g=Te(c.defaultValue);p!=null&&(p=""+p,p!==s.value&&(s.value=p),c.defaultValue==null&&s.defaultValue!==p&&(s.defaultValue=p)),g!=null&&(s.defaultValue=""+g)}function Qr(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function ue(s){switch(s){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 Ne(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?ue(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Qe,at=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,p,g,x){MSApp.execUnsafeLocalFunction(function(){return s(c,p,g,x)})}:s})(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(Qe=Qe||document.createElement("div"),Qe.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=Qe.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function ut(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var nn={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},Mr=["Webkit","ms","Moz","O"];Object.keys(nn).forEach(function(s){Mr.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),nn[c]=nn[s]})});function sn(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||nn.hasOwnProperty(s)&&nn[s]?(""+c).trim():c+"px"}function _r(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var g=p.indexOf("--")===0,x=sn(p,c[p],g);p==="float"&&(p="cssFloat"),g?s.setProperty(p,x):s[p]=x}}var Pt=I({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 xn(s,c){if(c){if(Pt[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(n(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(n(61))}if(c.style!=null&&typeof c.style!="object")throw Error(n(62))}}function _n(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Kn=null;function fs(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Xr=null,zn=null,fa=null;function To(s){if(s=_i(s)){if(typeof Xr!="function")throw Error(n(280));var c=s.stateNode;c&&(c=ul(c),Xr(s.stateNode,s.type,c))}}function Mo(s){zn?fa?fa.push(s):fa=[s]:zn=s}function gs(){if(zn){var s=zn,c=fa;if(fa=zn=null,To(s),c)for(s=0;s<c.length;s++)To(c[s])}}function Xi(s,c){return s(c)}function Lr(){}var Lo=!1;function so(s,c,p){if(Lo)return s(c,p);Lo=!0;try{return Xi(s,c,p)}finally{Lo=!1,(zn!==null||fa!==null)&&(Lr(),gs())}}function qt(s,c){var p=s.stateNode;if(p===null)return null;var g=ul(p);if(g===null)return null;p=g[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(s=s.type,g=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!g;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(n(231,c,typeof p));return p}var Yr=!1;if(u)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){Yr=!0}}),window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{Yr=!1}function Ra(s,c,p,g,x,w,A,B,Z){var oe=Array.prototype.slice.call(arguments,3);try{c.apply(p,oe)}catch(xe){this.onError(xe)}}var Io=!1,Ir=null,va=!1,Ro=null,Yi={onError:function(s){Io=!0,Ir=s}};function au(s,c,p,g,x,w,A,B,Z){Io=!1,Ir=null,Ra.apply(Yi,arguments)}function Po(s,c,p,g,x,w,A,B,Z){if(au.apply(this,arguments),Io){if(Io){var oe=Ir;Io=!1,Ir=null}else throw Error(n(198));va||(va=!0,Ro=oe)}}function rn(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function qo(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function ei(s){if(rn(s)!==s)throw Error(n(188))}function Fo(s){var c=s.alternate;if(!c){if(c=rn(s),c===null)throw Error(n(188));return c!==s?null:s}for(var p=s,g=c;;){var x=p.return;if(x===null)break;var w=x.alternate;if(w===null){if(g=x.return,g!==null){p=g;continue}break}if(x.child===w.child){for(w=x.child;w;){if(w===p)return ei(x),s;if(w===g)return ei(x),c;w=w.sibling}throw Error(n(188))}if(p.return!==g.return)p=x,g=w;else{for(var A=!1,B=x.child;B;){if(B===p){A=!0,p=x,g=w;break}if(B===g){A=!0,g=x,p=w;break}B=B.sibling}if(!A){for(B=w.child;B;){if(B===p){A=!0,p=w,g=x;break}if(B===g){A=!0,g=w,p=x;break}B=B.sibling}if(!A)throw Error(n(189))}}if(p.alternate!==g)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?s:c}function ba(s){return s=Fo(s),s!==null?ti(s):null}function ti(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=ti(s);if(c!==null)return c;s=s.sibling}return null}var ya=t.unstable_scheduleCallback,ni=t.unstable_cancelCallback,ri=t.unstable_shouldYield,Ki=t.unstable_requestPaint,an=t.unstable_now,Oo=t.unstable_getCurrentPriorityLevel,ai=t.unstable_ImmediatePriority,vs=t.unstable_UserBlockingPriority,ur=t.unstable_NormalPriority,Bo=t.unstable_LowPriority,Rr=t.unstable_IdlePriority,Pa=null,Jn=null;function bs(s){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Pa,s,void 0,(s.current.flags&128)===128)}catch{}}var dr=Math.clz32?Math.clz32:io,Ho=Math.log,oi=Math.LN2;function io(s){return s>>>=0,s===0?32:31-(Ho(s)/oi|0)|0}var Kr=64,ys=4194304;function er(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Uo(s,c){var p=s.pendingLanes;if(p===0)return 0;var g=0,x=s.suspendedLanes,w=s.pingedLanes,A=p&268435455;if(A!==0){var B=A&~x;B!==0?g=er(B):(w&=A,w!==0&&(g=er(w)))}else A=p&~x,A!==0?g=er(A):w!==0&&(g=er(w));if(g===0)return 0;if(c!==0&&c!==g&&(c&x)===0&&(x=g&-g,w=c&-c,x>=w||x===16&&(w&4194240)!==0))return c;if((g&4)!==0&&(g|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=g;0<c;)p=31-dr(c),x=1<<p,g|=s[p],c&=~x;return g}function lo(s,c){switch(s){case 1:case 2:case 4:return c+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 c+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 ou(s,c){for(var p=s.suspendedLanes,g=s.pingedLanes,x=s.expirationTimes,w=s.pendingLanes;0<w;){var A=31-dr(w),B=1<<A,Z=x[A];Z===-1?((B&p)===0||(B&g)!==0)&&(x[A]=lo(B,c)):Z<=c&&(s.expiredLanes|=B),w&=~B}}function co(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Ct(){var s=Kr;return Kr<<=1,(Kr&4194240)===0&&(Kr=64),s}function qa(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function Vo(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-dr(c),s[c]=p}function si(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var g=s.eventTimes;for(s=s.expirationTimes;0<p;){var x=31-dr(p),w=1<<x;c[x]=0,g[x]=-1,s[x]=-1,p&=~w}}function xa(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var g=31-dr(p),x=1<<g;x&c|s[g]&c&&(s[g]|=c),p&=~x}}var xt=0;function Jr(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Go,xs,Wo,ea,_s,uo=!1,_a=[],pr=null,Pr=null,Fa=null,Zo=new Map,ta=new Map,wa=[],ii="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 wr(s,c){switch(s){case"focusin":case"focusout":pr=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":Zo.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":ta.delete(c.pointerId)}}function ja(s,c,p,g,x,w){return s===null||s.nativeEvent!==w?(s={blockedOn:c,domEventName:p,eventSystemFlags:g,nativeEvent:w,targetContainers:[x]},c!==null&&(c=_i(c),c!==null&&xs(c)),s):(s.eventSystemFlags|=g,c=s.targetContainers,x!==null&&c.indexOf(x)===-1&&c.push(x),s)}function na(s,c,p,g,x){switch(c){case"focusin":return pr=ja(pr,s,c,p,g,x),!0;case"dragenter":return Pr=ja(Pr,s,c,p,g,x),!0;case"mouseover":return Fa=ja(Fa,s,c,p,g,x),!0;case"pointerover":var w=x.pointerId;return Zo.set(w,ja(Zo.get(w)||null,s,c,p,g,x)),!0;case"gotpointercapture":return w=x.pointerId,ta.set(w,ja(ta.get(w)||null,s,c,p,g,x)),!0}return!1}function Ji(s){var c=Ko(s.target);if(c!==null){var p=rn(c);if(p!==null){if(c=p.tag,c===13){if(c=qo(p),c!==null){s.blockedOn=c,_s(s.priority,function(){Wo(p)});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function ws(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=Fe(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var g=new p.constructor(p.type,p);Kn=g,p.target.dispatchEvent(g),Kn=null}else return c=_i(p),c!==null&&xs(c),s.blockedOn=p,!1;c.shift()}return!0}function el(s,c,p){ws(s)&&p.delete(c)}function Qo(){uo=!1,pr!==null&&ws(pr)&&(pr=null),Pr!==null&&ws(Pr)&&(Pr=null),Fa!==null&&ws(Fa)&&(Fa=null),Zo.forEach(el),ta.forEach(el)}function Xo(s,c){s.blockedOn===c&&(s.blockedOn=null,uo||(uo=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Qo)))}function Ca(s){function c(x){return Xo(x,s)}if(0<_a.length){Xo(_a[0],s);for(var p=1;p<_a.length;p++){var g=_a[p];g.blockedOn===s&&(g.blockedOn=null)}}for(pr!==null&&Xo(pr,s),Pr!==null&&Xo(Pr,s),Fa!==null&&Xo(Fa,s),Zo.forEach(c),ta.forEach(c),p=0;p<wa.length;p++)g=wa[p],g.blockedOn===s&&(g.blockedOn=null);for(;0<wa.length&&(p=wa[0],p.blockedOn===null);)Ji(p),p.blockedOn===null&&wa.shift()}var Yo=P.ReactCurrentBatchConfig,po=!0;function Ql(s,c,p,g){var x=xt,w=Yo.transition;Yo.transition=null;try{xt=1,li(s,c,p,g)}finally{xt=x,Yo.transition=w}}function js(s,c,p,g){var x=xt,w=Yo.transition;Yo.transition=null;try{xt=4,li(s,c,p,g)}finally{xt=x,Yo.transition=w}}function li(s,c,p,g){if(po){var x=Fe(s,c,p,g);if(x===null)mc(s,c,g,Q,p),wr(s,g);else if(na(x,s,c,p,g))g.stopPropagation();else if(wr(s,g),c&4&&-1<ii.indexOf(s)){for(;x!==null;){var w=_i(x);if(w!==null&&Go(w),w=Fe(s,c,p,g),w===null&&mc(s,c,g,Q,p),w===x)break;x=w}x!==null&&g.stopPropagation()}else mc(s,c,g,null,p)}}var Q=null;function Fe(s,c,p,g){if(Q=null,s=fs(g),s=Ko(s),s!==null)if(c=rn(s),c===null)s=null;else if(p=c.tag,p===13){if(s=qo(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return Q=s,null}function _t(s){switch(s){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(Oo()){case ai:return 1;case vs:return 4;case ur:case Bo:return 16;case Rr:return 536870912;default:return 16}default:return 16}}var Xt=null,ln=null,Tn=null;function st(){if(Tn)return Tn;var s,c=ln,p=c.length,g,x="value"in Xt?Xt.value:Xt.textContent,w=x.length;for(s=0;s<p&&c[s]===x[s];s++);var A=p-s;for(g=1;g<=A&&c[p-g]===x[w-g];g++);return Tn=x.slice(s,1<g?1-g:void 0)}function Ft(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function it(){return!0}function tr(){return!1}function Ot(s){function c(p,g,x,w,A){this._reactName=p,this._targetInst=x,this.type=g,this.nativeEvent=w,this.target=A,this.currentTarget=null;for(var B in s)s.hasOwnProperty(B)&&(p=s[B],this[B]=p?p(w):w[B]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?it:tr,this.isPropagationStopped=tr,this}return I(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=it)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=it)},persist:function(){},isPersistent:it}),c}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jr=Ot(Fn),ci=I({},Fn,{view:0,detail:0}),su=Ot(ci),iu,Cs,Cr,lu=I({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:du,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Cr&&(Cr&&s.type==="mousemove"?(iu=s.screenX-Cr.screenX,Cs=s.screenY-Cr.screenY):Cs=iu=0,Cr=s),iu)},movementY:function(s){return"movementY"in s?s.movementY:Cs}}),Xl=Ot(lu),cu=I({},lu,{dataTransfer:0}),Yl=Ot(cu),H0=I({},ci,{relatedTarget:0}),Oa=Ot(H0),uu=I({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bm=Ot(uu),mo=I({},Fn,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Hm=Ot(mo),Um=I({},Fn,{data:0}),Kl=Ot(Um),ks={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ba={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"},tl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jl(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=tl[s])?!!c[s]:!1}function du(){return Jl}var U0=I({},ci,{key:function(s){if(s.key){var c=ks[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Ft(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Ba[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:du,charCode:function(s){return s.type==="keypress"?Ft(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Ft(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),V0=Ot(U0),pu=I({},lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ec=Ot(pu),Vm=I({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:du}),Gm=Ot(Vm),Wm=I({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ui=Ot(Wm),tc=I({},lu,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Zm=Ot(tc),nc=[9,13,27,32],rc=u&&"CompositionEvent"in window,di=null;u&&"documentMode"in document&&(di=document.documentMode);var Qm=u&&"TextEvent"in window&&!di,G0=u&&(!rc||di&&8<di&&11>=di),W0=" ",Z0=!1;function Q0(s,c){switch(s){case"keyup":return nc.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nl(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var pi=!1;function Ha(s,c){switch(s){case"compositionend":return nl(c);case"keypress":return c.which!==32?null:(Z0=!0,W0);case"textInput":return s=c.data,s===W0&&Z0?null:s;default:return null}}function Xm(s,c){if(pi)return s==="compositionend"||!rc&&Q0(s,c)?(s=st(),Tn=ln=Xt=null,pi=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return G0&&c.locale!=="ko"?null:c.data;default:return null}}var X0={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 mu(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!X0[s.type]:c==="textarea"}function hu(s,c,p,g){Mo(g),c=il(c,"onChange"),0<c.length&&(p=new jr("onChange","change",null,p,g),s.push({event:p,listeners:c}))}var mi=null,hi=null;function Y0(s){zu(s,0)}function rl(s){var c=Es(s);if(Jt(c))return s}function K0(s,c){if(s==="change")return c}var fu=!1;if(u){var ac;if(u){var oc="oninput"in document;if(!oc){var gu=document.createElement("div");gu.setAttribute("oninput","return;"),oc=typeof gu.oninput=="function"}ac=oc}else ac=!1;fu=ac&&(!document.documentMode||9<document.documentMode)}function vu(){mi&&(mi.detachEvent("onpropertychange",bu),hi=mi=null)}function bu(s){if(s.propertyName==="value"&&rl(hi)){var c=[];hu(c,hi,s,fs(s)),so(Y0,c)}}function J0(s,c,p){s==="focusin"?(vu(),mi=c,hi=p,mi.attachEvent("onpropertychange",bu)):s==="focusout"&&vu()}function ed(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return rl(hi)}function td(s,c){if(s==="click")return rl(c)}function nd(s,c){if(s==="input"||s==="change")return rl(c)}function rd(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var ra=typeof Object.is=="function"?Object.is:rd;function fi(s,c){if(ra(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),g=Object.keys(c);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var x=p[g];if(!d.call(c,x)||!ra(s[x],c[x]))return!1}return!0}function yu(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function xu(s,c){var p=yu(s);s=0;for(var g;p;){if(p.nodeType===3){if(g=s+p.textContent.length,s<=c&&g>=c)return{node:p,offset:c-s};s=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=yu(p)}}function _u(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?_u(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function wu(){for(var s=window,c=Dn();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Dn(s.document)}return c}function sc(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function ad(s){var c=wu(),p=s.focusedElem,g=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&_u(p.ownerDocument.documentElement,p)){if(g!==null&&sc(p)){if(c=g.start,s=g.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var x=p.textContent.length,w=Math.min(g.start,x);g=g.end===void 0?w:Math.min(g.end,x),!s.extend&&w>g&&(x=g,g=w,w=x),x=xu(p,w);var A=xu(p,g);x&&A&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==A.node||s.focusOffset!==A.offset)&&(c=c.createRange(),c.setStart(x.node,x.offset),s.removeAllRanges(),w>g?(s.addRange(c),s.extend(A.node,A.offset)):(c.setEnd(A.node,A.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<c.length;p++)s=c[p],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var od=u&&"documentMode"in document&&11>=document.documentMode,Ns=null,ic=null,gi=null,lc=!1;function ju(s,c,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;lc||Ns==null||Ns!==Dn(g)||(g=Ns,"selectionStart"in g&&sc(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),gi&&fi(gi,g)||(gi=g,g=il(ic,"onSelect"),0<g.length&&(c=new jr("onSelect","select",null,c,p),s.push({event:c,listeners:g}),c.target=Ns)))}function al(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var Ss={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionend:al("Transition","TransitionEnd")},cc={},Cu={};u&&(Cu=document.createElement("div").style,"AnimationEvent"in window||(delete Ss.animationend.animation,delete Ss.animationiteration.animation,delete Ss.animationstart.animation),"TransitionEvent"in window||delete Ss.transitionend.transition);function ol(s){if(cc[s])return cc[s];if(!Ss[s])return s;var c=Ss[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in Cu)return cc[s]=c[p];return s}var ku=ol("animationend"),Nu=ol("animationiteration"),Su=ol("animationstart"),$u=ol("transitionend"),Au=new Map,Eu="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 ho(s,c){Au.set(s,c),l(c,[s])}for(var uc=0;uc<Eu.length;uc++){var dc=Eu[uc],sd=dc.toLowerCase(),id=dc[0].toUpperCase()+dc.slice(1);ho(sd,"on"+id)}ho(ku,"onAnimationEnd"),ho(Nu,"onAnimationIteration"),ho(Su,"onAnimationStart"),ho("dblclick","onDoubleClick"),ho("focusin","onFocus"),ho("focusout","onBlur"),ho($u,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("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(" "),ld=new Set("cancel close invalid load scroll toggle".split(" ").concat(vi));function Du(s,c,p){var g=s.type||"unknown-event";s.currentTarget=p,Po(g,c,void 0,s),s.currentTarget=null}function zu(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var g=s[p],x=g.event;g=g.listeners;e:{var w=void 0;if(c)for(var A=g.length-1;0<=A;A--){var B=g[A],Z=B.instance,oe=B.currentTarget;if(B=B.listener,Z!==w&&x.isPropagationStopped())break e;Du(x,B,oe),w=Z}else for(A=0;A<g.length;A++){if(B=g[A],Z=B.instance,oe=B.currentTarget,B=B.listener,Z!==w&&x.isPropagationStopped())break e;Du(x,B,oe),w=Z}}}if(va)throw s=Ro,va=!1,Ro=null,s}function Bt(s,c){var p=c[yc];p===void 0&&(p=c[yc]=new Set);var g=s+"__bubble";p.has(g)||(Tu(c,s,2,!1),p.add(g))}function pc(s,c,p){var g=0;c&&(g|=4),Tu(p,s,g,c)}var sl="_reactListening"+Math.random().toString(36).slice(2);function bi(s){if(!s[sl]){s[sl]=!0,r.forEach(function(p){p!=="selectionchange"&&(ld.has(p)||pc(p,!1,s),pc(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[sl]||(c[sl]=!0,pc("selectionchange",!1,c))}}function Tu(s,c,p,g){switch(_t(c)){case 1:var x=Ql;break;case 4:x=js;break;default:x=li}p=x.bind(null,c,p,s),x=void 0,!Yr||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(x=!0),g?x!==void 0?s.addEventListener(c,p,{capture:!0,passive:x}):s.addEventListener(c,p,!0):x!==void 0?s.addEventListener(c,p,{passive:x}):s.addEventListener(c,p,!1)}function mc(s,c,p,g,x){var w=g;if((c&1)===0&&(c&2)===0&&g!==null)e:for(;;){if(g===null)return;var A=g.tag;if(A===3||A===4){var B=g.stateNode.containerInfo;if(B===x||B.nodeType===8&&B.parentNode===x)break;if(A===4)for(A=g.return;A!==null;){var Z=A.tag;if((Z===3||Z===4)&&(Z=A.stateNode.containerInfo,Z===x||Z.nodeType===8&&Z.parentNode===x))return;A=A.return}for(;B!==null;){if(A=Ko(B),A===null)return;if(Z=A.tag,Z===5||Z===6){g=w=A;continue e}B=B.parentNode}}g=g.return}so(function(){var oe=w,xe=fs(p),we=[];e:{var ve=Au.get(s);if(ve!==void 0){var Re=jr,Ue=s;switch(s){case"keypress":if(Ft(p)===0)break e;case"keydown":case"keyup":Re=V0;break;case"focusin":Ue="focus",Re=Oa;break;case"focusout":Ue="blur",Re=Oa;break;case"beforeblur":case"afterblur":Re=Oa;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=Xl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=Yl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=Gm;break;case ku:case Nu:case Su:Re=Bm;break;case $u:Re=ui;break;case"scroll":Re=su;break;case"wheel":Re=Zm;break;case"copy":case"cut":case"paste":Re=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=ec}var Ve=(c&4)!==0,$n=!Ve&&s==="scroll",re=Ve?ve!==null?ve+"Capture":null:ve;Ve=[];for(var ee=oe,ae;ee!==null;){ae=ee;var $e=ae.stateNode;if(ae.tag===5&&$e!==null&&(ae=$e,re!==null&&($e=qt(ee,re),$e!=null&&Ve.push(yi(ee,$e,ae)))),$n)break;ee=ee.return}0<Ve.length&&(ve=new Re(ve,Ue,null,p,xe),we.push({event:ve,listeners:Ve}))}}if((c&7)===0){e:{if(ve=s==="mouseover"||s==="pointerover",Re=s==="mouseout"||s==="pointerout",ve&&p!==Kn&&(Ue=p.relatedTarget||p.fromElement)&&(Ko(Ue)||Ue[Ua]))break e;if((Re||ve)&&(ve=xe.window===xe?xe:(ve=xe.ownerDocument)?ve.defaultView||ve.parentWindow:window,Re?(Ue=p.relatedTarget||p.toElement,Re=oe,Ue=Ue?Ko(Ue):null,Ue!==null&&($n=rn(Ue),Ue!==$n||Ue.tag!==5&&Ue.tag!==6)&&(Ue=null)):(Re=null,Ue=oe),Re!==Ue)){if(Ve=Xl,$e="onMouseLeave",re="onMouseEnter",ee="mouse",(s==="pointerout"||s==="pointerover")&&(Ve=ec,$e="onPointerLeave",re="onPointerEnter",ee="pointer"),$n=Re==null?ve:Es(Re),ae=Ue==null?ve:Es(Ue),ve=new Ve($e,ee+"leave",Re,p,xe),ve.target=$n,ve.relatedTarget=ae,$e=null,Ko(xe)===oe&&(Ve=new Ve(re,ee+"enter",Ue,p,xe),Ve.target=ae,Ve.relatedTarget=$n,$e=Ve),$n=$e,Re&&Ue)t:{for(Ve=Re,re=Ue,ee=0,ae=Ve;ae;ae=$s(ae))ee++;for(ae=0,$e=re;$e;$e=$s($e))ae++;for(;0<ee-ae;)Ve=$s(Ve),ee--;for(;0<ae-ee;)re=$s(re),ae--;for(;ee--;){if(Ve===re||re!==null&&Ve===re.alternate)break t;Ve=$s(Ve),re=$s(re)}Ve=null}else Ve=null;Re!==null&&Mu(we,ve,Re,Ve,!1),Ue!==null&&$n!==null&&Mu(we,$n,Ue,Ve,!0)}}e:{if(ve=oe?Es(oe):window,Re=ve.nodeName&&ve.nodeName.toLowerCase(),Re==="select"||Re==="input"&&ve.type==="file")var Ze=K0;else if(mu(ve))if(fu)Ze=nd;else{Ze=ed;var Ke=J0}else(Re=ve.nodeName)&&Re.toLowerCase()==="input"&&(ve.type==="checkbox"||ve.type==="radio")&&(Ze=td);if(Ze&&(Ze=Ze(s,oe))){hu(we,Ze,p,xe);break e}Ke&&Ke(s,ve,oe),s==="focusout"&&(Ke=ve._wrapperState)&&Ke.controlled&&ve.type==="number"&&tn(ve,"number",ve.value)}switch(Ke=oe?Es(oe):window,s){case"focusin":(mu(Ke)||Ke.contentEditable==="true")&&(Ns=Ke,ic=oe,gi=null);break;case"focusout":gi=ic=Ns=null;break;case"mousedown":lc=!0;break;case"contextmenu":case"mouseup":case"dragend":lc=!1,ju(we,p,xe);break;case"selectionchange":if(od)break;case"keydown":case"keyup":ju(we,p,xe)}var Je;if(rc)e:{switch(s){case"compositionstart":var ct="onCompositionStart";break e;case"compositionend":ct="onCompositionEnd";break e;case"compositionupdate":ct="onCompositionUpdate";break e}ct=void 0}else pi?Q0(s,p)&&(ct="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(ct="onCompositionStart");ct&&(G0&&p.locale!=="ko"&&(pi||ct!=="onCompositionStart"?ct==="onCompositionEnd"&&pi&&(Je=st()):(Xt=xe,ln="value"in Xt?Xt.value:Xt.textContent,pi=!0)),Ke=il(oe,ct),0<Ke.length&&(ct=new Kl(ct,s,null,p,xe),we.push({event:ct,listeners:Ke}),Je?ct.data=Je:(Je=nl(p),Je!==null&&(ct.data=Je)))),(Je=Qm?Ha(s,p):Xm(s,p))&&(oe=il(oe,"onBeforeInput"),0<oe.length&&(xe=new Kl("onBeforeInput","beforeinput",null,p,xe),we.push({event:xe,listeners:oe}),xe.data=Je))}zu(we,c)})}function yi(s,c,p){return{instance:s,listener:c,currentTarget:p}}function il(s,c){for(var p=c+"Capture",g=[];s!==null;){var x=s,w=x.stateNode;x.tag===5&&w!==null&&(x=w,w=qt(s,p),w!=null&&g.unshift(yi(s,w,x)),w=qt(s,c),w!=null&&g.push(yi(s,w,x))),s=s.return}return g}function $s(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Mu(s,c,p,g,x){for(var w=c._reactName,A=[];p!==null&&p!==g;){var B=p,Z=B.alternate,oe=B.stateNode;if(Z!==null&&Z===g)break;B.tag===5&&oe!==null&&(B=oe,x?(Z=qt(p,w),Z!=null&&A.unshift(yi(p,Z,B))):x||(Z=qt(p,w),Z!=null&&A.push(yi(p,Z,B)))),p=p.return}A.length!==0&&s.push({event:c,listeners:A})}var cd=/\r\n?/g,ud=/\u0000|\uFFFD/g;function Lu(s){return(typeof s=="string"?s:""+s).replace(cd,`
|
|
39
|
+
`).replace(ud,"")}function ll(s,c,p){if(c=Lu(c),Lu(s)!==c&&p)throw Error(n(425))}function cl(){}var hc=null,fc=null;function gc(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var vc=typeof setTimeout=="function"?setTimeout:void 0,dd=typeof clearTimeout=="function"?clearTimeout:void 0,Iu=typeof Promise=="function"?Promise:void 0,pd=typeof queueMicrotask=="function"?queueMicrotask:typeof Iu<"u"?function(s){return Iu.resolve(null).then(s).catch(md)}:vc;function md(s){setTimeout(function(){throw s})}function bc(s,c){var p=c,g=0;do{var x=p.nextSibling;if(s.removeChild(p),x&&x.nodeType===8)if(p=x.data,p==="/$"){if(g===0){s.removeChild(x),Ca(c);return}g--}else p!=="$"&&p!=="$?"&&p!=="$!"||g++;p=x}while(p);Ca(c)}function fo(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function Ru(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}var As=Math.random().toString(36).slice(2),ka="__reactFiber$"+As,xi="__reactProps$"+As,Ua="__reactContainer$"+As,yc="__reactEvents$"+As,hd="__reactListeners$"+As,fd="__reactHandles$"+As;function Ko(s){var c=s[ka];if(c)return c;for(var p=s.parentNode;p;){if(c=p[Ua]||p[ka]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=Ru(s);s!==null;){if(p=s[ka])return p;s=Ru(s)}return c}s=p,p=s.parentNode}return null}function _i(s){return s=s[ka]||s[Ua],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Es(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function ul(s){return s[xi]||null}var xc=[],Ds=-1;function go(s){return{current:s}}function Ht(s){0>Ds||(s.current=xc[Ds],xc[Ds]=null,Ds--)}function Lt(s,c){Ds++,xc[Ds]=s.current,s.current=c}var vo={},On=go(vo),mr=go(!1),Jo=vo;function zs(s,c){var p=s.type.contextTypes;if(!p)return vo;var g=s.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===c)return g.__reactInternalMemoizedMaskedChildContext;var x={},w;for(w in p)x[w]=c[w];return g&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=x),x}function hr(s){return s=s.childContextTypes,s!=null}function dl(){Ht(mr),Ht(On)}function Pu(s,c,p){if(On.current!==vo)throw Error(n(168));Lt(On,c),Lt(mr,p)}function qu(s,c,p){var g=s.stateNode;if(c=c.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var x in g)if(!(x in c))throw Error(n(108,be(s)||"Unknown",x));return I({},p,g)}function D(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||vo,Jo=On.current,Lt(On,s),Lt(mr,mr.current),!0}function J(s,c,p){var g=s.stateNode;if(!g)throw Error(n(169));p?(s=qu(s,c,Jo),g.__reactInternalMemoizedMergedChildContext=s,Ht(mr),Ht(On),Lt(On,s)):Ht(mr),Lt(mr,p)}var he=null,qe=!1,wn=!1;function qr(s){he===null?he=[s]:he.push(s)}function pl(s){qe=!0,qr(s)}function aa(){if(!wn&&he!==null){wn=!0;var s=0,c=xt;try{var p=he;for(xt=1;s<p.length;s++){var g=p[s];do g=g(!0);while(g!==null)}he=null,qe=!1}catch(x){throw he!==null&&(he=he.slice(s+1)),ya(ai,aa),x}finally{xt=c,wn=!1}}return null}var wi=[],_c=0,gd=null,vd=0,Va=[],Ga=0,ml=null,Ts=1,Ms="";function hl(s,c){wi[_c++]=vd,wi[_c++]=gd,gd=s,vd=c}function c4(s,c,p){Va[Ga++]=Ts,Va[Ga++]=Ms,Va[Ga++]=ml,ml=s;var g=Ts;s=Ms;var x=32-dr(g)-1;g&=~(1<<x),p+=1;var w=32-dr(c)+x;if(30<w){var A=x-x%5;w=(g&(1<<A)-1).toString(32),g>>=A,x-=A,Ts=1<<32-dr(c)+x|p<<x|g,Ms=w+s}else Ts=1<<w|p<<x|g,Ms=s}function Ym(s){s.return!==null&&(hl(s,1),c4(s,1,0))}function Km(s){for(;s===gd;)gd=wi[--_c],wi[_c]=null,vd=wi[--_c],wi[_c]=null;for(;s===ml;)ml=Va[--Ga],Va[Ga]=null,Ms=Va[--Ga],Va[Ga]=null,Ts=Va[--Ga],Va[Ga]=null}var Na=null,Sa=null,cn=!1,bo=null;function u4(s,c){var p=Xa(5,null,null,0);p.elementType="DELETED",p.stateNode=c,p.return=s,c=s.deletions,c===null?(s.deletions=[p],s.flags|=16):c.push(p)}function d4(s,c){switch(s.tag){case 5:var p=s.type;return c=c.nodeType!==1||p.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,Na=s,Sa=fo(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,Na=s,Sa=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(p=ml!==null?{id:Ts,overflow:Ms}:null,s.memoizedState={dehydrated:c,treeContext:p,retryLane:1073741824},p=Xa(18,null,null,0),p.stateNode=c,p.return=s,s.child=p,Na=s,Sa=null,!0):!1;default:return!1}}function Jm(s){return(s.mode&1)!==0&&(s.flags&128)===0}function e1(s){if(cn){var c=Sa;if(c){var p=c;if(!d4(s,c)){if(Jm(s))throw Error(n(418));c=fo(p.nextSibling);var g=Na;c&&d4(s,c)?u4(g,p):(s.flags=s.flags&-4097|2,cn=!1,Na=s)}}else{if(Jm(s))throw Error(n(418));s.flags=s.flags&-4097|2,cn=!1,Na=s}}}function p4(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Na=s}function bd(s){if(s!==Na)return!1;if(!cn)return p4(s),cn=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!gc(s.type,s.memoizedProps)),c&&(c=Sa)){if(Jm(s))throw m4(),Error(n(418));for(;c;)u4(s,c),c=fo(c.nextSibling)}if(p4(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="/$"){if(c===0){Sa=fo(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++}s=s.nextSibling}Sa=null}}else Sa=Na?fo(s.stateNode.nextSibling):null;return!0}function m4(){for(var s=Sa;s;)s=fo(s.nextSibling)}function wc(){Sa=Na=null,cn=!1}function t1(s){bo===null?bo=[s]:bo.push(s)}var J8=P.ReactCurrentBatchConfig;function Fu(s,c,p){if(s=p.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var g=p.stateNode}if(!g)throw Error(n(147,s));var x=g,w=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===w?c.ref:(c=function(A){var B=x.refs;A===null?delete B[w]:B[w]=A},c._stringRef=w,c)}if(typeof s!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,s))}return s}function yd(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function h4(s){var c=s._init;return c(s._payload)}function f4(s){function c(re,ee){if(s){var ae=re.deletions;ae===null?(re.deletions=[ee],re.flags|=16):ae.push(ee)}}function p(re,ee){if(!s)return null;for(;ee!==null;)c(re,ee),ee=ee.sibling;return null}function g(re,ee){for(re=new Map;ee!==null;)ee.key!==null?re.set(ee.key,ee):re.set(ee.index,ee),ee=ee.sibling;return re}function x(re,ee){return re=Ei(re,ee),re.index=0,re.sibling=null,re}function w(re,ee,ae){return re.index=ae,s?(ae=re.alternate,ae!==null?(ae=ae.index,ae<ee?(re.flags|=2,ee):ae):(re.flags|=2,ee)):(re.flags|=1048576,ee)}function A(re){return s&&re.alternate===null&&(re.flags|=2),re}function B(re,ee,ae,$e){return ee===null||ee.tag!==6?(ee=G1(ae,re.mode,$e),ee.return=re,ee):(ee=x(ee,ae),ee.return=re,ee)}function Z(re,ee,ae,$e){var Ze=ae.type;return Ze===U?xe(re,ee,ae.props.children,$e,ae.key):ee!==null&&(ee.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===ce&&h4(Ze)===ee.type)?($e=x(ee,ae.props),$e.ref=Fu(re,ee,ae),$e.return=re,$e):($e=Hd(ae.type,ae.key,ae.props,null,re.mode,$e),$e.ref=Fu(re,ee,ae),$e.return=re,$e)}function oe(re,ee,ae,$e){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ae.containerInfo||ee.stateNode.implementation!==ae.implementation?(ee=W1(ae,re.mode,$e),ee.return=re,ee):(ee=x(ee,ae.children||[]),ee.return=re,ee)}function xe(re,ee,ae,$e,Ze){return ee===null||ee.tag!==7?(ee=wl(ae,re.mode,$e,Ze),ee.return=re,ee):(ee=x(ee,ae),ee.return=re,ee)}function we(re,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=G1(""+ee,re.mode,ae),ee.return=re,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case M:return ae=Hd(ee.type,ee.key,ee.props,null,re.mode,ae),ae.ref=Fu(re,null,ee),ae.return=re,ae;case L:return ee=W1(ee,re.mode,ae),ee.return=re,ee;case ce:var $e=ee._init;return we(re,$e(ee._payload),ae)}if(yn(ee)||te(ee))return ee=wl(ee,re.mode,ae,null),ee.return=re,ee;yd(re,ee)}return null}function ve(re,ee,ae,$e){var Ze=ee!==null?ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return Ze!==null?null:B(re,ee,""+ae,$e);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case M:return ae.key===Ze?Z(re,ee,ae,$e):null;case L:return ae.key===Ze?oe(re,ee,ae,$e):null;case ce:return Ze=ae._init,ve(re,ee,Ze(ae._payload),$e)}if(yn(ae)||te(ae))return Ze!==null?null:xe(re,ee,ae,$e,null);yd(re,ae)}return null}function Re(re,ee,ae,$e,Ze){if(typeof $e=="string"&&$e!==""||typeof $e=="number")return re=re.get(ae)||null,B(ee,re,""+$e,Ze);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case M:return re=re.get($e.key===null?ae:$e.key)||null,Z(ee,re,$e,Ze);case L:return re=re.get($e.key===null?ae:$e.key)||null,oe(ee,re,$e,Ze);case ce:var Ke=$e._init;return Re(re,ee,ae,Ke($e._payload),Ze)}if(yn($e)||te($e))return re=re.get(ae)||null,xe(ee,re,$e,Ze,null);yd(ee,$e)}return null}function Ue(re,ee,ae,$e){for(var Ze=null,Ke=null,Je=ee,ct=ee=0,ar=null;Je!==null&&ct<ae.length;ct++){Je.index>ct?(ar=Je,Je=null):ar=Je.sibling;var St=ve(re,Je,ae[ct],$e);if(St===null){Je===null&&(Je=ar);break}s&&Je&&St.alternate===null&&c(re,Je),ee=w(St,ee,ct),Ke===null?Ze=St:Ke.sibling=St,Ke=St,Je=ar}if(ct===ae.length)return p(re,Je),cn&&hl(re,ct),Ze;if(Je===null){for(;ct<ae.length;ct++)Je=we(re,ae[ct],$e),Je!==null&&(ee=w(Je,ee,ct),Ke===null?Ze=Je:Ke.sibling=Je,Ke=Je);return cn&&hl(re,ct),Ze}for(Je=g(re,Je);ct<ae.length;ct++)ar=Re(Je,re,ct,ae[ct],$e),ar!==null&&(s&&ar.alternate!==null&&Je.delete(ar.key===null?ct:ar.key),ee=w(ar,ee,ct),Ke===null?Ze=ar:Ke.sibling=ar,Ke=ar);return s&&Je.forEach(function(Di){return c(re,Di)}),cn&&hl(re,ct),Ze}function Ve(re,ee,ae,$e){var Ze=te(ae);if(typeof Ze!="function")throw Error(n(150));if(ae=Ze.call(ae),ae==null)throw Error(n(151));for(var Ke=Ze=null,Je=ee,ct=ee=0,ar=null,St=ae.next();Je!==null&&!St.done;ct++,St=ae.next()){Je.index>ct?(ar=Je,Je=null):ar=Je.sibling;var Di=ve(re,Je,St.value,$e);if(Di===null){Je===null&&(Je=ar);break}s&&Je&&Di.alternate===null&&c(re,Je),ee=w(Di,ee,ct),Ke===null?Ze=Di:Ke.sibling=Di,Ke=Di,Je=ar}if(St.done)return p(re,Je),cn&&hl(re,ct),Ze;if(Je===null){for(;!St.done;ct++,St=ae.next())St=we(re,St.value,$e),St!==null&&(ee=w(St,ee,ct),Ke===null?Ze=St:Ke.sibling=St,Ke=St);return cn&&hl(re,ct),Ze}for(Je=g(re,Je);!St.done;ct++,St=ae.next())St=Re(Je,re,ct,St.value,$e),St!==null&&(s&&St.alternate!==null&&Je.delete(St.key===null?ct:St.key),ee=w(St,ee,ct),Ke===null?Ze=St:Ke.sibling=St,Ke=St);return s&&Je.forEach(function(z9){return c(re,z9)}),cn&&hl(re,ct),Ze}function $n(re,ee,ae,$e){if(typeof ae=="object"&&ae!==null&&ae.type===U&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case M:e:{for(var Ze=ae.key,Ke=ee;Ke!==null;){if(Ke.key===Ze){if(Ze=ae.type,Ze===U){if(Ke.tag===7){p(re,Ke.sibling),ee=x(Ke,ae.props.children),ee.return=re,re=ee;break e}}else if(Ke.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===ce&&h4(Ze)===Ke.type){p(re,Ke.sibling),ee=x(Ke,ae.props),ee.ref=Fu(re,Ke,ae),ee.return=re,re=ee;break e}p(re,Ke);break}else c(re,Ke);Ke=Ke.sibling}ae.type===U?(ee=wl(ae.props.children,re.mode,$e,ae.key),ee.return=re,re=ee):($e=Hd(ae.type,ae.key,ae.props,null,re.mode,$e),$e.ref=Fu(re,ee,ae),$e.return=re,re=$e)}return A(re);case L:e:{for(Ke=ae.key;ee!==null;){if(ee.key===Ke)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){p(re,ee.sibling),ee=x(ee,ae.children||[]),ee.return=re,re=ee;break e}else{p(re,ee);break}else c(re,ee);ee=ee.sibling}ee=W1(ae,re.mode,$e),ee.return=re,re=ee}return A(re);case ce:return Ke=ae._init,$n(re,ee,Ke(ae._payload),$e)}if(yn(ae))return Ue(re,ee,ae,$e);if(te(ae))return Ve(re,ee,ae,$e);yd(re,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,ee!==null&&ee.tag===6?(p(re,ee.sibling),ee=x(ee,ae),ee.return=re,re=ee):(p(re,ee),ee=G1(ae,re.mode,$e),ee.return=re,re=ee),A(re)):p(re,ee)}return $n}var jc=f4(!0),g4=f4(!1),xd=go(null),_d=null,Cc=null,n1=null;function r1(){n1=Cc=_d=null}function a1(s){var c=xd.current;Ht(xd),s._currentValue=c}function o1(s,c,p){for(;s!==null;){var g=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,g!==null&&(g.childLanes|=c)):g!==null&&(g.childLanes&c)!==c&&(g.childLanes|=c),s===p)break;s=s.return}}function kc(s,c){_d=s,n1=Cc=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(oa=!0),s.firstContext=null)}function Wa(s){var c=s._currentValue;if(n1!==s)if(s={context:s,memoizedValue:c,next:null},Cc===null){if(_d===null)throw Error(n(308));Cc=s,_d.dependencies={lanes:0,firstContext:s}}else Cc=Cc.next=s;return c}var fl=null;function s1(s){fl===null?fl=[s]:fl.push(s)}function v4(s,c,p,g){var x=c.interleaved;return x===null?(p.next=p,s1(c)):(p.next=x.next,x.next=p),c.interleaved=p,Ls(s,g)}function Ls(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var ji=!1;function i1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function b4(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Is(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function Ci(s,c,p){var g=s.updateQueue;if(g===null)return null;if(g=g.shared,(kt&2)!==0){var x=g.pending;return x===null?c.next=c:(c.next=x.next,x.next=c),g.pending=c,Ls(s,p)}return x=g.interleaved,x===null?(c.next=c,s1(g)):(c.next=x.next,x.next=c),g.interleaved=c,Ls(s,p)}function wd(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var g=c.lanes;g&=s.pendingLanes,p|=g,c.lanes=p,xa(s,p)}}function y4(s,c){var p=s.updateQueue,g=s.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var x=null,w=null;if(p=p.firstBaseUpdate,p!==null){do{var A={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};w===null?x=w=A:w=w.next=A,p=p.next}while(p!==null);w===null?x=w=c:w=w.next=c}else x=w=c;p={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:w,shared:g.shared,effects:g.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function jd(s,c,p,g){var x=s.updateQueue;ji=!1;var w=x.firstBaseUpdate,A=x.lastBaseUpdate,B=x.shared.pending;if(B!==null){x.shared.pending=null;var Z=B,oe=Z.next;Z.next=null,A===null?w=oe:A.next=oe,A=Z;var xe=s.alternate;xe!==null&&(xe=xe.updateQueue,B=xe.lastBaseUpdate,B!==A&&(B===null?xe.firstBaseUpdate=oe:B.next=oe,xe.lastBaseUpdate=Z))}if(w!==null){var we=x.baseState;A=0,xe=oe=Z=null,B=w;do{var ve=B.lane,Re=B.eventTime;if((g&ve)===ve){xe!==null&&(xe=xe.next={eventTime:Re,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var Ue=s,Ve=B;switch(ve=c,Re=p,Ve.tag){case 1:if(Ue=Ve.payload,typeof Ue=="function"){we=Ue.call(Re,we,ve);break e}we=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Ve.payload,ve=typeof Ue=="function"?Ue.call(Re,we,ve):Ue,ve==null)break e;we=I({},we,ve);break e;case 2:ji=!0}}B.callback!==null&&B.lane!==0&&(s.flags|=64,ve=x.effects,ve===null?x.effects=[B]:ve.push(B))}else Re={eventTime:Re,lane:ve,tag:B.tag,payload:B.payload,callback:B.callback,next:null},xe===null?(oe=xe=Re,Z=we):xe=xe.next=Re,A|=ve;if(B=B.next,B===null){if(B=x.shared.pending,B===null)break;ve=B,B=ve.next,ve.next=null,x.lastBaseUpdate=ve,x.shared.pending=null}}while(!0);if(xe===null&&(Z=we),x.baseState=Z,x.firstBaseUpdate=oe,x.lastBaseUpdate=xe,c=x.shared.interleaved,c!==null){x=c;do A|=x.lane,x=x.next;while(x!==c)}else w===null&&(x.shared.lanes=0);bl|=A,s.lanes=A,s.memoizedState=we}}function x4(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var g=s[c],x=g.callback;if(x!==null){if(g.callback=null,g=p,typeof x!="function")throw Error(n(191,x));x.call(g)}}}var Ou={},es=go(Ou),Bu=go(Ou),Hu=go(Ou);function gl(s){if(s===Ou)throw Error(n(174));return s}function l1(s,c){switch(Lt(Hu,c),Lt(Bu,s),Lt(es,Ou),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:Ne(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=Ne(c,s)}Ht(es),Lt(es,c)}function Nc(){Ht(es),Ht(Bu),Ht(Hu)}function _4(s){gl(Hu.current);var c=gl(es.current),p=Ne(c,s.type);c!==p&&(Lt(Bu,s),Lt(es,p))}function c1(s){Bu.current===s&&(Ht(es),Ht(Bu))}var hn=go(0);function Cd(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var u1=[];function d1(){for(var s=0;s<u1.length;s++)u1[s]._workInProgressVersionPrimary=null;u1.length=0}var kd=P.ReactCurrentDispatcher,p1=P.ReactCurrentBatchConfig,vl=0,fn=null,Bn=null,nr=null,Nd=!1,Uu=!1,Vu=0,e9=0;function kr(){throw Error(n(321))}function m1(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!ra(s[p],c[p]))return!1;return!0}function h1(s,c,p,g,x,w){if(vl=w,fn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,kd.current=s===null||s.memoizedState===null?a9:o9,s=p(g,x),Uu){w=0;do{if(Uu=!1,Vu=0,25<=w)throw Error(n(301));w+=1,nr=Bn=null,c.updateQueue=null,kd.current=s9,s=p(g,x)}while(Uu)}if(kd.current=Ad,c=Bn!==null&&Bn.next!==null,vl=0,nr=Bn=fn=null,Nd=!1,c)throw Error(n(300));return s}function f1(){var s=Vu!==0;return Vu=0,s}function ts(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nr===null?fn.memoizedState=nr=s:nr=nr.next=s,nr}function Za(){if(Bn===null){var s=fn.alternate;s=s!==null?s.memoizedState:null}else s=Bn.next;var c=nr===null?fn.memoizedState:nr.next;if(c!==null)nr=c,Bn=s;else{if(s===null)throw Error(n(310));Bn=s,s={memoizedState:Bn.memoizedState,baseState:Bn.baseState,baseQueue:Bn.baseQueue,queue:Bn.queue,next:null},nr===null?fn.memoizedState=nr=s:nr=nr.next=s}return nr}function Gu(s,c){return typeof c=="function"?c(s):c}function g1(s){var c=Za(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var g=Bn,x=g.baseQueue,w=p.pending;if(w!==null){if(x!==null){var A=x.next;x.next=w.next,w.next=A}g.baseQueue=x=w,p.pending=null}if(x!==null){w=x.next,g=g.baseState;var B=A=null,Z=null,oe=w;do{var xe=oe.lane;if((vl&xe)===xe)Z!==null&&(Z=Z.next={lane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),g=oe.hasEagerState?oe.eagerState:s(g,oe.action);else{var we={lane:xe,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null};Z===null?(B=Z=we,A=g):Z=Z.next=we,fn.lanes|=xe,bl|=xe}oe=oe.next}while(oe!==null&&oe!==w);Z===null?A=g:Z.next=B,ra(g,c.memoizedState)||(oa=!0),c.memoizedState=g,c.baseState=A,c.baseQueue=Z,p.lastRenderedState=g}if(s=p.interleaved,s!==null){x=s;do w=x.lane,fn.lanes|=w,bl|=w,x=x.next;while(x!==s)}else x===null&&(p.lanes=0);return[c.memoizedState,p.dispatch]}function v1(s){var c=Za(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var g=p.dispatch,x=p.pending,w=c.memoizedState;if(x!==null){p.pending=null;var A=x=x.next;do w=s(w,A.action),A=A.next;while(A!==x);ra(w,c.memoizedState)||(oa=!0),c.memoizedState=w,c.baseQueue===null&&(c.baseState=w),p.lastRenderedState=w}return[w,g]}function w4(){}function j4(s,c){var p=fn,g=Za(),x=c(),w=!ra(g.memoizedState,x);if(w&&(g.memoizedState=x,oa=!0),g=g.queue,b1(N4.bind(null,p,g,s),[s]),g.getSnapshot!==c||w||nr!==null&&nr.memoizedState.tag&1){if(p.flags|=2048,Wu(9,k4.bind(null,p,g,x,c),void 0,null),rr===null)throw Error(n(349));(vl&30)!==0||C4(p,c,x)}return x}function C4(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=fn.updateQueue,c===null?(c={lastEffect:null,stores:null},fn.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function k4(s,c,p,g){c.value=p,c.getSnapshot=g,S4(c)&&$4(s)}function N4(s,c,p){return p(function(){S4(c)&&$4(s)})}function S4(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!ra(s,p)}catch{return!0}}function $4(s){var c=Ls(s,1);c!==null&&wo(c,s,1,-1)}function A4(s){var c=ts();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gu,lastRenderedState:s},c.queue=s,s=s.dispatch=r9.bind(null,fn,s),[c.memoizedState,s]}function Wu(s,c,p,g){return s={tag:s,create:c,destroy:p,deps:g,next:null},c=fn.updateQueue,c===null?(c={lastEffect:null,stores:null},fn.updateQueue=c,c.lastEffect=s.next=s):(p=c.lastEffect,p===null?c.lastEffect=s.next=s:(g=p.next,p.next=s,s.next=g,c.lastEffect=s)),s}function E4(){return Za().memoizedState}function Sd(s,c,p,g){var x=ts();fn.flags|=s,x.memoizedState=Wu(1|c,p,void 0,g===void 0?null:g)}function $d(s,c,p,g){var x=Za();g=g===void 0?null:g;var w=void 0;if(Bn!==null){var A=Bn.memoizedState;if(w=A.destroy,g!==null&&m1(g,A.deps)){x.memoizedState=Wu(c,p,w,g);return}}fn.flags|=s,x.memoizedState=Wu(1|c,p,w,g)}function D4(s,c){return Sd(8390656,8,s,c)}function b1(s,c){return $d(2048,8,s,c)}function z4(s,c){return $d(4,2,s,c)}function T4(s,c){return $d(4,4,s,c)}function M4(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function L4(s,c,p){return p=p!=null?p.concat([s]):null,$d(4,4,M4.bind(null,c,s),p)}function y1(){}function I4(s,c){var p=Za();c=c===void 0?null:c;var g=p.memoizedState;return g!==null&&c!==null&&m1(c,g[1])?g[0]:(p.memoizedState=[s,c],s)}function R4(s,c){var p=Za();c=c===void 0?null:c;var g=p.memoizedState;return g!==null&&c!==null&&m1(c,g[1])?g[0]:(s=s(),p.memoizedState=[s,c],s)}function P4(s,c,p){return(vl&21)===0?(s.baseState&&(s.baseState=!1,oa=!0),s.memoizedState=p):(ra(p,c)||(p=Ct(),fn.lanes|=p,bl|=p,s.baseState=!0),c)}function t9(s,c){var p=xt;xt=p!==0&&4>p?p:4,s(!0);var g=p1.transition;p1.transition={};try{s(!1),c()}finally{xt=p,p1.transition=g}}function q4(){return Za().memoizedState}function n9(s,c,p){var g=$i(s);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},F4(s))O4(c,p);else if(p=v4(s,c,p,g),p!==null){var x=Or();wo(p,s,g,x),B4(p,c,g)}}function r9(s,c,p){var g=$i(s),x={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(F4(s))O4(c,x);else{var w=s.alternate;if(s.lanes===0&&(w===null||w.lanes===0)&&(w=c.lastRenderedReducer,w!==null))try{var A=c.lastRenderedState,B=w(A,p);if(x.hasEagerState=!0,x.eagerState=B,ra(B,A)){var Z=c.interleaved;Z===null?(x.next=x,s1(c)):(x.next=Z.next,Z.next=x),c.interleaved=x;return}}catch{}finally{}p=v4(s,c,x,g),p!==null&&(x=Or(),wo(p,s,g,x),B4(p,c,g))}}function F4(s){var c=s.alternate;return s===fn||c!==null&&c===fn}function O4(s,c){Uu=Nd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function B4(s,c,p){if((p&4194240)!==0){var g=c.lanes;g&=s.pendingLanes,p|=g,c.lanes=p,xa(s,p)}}var Ad={readContext:Wa,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},a9={readContext:Wa,useCallback:function(s,c){return ts().memoizedState=[s,c===void 0?null:c],s},useContext:Wa,useEffect:D4,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,Sd(4194308,4,M4.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Sd(4194308,4,s,c)},useInsertionEffect:function(s,c){return Sd(4,2,s,c)},useMemo:function(s,c){var p=ts();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var g=ts();return c=p!==void 0?p(c):c,g.memoizedState=g.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},g.queue=s,s=s.dispatch=n9.bind(null,fn,s),[g.memoizedState,s]},useRef:function(s){var c=ts();return s={current:s},c.memoizedState=s},useState:A4,useDebugValue:y1,useDeferredValue:function(s){return ts().memoizedState=s},useTransition:function(){var s=A4(!1),c=s[0];return s=t9.bind(null,s[1]),ts().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var g=fn,x=ts();if(cn){if(p===void 0)throw Error(n(407));p=p()}else{if(p=c(),rr===null)throw Error(n(349));(vl&30)!==0||C4(g,c,p)}x.memoizedState=p;var w={value:p,getSnapshot:c};return x.queue=w,D4(N4.bind(null,g,w,s),[s]),g.flags|=2048,Wu(9,k4.bind(null,g,w,p,c),void 0,null),p},useId:function(){var s=ts(),c=rr.identifierPrefix;if(cn){var p=Ms,g=Ts;p=(g&~(1<<32-dr(g)-1)).toString(32)+p,c=":"+c+"R"+p,p=Vu++,0<p&&(c+="H"+p.toString(32)),c+=":"}else p=e9++,c=":"+c+"r"+p.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},o9={readContext:Wa,useCallback:I4,useContext:Wa,useEffect:b1,useImperativeHandle:L4,useInsertionEffect:z4,useLayoutEffect:T4,useMemo:R4,useReducer:g1,useRef:E4,useState:function(){return g1(Gu)},useDebugValue:y1,useDeferredValue:function(s){var c=Za();return P4(c,Bn.memoizedState,s)},useTransition:function(){var s=g1(Gu)[0],c=Za().memoizedState;return[s,c]},useMutableSource:w4,useSyncExternalStore:j4,useId:q4,unstable_isNewReconciler:!1},s9={readContext:Wa,useCallback:I4,useContext:Wa,useEffect:b1,useImperativeHandle:L4,useInsertionEffect:z4,useLayoutEffect:T4,useMemo:R4,useReducer:v1,useRef:E4,useState:function(){return v1(Gu)},useDebugValue:y1,useDeferredValue:function(s){var c=Za();return Bn===null?c.memoizedState=s:P4(c,Bn.memoizedState,s)},useTransition:function(){var s=v1(Gu)[0],c=Za().memoizedState;return[s,c]},useMutableSource:w4,useSyncExternalStore:j4,useId:q4,unstable_isNewReconciler:!1};function yo(s,c){if(s&&s.defaultProps){c=I({},c),s=s.defaultProps;for(var p in s)c[p]===void 0&&(c[p]=s[p]);return c}return c}function x1(s,c,p,g){c=s.memoizedState,p=p(g,c),p=p==null?c:I({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Ed={isMounted:function(s){return(s=s._reactInternals)?rn(s)===s:!1},enqueueSetState:function(s,c,p){s=s._reactInternals;var g=Or(),x=$i(s),w=Is(g,x);w.payload=c,p!=null&&(w.callback=p),c=Ci(s,w,x),c!==null&&(wo(c,s,x,g),wd(c,s,x))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var g=Or(),x=$i(s),w=Is(g,x);w.tag=1,w.payload=c,p!=null&&(w.callback=p),c=Ci(s,w,x),c!==null&&(wo(c,s,x,g),wd(c,s,x))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=Or(),g=$i(s),x=Is(p,g);x.tag=2,c!=null&&(x.callback=c),c=Ci(s,x,g),c!==null&&(wo(c,s,g,p),wd(c,s,g))}};function H4(s,c,p,g,x,w,A){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(g,w,A):c.prototype&&c.prototype.isPureReactComponent?!fi(p,g)||!fi(x,w):!0}function U4(s,c,p){var g=!1,x=vo,w=c.contextType;return typeof w=="object"&&w!==null?w=Wa(w):(x=hr(c)?Jo:On.current,g=c.contextTypes,w=(g=g!=null)?zs(s,x):vo),c=new c(p,w),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ed,s.stateNode=c,c._reactInternals=s,g&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=w),c}function V4(s,c,p,g){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,g),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,g),c.state!==s&&Ed.enqueueReplaceState(c,c.state,null)}function _1(s,c,p,g){var x=s.stateNode;x.props=p,x.state=s.memoizedState,x.refs={},i1(s);var w=c.contextType;typeof w=="object"&&w!==null?x.context=Wa(w):(w=hr(c)?Jo:On.current,x.context=zs(s,w)),x.state=s.memoizedState,w=c.getDerivedStateFromProps,typeof w=="function"&&(x1(s,c,w,p),x.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(c=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),c!==x.state&&Ed.enqueueReplaceState(x,x.state,null),jd(s,p,x,g),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function Sc(s,c){try{var p="",g=c;do p+=ge(g),g=g.return;while(g);var x=p}catch(w){x=`
|
|
40
|
+
Error generating stack: `+w.message+`
|
|
41
|
+
`+w.stack}return{value:s,source:c,stack:x,digest:null}}function w1(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function j1(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var i9=typeof WeakMap=="function"?WeakMap:Map;function G4(s,c,p){p=Is(-1,p),p.tag=3,p.payload={element:null};var g=c.value;return p.callback=function(){Rd||(Rd=!0,P1=g),j1(s,c)},p}function W4(s,c,p){p=Is(-1,p),p.tag=3;var g=s.type.getDerivedStateFromError;if(typeof g=="function"){var x=c.value;p.payload=function(){return g(x)},p.callback=function(){j1(s,c)}}var w=s.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(p.callback=function(){j1(s,c),typeof g!="function"&&(Ni===null?Ni=new Set([this]):Ni.add(this));var A=c.stack;this.componentDidCatch(c.value,{componentStack:A!==null?A:""})}),p}function Z4(s,c,p){var g=s.pingCache;if(g===null){g=s.pingCache=new i9;var x=new Set;g.set(c,x)}else x=g.get(c),x===void 0&&(x=new Set,g.set(c,x));x.has(p)||(x.add(p),s=_9.bind(null,s,c,p),c.then(s,s))}function Q4(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function X4(s,c,p,g,x){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=Is(-1,1),c.tag=2,Ci(p,c,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var l9=P.ReactCurrentOwner,oa=!1;function Fr(s,c,p,g){c.child=s===null?g4(c,null,p,g):jc(c,s.child,p,g)}function Y4(s,c,p,g,x){p=p.render;var w=c.ref;return kc(c,x),g=h1(s,c,p,g,w,x),p=f1(),s!==null&&!oa?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,Rs(s,c,x)):(cn&&p&&Ym(c),c.flags|=1,Fr(s,c,g,x),c.child)}function K4(s,c,p,g,x){if(s===null){var w=p.type;return typeof w=="function"&&!V1(w)&&w.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=w,J4(s,c,w,g,x)):(s=Hd(p.type,null,g,c,c.mode,x),s.ref=c.ref,s.return=c,c.child=s)}if(w=s.child,(s.lanes&x)===0){var A=w.memoizedProps;if(p=p.compare,p=p!==null?p:fi,p(A,g)&&s.ref===c.ref)return Rs(s,c,x)}return c.flags|=1,s=Ei(w,g),s.ref=c.ref,s.return=c,c.child=s}function J4(s,c,p,g,x){if(s!==null){var w=s.memoizedProps;if(fi(w,g)&&s.ref===c.ref)if(oa=!1,c.pendingProps=g=w,(s.lanes&x)!==0)(s.flags&131072)!==0&&(oa=!0);else return c.lanes=s.lanes,Rs(s,c,x)}return C1(s,c,p,g,x)}function eg(s,c,p){var g=c.pendingProps,x=g.children,w=s!==null?s.memoizedState:null;if(g.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(Ac,$a),$a|=p;else{if((p&1073741824)===0)return s=w!==null?w.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Lt(Ac,$a),$a|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=w!==null?w.baseLanes:p,Lt(Ac,$a),$a|=g}else w!==null?(g=w.baseLanes|p,c.memoizedState=null):g=p,Lt(Ac,$a),$a|=g;return Fr(s,c,x,p),c.child}function tg(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function C1(s,c,p,g,x){var w=hr(p)?Jo:On.current;return w=zs(c,w),kc(c,x),p=h1(s,c,p,g,w,x),g=f1(),s!==null&&!oa?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,Rs(s,c,x)):(cn&&g&&Ym(c),c.flags|=1,Fr(s,c,p,x),c.child)}function ng(s,c,p,g,x){if(hr(p)){var w=!0;D(c)}else w=!1;if(kc(c,x),c.stateNode===null)zd(s,c),U4(c,p,g),_1(c,p,g,x),g=!0;else if(s===null){var A=c.stateNode,B=c.memoizedProps;A.props=B;var Z=A.context,oe=p.contextType;typeof oe=="object"&&oe!==null?oe=Wa(oe):(oe=hr(p)?Jo:On.current,oe=zs(c,oe));var xe=p.getDerivedStateFromProps,we=typeof xe=="function"||typeof A.getSnapshotBeforeUpdate=="function";we||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(B!==g||Z!==oe)&&V4(c,A,g,oe),ji=!1;var ve=c.memoizedState;A.state=ve,jd(c,g,A,x),Z=c.memoizedState,B!==g||ve!==Z||mr.current||ji?(typeof xe=="function"&&(x1(c,p,xe,g),Z=c.memoizedState),(B=ji||H4(c,p,B,g,ve,Z,oe))?(we||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(c.flags|=4194308)):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=g,c.memoizedState=Z),A.props=g,A.state=Z,A.context=oe,g=B):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),g=!1)}else{A=c.stateNode,b4(s,c),B=c.memoizedProps,oe=c.type===c.elementType?B:yo(c.type,B),A.props=oe,we=c.pendingProps,ve=A.context,Z=p.contextType,typeof Z=="object"&&Z!==null?Z=Wa(Z):(Z=hr(p)?Jo:On.current,Z=zs(c,Z));var Re=p.getDerivedStateFromProps;(xe=typeof Re=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(B!==we||ve!==Z)&&V4(c,A,g,Z),ji=!1,ve=c.memoizedState,A.state=ve,jd(c,g,A,x);var Ue=c.memoizedState;B!==we||ve!==Ue||mr.current||ji?(typeof Re=="function"&&(x1(c,p,Re,g),Ue=c.memoizedState),(oe=ji||H4(c,p,oe,g,ve,Ue,Z)||!1)?(xe||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(g,Ue,Z),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(g,Ue,Z)),typeof A.componentDidUpdate=="function"&&(c.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof A.componentDidUpdate!="function"||B===s.memoizedProps&&ve===s.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||B===s.memoizedProps&&ve===s.memoizedState||(c.flags|=1024),c.memoizedProps=g,c.memoizedState=Ue),A.props=g,A.state=Ue,A.context=Z,g=oe):(typeof A.componentDidUpdate!="function"||B===s.memoizedProps&&ve===s.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||B===s.memoizedProps&&ve===s.memoizedState||(c.flags|=1024),g=!1)}return k1(s,c,p,g,w,x)}function k1(s,c,p,g,x,w){tg(s,c);var A=(c.flags&128)!==0;if(!g&&!A)return x&&J(c,p,!1),Rs(s,c,w);g=c.stateNode,l9.current=c;var B=A&&typeof p.getDerivedStateFromError!="function"?null:g.render();return c.flags|=1,s!==null&&A?(c.child=jc(c,s.child,null,w),c.child=jc(c,null,B,w)):Fr(s,c,B,w),c.memoizedState=g.state,x&&J(c,p,!0),c.child}function rg(s){var c=s.stateNode;c.pendingContext?Pu(s,c.pendingContext,c.pendingContext!==c.context):c.context&&Pu(s,c.context,!1),l1(s,c.containerInfo)}function ag(s,c,p,g,x){return wc(),t1(x),c.flags|=256,Fr(s,c,p,g),c.child}var N1={dehydrated:null,treeContext:null,retryLane:0};function S1(s){return{baseLanes:s,cachePool:null,transitions:null}}function og(s,c,p){var g=c.pendingProps,x=hn.current,w=!1,A=(c.flags&128)!==0,B;if((B=A)||(B=s!==null&&s.memoizedState===null?!1:(x&2)!==0),B?(w=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),Lt(hn,x&1),s===null)return e1(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(A=g.children,s=g.fallback,w?(g=c.mode,w=c.child,A={mode:"hidden",children:A},(g&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=A):w=Ud(A,g,0,null),s=wl(s,g,p,null),w.return=c,s.return=c,w.sibling=s,c.child=w,c.child.memoizedState=S1(p),c.memoizedState=N1,s):$1(c,A));if(x=s.memoizedState,x!==null&&(B=x.dehydrated,B!==null))return c9(s,c,A,g,B,x,p);if(w){w=g.fallback,A=c.mode,x=s.child,B=x.sibling;var Z={mode:"hidden",children:g.children};return(A&1)===0&&c.child!==x?(g=c.child,g.childLanes=0,g.pendingProps=Z,c.deletions=null):(g=Ei(x,Z),g.subtreeFlags=x.subtreeFlags&14680064),B!==null?w=Ei(B,w):(w=wl(w,A,p,null),w.flags|=2),w.return=c,g.return=c,g.sibling=w,c.child=g,g=w,w=c.child,A=s.child.memoizedState,A=A===null?S1(p):{baseLanes:A.baseLanes|p,cachePool:null,transitions:A.transitions},w.memoizedState=A,w.childLanes=s.childLanes&~p,c.memoizedState=N1,g}return w=s.child,s=w.sibling,g=Ei(w,{mode:"visible",children:g.children}),(c.mode&1)===0&&(g.lanes=p),g.return=c,g.sibling=null,s!==null&&(p=c.deletions,p===null?(c.deletions=[s],c.flags|=16):p.push(s)),c.child=g,c.memoizedState=null,g}function $1(s,c){return c=Ud({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Dd(s,c,p,g){return g!==null&&t1(g),jc(c,s.child,null,p),s=$1(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function c9(s,c,p,g,x,w,A){if(p)return c.flags&256?(c.flags&=-257,g=w1(Error(n(422))),Dd(s,c,A,g)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(w=g.fallback,x=c.mode,g=Ud({mode:"visible",children:g.children},x,0,null),w=wl(w,x,A,null),w.flags|=2,g.return=c,w.return=c,g.sibling=w,c.child=g,(c.mode&1)!==0&&jc(c,s.child,null,A),c.child.memoizedState=S1(A),c.memoizedState=N1,w);if((c.mode&1)===0)return Dd(s,c,A,null);if(x.data==="$!"){if(g=x.nextSibling&&x.nextSibling.dataset,g)var B=g.dgst;return g=B,w=Error(n(419)),g=w1(w,g,void 0),Dd(s,c,A,g)}if(B=(A&s.childLanes)!==0,oa||B){if(g=rr,g!==null){switch(A&-A){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(g.suspendedLanes|A))!==0?0:x,x!==0&&x!==w.retryLane&&(w.retryLane=x,Ls(s,x),wo(g,s,x,-1))}return U1(),g=w1(Error(n(421))),Dd(s,c,A,g)}return x.data==="$?"?(c.flags|=128,c.child=s.child,c=w9.bind(null,s),x._reactRetry=c,null):(s=w.treeContext,Sa=fo(x.nextSibling),Na=c,cn=!0,bo=null,s!==null&&(Va[Ga++]=Ts,Va[Ga++]=Ms,Va[Ga++]=ml,Ts=s.id,Ms=s.overflow,ml=c),c=$1(c,g.children),c.flags|=4096,c)}function sg(s,c,p){s.lanes|=c;var g=s.alternate;g!==null&&(g.lanes|=c),o1(s.return,c,p)}function A1(s,c,p,g,x){var w=s.memoizedState;w===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:x}:(w.isBackwards=c,w.rendering=null,w.renderingStartTime=0,w.last=g,w.tail=p,w.tailMode=x)}function ig(s,c,p){var g=c.pendingProps,x=g.revealOrder,w=g.tail;if(Fr(s,c,g.children,p),g=hn.current,(g&2)!==0)g=g&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&sg(s,p,c);else if(s.tag===19)sg(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}g&=1}if(Lt(hn,g),(c.mode&1)===0)c.memoizedState=null;else switch(x){case"forwards":for(p=c.child,x=null;p!==null;)s=p.alternate,s!==null&&Cd(s)===null&&(x=p),p=p.sibling;p=x,p===null?(x=c.child,c.child=null):(x=p.sibling,p.sibling=null),A1(c,!1,x,p,w);break;case"backwards":for(p=null,x=c.child,c.child=null;x!==null;){if(s=x.alternate,s!==null&&Cd(s)===null){c.child=x;break}s=x.sibling,x.sibling=p,p=x,x=s}A1(c,!0,p,null,w);break;case"together":A1(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function zd(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Rs(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),bl|=c.lanes,(p&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(n(153));if(c.child!==null){for(s=c.child,p=Ei(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=Ei(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function u9(s,c,p){switch(c.tag){case 3:rg(c),wc();break;case 5:_4(c);break;case 1:hr(c.type)&&D(c);break;case 4:l1(c,c.stateNode.containerInfo);break;case 10:var g=c.type._context,x=c.memoizedProps.value;Lt(xd,g._currentValue),g._currentValue=x;break;case 13:if(g=c.memoizedState,g!==null)return g.dehydrated!==null?(Lt(hn,hn.current&1),c.flags|=128,null):(p&c.child.childLanes)!==0?og(s,c,p):(Lt(hn,hn.current&1),s=Rs(s,c,p),s!==null?s.sibling:null);Lt(hn,hn.current&1);break;case 19:if(g=(p&c.childLanes)!==0,(s.flags&128)!==0){if(g)return ig(s,c,p);c.flags|=128}if(x=c.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Lt(hn,hn.current),g)break;return null;case 22:case 23:return c.lanes=0,eg(s,c,p)}return Rs(s,c,p)}var lg,E1,cg,ug;lg=function(s,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},E1=function(){},cg=function(s,c,p,g){var x=s.memoizedProps;if(x!==g){s=c.stateNode,gl(es.current);var w=null;switch(p){case"input":x=en(s,x),g=en(s,g),w=[];break;case"select":x=I({},x,{value:void 0}),g=I({},g,{value:void 0}),w=[];break;case"textarea":x=qn(s,x),g=qn(s,g),w=[];break;default:typeof x.onClick!="function"&&typeof g.onClick=="function"&&(s.onclick=cl)}xn(p,g);var A;p=null;for(oe in x)if(!g.hasOwnProperty(oe)&&x.hasOwnProperty(oe)&&x[oe]!=null)if(oe==="style"){var B=x[oe];for(A in B)B.hasOwnProperty(A)&&(p||(p={}),p[A]="")}else oe!=="dangerouslySetInnerHTML"&&oe!=="children"&&oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&oe!=="autoFocus"&&(a.hasOwnProperty(oe)?w||(w=[]):(w=w||[]).push(oe,null));for(oe in g){var Z=g[oe];if(B=x!=null?x[oe]:void 0,g.hasOwnProperty(oe)&&Z!==B&&(Z!=null||B!=null))if(oe==="style")if(B){for(A in B)!B.hasOwnProperty(A)||Z&&Z.hasOwnProperty(A)||(p||(p={}),p[A]="");for(A in Z)Z.hasOwnProperty(A)&&B[A]!==Z[A]&&(p||(p={}),p[A]=Z[A])}else p||(w||(w=[]),w.push(oe,p)),p=Z;else oe==="dangerouslySetInnerHTML"?(Z=Z?Z.__html:void 0,B=B?B.__html:void 0,Z!=null&&B!==Z&&(w=w||[]).push(oe,Z)):oe==="children"?typeof Z!="string"&&typeof Z!="number"||(w=w||[]).push(oe,""+Z):oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&(a.hasOwnProperty(oe)?(Z!=null&&oe==="onScroll"&&Bt("scroll",s),w||B===Z||(w=[])):(w=w||[]).push(oe,Z))}p&&(w=w||[]).push("style",p);var oe=w;(c.updateQueue=oe)&&(c.flags|=4)}},ug=function(s,c,p,g){p!==g&&(c.flags|=4)};function Zu(s,c){if(!cn)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:g.sibling=null}}function Nr(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,g=0;if(c)for(var x=s.child;x!==null;)p|=x.lanes|x.childLanes,g|=x.subtreeFlags&14680064,g|=x.flags&14680064,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)p|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=g,s.childLanes=p,c}function d9(s,c,p){var g=c.pendingProps;switch(Km(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nr(c),null;case 1:return hr(c.type)&&dl(),Nr(c),null;case 3:return g=c.stateNode,Nc(),Ht(mr),Ht(On),d1(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(s===null||s.child===null)&&(bd(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,bo!==null&&(O1(bo),bo=null))),E1(s,c),Nr(c),null;case 5:c1(c);var x=gl(Hu.current);if(p=c.type,s!==null&&c.stateNode!=null)cg(s,c,p,g,x),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!g){if(c.stateNode===null)throw Error(n(166));return Nr(c),null}if(s=gl(es.current),bd(c)){g=c.stateNode,p=c.type;var w=c.memoizedProps;switch(g[ka]=c,g[xi]=w,s=(c.mode&1)!==0,p){case"dialog":Bt("cancel",g),Bt("close",g);break;case"iframe":case"object":case"embed":Bt("load",g);break;case"video":case"audio":for(x=0;x<vi.length;x++)Bt(vi[x],g);break;case"source":Bt("error",g);break;case"img":case"image":case"link":Bt("error",g),Bt("load",g);break;case"details":Bt("toggle",g);break;case"input":Ut(g,w),Bt("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!w.multiple},Bt("invalid",g);break;case"textarea":Yn(g,w),Bt("invalid",g)}xn(p,w),x=null;for(var A in w)if(w.hasOwnProperty(A)){var B=w[A];A==="children"?typeof B=="string"?g.textContent!==B&&(w.suppressHydrationWarning!==!0&&ll(g.textContent,B,s),x=["children",B]):typeof B=="number"&&g.textContent!==""+B&&(w.suppressHydrationWarning!==!0&&ll(g.textContent,B,s),x=["children",""+B]):a.hasOwnProperty(A)&&B!=null&&A==="onScroll"&&Bt("scroll",g)}switch(p){case"input":Nt(g),ha(g,w,!0);break;case"textarea":Nt(g),Qr(g);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(g.onclick=cl)}g=x,c.updateQueue=g,g!==null&&(c.flags|=4)}else{A=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=ue(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=A.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof g.is=="string"?s=A.createElement(p,{is:g.is}):(s=A.createElement(p),p==="select"&&(A=s,g.multiple?A.multiple=!0:g.size&&(A.size=g.size))):s=A.createElementNS(s,p),s[ka]=c,s[xi]=g,lg(s,c,!1,!1),c.stateNode=s;e:{switch(A=_n(p,g),p){case"dialog":Bt("cancel",s),Bt("close",s),x=g;break;case"iframe":case"object":case"embed":Bt("load",s),x=g;break;case"video":case"audio":for(x=0;x<vi.length;x++)Bt(vi[x],s);x=g;break;case"source":Bt("error",s),x=g;break;case"img":case"image":case"link":Bt("error",s),Bt("load",s),x=g;break;case"details":Bt("toggle",s),x=g;break;case"input":Ut(s,g),x=en(s,g),Bt("invalid",s);break;case"option":x=g;break;case"select":s._wrapperState={wasMultiple:!!g.multiple},x=I({},g,{value:void 0}),Bt("invalid",s);break;case"textarea":Yn(s,g),x=qn(s,g),Bt("invalid",s);break;default:x=g}xn(p,x),B=x;for(w in B)if(B.hasOwnProperty(w)){var Z=B[w];w==="style"?_r(s,Z):w==="dangerouslySetInnerHTML"?(Z=Z?Z.__html:void 0,Z!=null&&at(s,Z)):w==="children"?typeof Z=="string"?(p!=="textarea"||Z!=="")&&ut(s,Z):typeof Z=="number"&&ut(s,""+Z):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(a.hasOwnProperty(w)?Z!=null&&w==="onScroll"&&Bt("scroll",s):Z!=null&&E(s,w,Z,A))}switch(p){case"input":Nt(s),ha(s,g,!1);break;case"textarea":Nt(s),Qr(s);break;case"option":g.value!=null&&s.setAttribute("value",""+Te(g.value));break;case"select":s.multiple=!!g.multiple,w=g.value,w!=null?cr(s,!!g.multiple,w,!1):g.defaultValue!=null&&cr(s,!!g.multiple,g.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=cl)}switch(p){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return Nr(c),null;case 6:if(s&&c.stateNode!=null)ug(s,c,s.memoizedProps,g);else{if(typeof g!="string"&&c.stateNode===null)throw Error(n(166));if(p=gl(Hu.current),gl(es.current),bd(c)){if(g=c.stateNode,p=c.memoizedProps,g[ka]=c,(w=g.nodeValue!==p)&&(s=Na,s!==null))switch(s.tag){case 3:ll(g.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&ll(g.nodeValue,p,(s.mode&1)!==0)}w&&(c.flags|=4)}else g=(p.nodeType===9?p:p.ownerDocument).createTextNode(g),g[ka]=c,c.stateNode=g}return Nr(c),null;case 13:if(Ht(hn),g=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(cn&&Sa!==null&&(c.mode&1)!==0&&(c.flags&128)===0)m4(),wc(),c.flags|=98560,w=!1;else if(w=bd(c),g!==null&&g.dehydrated!==null){if(s===null){if(!w)throw Error(n(318));if(w=c.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[ka]=c}else wc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Nr(c),w=!1}else bo!==null&&(O1(bo),bo=null),w=!0;if(!w)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=p,c):(g=g!==null,g!==(s!==null&&s.memoizedState!==null)&&g&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(hn.current&1)!==0?Hn===0&&(Hn=3):U1())),c.updateQueue!==null&&(c.flags|=4),Nr(c),null);case 4:return Nc(),E1(s,c),s===null&&bi(c.stateNode.containerInfo),Nr(c),null;case 10:return a1(c.type._context),Nr(c),null;case 17:return hr(c.type)&&dl(),Nr(c),null;case 19:if(Ht(hn),w=c.memoizedState,w===null)return Nr(c),null;if(g=(c.flags&128)!==0,A=w.rendering,A===null)if(g)Zu(w,!1);else{if(Hn!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(A=Cd(s),A!==null){for(c.flags|=128,Zu(w,!1),g=A.updateQueue,g!==null&&(c.updateQueue=g,c.flags|=4),c.subtreeFlags=0,g=p,p=c.child;p!==null;)w=p,s=g,w.flags&=14680066,A=w.alternate,A===null?(w.childLanes=0,w.lanes=s,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=A.childLanes,w.lanes=A.lanes,w.child=A.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=A.memoizedProps,w.memoizedState=A.memoizedState,w.updateQueue=A.updateQueue,w.type=A.type,s=A.dependencies,w.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return Lt(hn,hn.current&1|2),c.child}s=s.sibling}w.tail!==null&&an()>Ec&&(c.flags|=128,g=!0,Zu(w,!1),c.lanes=4194304)}else{if(!g)if(s=Cd(A),s!==null){if(c.flags|=128,g=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),Zu(w,!0),w.tail===null&&w.tailMode==="hidden"&&!A.alternate&&!cn)return Nr(c),null}else 2*an()-w.renderingStartTime>Ec&&p!==1073741824&&(c.flags|=128,g=!0,Zu(w,!1),c.lanes=4194304);w.isBackwards?(A.sibling=c.child,c.child=A):(p=w.last,p!==null?p.sibling=A:c.child=A,w.last=A)}return w.tail!==null?(c=w.tail,w.rendering=c,w.tail=c.sibling,w.renderingStartTime=an(),c.sibling=null,p=hn.current,Lt(hn,g?p&1|2:p&1),c):(Nr(c),null);case 22:case 23:return H1(),g=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==g&&(c.flags|=8192),g&&(c.mode&1)!==0?($a&1073741824)!==0&&(Nr(c),c.subtreeFlags&6&&(c.flags|=8192)):Nr(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function p9(s,c){switch(Km(c),c.tag){case 1:return hr(c.type)&&dl(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Nc(),Ht(mr),Ht(On),d1(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return c1(c),null;case 13:if(Ht(hn),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));wc()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Ht(hn),null;case 4:return Nc(),null;case 10:return a1(c.type._context),null;case 22:case 23:return H1(),null;case 24:return null;default:return null}}var Td=!1,Sr=!1,m9=typeof WeakSet=="function"?WeakSet:Set,Be=null;function $c(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){jn(s,c,g)}else p.current=null}function D1(s,c,p){try{p()}catch(g){jn(s,c,g)}}var dg=!1;function h9(s,c){if(hc=po,s=wu(),sc(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var x=g.anchorOffset,w=g.focusNode;g=g.focusOffset;try{p.nodeType,w.nodeType}catch{p=null;break e}var A=0,B=-1,Z=-1,oe=0,xe=0,we=s,ve=null;t:for(;;){for(var Re;we!==p||x!==0&&we.nodeType!==3||(B=A+x),we!==w||g!==0&&we.nodeType!==3||(Z=A+g),we.nodeType===3&&(A+=we.nodeValue.length),(Re=we.firstChild)!==null;)ve=we,we=Re;for(;;){if(we===s)break t;if(ve===p&&++oe===x&&(B=A),ve===w&&++xe===g&&(Z=A),(Re=we.nextSibling)!==null)break;we=ve,ve=we.parentNode}we=Re}p=B===-1||Z===-1?null:{start:B,end:Z}}else p=null}p=p||{start:0,end:0}}else p=null;for(fc={focusedElem:s,selectionRange:p},po=!1,Be=c;Be!==null;)if(c=Be,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Be=s;else for(;Be!==null;){c=Be;try{var Ue=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Ue!==null){var Ve=Ue.memoizedProps,$n=Ue.memoizedState,re=c.stateNode,ee=re.getSnapshotBeforeUpdate(c.elementType===c.type?Ve:yo(c.type,Ve),$n);re.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ae=c.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch($e){jn(c,c.return,$e)}if(s=c.sibling,s!==null){s.return=c.return,Be=s;break}Be=c.return}return Ue=dg,dg=!1,Ue}function Qu(s,c,p){var g=c.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var x=g=g.next;do{if((x.tag&s)===s){var w=x.destroy;x.destroy=void 0,w!==void 0&&D1(c,p,w)}x=x.next}while(x!==g)}}function Md(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var g=p.create;p.destroy=g()}p=p.next}while(p!==c)}}function z1(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function pg(s){var c=s.alternate;c!==null&&(s.alternate=null,pg(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[ka],delete c[xi],delete c[yc],delete c[hd],delete c[fd])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function mg(s){return s.tag===5||s.tag===3||s.tag===4}function hg(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||mg(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function T1(s,c,p){var g=s.tag;if(g===5||g===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=cl));else if(g!==4&&(s=s.child,s!==null))for(T1(s,c,p),s=s.sibling;s!==null;)T1(s,c,p),s=s.sibling}function M1(s,c,p){var g=s.tag;if(g===5||g===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(g!==4&&(s=s.child,s!==null))for(M1(s,c,p),s=s.sibling;s!==null;)M1(s,c,p),s=s.sibling}var fr=null,xo=!1;function ki(s,c,p){for(p=p.child;p!==null;)fg(s,c,p),p=p.sibling}function fg(s,c,p){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Pa,p)}catch{}switch(p.tag){case 5:Sr||$c(p,c);case 6:var g=fr,x=xo;fr=null,ki(s,c,p),fr=g,xo=x,fr!==null&&(xo?(s=fr,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):fr.removeChild(p.stateNode));break;case 18:fr!==null&&(xo?(s=fr,p=p.stateNode,s.nodeType===8?bc(s.parentNode,p):s.nodeType===1&&bc(s,p),Ca(s)):bc(fr,p.stateNode));break;case 4:g=fr,x=xo,fr=p.stateNode.containerInfo,xo=!0,ki(s,c,p),fr=g,xo=x;break;case 0:case 11:case 14:case 15:if(!Sr&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){x=g=g.next;do{var w=x,A=w.destroy;w=w.tag,A!==void 0&&((w&2)!==0||(w&4)!==0)&&D1(p,c,A),x=x.next}while(x!==g)}ki(s,c,p);break;case 1:if(!Sr&&($c(p,c),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(B){jn(p,c,B)}ki(s,c,p);break;case 21:ki(s,c,p);break;case 22:p.mode&1?(Sr=(g=Sr)||p.memoizedState!==null,ki(s,c,p),Sr=g):ki(s,c,p);break;default:ki(s,c,p)}}function gg(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new m9),c.forEach(function(g){var x=j9.bind(null,s,g);p.has(g)||(p.add(g),g.then(x,x))})}}function _o(s,c){var p=c.deletions;if(p!==null)for(var g=0;g<p.length;g++){var x=p[g];try{var w=s,A=c,B=A;e:for(;B!==null;){switch(B.tag){case 5:fr=B.stateNode,xo=!1;break e;case 3:fr=B.stateNode.containerInfo,xo=!0;break e;case 4:fr=B.stateNode.containerInfo,xo=!0;break e}B=B.return}if(fr===null)throw Error(n(160));fg(w,A,x),fr=null,xo=!1;var Z=x.alternate;Z!==null&&(Z.return=null),x.return=null}catch(oe){jn(x,c,oe)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)vg(c,s),c=c.sibling}function vg(s,c){var p=s.alternate,g=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(_o(c,s),ns(s),g&4){try{Qu(3,s,s.return),Md(3,s)}catch(Ve){jn(s,s.return,Ve)}try{Qu(5,s,s.return)}catch(Ve){jn(s,s.return,Ve)}}break;case 1:_o(c,s),ns(s),g&512&&p!==null&&$c(p,p.return);break;case 5:if(_o(c,s),ns(s),g&512&&p!==null&&$c(p,p.return),s.flags&32){var x=s.stateNode;try{ut(x,"")}catch(Ve){jn(s,s.return,Ve)}}if(g&4&&(x=s.stateNode,x!=null)){var w=s.memoizedProps,A=p!==null?p.memoizedProps:w,B=s.type,Z=s.updateQueue;if(s.updateQueue=null,Z!==null)try{B==="input"&&w.type==="radio"&&w.name!=null&&Qn(x,w),_n(B,A);var oe=_n(B,w);for(A=0;A<Z.length;A+=2){var xe=Z[A],we=Z[A+1];xe==="style"?_r(x,we):xe==="dangerouslySetInnerHTML"?at(x,we):xe==="children"?ut(x,we):E(x,xe,we,oe)}switch(B){case"input":Xn(x,w);break;case"textarea":Vt(x,w);break;case"select":var ve=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!w.multiple;var Re=w.value;Re!=null?cr(x,!!w.multiple,Re,!1):ve!==!!w.multiple&&(w.defaultValue!=null?cr(x,!!w.multiple,w.defaultValue,!0):cr(x,!!w.multiple,w.multiple?[]:"",!1))}x[xi]=w}catch(Ve){jn(s,s.return,Ve)}}break;case 6:if(_o(c,s),ns(s),g&4){if(s.stateNode===null)throw Error(n(162));x=s.stateNode,w=s.memoizedProps;try{x.nodeValue=w}catch(Ve){jn(s,s.return,Ve)}}break;case 3:if(_o(c,s),ns(s),g&4&&p!==null&&p.memoizedState.isDehydrated)try{Ca(c.containerInfo)}catch(Ve){jn(s,s.return,Ve)}break;case 4:_o(c,s),ns(s);break;case 13:_o(c,s),ns(s),x=s.child,x.flags&8192&&(w=x.memoizedState!==null,x.stateNode.isHidden=w,!w||x.alternate!==null&&x.alternate.memoizedState!==null||(R1=an())),g&4&&gg(s);break;case 22:if(xe=p!==null&&p.memoizedState!==null,s.mode&1?(Sr=(oe=Sr)||xe,_o(c,s),Sr=oe):_o(c,s),ns(s),g&8192){if(oe=s.memoizedState!==null,(s.stateNode.isHidden=oe)&&!xe&&(s.mode&1)!==0)for(Be=s,xe=s.child;xe!==null;){for(we=Be=xe;Be!==null;){switch(ve=Be,Re=ve.child,ve.tag){case 0:case 11:case 14:case 15:Qu(4,ve,ve.return);break;case 1:$c(ve,ve.return);var Ue=ve.stateNode;if(typeof Ue.componentWillUnmount=="function"){g=ve,p=ve.return;try{c=g,Ue.props=c.memoizedProps,Ue.state=c.memoizedState,Ue.componentWillUnmount()}catch(Ve){jn(g,p,Ve)}}break;case 5:$c(ve,ve.return);break;case 22:if(ve.memoizedState!==null){xg(we);continue}}Re!==null?(Re.return=ve,Be=Re):xg(we)}xe=xe.sibling}e:for(xe=null,we=s;;){if(we.tag===5){if(xe===null){xe=we;try{x=we.stateNode,oe?(w=x.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(B=we.stateNode,Z=we.memoizedProps.style,A=Z!=null&&Z.hasOwnProperty("display")?Z.display:null,B.style.display=sn("display",A))}catch(Ve){jn(s,s.return,Ve)}}}else if(we.tag===6){if(xe===null)try{we.stateNode.nodeValue=oe?"":we.memoizedProps}catch(Ve){jn(s,s.return,Ve)}}else if((we.tag!==22&&we.tag!==23||we.memoizedState===null||we===s)&&we.child!==null){we.child.return=we,we=we.child;continue}if(we===s)break e;for(;we.sibling===null;){if(we.return===null||we.return===s)break e;xe===we&&(xe=null),we=we.return}xe===we&&(xe=null),we.sibling.return=we.return,we=we.sibling}}break;case 19:_o(c,s),ns(s),g&4&&gg(s);break;case 21:break;default:_o(c,s),ns(s)}}function ns(s){var c=s.flags;if(c&2){try{e:{for(var p=s.return;p!==null;){if(mg(p)){var g=p;break e}p=p.return}throw Error(n(160))}switch(g.tag){case 5:var x=g.stateNode;g.flags&32&&(ut(x,""),g.flags&=-33);var w=hg(s);M1(s,w,x);break;case 3:case 4:var A=g.stateNode.containerInfo,B=hg(s);T1(s,B,A);break;default:throw Error(n(161))}}catch(Z){jn(s,s.return,Z)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function f9(s,c,p){Be=s,bg(s)}function bg(s,c,p){for(var g=(s.mode&1)!==0;Be!==null;){var x=Be,w=x.child;if(x.tag===22&&g){var A=x.memoizedState!==null||Td;if(!A){var B=x.alternate,Z=B!==null&&B.memoizedState!==null||Sr;B=Td;var oe=Sr;if(Td=A,(Sr=Z)&&!oe)for(Be=x;Be!==null;)A=Be,Z=A.child,A.tag===22&&A.memoizedState!==null?_g(x):Z!==null?(Z.return=A,Be=Z):_g(x);for(;w!==null;)Be=w,bg(w),w=w.sibling;Be=x,Td=B,Sr=oe}yg(s)}else(x.subtreeFlags&8772)!==0&&w!==null?(w.return=x,Be=w):yg(s)}}function yg(s){for(;Be!==null;){var c=Be;if((c.flags&8772)!==0){var p=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:Sr||Md(5,c);break;case 1:var g=c.stateNode;if(c.flags&4&&!Sr)if(p===null)g.componentDidMount();else{var x=c.elementType===c.type?p.memoizedProps:yo(c.type,p.memoizedProps);g.componentDidUpdate(x,p.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var w=c.updateQueue;w!==null&&x4(c,w,g);break;case 3:var A=c.updateQueue;if(A!==null){if(p=null,c.child!==null)switch(c.child.tag){case 5:p=c.child.stateNode;break;case 1:p=c.child.stateNode}x4(c,A,p)}break;case 5:var B=c.stateNode;if(p===null&&c.flags&4){p=B;var Z=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":Z.autoFocus&&p.focus();break;case"img":Z.src&&(p.src=Z.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var oe=c.alternate;if(oe!==null){var xe=oe.memoizedState;if(xe!==null){var we=xe.dehydrated;we!==null&&Ca(we)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Sr||c.flags&512&&z1(c)}catch(ve){jn(c,c.return,ve)}}if(c===s){Be=null;break}if(p=c.sibling,p!==null){p.return=c.return,Be=p;break}Be=c.return}}function xg(s){for(;Be!==null;){var c=Be;if(c===s){Be=null;break}var p=c.sibling;if(p!==null){p.return=c.return,Be=p;break}Be=c.return}}function _g(s){for(;Be!==null;){var c=Be;try{switch(c.tag){case 0:case 11:case 15:var p=c.return;try{Md(4,c)}catch(Z){jn(c,p,Z)}break;case 1:var g=c.stateNode;if(typeof g.componentDidMount=="function"){var x=c.return;try{g.componentDidMount()}catch(Z){jn(c,x,Z)}}var w=c.return;try{z1(c)}catch(Z){jn(c,w,Z)}break;case 5:var A=c.return;try{z1(c)}catch(Z){jn(c,A,Z)}}}catch(Z){jn(c,c.return,Z)}if(c===s){Be=null;break}var B=c.sibling;if(B!==null){B.return=c.return,Be=B;break}Be=c.return}}var g9=Math.ceil,Ld=P.ReactCurrentDispatcher,L1=P.ReactCurrentOwner,Qa=P.ReactCurrentBatchConfig,kt=0,rr=null,Mn=null,gr=0,$a=0,Ac=go(0),Hn=0,Xu=null,bl=0,Id=0,I1=0,Yu=null,sa=null,R1=0,Ec=1/0,Ps=null,Rd=!1,P1=null,Ni=null,Pd=!1,Si=null,qd=0,Ku=0,q1=null,Fd=-1,Od=0;function Or(){return(kt&6)!==0?an():Fd!==-1?Fd:Fd=an()}function $i(s){return(s.mode&1)===0?1:(kt&2)!==0&&gr!==0?gr&-gr:J8.transition!==null?(Od===0&&(Od=Ct()),Od):(s=xt,s!==0||(s=window.event,s=s===void 0?16:_t(s.type)),s)}function wo(s,c,p,g){if(50<Ku)throw Ku=0,q1=null,Error(n(185));Vo(s,p,g),((kt&2)===0||s!==rr)&&(s===rr&&((kt&2)===0&&(Id|=p),Hn===4&&Ai(s,gr)),ia(s,g),p===1&&kt===0&&(c.mode&1)===0&&(Ec=an()+500,qe&&aa()))}function ia(s,c){var p=s.callbackNode;ou(s,c);var g=Uo(s,s===rr?gr:0);if(g===0)p!==null&&ni(p),s.callbackNode=null,s.callbackPriority=0;else if(c=g&-g,s.callbackPriority!==c){if(p!=null&&ni(p),c===1)s.tag===0?pl(jg.bind(null,s)):qr(jg.bind(null,s)),pd(function(){(kt&6)===0&&aa()}),p=null;else{switch(Jr(g)){case 1:p=ai;break;case 4:p=vs;break;case 16:p=ur;break;case 536870912:p=Rr;break;default:p=ur}p=Dg(p,wg.bind(null,s))}s.callbackPriority=c,s.callbackNode=p}}function wg(s,c){if(Fd=-1,Od=0,(kt&6)!==0)throw Error(n(327));var p=s.callbackNode;if(Dc()&&s.callbackNode!==p)return null;var g=Uo(s,s===rr?gr:0);if(g===0)return null;if((g&30)!==0||(g&s.expiredLanes)!==0||c)c=Bd(s,g);else{c=g;var x=kt;kt|=2;var w=kg();(rr!==s||gr!==c)&&(Ps=null,Ec=an()+500,xl(s,c));do try{y9();break}catch(B){Cg(s,B)}while(!0);r1(),Ld.current=w,kt=x,Mn!==null?c=0:(rr=null,gr=0,c=Hn)}if(c!==0){if(c===2&&(x=co(s),x!==0&&(g=x,c=F1(s,x))),c===1)throw p=Xu,xl(s,0),Ai(s,g),ia(s,an()),p;if(c===6)Ai(s,g);else{if(x=s.current.alternate,(g&30)===0&&!v9(x)&&(c=Bd(s,g),c===2&&(w=co(s),w!==0&&(g=w,c=F1(s,w))),c===1))throw p=Xu,xl(s,0),Ai(s,g),ia(s,an()),p;switch(s.finishedWork=x,s.finishedLanes=g,c){case 0:case 1:throw Error(n(345));case 2:_l(s,sa,Ps);break;case 3:if(Ai(s,g),(g&130023424)===g&&(c=R1+500-an(),10<c)){if(Uo(s,0)!==0)break;if(x=s.suspendedLanes,(x&g)!==g){Or(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=vc(_l.bind(null,s,sa,Ps),c);break}_l(s,sa,Ps);break;case 4:if(Ai(s,g),(g&4194240)===g)break;for(c=s.eventTimes,x=-1;0<g;){var A=31-dr(g);w=1<<A,A=c[A],A>x&&(x=A),g&=~w}if(g=x,g=an()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*g9(g/1960))-g,10<g){s.timeoutHandle=vc(_l.bind(null,s,sa,Ps),g);break}_l(s,sa,Ps);break;case 5:_l(s,sa,Ps);break;default:throw Error(n(329))}}}return ia(s,an()),s.callbackNode===p?wg.bind(null,s):null}function F1(s,c){var p=Yu;return s.current.memoizedState.isDehydrated&&(xl(s,c).flags|=256),s=Bd(s,c),s!==2&&(c=sa,sa=p,c!==null&&O1(c)),s}function O1(s){sa===null?sa=s:sa.push.apply(sa,s)}function v9(s){for(var c=s;;){if(c.flags&16384){var p=c.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var g=0;g<p.length;g++){var x=p[g],w=x.getSnapshot;x=x.value;try{if(!ra(w(),x))return!1}catch{return!1}}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ai(s,c){for(c&=~I1,c&=~Id,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var p=31-dr(c),g=1<<p;s[p]=-1,c&=~g}}function jg(s){if((kt&6)!==0)throw Error(n(327));Dc();var c=Uo(s,0);if((c&1)===0)return ia(s,an()),null;var p=Bd(s,c);if(s.tag!==0&&p===2){var g=co(s);g!==0&&(c=g,p=F1(s,g))}if(p===1)throw p=Xu,xl(s,0),Ai(s,c),ia(s,an()),p;if(p===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,_l(s,sa,Ps),ia(s,an()),null}function B1(s,c){var p=kt;kt|=1;try{return s(c)}finally{kt=p,kt===0&&(Ec=an()+500,qe&&aa())}}function yl(s){Si!==null&&Si.tag===0&&(kt&6)===0&&Dc();var c=kt;kt|=1;var p=Qa.transition,g=xt;try{if(Qa.transition=null,xt=1,s)return s()}finally{xt=g,Qa.transition=p,kt=c,(kt&6)===0&&aa()}}function H1(){$a=Ac.current,Ht(Ac)}function xl(s,c){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,dd(p)),Mn!==null)for(p=Mn.return;p!==null;){var g=p;switch(Km(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&dl();break;case 3:Nc(),Ht(mr),Ht(On),d1();break;case 5:c1(g);break;case 4:Nc();break;case 13:Ht(hn);break;case 19:Ht(hn);break;case 10:a1(g.type._context);break;case 22:case 23:H1()}p=p.return}if(rr=s,Mn=s=Ei(s.current,null),gr=$a=c,Hn=0,Xu=null,I1=Id=bl=0,sa=Yu=null,fl!==null){for(c=0;c<fl.length;c++)if(p=fl[c],g=p.interleaved,g!==null){p.interleaved=null;var x=g.next,w=p.pending;if(w!==null){var A=w.next;w.next=x,g.next=A}p.pending=g}fl=null}return s}function Cg(s,c){do{var p=Mn;try{if(r1(),kd.current=Ad,Nd){for(var g=fn.memoizedState;g!==null;){var x=g.queue;x!==null&&(x.pending=null),g=g.next}Nd=!1}if(vl=0,nr=Bn=fn=null,Uu=!1,Vu=0,L1.current=null,p===null||p.return===null){Hn=1,Xu=c,Mn=null;break}e:{var w=s,A=p.return,B=p,Z=c;if(c=gr,B.flags|=32768,Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var oe=Z,xe=B,we=xe.tag;if((xe.mode&1)===0&&(we===0||we===11||we===15)){var ve=xe.alternate;ve?(xe.updateQueue=ve.updateQueue,xe.memoizedState=ve.memoizedState,xe.lanes=ve.lanes):(xe.updateQueue=null,xe.memoizedState=null)}var Re=Q4(A);if(Re!==null){Re.flags&=-257,X4(Re,A,B,w,c),Re.mode&1&&Z4(w,oe,c),c=Re,Z=oe;var Ue=c.updateQueue;if(Ue===null){var Ve=new Set;Ve.add(Z),c.updateQueue=Ve}else Ue.add(Z);break e}else{if((c&1)===0){Z4(w,oe,c),U1();break e}Z=Error(n(426))}}else if(cn&&B.mode&1){var $n=Q4(A);if($n!==null){($n.flags&65536)===0&&($n.flags|=256),X4($n,A,B,w,c),t1(Sc(Z,B));break e}}w=Z=Sc(Z,B),Hn!==4&&(Hn=2),Yu===null?Yu=[w]:Yu.push(w),w=A;do{switch(w.tag){case 3:w.flags|=65536,c&=-c,w.lanes|=c;var re=G4(w,Z,c);y4(w,re);break e;case 1:B=Z;var ee=w.type,ae=w.stateNode;if((w.flags&128)===0&&(typeof ee.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(Ni===null||!Ni.has(ae)))){w.flags|=65536,c&=-c,w.lanes|=c;var $e=W4(w,B,c);y4(w,$e);break e}}w=w.return}while(w!==null)}Sg(p)}catch(Ze){c=Ze,Mn===p&&p!==null&&(Mn=p=p.return);continue}break}while(!0)}function kg(){var s=Ld.current;return Ld.current=Ad,s===null?Ad:s}function U1(){(Hn===0||Hn===3||Hn===2)&&(Hn=4),rr===null||(bl&268435455)===0&&(Id&268435455)===0||Ai(rr,gr)}function Bd(s,c){var p=kt;kt|=2;var g=kg();(rr!==s||gr!==c)&&(Ps=null,xl(s,c));do try{b9();break}catch(x){Cg(s,x)}while(!0);if(r1(),kt=p,Ld.current=g,Mn!==null)throw Error(n(261));return rr=null,gr=0,Hn}function b9(){for(;Mn!==null;)Ng(Mn)}function y9(){for(;Mn!==null&&!ri();)Ng(Mn)}function Ng(s){var c=Eg(s.alternate,s,$a);s.memoizedProps=s.pendingProps,c===null?Sg(s):Mn=c,L1.current=null}function Sg(s){var c=s;do{var p=c.alternate;if(s=c.return,(c.flags&32768)===0){if(p=d9(p,c,$a),p!==null){Mn=p;return}}else{if(p=p9(p,c),p!==null){p.flags&=32767,Mn=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Hn=6,Mn=null;return}}if(c=c.sibling,c!==null){Mn=c;return}Mn=c=s}while(c!==null);Hn===0&&(Hn=5)}function _l(s,c,p){var g=xt,x=Qa.transition;try{Qa.transition=null,xt=1,x9(s,c,p,g)}finally{Qa.transition=x,xt=g}return null}function x9(s,c,p,g){do Dc();while(Si!==null);if((kt&6)!==0)throw Error(n(327));p=s.finishedWork;var x=s.finishedLanes;if(p===null)return null;if(s.finishedWork=null,s.finishedLanes=0,p===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var w=p.lanes|p.childLanes;if(si(s,w),s===rr&&(Mn=rr=null,gr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Pd||(Pd=!0,Dg(ur,function(){return Dc(),null})),w=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||w){w=Qa.transition,Qa.transition=null;var A=xt;xt=1;var B=kt;kt|=4,L1.current=null,h9(s,p),vg(p,s),ad(fc),po=!!hc,fc=hc=null,s.current=p,f9(p),Ki(),kt=B,xt=A,Qa.transition=w}else s.current=p;if(Pd&&(Pd=!1,Si=s,qd=x),w=s.pendingLanes,w===0&&(Ni=null),bs(p.stateNode),ia(s,an()),c!==null)for(g=s.onRecoverableError,p=0;p<c.length;p++)x=c[p],g(x.value,{componentStack:x.stack,digest:x.digest});if(Rd)throw Rd=!1,s=P1,P1=null,s;return(qd&1)!==0&&s.tag!==0&&Dc(),w=s.pendingLanes,(w&1)!==0?s===q1?Ku++:(Ku=0,q1=s):Ku=0,aa(),null}function Dc(){if(Si!==null){var s=Jr(qd),c=Qa.transition,p=xt;try{if(Qa.transition=null,xt=16>s?16:s,Si===null)var g=!1;else{if(s=Si,Si=null,qd=0,(kt&6)!==0)throw Error(n(331));var x=kt;for(kt|=4,Be=s.current;Be!==null;){var w=Be,A=w.child;if((Be.flags&16)!==0){var B=w.deletions;if(B!==null){for(var Z=0;Z<B.length;Z++){var oe=B[Z];for(Be=oe;Be!==null;){var xe=Be;switch(xe.tag){case 0:case 11:case 15:Qu(8,xe,w)}var we=xe.child;if(we!==null)we.return=xe,Be=we;else for(;Be!==null;){xe=Be;var ve=xe.sibling,Re=xe.return;if(pg(xe),xe===oe){Be=null;break}if(ve!==null){ve.return=Re,Be=ve;break}Be=Re}}}var Ue=w.alternate;if(Ue!==null){var Ve=Ue.child;if(Ve!==null){Ue.child=null;do{var $n=Ve.sibling;Ve.sibling=null,Ve=$n}while(Ve!==null)}}Be=w}}if((w.subtreeFlags&2064)!==0&&A!==null)A.return=w,Be=A;else e:for(;Be!==null;){if(w=Be,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:Qu(9,w,w.return)}var re=w.sibling;if(re!==null){re.return=w.return,Be=re;break e}Be=w.return}}var ee=s.current;for(Be=ee;Be!==null;){A=Be;var ae=A.child;if((A.subtreeFlags&2064)!==0&&ae!==null)ae.return=A,Be=ae;else e:for(A=ee;Be!==null;){if(B=Be,(B.flags&2048)!==0)try{switch(B.tag){case 0:case 11:case 15:Md(9,B)}}catch(Ze){jn(B,B.return,Ze)}if(B===A){Be=null;break e}var $e=B.sibling;if($e!==null){$e.return=B.return,Be=$e;break e}Be=B.return}}if(kt=x,aa(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Pa,s)}catch{}g=!0}return g}finally{xt=p,Qa.transition=c}}return!1}function $g(s,c,p){c=Sc(p,c),c=G4(s,c,1),s=Ci(s,c,1),c=Or(),s!==null&&(Vo(s,1,c),ia(s,c))}function jn(s,c,p){if(s.tag===3)$g(s,s,p);else for(;c!==null;){if(c.tag===3){$g(c,s,p);break}else if(c.tag===1){var g=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Ni===null||!Ni.has(g))){s=Sc(p,s),s=W4(c,s,1),c=Ci(c,s,1),s=Or(),c!==null&&(Vo(c,1,s),ia(c,s));break}}c=c.return}}function _9(s,c,p){var g=s.pingCache;g!==null&&g.delete(c),c=Or(),s.pingedLanes|=s.suspendedLanes&p,rr===s&&(gr&p)===p&&(Hn===4||Hn===3&&(gr&130023424)===gr&&500>an()-R1?xl(s,0):I1|=p),ia(s,c)}function Ag(s,c){c===0&&((s.mode&1)===0?c=1:(c=ys,ys<<=1,(ys&130023424)===0&&(ys=4194304)));var p=Or();s=Ls(s,c),s!==null&&(Vo(s,c,p),ia(s,p))}function w9(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),Ag(s,p)}function j9(s,c){var p=0;switch(s.tag){case 13:var g=s.stateNode,x=s.memoizedState;x!==null&&(p=x.retryLane);break;case 19:g=s.stateNode;break;default:throw Error(n(314))}g!==null&&g.delete(c),Ag(s,p)}var Eg;Eg=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||mr.current)oa=!0;else{if((s.lanes&p)===0&&(c.flags&128)===0)return oa=!1,u9(s,c,p);oa=(s.flags&131072)!==0}else oa=!1,cn&&(c.flags&1048576)!==0&&c4(c,vd,c.index);switch(c.lanes=0,c.tag){case 2:var g=c.type;zd(s,c),s=c.pendingProps;var x=zs(c,On.current);kc(c,p),x=h1(null,c,g,s,x,p);var w=f1();return c.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,hr(g)?(w=!0,D(c)):w=!1,c.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,i1(c),x.updater=Ed,c.stateNode=x,x._reactInternals=c,_1(c,g,s,p),c=k1(null,c,g,!0,w,p)):(c.tag=0,cn&&w&&Ym(c),Fr(null,c,x,p),c=c.child),c;case 16:g=c.elementType;e:{switch(zd(s,c),s=c.pendingProps,x=g._init,g=x(g._payload),c.type=g,x=c.tag=k9(g),s=yo(g,s),x){case 0:c=C1(null,c,g,s,p);break e;case 1:c=ng(null,c,g,s,p);break e;case 11:c=Y4(null,c,g,s,p);break e;case 14:c=K4(null,c,g,yo(g.type,s),p);break e}throw Error(n(306,g,""))}return c;case 0:return g=c.type,x=c.pendingProps,x=c.elementType===g?x:yo(g,x),C1(s,c,g,x,p);case 1:return g=c.type,x=c.pendingProps,x=c.elementType===g?x:yo(g,x),ng(s,c,g,x,p);case 3:e:{if(rg(c),s===null)throw Error(n(387));g=c.pendingProps,w=c.memoizedState,x=w.element,b4(s,c),jd(c,g,null,p);var A=c.memoizedState;if(g=A.element,w.isDehydrated)if(w={element:g,isDehydrated:!1,cache:A.cache,pendingSuspenseBoundaries:A.pendingSuspenseBoundaries,transitions:A.transitions},c.updateQueue.baseState=w,c.memoizedState=w,c.flags&256){x=Sc(Error(n(423)),c),c=ag(s,c,g,p,x);break e}else if(g!==x){x=Sc(Error(n(424)),c),c=ag(s,c,g,p,x);break e}else for(Sa=fo(c.stateNode.containerInfo.firstChild),Na=c,cn=!0,bo=null,p=g4(c,null,g,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(wc(),g===x){c=Rs(s,c,p);break e}Fr(s,c,g,p)}c=c.child}return c;case 5:return _4(c),s===null&&e1(c),g=c.type,x=c.pendingProps,w=s!==null?s.memoizedProps:null,A=x.children,gc(g,x)?A=null:w!==null&&gc(g,w)&&(c.flags|=32),tg(s,c),Fr(s,c,A,p),c.child;case 6:return s===null&&e1(c),null;case 13:return og(s,c,p);case 4:return l1(c,c.stateNode.containerInfo),g=c.pendingProps,s===null?c.child=jc(c,null,g,p):Fr(s,c,g,p),c.child;case 11:return g=c.type,x=c.pendingProps,x=c.elementType===g?x:yo(g,x),Y4(s,c,g,x,p);case 7:return Fr(s,c,c.pendingProps,p),c.child;case 8:return Fr(s,c,c.pendingProps.children,p),c.child;case 12:return Fr(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(g=c.type._context,x=c.pendingProps,w=c.memoizedProps,A=x.value,Lt(xd,g._currentValue),g._currentValue=A,w!==null)if(ra(w.value,A)){if(w.children===x.children&&!mr.current){c=Rs(s,c,p);break e}}else for(w=c.child,w!==null&&(w.return=c);w!==null;){var B=w.dependencies;if(B!==null){A=w.child;for(var Z=B.firstContext;Z!==null;){if(Z.context===g){if(w.tag===1){Z=Is(-1,p&-p),Z.tag=2;var oe=w.updateQueue;if(oe!==null){oe=oe.shared;var xe=oe.pending;xe===null?Z.next=Z:(Z.next=xe.next,xe.next=Z),oe.pending=Z}}w.lanes|=p,Z=w.alternate,Z!==null&&(Z.lanes|=p),o1(w.return,p,c),B.lanes|=p;break}Z=Z.next}}else if(w.tag===10)A=w.type===c.type?null:w.child;else if(w.tag===18){if(A=w.return,A===null)throw Error(n(341));A.lanes|=p,B=A.alternate,B!==null&&(B.lanes|=p),o1(A,p,c),A=w.sibling}else A=w.child;if(A!==null)A.return=w;else for(A=w;A!==null;){if(A===c){A=null;break}if(w=A.sibling,w!==null){w.return=A.return,A=w;break}A=A.return}w=A}Fr(s,c,x.children,p),c=c.child}return c;case 9:return x=c.type,g=c.pendingProps.children,kc(c,p),x=Wa(x),g=g(x),c.flags|=1,Fr(s,c,g,p),c.child;case 14:return g=c.type,x=yo(g,c.pendingProps),x=yo(g.type,x),K4(s,c,g,x,p);case 15:return J4(s,c,c.type,c.pendingProps,p);case 17:return g=c.type,x=c.pendingProps,x=c.elementType===g?x:yo(g,x),zd(s,c),c.tag=1,hr(g)?(s=!0,D(c)):s=!1,kc(c,p),U4(c,g,x),_1(c,g,x,p),k1(null,c,g,!0,s,p);case 19:return ig(s,c,p);case 22:return eg(s,c,p)}throw Error(n(156,c.tag))};function Dg(s,c){return ya(s,c)}function C9(s,c,p,g){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xa(s,c,p,g){return new C9(s,c,p,g)}function V1(s){return s=s.prototype,!(!s||!s.isReactComponent)}function k9(s){if(typeof s=="function")return V1(s)?1:0;if(s!=null){if(s=s.$$typeof,s===K)return 11;if(s===ne)return 14}return 2}function Ei(s,c){var p=s.alternate;return p===null?(p=Xa(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Hd(s,c,p,g,x,w){var A=2;if(g=s,typeof s=="function")V1(s)&&(A=1);else if(typeof s=="string")A=5;else e:switch(s){case U:return wl(p.children,x,w,c);case W:A=8,x|=8;break;case O:return s=Xa(12,p,c,x|2),s.elementType=O,s.lanes=w,s;case le:return s=Xa(13,p,c,x),s.elementType=le,s.lanes=w,s;case me:return s=Xa(19,p,c,x),s.elementType=me,s.lanes=w,s;case Ae:return Ud(p,x,w,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case q:A=10;break e;case F:A=9;break e;case K:A=11;break e;case ne:A=14;break e;case ce:A=16,g=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=Xa(A,p,c,x),c.elementType=s,c.type=g,c.lanes=w,c}function wl(s,c,p,g){return s=Xa(7,s,g,c),s.lanes=p,s}function Ud(s,c,p,g){return s=Xa(22,s,g,c),s.elementType=Ae,s.lanes=p,s.stateNode={isHidden:!1},s}function G1(s,c,p){return s=Xa(6,s,null,c),s.lanes=p,s}function W1(s,c,p){return c=Xa(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function N9(s,c,p,g,x){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qa(0),this.expirationTimes=qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qa(0),this.identifierPrefix=g,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Z1(s,c,p,g,x,w,A,B,Z){return s=new N9(s,c,p,B,Z),c===1?(c=1,w===!0&&(c|=8)):c=0,w=Xa(3,null,null,c),s.current=w,w.stateNode=s,w.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},i1(w),s}function S9(s,c,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:g==null?null:""+g,children:s,containerInfo:c,implementation:p}}function zg(s){if(!s)return vo;s=s._reactInternals;e:{if(rn(s)!==s||s.tag!==1)throw Error(n(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(hr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(n(171))}if(s.tag===1){var p=s.type;if(hr(p))return qu(s,p,c)}return c}function Tg(s,c,p,g,x,w,A,B,Z){return s=Z1(p,g,!0,s,x,w,A,B,Z),s.context=zg(null),p=s.current,g=Or(),x=$i(p),w=Is(g,x),w.callback=c??null,Ci(p,w,x),s.current.lanes=x,Vo(s,x,g),ia(s,g),s}function Vd(s,c,p,g){var x=c.current,w=Or(),A=$i(x);return p=zg(p),c.context===null?c.context=p:c.pendingContext=p,c=Is(w,A),c.payload={element:s},g=g===void 0?null:g,g!==null&&(c.callback=g),s=Ci(x,c,A),s!==null&&(wo(s,x,A,w),wd(s,x,A)),A}function Gd(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function Mg(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function Q1(s,c){Mg(s,c),(s=s.alternate)&&Mg(s,c)}function $9(){return null}var Lg=typeof reportError=="function"?reportError:function(s){console.error(s)};function X1(s){this._internalRoot=s}Wd.prototype.render=X1.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));Vd(s,c,null,null)},Wd.prototype.unmount=X1.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;yl(function(){Vd(null,s,null,null)}),c[Ua]=null}};function Wd(s){this._internalRoot=s}Wd.prototype.unstable_scheduleHydration=function(s){if(s){var c=ea();s={blockedOn:null,target:s,priority:c};for(var p=0;p<wa.length&&c!==0&&c<wa[p].priority;p++);wa.splice(p,0,s),p===0&&Ji(s)}};function Y1(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Zd(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function Ig(){}function A9(s,c,p,g,x){if(x){if(typeof g=="function"){var w=g;g=function(){var oe=Gd(A);w.call(oe)}}var A=Tg(c,g,s,0,null,!1,!1,"",Ig);return s._reactRootContainer=A,s[Ua]=A.current,bi(s.nodeType===8?s.parentNode:s),yl(),A}for(;x=s.lastChild;)s.removeChild(x);if(typeof g=="function"){var B=g;g=function(){var oe=Gd(Z);B.call(oe)}}var Z=Z1(s,0,!1,null,null,!1,!1,"",Ig);return s._reactRootContainer=Z,s[Ua]=Z.current,bi(s.nodeType===8?s.parentNode:s),yl(function(){Vd(c,Z,p,g)}),Z}function Qd(s,c,p,g,x){var w=p._reactRootContainer;if(w){var A=w;if(typeof x=="function"){var B=x;x=function(){var Z=Gd(A);B.call(Z)}}Vd(c,A,s,x)}else A=A9(p,c,s,x,g);return Gd(A)}Go=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var p=er(c.pendingLanes);p!==0&&(xa(c,p|1),ia(c,an()),(kt&6)===0&&(Ec=an()+500,aa()))}break;case 13:yl(function(){var g=Ls(s,1);if(g!==null){var x=Or();wo(g,s,1,x)}}),Q1(s,1)}},xs=function(s){if(s.tag===13){var c=Ls(s,134217728);if(c!==null){var p=Or();wo(c,s,134217728,p)}Q1(s,134217728)}},Wo=function(s){if(s.tag===13){var c=$i(s),p=Ls(s,c);if(p!==null){var g=Or();wo(p,s,c,g)}Q1(s,c)}},ea=function(){return xt},_s=function(s,c){var p=xt;try{return xt=s,c()}finally{xt=p}},Xr=function(s,c,p){switch(c){case"input":if(Xn(s,p),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<p.length;c++){var g=p[c];if(g!==s&&g.form===s.form){var x=ul(g);if(!x)throw Error(n(90));Jt(g),Xn(g,x)}}}break;case"textarea":Vt(s,p);break;case"select":c=p.value,c!=null&&cr(s,!!p.multiple,c,!1)}},Xi=B1,Lr=yl;var E9={usingClientEntryPoint:!1,Events:[_i,Es,ul,Mo,gs,B1]},Ju={findFiberByHostInstance:Ko,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},D9={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=ba(s),s===null?null:s.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||$9,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 Xd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xd.isDisabled&&Xd.supportsFiber)try{Pa=Xd.inject(D9),Jn=Xd}catch{}}return la.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E9,la.createPortal=function(s,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Y1(c))throw Error(n(200));return S9(s,c,null,p)},la.createRoot=function(s,c){if(!Y1(s))throw Error(n(299));var p=!1,g="",x=Lg;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onRecoverableError!==void 0&&(x=c.onRecoverableError)),c=Z1(s,1,!1,null,null,p,!1,g,x),s[Ua]=c.current,bi(s.nodeType===8?s.parentNode:s),new X1(c)},la.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=ba(c),s=s===null?null:s.stateNode,s},la.flushSync=function(s){return yl(s)},la.hydrate=function(s,c,p){if(!Zd(c))throw Error(n(200));return Qd(null,s,c,!0,p)},la.hydrateRoot=function(s,c,p){if(!Y1(s))throw Error(n(405));var g=p!=null&&p.hydratedSources||null,x=!1,w="",A=Lg;if(p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(w=p.identifierPrefix),p.onRecoverableError!==void 0&&(A=p.onRecoverableError)),c=Tg(c,null,s,1,p??null,x,!1,w,A),s[Ua]=c.current,bi(s),g)for(s=0;s<g.length;s++)p=g[s],x=p._getVersion,x=x(p._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[p,x]:c.mutableSourceEagerHydrationData.push(p,x);return new Wd(c)},la.render=function(s,c,p){if(!Zd(c))throw Error(n(200));return Qd(null,s,c,!1,p)},la.unmountComponentAtNode=function(s){if(!Zd(s))throw Error(n(40));return s._reactRootContainer?(yl(function(){Qd(null,null,s,!1,function(){s._reactRootContainer=null,s[Ua]=null})}),!0):!1},la.unstable_batchedUpdates=B1,la.unstable_renderSubtreeIntoContainer=function(s,c,p,g){if(!Zd(p))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Qd(s,c,p,!1,g)},la.version="18.3.1-next-f1338f8080-20240426",la}var Gg;function r6(){if(Gg)return nh.exports;Gg=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(t){console.error(t)}}return e(),nh.exports=B9(),nh.exports}var Wg;function H9(){if(Wg)return Yd;Wg=1;var e=r6();return Yd.createRoot=e.createRoot,Yd.hydrateRoot=e.hydrateRoot,Yd}var U9=H9();function V9(e){if(Array.isArray(e))return e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const n=t;if(typeof n.nombre!="string"||typeof n.modificado!="number")return[];const r=Array.isArray(n.ficheros)?n.ficheros.filter(i=>typeof i=="string"):[],a=W9(n.tareas),l=n.plan;return[{nombre:n.nombre,ficheros:r,...a===void 0?{}:{tareas:a},...l!=null&&typeof l.texto=="string"?{plan:{texto:l.texto,recortado:l.recortado===!0}}:{},modificado:n.modificado}]})}const G9=["pendiente","en-curso","implementada","finalizada"];function W9(e){if(typeof e!="object"||e===null)return;const t=e;if(!Array.isArray(t.tareas))return;const n=t.tareas.flatMap(r=>{if(typeof r!="object"||r===null)return[];const a=r,l=a.criterios;return typeof a.numero!="string"||typeof a.titulo!="string"||typeof a.cuerpo!="string"?[]:l==null||typeof l.hechos!="number"||typeof l.total!="number"?[]:[{numero:a.numero,titulo:a.titulo,...typeof a.estado=="string"?{estado:a.estado}:{},bloqueadaPor:Array.isArray(a.bloqueadaPor)?a.bloqueadaPor.filter(i=>typeof i=="string"):[],...typeof a.bloqueadaPorTexto=="string"?{bloqueadaPorTexto:a.bloqueadaPorTexto}:{},criterios:{hechos:l.hechos,total:l.total},...G9.includes(a.progreso)?{progreso:a.progreso}:{},cuerpo:a.cuerpo}]});return{...typeof t.titulo=="string"?{titulo:t.titulo}:{},tareas:n}}const p2=["por-hacer","en-curso","terminada"],Sn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Z9=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[];function Q9(e){if(!Sn(e))return{};const t=Y9(e.estado),n=ty(e.sitios),r=ny(e.proyectos),a=K9(e.busqueda),l=ey(e.descripcion),i=ay(e.pendientes),u=oy(e.ficha),d=sy(e.borrador),m=ly(e.transiciones),v=cy(e.cierre),f=uy(e.cerrado),h=dy(e.error);return{...t===void 0?{}:{estado:t},...n===void 0?{}:{sitios:n},...r===void 0?{}:{proyectos:r},...a===void 0?{}:{busqueda:a},...l===void 0?{}:{descripcion:l},...i===void 0?{}:{pendientes:i},...u===void 0?{}:{ficha:u},...d===void 0?{}:{borrador:d},...m===void 0?{}:{transiciones:m},...v===void 0?{}:{cierre:v},...f===void 0?{}:{cerrado:f},...h===void 0?{}:{error:h}}}function X9(e){if(Sn(e)&&!(typeof e.conector!="string"||typeof e.sitio!="string"||typeof e.proyecto!="string"))return{conector:e.conector,sitio:e.sitio,proyecto:e.proyecto,...typeof e.nombreDelSitio=="string"?{nombreDelSitio:e.nombreDelSitio}:{},...typeof e.nombreDelProyecto=="string"?{nombreDelProyecto:e.nombreDelProyecto}:{}}}function Y9(e){if(!Sn(e)||!Array.isArray(e.conectores))return;const t=X9(e.vinculo);if(!(e.vinculo!==void 0&&t===void 0))return{conectores:Z9(e.conectores),...t===void 0?{}:{vinculo:t},...typeof e.admiteMias=="boolean"?{admiteMias:e.admiteMias}:{}}}function K9(e){if(!Sn(e)||typeof e.conector!="string"||typeof e.texto!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>Sn(n)&&typeof n.proyecto=="string"&&typeof n.nombre=="string"?[{proyecto:n.proyecto,nombre:n.nombre,...typeof n.ruta=="string"?{ruta:n.ruta}:{}}]:[]);return{conector:e.conector,texto:e.texto,lista:t}}function J9(e){if(!Sn(e)||typeof e.proyecto!="string"||typeof e.nombre!="string"||typeof e.titulo!="string")return;const t=e.estado;if(!Sn(t)||typeof t.propiedad!="string"||!Array.isArray(t.opciones))return;const n=t.opciones.flatMap(r=>Sn(r)&&typeof r.nombre=="string"&&p2.includes(r.categoria)?[{nombre:r.nombre,categoria:r.categoria}]:[]);if(n.length===t.opciones.length)return{proyecto:e.proyecto,nombre:e.nombre,estado:{propiedad:t.propiedad,opciones:n},titulo:e.titulo,...typeof e.asignado=="string"?{asignado:e.asignado}:{},...typeof e.fuentes=="number"?{fuentes:e.fuentes}:{}}}function ey(e){if(!Sn(e)||typeof e.conector!="string"||typeof e.pedido!="string")return;const t={conector:e.conector,pedido:e.pedido};if(e.esquema!==void 0&&e.motivo!==void 0)return;if(typeof e.motivo=="string")return{...t,motivo:e.motivo};const n=J9(e.esquema);return n===void 0?void 0:{...t,esquema:n}}function ty(e){if(!Sn(e)||typeof e.conector!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>Sn(n)&&typeof n.id=="string"&&typeof n.nombre=="string"?[{id:n.id,nombre:n.nombre}]:[]);return{conector:e.conector,lista:t}}function ny(e){if(!Sn(e)||typeof e.sitio!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>Sn(n)&&typeof n.clave=="string"&&typeof n.nombre=="string"?[{clave:n.clave,nombre:n.nombre}]:[]);return{sitio:e.sitio,lista:t}}function ry(e){return Sn(e)?typeof e.clave!="string"||typeof e.titulo!="string"||typeof e.estado!="string"?[]:p2.includes(e.categoria)?[{clave:e.clave,...typeof e.etiqueta=="string"?{etiqueta:e.etiqueta}:{},titulo:e.titulo,estado:e.estado,categoria:e.categoria,...typeof e.asignado=="string"?{asignado:e.asignado}:{},...typeof e.url=="string"&&/^https?:\/\//i.test(e.url)?{url:e.url}:{}}]:[]:[]}function ay(e){if(!(!Sn(e)||typeof e.cuando!="number"||!Array.isArray(e.lista)))return{cuando:e.cuando,...typeof e.texto=="string"?{texto:e.texto}:{},...e.mias===!0?{mias:!0}:{},lista:e.lista.flatMap(ry)}}function oy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.descripcion!="string"))return{clave:e.clave,descripcion:e.descripcion}}function sy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.texto!="string"))return{clave:e.clave,texto:e.texto}}function iy(e){return Sn(e)?typeof e.id!="string"||typeof e.nombre!="string"||typeof e.destino!="string"?[]:p2.includes(e.categoria)?[{id:e.id,nombre:e.nombre,destino:e.destino,categoria:e.categoria}]:[]:[]}function ly(e){if(!(!Sn(e)||typeof e.clave!="string"||e.para!=="empezar"&&e.para!=="cerrar"||!Array.isArray(e.lista)))return{clave:e.clave,para:e.para,lista:e.lista.flatMap(iy),...typeof e.propuesta=="string"?{propuesta:e.propuesta}:{}}}function cy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.comentario!="string"))return{clave:e.clave,comentario:e.comentario}}function uy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.comento!="boolean"))return{clave:e.clave,comento:e.comento,...typeof e.transicion=="string"?{transicion:e.transicion}:{},...typeof e.falloDeTransicion=="string"?{falloDeTransicion:e.falloDeTransicion}:{}}}function dy(e){if(!(!Sn(e)||typeof e.accion!="string"||typeof e.motivo!="string"))return{accion:e.accion,motivo:e.motivo,...typeof e.clave=="string"?{clave:e.clave}:{},...typeof e.texto=="string"?{texto:e.texto}:{},...typeof e.pedido=="string"?{pedido:e.pedido}:{}}}function py(e){if(Array.isArray(e))return e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const n=t;return typeof n.nombre!="string"?[]:n.estado!=="nueva"&&n.estado!=="borrada"&&n.estado!=="modificada"?[]:[{nombre:n.nombre,estado:n.estado,campos:t0(n.campos,r=>{const{cambio:a,nombre:l,antes:i,ahora:u}=r;if(!(a!=="nuevo"&&a!=="borrado"&&a!=="tipo"||typeof l!="string"))return{cambio:a,nombre:l,...typeof i=="string"?{antes:i}:{},...typeof u=="string"?{ahora:u}:{}}}),referencias:t0(n.referencias,r=>{const{cambio:a,desde:l,por:i,hacia:u}=r;if(!(!a6(a)||typeof l!="string"||typeof i!="string"||typeof u!="string"))return{cambio:a,desde:l,por:i,hacia:u}}),eventos:t0(n.eventos,oh),nodos:t0(n.nodos,oh),conexiones:t0(n.conexiones,oh)}]})}function a6(e){return e==="nuevo"||e==="borrado"}function oh(e){return a6(e.cambio)&&typeof e.nombre=="string"?{cambio:e.cambio,nombre:e.nombre}:void 0}function t0(e,t){return Array.isArray(e)?e.flatMap(n=>{if(typeof n!="object"||n===null)return[];const r=t(n);return r===void 0?[]:[r]}):[]}function my(e){if(typeof e!="object"||e===null)return;const t=e;return!Array.isArray(t.colecciones)||typeof t.total!="number"?void 0:{colecciones:t.colecciones.flatMap(r=>{const a=hy(r);return a===void 0?[]:[a]}),total:t.total,entrada:f0(t.entrada),login:f0(t.login),rotas:rf(t.rotas)}}function hy(e){if(typeof e!="object"||e===null)return;const t=e;if(typeof t.nombre!="string"||typeof t.fichero!="string")return;const n=Array.isArray(t.campos)?t.campos.flatMap(r=>{if(typeof r!="object"||r===null)return[];const{nombre:a,tipo:l}=r;return typeof a!="string"?[]:[{nombre:a,...typeof l=="string"?{tipo:l}:{}}]}):[];return{nombre:t.nombre,fichero:t.fichero,campos:n,eventos:f0(t.eventos),nodos:f0(t.nodos),conexiones:f0(t.conexiones),apuntaA:rf(t.apuntaA),leApuntan:rf(t.leApuntan)}}function f0(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rf(e){return Array.isArray(e)?e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const{desde:n,por:r,hacia:a,fichero:l}=t;return typeof n!="string"||typeof r!="string"||typeof a!="string"||typeof l!="string"?[]:[{desde:n,por:r,hacia:a,fichero:l}]}):[]}function fy(e){return e.por==="script"?"script":e.por==="mencion"?"mencion":"resuelta"}const af=/^[A-Za-z0-9._][A-Za-z0-9._-]*$/,Zg=64,Kd={desde:5554,hasta:5585};function gy(e,t,n){if(!Number.isInteger(e)||e<1024||e>65535)return"el puerto tiene que ser un número entero entre 1024 y 65535";if(e>=Kd.desde&&e<=Kd.hasta)return`del ${Kd.desde} al ${Kd.hasta} los usan los propios emuladores`;for(const[r,a]of Object.entries((n==null?void 0:n.avds)??{}))if(r!==t&&a.puerto===e)return`el ${e} ya es de ${r}`}function o6(e,t){if(e==="")return"falta el nombre";if(e.length>Zg)return`el nombre no puede pasar de ${Zg} caracteres`;if(!af.test(e))return"solo letras, números, «.», «_» y «-», y sin empezar por «-»";if(t.includes(e))return`${e} ya existe`}function vy(e,t,n){if(t.length<=1)return"es el único: siempre tiene que quedar al menos uno";if(n.includes(e))return"apágalo para eliminarlo"}const sh="abcdefghijklmnopqrstuvwxyz0123456789",Qg=4;function by(e,t,n=Math.random){const r=e.slice(0,64-Qg-1);for(let a=0;;a++){let l="";for(let u=0;u<Qg;u++)l+=sh[Math.floor(n()*sh.length)%sh.length];const i=`${r}-${l}`;if(o6(i,t)===void 0||a>=50)return i}}function s6(e){return e==="ninguna"||e==="oauth"||e==="api-key"}const yy="(sin desglose)",xy=["comprobando","empaquetando","subiendo","reiniciando","lanzando","comprobando-arranque"],_y=["corriendo","ok","fallo","cancelada","colgada"],wy={nuevo:["en-proceso","requiere-atencion"],"en-proceso":["terminada","requiere-atencion"],"requiere-atencion":["nuevo","terminada"],terminada:[]},jy=["low","medium","high","xhigh","max"],i6=["android","androidEmulador","ios","iosSimulador"];function $p(e,t){return(e==null?void 0:e[t])!==!1}function Cy(e){if(typeof e!="object"||e===null)return;const t={};for(const[n,r]of Object.entries(e)){if(!af.test(n)||typeof r!="object"||r===null)continue;const a=r,l={};typeof a.puerto=="number"&&Number.isInteger(a.puerto)&&a.puerto>=1024&&a.puerto<=65535&&(l.puerto=a.puerto),a.sinVentana===!0&&(l.sinVentana=!0),typeof a.copiaDe=="string"&&af.test(a.copiaDe)&&(l.copiaDe=a.copiaDe,a.clon===!0&&(l.clon=!0)),Object.keys(l).length>0&&(t[n]=l)}return Object.keys(t).length===0?void 0:t}function ky(e){if(typeof e!="object"||e===null)return{};const t=e,n={};for(const a of i6)typeof t[a]=="boolean"&&(n[a]=t[a]);const r=Cy(t.avds);return r!==void 0&&(n.avds=r),n}function ih(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.nombre=="string"&&(t.plataforma==="android"||t.plataforma==="ios")&&(t.clase==="emulador"||t.clase==="simulador"||t.clase==="fisico")}function Ny(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.ficheros)&&t.ficheros.length>0&&t.ficheros.every(n=>typeof n=="string")&&typeof t.total=="number"}const Sy={actos:[],conectado:!1},$y=new Set(["cuenta","entorno","proyecto"]),Ay={usuario:!0,asistente:!0,razonamiento:!0,herramientas:!0,sistema:!0,artefacto:!0,consulta:!0,fase:!0,fin:!0,sincronizacion:!0,error:!0,verificacion:!0};function Jd(e){return typeof e=="object"&&e!==null&&"tipo"in e&&typeof e.tipo=="string"&&e.tipo in Ay}function Ey(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.titulo=="string"&&Array.isArray(t.opciones)&&t.opciones.every(n=>typeof n=="object"&&n!==null&&typeof n.id=="string"&&typeof n.etiqueta=="string")}function Dy(e){if(typeof e!="object"||e===null)return!1;const t=e.lineas;return Array.isArray(t)&&t.every(zy)}function zy(e){return typeof e!="object"||e===null?!1:typeof e.texto=="string"}function Ty(e){return e==="nuevo"||e==="modificado"||e==="borrado"?e:void 0}function My(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&typeof t.motor=="string"&&typeof t.soloLectura=="boolean"&&Array.isArray(t.skills)&&typeof t.instrucciones=="string"}function Ly(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&(t.origen==="serie"||t.origen==="global"||t.origen==="proyecto")&&typeof t.tokens=="number"&&Array.isArray(t.ficheros)}function Iy(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&s6(t.autenticacion)}function Ry(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.id=="string"&&(t.estado==="sin-autorizacion"||t.estado==="falta-autorizar"||t.estado==="autorizado")}function Py(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"}function qy(e){const t=e;if(!(typeof t!="object"||t===null||typeof t.cuando!="number")){if(t.ok===!0&&Array.isArray(t.tools))return{cuando:t.cuando,ok:!0,tools:t.tools.filter(Py).map(n=>({nombre:n.nombre,...typeof n.descripcion=="string"?{descripcion:n.descripcion}:{},...typeof n.soloLectura=="boolean"?{soloLectura:n.soloLectura}:{}}))};if(t.ok===!1&&typeof t.motivo=="string")return{cuando:t.cuando,ok:!1,motivo:t.motivo}}}function Fy(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.id!="string"||typeof t.nombre!="string"||t.credencial!=="puesta"&&t.credencial!=="falta"&&t.credencial!=="nativa"||t.error!==void 0&&typeof t.error!="string"||t.personalizado!==void 0&&typeof t.personalizado!="boolean"||t.baseUrl!==void 0&&typeof t.baseUrl!="string"||t.enFichero!==void 0&&typeof t.enFichero!="boolean"||t.modelos!==void 0&&(!Array.isArray(t.modelos)||!t.modelos.every(n=>typeof n=="object"&&n!==null&&typeof n.id=="string")))}function Xg(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.ruta!="string"||t.clase!=="nuevo"&&t.clase!=="modificado"&&t.clase!=="borrado"||t.mas!==void 0&&typeof t.mas!="number"||t.menos!==void 0&&typeof t.menos!="number"||t.sinCommitear!==void 0&&t.sinCommitear!==!0)}function Oy(e){if(typeof e!="object"||e===null)return{};const t=e;return t.veredicto!=="verde"&&t.veredicto!=="rojo"&&t.veredicto!=="indeterminado"?{}:typeof t.resumen!="string"?{}:{veredicto:{veredicto:t.veredicto,resumen:t.resumen,...Array.isArray(t.hallazgos)?{hallazgos:t.hallazgos.filter(n=>typeof n=="string")}:{},...typeof t.salvedad=="string"?{salvedad:t.salvedad}:{}}}}function xp(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function w0(e){const t=typeof e=="object"&&e!==null?e:{};return{entrada:xp(t.entrada),salida:xp(t.salida),cache:xp(t.cache)}}function l6(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t={};for(const[n,r]of Object.entries(e)){if(typeof r!="object"||r===null)continue;const a=r.cuenta;a!=="modelo"&&a!=="externo"||(t[n]={cuenta:a,...w0(r)})}return Object.keys(t).length===0?void 0:t}function By(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t=e,n=l6(t.porModelo);return{modelo:w0(t.modelo),externo:w0(t.externo),...n===void 0?{}:{porModelo:n}}}function Hy(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.titulo=="string")}function ep(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.nombre=="string")}function Yg(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Uy(){let e=Sy;const t=[],n=r=>{e={...e,...r};for(const a of t)a()};return{leer:()=>e,aplicar(r){var l,i,u,d,m,v,f;if(typeof r!="object"||r===null||!("clase"in r))return;switch(r.clase){case"acto":{const h=r.acto;if(!Jd(h))return;n({actos:[...e.actos,h]});return}case"sustitucion":{const h=r.acto;if(!Jd(h))return;n({actos:e.actos.length===0?[h]:[...e.actos.slice(0,-1),h]});return}case"reemision":{const h=r.actos;if(!Array.isArray(h)||!h.every(Jd))return;n({actos:[...h]});return}case"mirada":{const h=r,b=h.tarea,y=h.via,j=h.actos;if(typeof b!="string"||b===""||!Array.isArray(j)||!j.every(Jd))return;if(y==="todos"){n({mirada:{tarea:b,actos:[...j]}});return}const C=e.mirada;if(C===void 0||C.tarea!==b)return;if(y==="alta"){n({mirada:{tarea:b,actos:[...C.actos,...j]}});return}if(y!=="sustitucion")return;n({mirada:{tarea:b,actos:C.actos.length===0?[...j]:[...C.actos.slice(0,-1),...j]}});return}case"bienvenida":{const h=r.nombre;n({nombre:typeof h=="string"?h:void 0});return}case"pregunta":{const h=r;if(typeof h.texto!="string")return;n({pregunta:{texto:h.texto,...Dy(h.decision)?{decision:{lineas:h.decision.lineas.map(b=>{const y=Ty(b.cambio);return{texto:b.texto,...y===void 0?{}:{cambio:y},...typeof b.ruta=="string"?{ruta:b.ruta}:{}}}),...h.decision.seleccionable===!0?{seleccionable:!0}:{},...h.decision.operacion==="subir"||h.decision.operacion==="bajar"?{operacion:h.decision.operacion}:{}}}:{}}});return}case"selector":{const h=r.selector;if(!Ey(h))return;n({selector:{titulo:h.titulo,opciones:[...h.opciones],...typeof h.aviso=="string"?{aviso:h.aviso}:{}}});return}case"proyectosDeEntorno":{const h=r;if(typeof h.entorno!="string")return;const b=Array.isArray(h.proyectos)?h.proyectos.filter(y=>typeof y=="object"&&y!==null&&typeof y.id=="string"&&typeof y.nombre=="string").map(y=>({id:y.id,nombre:y.nombre,...typeof y.compartido=="boolean"?{compartido:y.compartido}:{},...typeof y.ultimoAcceso=="string"?{ultimoAcceso:y.ultimoAcceso}:{}})):void 0;n({proyectosPorEntorno:{...e.proyectosPorEntorno??{},[h.entorno]:{...b===void 0?{}:{proyectos:b},...typeof h.error=="string"?{error:h.error}:{}}}});return}case"modelos":{const h=r;if(!Array.isArray(h.proveedores))return;const b=h.esfuerzo,y=Array.isArray(b==null?void 0:b.niveles)?b.niveles.filter(N=>typeof N=="string"&&jy.includes(N)):[],j=y.length===0?void 0:{niveles:y,...typeof(b==null?void 0:b.actual)=="string"&&y.includes(b.actual)?{actual:b.actual}:{},...typeof(b==null?void 0:b.nota)=="string"?{nota:b.nota}:{}},C=h.proveedores.filter(Fy).map(N=>({id:N.id,nombre:N.nombre,credencial:N.credencial,...N.personalizado===void 0?{}:{personalizado:N.personalizado},...N.baseUrl===void 0?{}:{baseUrl:N.baseUrl},...N.enFichero===void 0?{}:{enFichero:N.enFichero},...N.modelos===void 0?{}:{modelos:[...N.modelos]},...N.error===void 0?{}:{error:N.error}}));n({modelos:{...typeof h.actual=="string"?{actual:h.actual}:{},...typeof h.porDefecto=="string"?{porDefecto:h.porDefecto}:{},proveedores:C,...j===void 0?{}:{esfuerzo:j}}});return}case"proveedor":{const h=r;if(typeof h.hecho!="boolean")return;n({proveedor:{hecho:h.hecho,...typeof h.motivo=="string"?{motivo:h.motivo}:{}}});return}case"dispositivos":{const h=r,b=h.arranque,y=typeof b=="object"&&b!==null&&typeof b.avd=="string"&&typeof b.ok=="boolean"&&typeof b.detalle=="string"?b:void 0,j=h.informe;if(j==null||typeof j!="object"||!Array.isArray(j.herramientas)||!Array.isArray(j.dispositivos)||!Array.isArray(j.avds)||typeof j.sistema!="string"||typeof j.medido!="string")return;n({dispositivos:{sistema:j.sistema,medido:j.medido,avds:j.avds.filter(C=>typeof C=="string"),recetas:(Array.isArray(j.recetas)?j.recetas:[]).filter(C=>typeof C=="object"&&C!==null&&typeof C.id=="string"&&Array.isArray(C.pasos)).map(C=>({id:C.id,plataforma:C.plataforma,titulo:String(C.titulo??""),descripcion:String(C.descripcion??""),completa:C.completa===!0,...typeof C.aparte=="object"&&C.aparte!==null&&typeof C.aparte.titulo=="string"&&Array.isArray(C.aparte.comandos)?{aparte:{titulo:C.aparte.titulo,comandos:C.aparte.comandos.filter(N=>typeof N=="string"),...typeof C.aparte.nota=="string"?{nota:C.aparte.nota}:{}}}:{},despues:String(C.despues??""),pasos:C.pasos.filter(N=>typeof N=="object"&&N!==null&&typeof N.titulo=="string"&&Array.isArray(N.comandos)).map(N=>({titulo:N.titulo,comandos:N.comandos.filter(z=>typeof z=="string"),hecho:N.hecho===!0,ejecutable:N.ejecutable===!0,...typeof N.nota=="string"?{nota:N.nota}:{},...typeof N.porQueNo=="string"?{porQueNo:N.porQueNo}:{},...typeof N.acepta=="string"?{acepta:N.acepta}:{},...typeof N.repetir=="object"&&N.repetir!==null&&typeof N.repetir.etiqueta=="string"&&typeof N.repetir.porQue=="string"?{repetir:{etiqueta:N.repetir.etiqueta,porQue:N.repetir.porQue}}:{}}))})),herramientas:j.herramientas.filter(C=>typeof C=="object"&&C!==null&&typeof C.nombre=="string"&&typeof C.estado=="string").map(C=>({nombre:C.nombre,plataforma:C.plataforma,estado:C.estado,...typeof C.ruta=="string"?{ruta:C.ruta}:{},...C.detalle===void 0?{}:{detalle:C.detalle},...typeof C.instalar=="object"&&C.instalar!==null&&typeof C.instalar.comando=="string"?{instalar:{comando:C.instalar.comando,automatico:C.instalar.automatico===!0}}:{}})),dispositivos:j.dispositivos.filter(C=>typeof C=="object"&&C!==null&&typeof C.id=="string"&&typeof C.nombre=="string"&&typeof C.estado=="string").map(C=>({id:C.id,nombre:C.nombre,plataforma:C.plataforma,clase:C.clase,estado:C.estado,...typeof C.avd=="string"?{avd:C.avd}:{},...C.detalle===void 0?{}:{detalle:C.detalle},...typeof C.verificado=="object"&&C.verificado!==null&&typeof C.verificado.detalle=="string"&&typeof C.verificado.medido=="string"?{verificado:{ok:C.verificado.ok===!0,detalle:C.verificado.detalle,medido:C.verificado.medido}}:{}}))},ajustesDeDispositivos:ky(h.ajustes),arranqueDeEmulador:y,enUsoDeDispositivos:Array.isArray(h.enUso)?h.enUso.filter(C=>typeof C=="object"&&C!==null&&typeof C.id=="string"&&typeof C.proyecto=="string").map(C=>({id:C.id,proyecto:C.proyecto})):void 0});return}case"agentes":{const h=r;if(!Array.isArray(h.agentes))return;n({agentes:{lista:h.agentes.filter(My).map(b=>({nombre:b.nombre,descripcion:b.descripcion,motor:b.motor,...b.modelo===void 0?{}:{modelo:b.modelo},soloLectura:b.soloLectura,...b.ejecucion===!0?{ejecucion:!0}:{},skills:[...b.skills],instrucciones:b.instrucciones,...b.origen===void 0?{}:{origen:b.origen},...b.semilla==="intacta"||b.semilla==="modificada"?{semilla:b.semilla}:{}})),problemas:Array.isArray(h.problemas)?h.problemas.filter(b=>typeof b=="string"):[]}});return}case"skills":{const h=r;if(!Array.isArray(h.skills))return;n({skills:{lista:h.skills.filter(Ly).map(b=>({nombre:b.nombre,descripcion:b.descripcion,origen:b.origen,tokens:b.tokens,ficheros:[...b.ficheros],...typeof b.frontmatter=="string"?{frontmatter:b.frontmatter}:{},...typeof b.cuerpo=="string"?{cuerpo:b.cuerpo}:{}})),problemas:Array.isArray(h.problemas)?h.problemas.filter(b=>typeof b=="string"):[]}});return}case"conectores":{const h=r;if(!Array.isArray(h.catalogo)||!Array.isArray(h.conectores))return;n({conectores:{catalogo:h.catalogo.filter(Iy).map(b=>({id:b.id,nombre:b.nombre,descripcion:b.descripcion,autenticacion:b.autenticacion})),conectores:h.conectores.filter(Ry).map(b=>{const y=qy(b.prueba);return{id:b.id,estado:b.estado,...y===void 0?{}:{prueba:y},...b.autorizando===!0?{autorizando:!0}:{}}}),desconocidos:Array.isArray(h.desconocidos)?h.desconocidos.filter(b=>typeof b=="string"):[],...h.ilegible===!0?{ilegible:!0}:{},...typeof h.error=="string"?{error:h.error}:{}}});return}case"cuerpoDeSkill":{const h=r;if(typeof h.nombre!="string")return;n({cuerposDeSkill:{...e.cuerposDeSkill??{},[h.nombre]:typeof h.cuerpo=="string"?h.cuerpo:void 0}});return}case"tarea":{const h=r;typeof h.encargo=="string"?n({encargoPropuesto:{encargo:h.encargo}}):typeof h.error=="string"&&n({encargoPropuesto:{error:h.error}});return}case"workspace":{const h=r;if(typeof h.ruta!="string")return;n({workspace:h.ruta,puedeElegirCarpeta:h.puedeElegir===!0});return}case"depuracion":{const h=r;if(typeof h.activa!="boolean")return;n({depuracionActiva:h.activa});return}case"modoPorDefecto":{const h=r;if(h.modo!=="supervisado"&&h.modo!=="autonomo")return;n({modoPorDefecto:h.modo});return}case"mudanzaDeWorkspace":{const h=r,b=h.progreso,y=h.resultado;if(typeof b=="object"&&b!==null&&["comprobar","copiar","verificar","borrar"].includes(b.fase)){const N={fase:b.fase};typeof b.proyecto=="string"&&(N.proyecto=b.proyecto),typeof b.entorno=="string"&&(N.entorno=b.entorno),typeof b.indice=="number"&&(N.indice=b.indice),typeof b.total=="number"&&(N.total=b.total),n({mudanzaDeWorkspace:{progreso:N}});return}const C=N=>Array.isArray(N)?N.filter(z=>typeof z=="string"):[];typeof y=="object"&&y!==null&&y.estado==="hecho"&&typeof y.mudadas=="number"?n({mudanzaDeWorkspace:{resultado:{estado:"hecho",mudadas:y.mudadas,restos:C(y.restos),avisos:C(y.avisos)}}}):typeof y=="object"&&y!==null&&y.estado==="rechazado"&&typeof y.motivo=="string"&&n({mudanzaDeWorkspace:{resultado:{estado:"rechazado",motivo:y.motivo}}});return}case"carpetaElegida":{const h=r,b=typeof h.ruta=="string"?h.ruta:void 0,y=(((l=e.carpetaElegida)==null?void 0:l.n)??0)+1;n({carpetaElegida:b===void 0?{n:y}:{n:y,ruta:b}});return}case"tareas":{const h=r;if(!Array.isArray(h.lista))return;const b=["nuevo","en-proceso","requiere-atencion","terminada"];n({tareas:{concurrencia:typeof h.concurrencia=="number"?h.concurrencia:2,corriendoAqui:h.corriendoAqui===!0,...typeof h.ejecutaOtroProceso=="boolean"?{ejecutaOtroProceso:h.ejecutaOtroProceso}:{},lista:h.lista.filter(y=>typeof y=="object"&&y!==null).map(y=>({id:String(y.id??""),proyecto:String(y.proyecto??""),proyectoNombre:String(y.proyectoNombre??""),titulo:String(y.titulo??""),peticion:String(y.peticion??""),encargo:String(y.encargo??""),estado:b.find(j=>j===y.estado)??"nuevo",creada:String(y.creada??""),adjuntos:Array.isArray(y.adjuntos)?y.adjuntos.filter(j=>typeof j=="object"&&j!==null).map(j=>({nombre:String(j.nombre??""),bytes:Number(j.bytes??0),...typeof j.mime=="string"?{mime:j.mime}:{}})):[],...typeof y.motivo=="string"?{motivo:y.motivo}:{},...typeof y.sesion=="string"?{sesion:y.sesion}:{},...typeof y.empezada=="string"?{empezada:y.empezada}:{},...typeof y.acabada=="string"?{acabada:y.acabada}:{},...Array.isArray(y.autorizadas)?{autorizadas:y.autorizadas.filter(j=>typeof j=="string")}:{},...Array.isArray(y.feedback)?{feedback:y.feedback.filter(j=>typeof j=="object"&&j!==null).map(j=>({texto:String(j.texto??""),creado:String(j.creado??""),consumido:j.consumido===!0}))}:{},...Oy(y.veredicto),...y.terminadaAMano===!0?{terminadaAMano:!0}:{}})).filter(y=>y.id!=="")}});return}case"revision":{const h=r;if(h.via!=="git"&&h.via!=="desde-apertura"&&h.via!=="sin-marca"&&h.via!=="sin-empezar"||!Array.isArray(h.ficheros))return;const b=h.ficheros.filter(Xg).map(y=>({...y}));n({revision:{via:h.via,lista:b,...typeof h.mezclados=="number"&&h.mezclados>0?{mezclados:h.mezclados}:{}}});return}case"pendientesDeSubida":{const h=r;n({pendientesDeSubida:{...Array.isArray(h.ficheros)?{lista:h.ficheros.filter(Xg).map(b=>({...b}))}:{},...typeof h.error=="string"?{error:h.error}:{}}});return}case"parcheDeSubida":{const h=r;if(typeof h.ruta!="string"||typeof h.texto!="string")return;n({parchesDeSubida:{...e.parchesDeSubida,[h.ruta]:{texto:h.texto,recortado:h.recortado===!0,...typeof h.negado=="string"?{negado:h.negado}:{}}}});return}case"parche":{const h=r;if(typeof h.ruta!="string"||typeof h.texto!="string")return;n({parches:{...e.parches,[h.ruta]:{texto:h.texto,recortado:h.recortado===!0}}});return}case"modeloDelCambio":{const h=r;if(typeof h.ruta!="string")return;const b=py(h.cambios);if(b===void 0&&typeof h.error!="string")return;n({modelosDelCambio:{...e.modelosDelCambio,[h.ruta]:{...b===void 0?{}:{cambios:b},...typeof h.error=="string"?{error:h.error}:{}}}});return}case"planes":{const h=r,b=V9(h.planes);if(b===void 0&&typeof h.error!="string")return;n({planes:{...b===void 0?{}:{lista:b},...typeof h.error=="string"?{error:h.error}:{}}});return}case"gestor":{const h=Q9(r),{error:b,borrador:y,cierre:j,cerrado:C,...N}=h;if(Object.keys(h).length===0)return;const z=e.gestor??{},E={...z.errores??{}},P=[...N.estado===void 0?[]:["estado","vincular","desvincular","usarConector"],...N.sitios===void 0?[]:["sitios"],...N.proyectos===void 0?[]:["proyectos"],...N.busqueda===void 0?[]:["buscarProyectos"],...N.descripcion===void 0?[]:["describir"],...N.pendientes===void 0?[]:["pendientes"],...N.ficha===void 0?[]:["ficha"],...y===void 0?[]:["empezar"],...N.transiciones===void 0?[]:["transiciones"],...j===void 0?[]:["borradorDeCierre"],...C===void 0?[]:["cerrar"]];for(const F of P)delete E[F];b!==void 0&&(E[b.accion]={motivo:b.motivo,...b.clave===void 0?{}:{clave:b.clave},...b.texto===void 0?{}:{texto:b.texto},...b.pedido===void 0?{}:{pedido:b.pedido}});const M=F=>F===void 0?void 0:`${F.conector}|${F.sitio}|${F.proyecto}`,L=N.estado!==void 0&&z.estado!==void 0&&M(z.estado.vinculo)!==M(N.estado.vinculo),{pendientes:U,ficha:W,transiciones:O,...q}=z;n({gestor:{...L?q:z,...N,...y===void 0?{}:{borrador:{...y,id:(((i=z.borrador)==null?void 0:i.id)??0)+1}},...j===void 0?{}:{cierre:{...j,id:(((u=z.cierre)==null?void 0:u.id)??0)+1}},...C===void 0?{}:{cerrado:{...C,id:(((d=z.cerrado)==null?void 0:d.id)??0)+1}},errores:E}});return}case"colecciones":{const h=r,b=my(h.foto);if(b===void 0&&typeof h.error!="string")return;n({colecciones:{...b===void 0?{}:{foto:b},...typeof h.error=="string"?{error:h.error}:{}}});return}case"arbol":{const h=r;if(!Array.isArray(h.rutas)||!h.rutas.every(b=>typeof b=="string"))return;n({arbol:{rutas:h.rutas,recortado:h.recortado===!0,...typeof h.error=="string"?{error:h.error}:{}}});return}case"sync":{const h=r;n({sync:{...typeof h.proyecto=="string"?{proyecto:h.proyecto}:{},...typeof h.rama=="string"?{rama:h.rama}:{},...typeof h.pendientes=="number"&&Number.isFinite(h.pendientes)?{pendientes:h.pendientes}:{},...typeof h.deLaSesion=="number"&&Number.isFinite(h.deLaSesion)?{deLaSesion:h.deLaSesion}:{},...typeof h.error=="string"?{error:h.error}:{}}});return}case"fichero":{const h=r;if(typeof h.ruta!="string"||typeof h.bytes!="number")return;n({contenidos:{...e.contenidos,[h.ruta]:{ruta:h.ruta,bytes:h.bytes,recortado:h.recortado===!0,binario:h.binario===!0,...typeof h.texto=="string"?{texto:h.texto}:{},...h.codificacion==="utf-8"||h.codificacion==="latin1"?{codificacion:h.codificacion}:{},...typeof h.mime=="string"?{mime:h.mime}:{},...typeof h.base64=="string"?{base64:h.base64}:{},...typeof h.vista=="string"?{vista:h.vista}:{},...typeof h.huella=="string"?{huella:h.huella}:{},...typeof h.error=="string"?{error:h.error}:{}}}});return}case"ficheroGuardado":{const h=r;if(typeof h.ruta!="string")return;n({ultimoGuardado:{ruta:h.ruta,...typeof h.id=="string"?{id:h.id}:{},...typeof h.huella=="string"?{huella:h.huella}:{},...typeof h.error=="string"?{error:h.error}:{},secuencia:(((m=e.ultimoGuardado)==null?void 0:m.secuencia)??0)+1}});return}case"baseDeFichero":{const h=r;if(typeof h.ruta!="string"||h.base!=="sesion"&&h.base!=="commit")return;n({bases:{...e.bases,[h.ruta]:{ruta:h.ruta,base:h.base,...typeof h.texto=="string"?{texto:h.texto}:{},...h.vacio===!0?{vacio:!0}:{},...typeof h.sinBase=="string"?{sinBase:h.sinBase}:{}}}});return}case"modelosDeMotor":{const h=r;if(typeof h.motor!="string"||!Array.isArray(h.modelos))return;n({modelosDeMotor:{...e.modelosDeMotor,[h.motor]:{modelos:h.modelos.filter(b=>typeof b=="object"&&b!==null&&typeof b.id=="string").map(b=>({id:b.id,nombre:typeof b.nombre=="string"?b.nombre:b.id})),...typeof h.error=="string"?{error:h.error}:{}}}});return}case"instalacion":{const h=r,y=["corriendo","ok","fallo","cancelada","colgada"].find(j=>j===h.estado);if(typeof h.receta!="string"||typeof h.paso!="number"||y===void 0)return;n({instalacion:{receta:h.receta,paso:h.paso,titulo:typeof h.titulo=="string"?h.titulo:"",estado:y,lineas:Array.isArray(h.lineas)?h.lineas.filter(j=>typeof j=="string"):[],ms:typeof h.ms=="number"?h.ms:0,...typeof h.motivo=="string"?{motivo:h.motivo}:{}}});return}case"lanzable":{const h=r,b=h.faltas;if(typeof h.proyecto!="string"||typeof h.listo!="boolean"||typeof h.medido!="string"||!Array.isArray(b)||!b.every(j=>typeof j=="string"))return;const y=h.dispositivo;n({lanzable:{proyecto:h.proyecto,listo:h.listo,faltas:b,medido:h.medido,...typeof h.app=="string"?{app:h.app}:{},...ih(y)?{dispositivo:{id:y.id,nombre:y.nombre,plataforma:y.plataforma,clase:y.clase}}:{}}});return}case"lanzamiento":{const h=r,b=xy.find(N=>N===h.fase),y=_y.find(N=>N===h.estado);if(b===void 0||y===void 0||typeof h.ms!="number")return;const j=h.lineas;if(!Array.isArray(j))return;const C=h.dispositivo;n({lanzamiento:{fase:b,estado:y,lineas:j.filter(N=>typeof N=="string"),ms:h.ms,...typeof h.proyecto=="string"?{proyecto:h.proyecto}:{},...ih(C)?{dispositivo:{id:C.id,nombre:C.nombre,plataforma:C.plataforma,clase:C.clase}}:{},...typeof h.motivo=="string"?{motivo:h.motivo}:{}}});return}case"artefacto":{const h=r;if(typeof h.ruta!="string"||typeof h.bytes!="number")return;n({artefactos:{...e.artefactos,[h.ruta]:{ruta:h.ruta,bytes:h.bytes,recortado:h.recortado===!0,binario:h.binario===!0,...typeof h.texto=="string"?{texto:h.texto}:{},...h.codificacion==="utf-8"||h.codificacion==="latin1"?{codificacion:h.codificacion}:{},...typeof h.mime=="string"?{mime:h.mime}:{},...typeof h.base64=="string"?{base64:h.base64}:{},...typeof h.error=="string"?{error:h.error}:{}}}});return}case"abriendo":{const h=r;if(h.activo!==!0){n({abriendo:void 0});return}n({abriendo:{...typeof h.proyecto=="string"?{proyecto:h.proyecto}:{},...typeof h.sesion=="string"?{sesion:h.sesion}:{},...typeof h.entorno=="string"?{entorno:h.entorno}:{},...h.descargando===!0?{descargando:!0}:{}}});return}case"consumo":{const h=r,b=l6(h.porModelo),y=typeof h.ventana=="object"&&h.ventana!==null?h.ventana:{},j=typeof y.tope=="number"&&Number.isFinite(y.tope)&&y.tope>0?y.tope:void 0;n({consumo:{modelo:w0(h.modelo),externo:w0(h.externo),ventana:{usado:xp(y.usado),...j===void 0?{}:{tope:j}},...b===void 0?{}:{porModelo:b}}});return}case"turno":{const h=r.activo;if(typeof h!="boolean")return;n({turnoEnVuelo:h,turnoDetenible:h&&r.detenible===!0});return}case"secreto":{const h=r.pregunta;if(typeof h!="string")return;n({secreto:{pregunta:h}});return}case"alta":{const h=r;if(!Array.isArray(h.pasos)||!h.pasos.every(E=>typeof E=="string"&&$y.has(E))||!ep(h.proveedores)||!ep(h.proyectos))return;const b=h.proyectos.map(E=>{const P=E.sesiones;return{id:E.id,nombre:E.nombre,...Hy(P)?{sesiones:P.map(M=>{const L=By(M.consumo);return{id:M.id,titulo:M.titulo,...typeof M.ultimoTurno=="string"?{ultimoTurno:M.ultimoTurno}:{},...M.deTarea===!0?{deTarea:!0}:{},...M.trabajando===!0?{trabajando:!0}:{},...L===void 0?{}:{consumo:L},...typeof M.ticket=="string"&&M.ticket!==""?{ticket:M.ticket}:{},...typeof M.ticket=="string"&&M.ticket!==""&&typeof M.ticketConector=="string"&&M.ticketConector!==""?{ticketConector:M.ticketConector}:{}}})}:{},...E.local===!0?{local:!0}:{},...(M=>typeof M=="string"&&M!==""?{rama:M}:{})(E.rama),...E.icono===!0?{icono:!0}:{},...E.trabajando===!0?{trabajando:!0}:{},...typeof E.compartido=="boolean"?{compartido:E.compartido}:{},...typeof E.ultimoAcceso=="string"?{ultimoAcceso:E.ultimoAcceso}:{}}});if(!Array.isArray(h.entornos)||!h.entornos.every(E=>typeof(E==null?void 0:E.url)=="string")||!ep(h.entornos))return;const y=Array.isArray(h.registrados)&&h.registrados.every(E=>typeof(E==null?void 0:E.url)=="string")&&ep(h.registrados)?h.registrados.map(E=>({id:E.id,nombre:E.nombre,url:E.url,...Array.isArray(E.proyectos)&&E.proyectos.every(P=>typeof P=="string")?{proyectos:E.proyectos}:{},...Array.isArray(E.fijados)&&E.fijados.every(P=>typeof P=="string")?{fijados:E.fijados}:{},...typeof E.copias=="number"&&Number.isInteger(E.copias)&&E.copias>=0?{copias:E.copias}:{}})):[];if(!Array.isArray(h.ramas)||!h.ramas.every(E=>typeof E=="string")||typeof h.proyectoAbierto!="boolean")return;const C=(typeof h.sesionActiva=="string"?h.sesionActiva:void 0)!==((v=e.alta)==null?void 0:v.sesionActiva),z=(typeof h.proyectoActivo=="string"?h.proyectoActivo:void 0)!==((f=e.alta)==null?void 0:f.proyectoActivo);n({...z?{gestor:void 0}:{},...C?{revision:void 0,parches:void 0,pendientesDeSubida:void 0,parchesDeSubida:void 0,modelosDelCambio:void 0,arbol:void 0,contenidos:void 0,bases:void 0,colecciones:void 0,planes:void 0,artefactos:void 0,sync:void 0}:{},alta:{pasos:h.pasos,proveedores:h.proveedores,entornos:h.entornos,registrados:y,proyectos:b,ramas:h.ramas,...typeof h.ramasDe=="string"?{ramasDe:h.ramasDe}:{},proyectoAbierto:h.proyectoAbierto,...typeof h.aviso=="string"?{aviso:h.aviso}:{},...typeof h.preparando=="string"?{preparando:h.preparando}:{},...typeof h.nombre=="string"?{nombre:h.nombre}:{},...typeof h.entornoActivo=="string"?{entornoActivo:h.entornoActivo}:{},...typeof h.proyectoActivo=="string"?{proyectoActivo:h.proyectoActivo}:{},...typeof h.sesionActiva=="string"?{sesionActiva:h.sesionActiva}:{},...ih(h.dispositivoActivo)?{dispositivoActivo:h.dispositivoActivo}:{},...h.historica===!0?{historica:!0}:{},...h.modoDeEscritura==="supervisado"||h.modoDeEscritura==="autonomo"?{modoDeEscritura:h.modoDeEscritura}:{},...Ny(h.trabajoAlAbrir)?{trabajoAlAbrir:h.trabajoAlAbrir}:{},...h.modo==="offline"||h.modo==="cloud"?{modo:h.modo}:{},...typeof h.version=="string"?{version:h.version}:{}}});return}case"aprobacion":{const h=r;if(!Array.isArray(h.pendientes)||!Yg(h.ficheros)||!Yg(h.diffs))return;n({aprobacion:{pendientes:h.pendientes,ficheros:h.ficheros,diffs:h.diffs}});return}default:return}},marcarConectado(){n({conectado:!0})},limpiarEncargoPropuesto(){n({encargoPropuesto:void 0})},marcarDesconectado(){n({conectado:!1,pregunta:void 0,selector:void 0,secreto:void 0,aprobacion:void 0,modelos:void 0,proyectosPorEntorno:void 0,proveedor:void 0,abriendo:void 0,turnoEnVuelo:!1,turnoDetenible:!1,consumo:void 0,revision:void 0,parches:void 0,pendientesDeSubida:void 0,parchesDeSubida:void 0,modelosDelCambio:void 0,arbol:void 0,contenidos:void 0,bases:void 0,colecciones:void 0,planes:void 0,gestor:void 0,artefactos:void 0,sync:void 0,agentes:void 0,skills:void 0,cuerposDeSkill:void 0,mudanzaDeWorkspace:void 0,conectores:void 0,mirada:void 0,lanzable:void 0,lanzamiento:void 0})},contestarPregunta(){n({pregunta:void 0})},contestarSecreto(){n({secreto:void 0})},dejarDeMirar(){n({mirada:void 0})},contestarSelector(r){r!==void 0&&e.selector!==r||n({selector:void 0})},cerrarAprobacion(){n({aprobacion:void 0})},suscribir(r){return t.push(r),()=>{const a=t.indexOf(r);a>=0&&t.splice(a,1)}}}}const Vy=e=>new EventSource(e);function Gy(e){return Math.min(1e3*2**e,3e4)}function Wy(){return`c${Date.now().toString(36)}${Math.random().toString(36).slice(2,8)}`}async function lh(e,t,n){var i;let r;try{r=await e(t,{method:"POST",credentials:"same-origin",body:n})}catch(u){return{ok:!1,motivo:u instanceof Error?u.message:"no se pudo subir"}}const a=r;if((a==null?void 0:a.ok)===!0)return{ok:!0,respuesta:a};const l=await((i=a==null?void 0:a.text)==null?void 0:i.call(a).catch(()=>""))??"";return{ok:!1,motivo:l.trim()===""?`el servidor contestó ${String((a==null?void 0:a.status)??"?")}`:l.trim()}}function Zy(e,t={}){const n=t.fabricaDeEventos??Vy,r=t.fetch??((b,y)=>fetch(b,y)),a=t.temporizador??((b,y)=>setTimeout(b,y)),l=t.cancelarTemporizador??(b=>clearTimeout(b));let i=0,u,d,m=!1;const v=t.idDeCliente??Wy(),f=()=>{const b=n(`/eventos?cliente=${v}`);d=b,b.onopen=()=>{i=0,e.marcarConectado()},b.onmessage=y=>{let j;try{j=JSON.parse(y.data)}catch{return}e.aplicar(j)},b.onerror=()=>{if(b.close(),e.marcarDesconectado(),m)return;const y=Gy(i);i+=1,u=a(f,y)}};f();const h=b=>r("/accion",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(b)});return{cerrar(){m=!0,u!==void 0&&l(u),d==null||d.close()},mirar(b,y){return h({clase:"mirar",tarea:b,ver:y,cliente:v})},enviar:h,async subirAdjunto(b,y,j){const C=`/adjunto?tarea=${encodeURIComponent(b)}&nombre=${encodeURIComponent(y)}`,N=await lh(r,C,j);return N.ok?{ok:!0}:{ok:!1,motivo:N.motivo}},async subirAdjuntoDeSesion(b,y){var E,P;const j=`/adjunto?para=sesion&nombre=${encodeURIComponent(b)}`,C=await lh(r,j,y);if(!C.ok)return{ok:!1,motivo:C.motivo};let N;try{N=await((P=(E=C.respuesta)==null?void 0:E.json)==null?void 0:P.call(E))}catch{return{ok:!1,motivo:"el servidor no contestó con el nombre del adjunto"}}const z=N==null?void 0:N.nombre;return typeof z!="string"||z===""?{ok:!1,motivo:"el servidor no contestó con el nombre del adjunto"}:{ok:!0,nombre:z}},async instalarSkill(b,y,j){const C=`/skill?nombre=${encodeURIComponent(b)}&ambito=${encodeURIComponent(y)}`,N=await lh(r,C,j);return N.ok?{ok:!0}:{ok:!1,motivo:N.motivo}}}}const Qy="modulepreload",Xy=function(e,t){return new URL(e,t).href},Kg={},un=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let i=function(v){return Promise.all(v.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const u=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),m=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=i(n.map(v=>{if(v=Xy(v,r),v in Kg)return;Kg[v]=!0;const f=v.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!r)for(let j=u.length-1;j>=0;j--){const C=u[j];if(C.href===v&&(!f||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${h}`))return;const y=document.createElement("link");if(y.rel=f?"stylesheet":Qy,f||(y.as="script"),y.crossOrigin="",y.href=v,m&&y.setAttribute("nonce",m),document.head.appendChild(y),f)return new Promise((j,C)=>{y.addEventListener("load",j),y.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${v}`)))})}))}function l(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return a.then(i=>{for(const u of i||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};function c6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=c6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=c6(e))&&(r&&(r+=" "),r+=t);return r}var Yy=r6(),dn=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ky(e){return m2(e)}function m2(e){return Array.isArray(e)?Jy(e):e instanceof RegExp?e:typeof e=="object"?ex(e):e}function Jy(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=m2(e[n]);return t}function ex(e){let t={};for(let n in e)t[n]=m2(e[n]);return t}function u6(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function d6(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?d6(e.substring(0,e.length-1)):e.substr(~t+1)}var ch=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,tp=class{static hasCaptures(e){return e===null?!1:(ch.lastIndex=0,ch.test(e))}static replaceCaptures(e,t,n){return e.replace(ch,(r,a,l,i)=>{let u=n[parseInt(a||l,10)];if(u){let d=t.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(i){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function p6(e,t){return e<t?-1:e>t?1:0}function m6(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let l=p6(e[a],t[a]);if(l!==0)return l}return 0}return n-r}function Jg(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function h6(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var f6=class{constructor(e){se(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Ap=class{constructor(e,t,n){se(this,"_cachedMatchRoot",new f6(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(rx(e),t)}static createFromParsedTheme(e,t){return ox(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>tx(e.parent,a.parentScopes));return r?new g6(r.fontStyle,r.foreground,r.background):null}},uh=class _p{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new _p(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new _p(n,t[r]);return n}push(t){return new _p(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function tx(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!nx(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function nx(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var g6=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function rx(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,l=t.length;a<l;a++){let i=t[a];if(!i.settings)continue;let u;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),u=f.split(",")}else Array.isArray(i.scope)?u=i.scope:u=[""];let d=-1;if(typeof i.settings.fontStyle=="string"){d=0;let f=i.settings.fontStyle.split(" ");for(let h=0,b=f.length;h<b;h++)switch(f[h]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let m=null;typeof i.settings.foreground=="string"&&Jg(i.settings.foreground)&&(m=i.settings.foreground);let v=null;typeof i.settings.background=="string"&&Jg(i.settings.background)&&(v=i.settings.background);for(let f=0,h=u.length;f<h;f++){let y=u[f].trim().split(" "),j=y[y.length-1],C=null;y.length>1&&(C=y.slice(0,y.length-1),C.reverse()),n[r++]=new ax(j,C,a,d,m,v)}}return n}var ax=class{constructor(e,t,n,r,a,l){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=l}},Dr=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Dr||{});function ox(e,t){e.sort((d,m)=>{let v=p6(d.scope,m.scope);return v!==0||(v=m6(d.parentScopes,m.parentScopes),v!==0)?v:d.index-m.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let l=new sx(t),i=new g6(n,l.getId(r),l.getId(a)),u=new lx(new of(0,null,-1,0,0),[]);for(let d=0,m=e.length;d<m;d++){let v=e[d];u.insert(0,v.scope,v.parentScopes,v.fontStyle,l.getId(v.foreground),l.getId(v.background))}return new Ap(l,i,u)}var sx=class{constructor(e){se(this,"_isFrozen");se(this,"_lastColorId");se(this,"_id2color");se(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ix=Object.freeze([]),of=class v6{constructor(t,n,r,a,l){se(this,"scopeDepth");se(this,"parentScopes");se(this,"fontStyle");se(this,"foreground");se(this,"background");this.scopeDepth=t,this.parentScopes=n||ix,this.fontStyle=r,this.foreground=a,this.background=l}clone(){return new v6(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},lx=class sf{constructor(t,n=[],r={}){se(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const l=n.parentScopes[a].length-t.parentScopes[r].length;if(l!==0)return l;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,l;if(r===-1?(a=t,l=""):(a=t.substring(0,r),l=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(l)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(sf._cmpBySpecificity),n}insert(t,n,r,a,l,i){if(n===""){this._doInsertHere(t,r,a,l,i);return}let u=n.indexOf("."),d,m;u===-1?(d=n,m=""):(d=n.substring(0,u),m=n.substring(u+1));let v;this._children.hasOwnProperty(d)?v=this._children[d]:(v=new sf(this._mainRule.clone(),of.cloneArr(this._rulesWithParentScopes)),this._children[d]=v),v.insert(t+1,m,r,a,l,i)}_doInsertHere(t,n,r,a,l){if(n===null){this._mainRule.acceptOverwrite(t,r,a,l);return}for(let i=0,u=this._rulesWithParentScopes.length;i<u;i++){let d=this._rulesWithParentScopes[i];if(m6(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,l);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),l===0&&(l=this._mainRule.background),this._rulesWithParentScopes.push(new of(t,n,r,a,l))}},Fl=class Ka{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ka.getLanguageId(t),r=Ka.getTokenType(t),a=Ka.getFontStyle(t),l=Ka.getForeground(t),i=Ka.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:l,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,l,i,u){let d=Ka.getLanguageId(t),m=Ka.getTokenType(t),v=Ka.containsBalancedBrackets(t)?1:0,f=Ka.getFontStyle(t),h=Ka.getForeground(t),b=Ka.getBackground(t);return n!==0&&(d=n),r!==8&&(m=r),a!==null&&(v=a?1:0),l!==-1&&(f=l),i!==0&&(h=i),u!==0&&(b=u),(d<<0|m<<8|v<<10|f<<11|h<<15|b<<24)>>>0}};function Ep(e,t){const n=[],r=cx(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let m=i();if(n.push({matcher:m,priority:d}),a!==",")break;a=r.next()}return n;function l(){if(a==="-"){a=r.next();const d=l();return m=>!!d&&!d(m)}if(a==="("){a=r.next();const d=u();return a===")"&&(a=r.next()),d}if(e3(a)){const d=[];do d.push(a),a=r.next();while(e3(a));return m=>t(d,m)}return null}function i(){const d=[];let m=l();for(;m;)d.push(m),m=l();return v=>d.every(f=>f(v))}function u(){const d=[];let m=i();for(;m&&(d.push(m),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");m=i()}return v=>d.some(f=>f(v))}}function e3(e){return!!e&&!!e.match(/[\w\.:]+/)}function cx(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function b6(e){typeof e.dispose=="function"&&e.dispose()}var j0=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ux=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},dx=class{constructor(){se(this,"_references",[]);se(this,"_seenReferenceKeys",new Set);se(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},px=class{constructor(e,t){se(this,"seenFullScopeRequests",new Set);se(this,"seenPartialScopeRequests",new Set);se(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new j0(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new dx;for(const n of e)mx(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof j0){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function mx(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const l=n.lookup(t);e instanceof j0?wp({baseGrammar:l,selfGrammar:a},r):lf(e.ruleName,{baseGrammar:l,selfGrammar:a,repository:a.repository},r);const i=n.injections(e.scopeName);if(i)for(const u of i)r.add(new j0(u))}function lf(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Dp([r],t,n)}}function wp(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Dp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Dp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Dp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?u6({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Dp(r.patterns,{...t,repository:a},n);const l=r.include;if(!l)continue;const i=y6(l);switch(i.kind){case 0:wp({...t,selfGrammar:t.baseGrammar},n);break;case 1:wp(t,n);break;case 2:lf(i.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const d={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};i.kind===4?lf(i.ruleName,d,n):wp(d,n)}else i.kind===4?n.add(new ux(i.scopeName,i.ruleName)):n.add(new j0(i.scopeName));break}}}var hx=class{constructor(){se(this,"kind",0)}},fx=class{constructor(){se(this,"kind",1)}},gx=class{constructor(e){se(this,"kind",2);this.ruleName=e}},vx=class{constructor(e){se(this,"kind",3);this.scopeName=e}},bx=class{constructor(e,t){se(this,"kind",4);this.scopeName=e,this.ruleName=t}};function y6(e){if(e==="$base")return new hx;if(e==="$self")return new fx;const t=e.indexOf("#");if(t===-1)return new vx(e);if(t===0)return new gx(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new bx(n,r)}}var yx=/\\(\d+)/,t3=/\\(\d+)/g,xx=-1,x6=-2;var L0=class{constructor(e,t,n,r){se(this,"$location");se(this,"id");se(this,"_nameIsCapturing");se(this,"_name");se(this,"_contentNameIsCapturing");se(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=tp.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=tp.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${d6(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:tp.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:tp.replaceCaptures(this._contentName,e,t)}},_x=class extends L0{constructor(t,n,r,a,l){super(t,n,r,a);se(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=l}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},wx=class extends L0{constructor(t,n,r,a,l){super(t,n,r,null);se(this,"_match");se(this,"captures");se(this,"_cachedCompiledPatterns");this._match=new C0(a,this.id),this.captures=l,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new k0,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},n3=class extends L0{constructor(t,n,r,a,l){super(t,n,r,a);se(this,"hasMissingPatterns");se(this,"patterns");se(this,"_cachedCompiledPatterns");this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new k0,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},cf=class extends L0{constructor(t,n,r,a,l,i,u,d,m,v){super(t,n,r,a);se(this,"_begin");se(this,"beginCaptures");se(this,"_end");se(this,"endHasBackReferences");se(this,"endCaptures");se(this,"applyEndPatternLast");se(this,"hasMissingPatterns");se(this,"patterns");se(this,"_cachedCompiledPatterns");this._begin=new C0(l,this.id),this.beginCaptures=i,this._end=new C0(u||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=m||!1,this.patterns=v.patterns,this.hasMissingPatterns=v.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new k0;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},zp=class extends L0{constructor(t,n,r,a,l,i,u,d,m){super(t,n,r,a);se(this,"_begin");se(this,"beginCaptures");se(this,"whileCaptures");se(this,"_while");se(this,"whileHasBackReferences");se(this,"hasMissingPatterns");se(this,"patterns");se(this,"_cachedCompiledPatterns");se(this,"_cachedCompiledWhilePatterns");this._begin=new C0(l,this.id),this.beginCaptures=i,this.whileCaptures=d,this._while=new C0(u,x6),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new k0;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new k0,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},_6=class $r{static createCaptureRule(t,n,r,a,l){return t.registerRule(i=>new _x(n,i,r,a,l))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new wx(t.$vscodeTextmateLocation,t.id,t.name,t.match,$r._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=u6({},r,t.repository));let l=t.patterns;return typeof l>"u"&&t.include&&(l=[{include:t.include}]),new n3(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,$r._compilePatterns(l,n,r))}return t.while?new zp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,$r._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,$r._compileCaptures(t.whileCaptures||t.captures,n,r),$r._compilePatterns(t.patterns,n,r)):new cf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,$r._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,$r._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,$r._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let l=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const u=parseInt(i,10);u>l&&(l=u)}for(let i=0;i<=l;i++)a[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const u=parseInt(i,10);let d=0;t[i].patterns&&(d=$r.getCompiledRuleId(t[i],n,r)),a[u]=$r.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let l=0,i=t.length;l<i;l++){const u=t[l];let d=-1;if(u.include){const m=y6(u.include);switch(m.kind){case 0:case 1:d=$r.getCompiledRuleId(r[u.include],n,r);break;case 2:let v=r[m.ruleName];v&&(d=$r.getCompiledRuleId(v,n,r));break;case 3:case 4:const f=m.scopeName,h=m.kind===4?m.ruleName:null,b=n.getExternalGrammar(f,r);if(b)if(h){let y=b.repository[h];y&&(d=$r.getCompiledRuleId(y,n,b.repository))}else d=$r.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=$r.getCompiledRuleId(u,n,r);if(d!==-1){const m=n.getRule(d);let v=!1;if((m instanceof n3||m instanceof cf||m instanceof zp)&&m.hasMissingPatterns&&m.patterns.length===0&&(v=!0),v)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},C0=class w6{constructor(t,n){se(this,"source");se(this,"ruleId");se(this,"hasAnchor");se(this,"hasBackReferences");se(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let a=0,l=[],i=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const m=t.charAt(u+1);m==="z"?(l.push(t.substring(a,u)),l.push("$(?!\\n)(?<!\\n)"),a=u+2):(m==="A"||m==="G")&&(i=!0),u++}this.hasAnchor=i,a===0?this.source=t:(l.push(t.substring(a,r)),this.source=l.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=yx.test(this.source):this.hasBackReferences=!1}clone(){return new w6(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return t3.lastIndex=0,this.source.replace(t3,(a,l)=>h6(r[parseInt(l,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],l,i,u,d;for(l=0,i=this.source.length;l<i;l++)u=this.source.charAt(l),t[l]=u,n[l]=u,r[l]=u,a[l]=u,u==="\\"&&l+1<i&&(d=this.source.charAt(l+1),d==="A"?(t[l+1]="",n[l+1]="",r[l+1]="A",a[l+1]="A"):d==="G"?(t[l+1]="",n[l+1]="G",r[l+1]="",a[l+1]="G"):(t[l+1]=d,n[l+1]=d,r[l+1]=d,a[l+1]=d),l++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},k0=class{constructor(){se(this,"_items");se(this,"_hasAnchors");se(this,"_cached");se(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new r3(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new r3(e,r,this._items.map(a=>a.ruleId))}},r3=class{constructor(e,t,n){se(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
42
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},dh=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Gs,jx=(Gs=class{constructor(t,n){se(this,"_defaultAttributes");se(this,"_embeddedLanguagesMatcher");se(this,"_getBasicScopeAttributes",new f6(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new dh(n,r)}));this._defaultAttributes=new dh(t,8),this._embeddedLanguagesMatcher=new Cx(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Gs._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Gs.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},se(Gs,"_NULL_SCOPE_METADATA",new dh(0,0)),se(Gs,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Gs),Cx=class{constructor(e){se(this,"values");se(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>h6(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},a3=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function j6(e,t,n,r,a,l,i,u){const d=t.content.length;let m=!1,v=-1;if(i){const b=kx(e,t,n,r,a,l);a=b.stack,r=b.linePos,n=b.isFirstLine,v=b.anchorPosition}const f=Date.now();for(;!m;){if(u!==0&&Date.now()-f>u)return new a3(a,!0);h()}return new a3(a,!1);function h(){const b=Nx(e,t,n,r,a,v);if(!b){l.produce(a,d),m=!0;return}const y=b.captureIndices,j=b.matchedRuleId,C=y&&y.length>0?y[0].end>r:!1;if(j===xx){const N=a.getRule(e);l.produce(a,y[0].start),a=a.withContentNameScopesList(a.nameScopesList),p0(e,t,n,a,l,N.endCaptures,y),l.produce(a,y[0].end);const z=a;if(a=a.parent,v=z.getAnchorPos(),!C&&z.getEnterPos()===r){a=z,l.produce(a,d),m=!0;return}}else{const N=e.getRule(j);l.produce(a,y[0].start);const z=a,E=N.getName(t.content,y),P=a.contentNameScopesList.pushAttributed(E,e);if(a=a.push(j,r,v,y[0].end===d,null,P,P),N instanceof cf){const M=N;p0(e,t,n,a,l,M.beginCaptures,y),l.produce(a,y[0].end),v=y[0].end;const L=M.getContentName(t.content,y),U=P.pushAttributed(L,e);if(a=a.withContentNameScopesList(U),M.endHasBackReferences&&(a=a.withEndRule(M.getEndWithResolvedBackReferences(t.content,y))),!C&&z.hasSameRuleAs(a)){a=a.pop(),l.produce(a,d),m=!0;return}}else if(N instanceof zp){const M=N;p0(e,t,n,a,l,M.beginCaptures,y),l.produce(a,y[0].end),v=y[0].end;const L=M.getContentName(t.content,y),U=P.pushAttributed(L,e);if(a=a.withContentNameScopesList(U),M.whileHasBackReferences&&(a=a.withEndRule(M.getWhileWithResolvedBackReferences(t.content,y))),!C&&z.hasSameRuleAs(a)){a=a.pop(),l.produce(a,d),m=!0;return}}else if(p0(e,t,n,a,l,N.captures,y),l.produce(a,y[0].end),a=a.pop(),!C){a=a.safePop(),l.produce(a,d),m=!0;return}}y[0].end>r&&(r=y[0].end,n=!1)}}function kx(e,t,n,r,a,l){let i=a.beginRuleCapturedEOL?0:-1;const u=[];for(let d=a;d;d=d.pop()){const m=d.getRule(e);m instanceof zp&&u.push({rule:m,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:m,findOptions:v}=Ax(d.rule,e,d.stack.endRule,n,r===i),f=m.findNextMatchSync(t,r,v);if(f){if(f.ruleId!==x6){a=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(l.produce(d.stack,f.captureIndices[0].start),p0(e,t,n,d.stack,l,d.rule.whileCaptures,f.captureIndices),l.produce(d.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:i,isFirstLine:n}}function Nx(e,t,n,r,a,l){const i=Sx(e,t,n,r,a,l),u=e.getInjections();if(u.length===0)return i;const d=$x(u,e,t,n,r,a,l);if(!d)return i;if(!i)return d;const m=i.captureIndices[0].start,v=d.captureIndices[0].start;return v<m||d.priorityMatch&&v===m?d:i}function Sx(e,t,n,r,a,l){const i=a.getRule(e),{ruleScanner:u,findOptions:d}=C6(i,e,a.endRule,n,r===l),m=u.findNextMatchSync(t,r,d);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function $x(e,t,n,r,a,l,i){let u=Number.MAX_VALUE,d=null,m,v=0;const f=l.contentNameScopesList.getScopeNames();for(let h=0,b=e.length;h<b;h++){const y=e[h];if(!y.matcher(f))continue;const j=t.getRule(y.ruleId),{ruleScanner:C,findOptions:N}=C6(j,t,null,r,a===i),z=C.findNextMatchSync(n,a,N);if(!z)continue;const E=z.captureIndices[0].start;if(!(E>=u)&&(u=E,d=z.captureIndices,m=z.ruleId,v=y.priority,u===a))break}return d?{priorityMatch:v===-1,captureIndices:d,matchedRuleId:m}:null}function C6(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Ax(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function p0(e,t,n,r,a,l,i){if(l.length===0)return;const u=t.content,d=Math.min(l.length,i.length),m=[],v=i[0].end;for(let f=0;f<d;f++){const h=l[f];if(h===null)continue;const b=i[f];if(b.length===0)continue;if(b.start>v)break;for(;m.length>0&&m[m.length-1].endPos<=b.start;)a.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?a.produceFromScopes(m[m.length-1].scopes,b.start):a.produce(r,b.start),h.retokenizeCapturedWithRuleId){const j=h.getName(u,i),C=r.contentNameScopesList.pushAttributed(j,e),N=h.getContentName(u,i),z=C.pushAttributed(N,e),E=r.push(h.retokenizeCapturedWithRuleId,b.start,-1,!1,null,C,z),P=e.createOnigString(u.substring(0,b.end));j6(e,P,n&&b.start===0,b.start,E,a,!1,0),b6(P);continue}const y=h.getName(u,i);if(y!==null){const C=(m.length>0?m[m.length-1].scopes:r.contentNameScopesList).pushAttributed(y,e);m.push(new Ex(C,b.end))}}for(;m.length>0;)a.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var Ex=class{constructor(e,t){se(this,"scopes");se(this,"endPos");this.scopes=e,this.endPos=t}};function Dx(e,t,n,r,a,l,i,u){return new Tx(e,t,n,r,a,l,i,u)}function o3(e,t,n,r,a){const l=Ep(t,Tp),i=_6.getCompiledRuleId(n,r,a.repository);for(const u of l)e.push({debugSelector:t,matcher:u.matcher,ruleId:i,grammar:a,priority:u.priority})}function Tp(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(zx(t[a],r))return n=a+1,!0;return!1})}function zx(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Tx=class{constructor(e,t,n,r,a,l,i,u){se(this,"_rootId");se(this,"_lastRuleId");se(this,"_ruleId2desc");se(this,"_includedGrammars");se(this,"_grammarRepository");se(this,"_grammar");se(this,"_injections");se(this,"_basicScopeAttributesProvider");se(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=l,this._onigLib=u,this._basicScopeAttributesProvider=new jx(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=s3(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const m=Ep(d,Tp);for(const v of m)this._tokenTypeMatchers.push({matcher:v.matcher,type:a[d]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let i in a)o3(t,i,a[i],this,r);const l=this._grammarRepository.injections(n);l&&l.forEach(i=>{const u=this.getExternalGrammar(i);if(u){const d=u.injectionSelector;d&&o3(t,d,u,this,u)}})}return t.sort((a,l)=>a.priority-l.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=s3(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=_6.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===uf.NULL){a=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),v=this.themeProvider.getDefaults(),f=Fl.set(0,m.languageId,m.tokenType,null,v.fontStyle,v.foregroundId,v.backgroundId),h=this.getRule(this._rootId).getName(null,null);let b;h?b=g0.createRootAndLookUpScopeName(h,f,this):b=g0.createRoot("unknown",f),t=new uf(null,this._rootId,-1,-1,!1,null,b,b)}else a=!1,t.reset();e=e+`
|
|
43
|
+
`;const l=this.createOnigString(e),i=l.content.length,u=new Lx(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=j6(this,l,a,0,t,u,!0,r);return b6(l),{lineLength:i,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function s3(e,t){return e=Ky(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var g0=class is{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=(t==null?void 0:t.scopePath)??null;for(const l of n)a=uh.push(a,l.scopeNames),r=new is(r,a,l.encodedTokenAttributes);return r}static createRoot(t,n){return new is(null,new uh(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),l=new uh(null,t),i=r.themeProvider.themeMatch(l),u=is.mergeAttributes(n,a,i);return new is(null,l,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return is.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,l=0,i=0;return r!==null&&(a=r.fontStyle,l=r.foregroundId,i=r.backgroundId),Fl.set(t,n.languageId,n.tokenType,null,a,l,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return is._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const l of r)a=is._pushAttributed(a,l,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),l=t.scopePath.push(n),i=r.themeProvider.themeMatch(l),u=is.mergeAttributes(t.tokenAttributes,a,i);return new is(t,l,u)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var a;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},eo,uf=(eo=class{constructor(t,n,r,a,l,i,u,d){se(this,"_stackElementBrand");se(this,"_enterPos");se(this,"_anchorPos");se(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=l,this.endRule=i,this.nameScopesList=u,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(t){return t===null?!1:eo._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?g0.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){eo._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,l,i,u){return new eo(this,t,n,r,a,l,i,u)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,a;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new eo(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=g0.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new eo(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,g0.fromExtension(r,n.contentNameScopesList))}},se(eo,"NULL",new eo(null,0,0,0,!1,null,null,null)),eo),Mx=class{constructor(e,t){se(this,"balancedBracketScopes");se(this,"unbalancedBracketScopes");se(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ep(n,Tp).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Ep(n,Tp).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Lx=class{constructor(e,t,n,r){se(this,"_emitBinaryTokens");se(this,"_lineText");se(this,"_tokens");se(this,"_binaryTokens");se(this,"_lastTokenEndIndex");se(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=(e==null?void 0:e.tokenAttributes)??0,l=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(l=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const u of this._tokenTypeOverrides)u.matcher(i)&&(a=Fl.set(a,0,u.type,null,-1,0,0));this.balancedBracketSelectors&&(l=this.balancedBracketSelectors.match(i))}if(l&&(a=Fl.set(a,0,8,l,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},Ix=class{constructor(e,t){se(this,"_grammars",new Map);se(this,"_rawGrammars",new Map);se(this,"_injectionGrammars",new Map);se(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,a){if(!this._grammars.has(e)){let l=this._rawGrammars.get(e);if(!l)return null;this._grammars.set(e,Dx(e,l,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},Rx=class{constructor(t){se(this,"_options");se(this,"_syncRegistry");se(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Ix(Ap.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Ap.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Mx(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,l){const i=new px(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(u=>this._loadSingleGrammar(u.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,a,l)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,l=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,l)}},df=uf.NULL;function Mp(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,l]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof l=="string"?n[a]=l:a===r&&Object.assign(n,l);return n}function Oi(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function Px(e){return Array.isArray(e)?e:[e]}async function k6(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function um(e){return!e||["plaintext","txt","text","plain"].includes(e)}function qx(e){return e==="ansi"||um(e)}function dm(e){return e==="none"}function Fx(e){return dm(e)}const Ox=/(\r?\n)/g;function pm(e,t=!1){var l;if(e.length===0)return[["",0]];const n=e.split(Ox);let r=0;const a=[];for(let i=0;i<n.length;i+=2){const u=t?n[i]+(n[i+1]||""):n[i];a.push([u,r]),r+=n[i].length,r+=((l=n[i+1])==null?void 0:l.length)||0}return a}const i3={light:"#333333",dark:"#bbbbbb"},l3={light:"#fffffe",dark:"#1e1e1e"},c3="__shiki_resolved";function h2(e){var u,d,m,v,f;if(e!=null&&e[c3])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const h=t.settings?t.settings.find(b=>!b.name&&!b.scope):void 0;(u=h==null?void 0:h.settings)!=null&&u.foreground&&(r=h.settings.foreground),(d=h==null?void 0:h.settings)!=null&&d.background&&(n=h.settings.background),!r&&((m=t==null?void 0:t.colors)!=null&&m["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((v=t==null?void 0:t.colors)!=null&&v["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?i3.light:i3.dark),n||(n=t.type==="light"?l3.light:l3.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const l=new Map;function i(h){var y;if(l.has(h))return l.get(h);a+=1;const b=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(y=t.colorReplacements)!=null&&y[`#${b}`]?i(h):(l.set(h,b),b)}t.settings=t.settings.map(h=>{var C,N;const b=((C=h.settings)==null?void 0:C.foreground)&&!h.settings.foreground.startsWith("#"),y=((N=h.settings)==null?void 0:N.background)&&!h.settings.background.startsWith("#");if(!b&&!y)return h;const j={...h,settings:{...h.settings}};if(b){const z=i(h.settings.foreground);t.colorReplacements[z]=h.settings.foreground,j.settings.foreground=z}if(y){const z=i(h.settings.background);t.colorReplacements[z]=h.settings.background,j.settings.background=z}return j});for(const h of Object.keys(t.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((f=t.colors[h])!=null&&f.startsWith("#"))){const b=i(t.colors[h]);t.colorReplacements[b]=t.colors[h],t.colors[h]=b}return Object.defineProperty(t,c3,{enumerable:!1,writable:!1,value:!0}),t}async function Bx(e){return[...new Set((await Promise.all(e.filter(t=>!qx(t)).map(async t=>await k6(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Hx(e){return(await Promise.all(e.map(async t=>Fx(t)?null:h2(await k6(t))))).filter(t=>!!t)}function N6(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new dn(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var Ux=class extends Rx{constructor(t,n,r,a={}){super(t);se(this,"_resolver");se(this,"_themes");se(this,"_langs");se(this,"_alias");se(this,"_resolvedThemes",new Map);se(this,"_resolvedGrammars",new Map);se(this,"_langMap",new Map);se(this,"_langGraph",new Map);se(this,"_textmateThemeCache",new WeakMap);se(this,"_loadedThemesCache",null);se(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=h2(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Ap.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=N6(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var l,i,u,d;if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(m=>{var v;return(v=m.embeddedLangsLazy)==null?void 0:v.includes(t.name)}));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(m=>{this._alias[m]=t.name}),this._loadedLanguagesCache=null,n.size)for(const m of n)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(i=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||i.delete(m.scopeName),(d=(u=this._syncRegistry)==null?void 0:u._grammars)==null||d.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=[...this._langGraph.entries()],r=n.filter(([a,l])=>!l);if(r.length){const a=n.filter(([l,i])=>{var u;return i?(u=i.embeddedLanguages||i.embeddedLangs)==null?void 0:u.some(d=>r.map(([m])=>m).includes(d)):!1}).filter(l=>!r.includes(l));throw new dn(`Missing languages ${r.map(([l])=>`\`${l}\``).join(", ")}, required by ${a.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[a,l]of n)this._resolver.addLanguage(l);for(const[a,l]of n)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}},Vx=class{constructor(e,t){se(this,"_langs",new Map);se(this,"_scopeToLang",new Map);se(this,"_injections",new Map);se(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const a=t.slice(0,r).join(".");n=[...n,...this._injections.get(a)||[]]}return n}};let n0=0;function Gx(e){n0+=1,e.warnings!==!1&&n0>=10&&n0%10===0&&console.warn(`[Shiki] ${n0} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new dn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(h2),a=new Ux(new Vx(e.engine,n),r,n,e.langAlias);let l;function i(z){return N6(z,e.langAlias)}function u(z){C();const E=a.getGrammar(typeof z=="string"?z:z.name);if(!E)throw new dn(`Language \`${z}\` not found, you may need to load it first`);return E}function d(z){if(z==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const E=a.getTheme(z);if(!E)throw new dn(`Theme \`${z}\` not found, you may need to load it first`);return E}function m(z){C();const E=d(z);return l!==z&&(a.setTheme(E),l=z),{theme:E,colorMap:a.getColorMap()}}function v(){return C(),a.getLoadedThemes()}function f(){return C(),a.getLoadedLanguages()}function h(...z){C(),a.loadLanguages(z.flat(1))}async function b(...z){return h(await Bx(z))}function y(...z){C();for(const E of z.flat(1))a.loadTheme(E)}async function j(...z){return C(),y(await Hx(z))}function C(){if(t)throw new dn("Shiki instance has been disposed")}function N(){t||(t=!0,a.dispose(),n0-=1)}return{setTheme:m,getTheme:d,getLanguage:u,getLoadedThemes:v,getLoadedLanguages:f,resolveLangAlias:i,loadLanguage:b,loadLanguageSync:h,loadTheme:j,loadThemeSync:y,dispose:N,[Symbol.dispose]:N}}const S6=new WeakMap;function mm(e,t){S6.set(e,t)}function N0(e){return S6.get(e)}var hm=class $6{constructor(...t){se(this,"_stacks",{});se(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new $6(Object.fromEntries(Px(n).map(r=>[r,df])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Wx(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Wx(e){const t=[],n=new Set;function r(a){var i;if(n.has(a))return;n.add(a);const l=(i=a==null?void 0:a.nameScopesList)==null?void 0:i.scopeName;l&&t.push(l),a.parent&&r(a.parent)}return r(e),t}function Zx(e,t){if(!(e instanceof hm))throw new dn("Invalid grammar state");return e.getInternalStack(t)}const Qx=/,/,Xx=/ /;function A6(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(um(e.resolveLangAlias(n.lang||"text"))||dm(r))return pm(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:l}=e.setTheme(r),i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new dn(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(a.name))throw new dn(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Kx(t,i,a,l,n)}function Yx(...e){if(e.length===2)return N0(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:l=t.getLoadedThemes()[0]}=r;if(um(a)||dm(l))throw new dn("Plain language does not have grammar state");if(a==="ansi")throw new dn("ANSI language does not have grammar state");const{theme:i,colorMap:u}=t.setTheme(l),d=t.getLanguage(a);return new hm(f2(n,d,i,u,r).stateStack,d.name,i.name)}function Kx(e,t,n,r,a){const l=f2(e,t,n,r,a),i=new hm(l.stateStack,t.name,n.name);return mm(l.tokens,i),l.tokens}function f2(e,t,n,r,a){const l=Mp(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:u=500,includeExplanation:d=!1}=a,m=pm(e);let v=a.grammarState?Zx(a.grammarState,n.name)??df:a.grammarContextCode!=null?f2(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:df,f=[];const h=[];for(let b=0,y=m.length;b<y;b++){const[j,C]=m[b];if(j===""){f=[],h.push([]);continue}if(i>0&&j.length>=i){f=[],h.push([{content:j,offset:C,color:"",fontStyle:0}]);continue}let N,z,E;d&&d!=="tokenType"&&(N=t.tokenizeLine(j,v,u),z=N.tokens,E=0);const P=t.tokenizeLine2(j,v,u),M=P.tokens.length/2;for(let L=0;L<M;L++){const U=P.tokens[2*L],W=L+1<M?P.tokens[2*L+2]:j.length;if(U===W)continue;const O=P.tokens[2*L+1],q=Oi(r[Fl.getForeground(O)],l),F=Fl.getFontStyle(O),K={content:j.substring(U,W),offset:C+U,color:q,fontStyle:F};if(d==="tokenType")K.type=Fl.getTokenType(O);else if(d){const le=[];if(d!=="scopeName")for(const ne of n.settings){let ce;switch(typeof ne.scope){case"string":ce=ne.scope.split(Qx).map(Ae=>Ae.trim());break;case"object":ce=ne.scope;break;default:continue}le.push({settings:ne,selectors:ce.map(Ae=>Ae.split(Xx))})}K.explanation=[];let me=0;for(;U+me<W;){const ne=z[E],ce=j.substring(ne.startIndex,ne.endIndex);me+=ce.length,K.explanation.push({content:ce,scopes:d==="scopeName"?Jx(ne.scopes):e_(le,ne.scopes)}),E+=1}}f.push(K)}h.push(f),f=[],v=P.ruleStack}return{tokens:h,stateStack:v}}function Jx(e){return e.map(t=>({scopeName:t}))}function e_(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const l=t[r];n[r]={scopeName:l,themeMatches:n_(e,l,t.slice(0,r))}}return n}function u3(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function t_(e,t,n){if(!u3(e.at(-1),t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)u3(e[r],n[a])&&(r-=1),a-=1;return r===-1}function n_(e,t,n){const r=[];for(const{selectors:a,settings:l}of e)for(const i of a)if(t_(i,t,n)){r.push(l);break}return r}function E6(e,t,n,r=A6){const a=Object.entries(n.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})),l=a.map(m=>{const v=r(e,t,{...n,theme:m.theme});return{tokens:v,state:N0(v),theme:typeof m.theme=="string"?m.theme:m.theme.name}}),i=r_(...l.map(m=>m.tokens)),u=i[0].map((m,v)=>m.map((f,h)=>{const b={content:f.content,variants:{},offset:f.offset};return"includeExplanation"in n&&n.includeExplanation&&(b.explanation=f.explanation),i.forEach((y,j)=>{const{content:C,explanation:N,offset:z,...E}=y[v][h];b.variants[a[j].color]=E}),b})),d=l[0].state?new hm(Object.fromEntries(l.map(m=>{var v;return[m.theme,(v=m.state)==null?void 0:v.getInternalStack(m.theme)]})),l[0].state.lang):void 0;return d&&mm(u,d),u}function r_(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),l=t.map(()=>[]);t.forEach((d,m)=>d.push(l[m]));const i=a.map(()=>0),u=a.map(d=>d[0]);for(;u.every(d=>d);){const d=Math.min(...u.map(m=>m.content.length));for(let m=0;m<n;m++){const v=u[m];v.content.length===d?(l[m].push(v),i[m]+=1,u[m]=a[m][i[m]]):(l[m].push({...v,content:v.content.slice(0,d)}),u[m]={...v,content:v.content.slice(d),offset:v.offset+d})}}}return t}const a_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class I0{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}I0.prototype.normal={};I0.prototype.property={};I0.prototype.space=void 0;function D6(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new I0(n,r,t)}function pf(e){return e.toLowerCase()}class ma{constructor(t,n){this.attribute=n,this.property=t}}ma.prototype.attribute="";ma.prototype.booleanish=!1;ma.prototype.boolean=!1;ma.prototype.commaOrSpaceSeparated=!1;ma.prototype.commaSeparated=!1;ma.prototype.defined=!1;ma.prototype.mustUseProperty=!1;ma.prototype.number=!1;ma.prototype.overloadedBoolean=!1;ma.prototype.property="";ma.prototype.spaceSeparated=!1;ma.prototype.space=void 0;let o_=0;const pt=Wl(),Ln=Wl(),mf=Wl(),je=Wl(),Wt=Wl(),Ol=Wl(),Aa=Wl();function Wl(){return 2**++o_}const hf=Object.freeze(Object.defineProperty({__proto__:null,boolean:pt,booleanish:Ln,commaOrSpaceSeparated:Aa,commaSeparated:Ol,number:je,overloadedBoolean:mf,spaceSeparated:Wt},Symbol.toStringTag,{value:"Module"})),ph=Object.keys(hf);class g2 extends ma{constructor(t,n,r,a){let l=-1;if(super(t,n),d3(this,"space",a),typeof r=="number")for(;++l<ph.length;){const i=ph[l];d3(this,ph[l],(r&hf[i])===hf[i])}}}g2.prototype.defined=!0;function d3(e,t,n){n&&(e[t]=n)}function Xc(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const l=new g2(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[pf(r)]=r,n[pf(l.attribute)]=r}return new I0(t,n,e.space)}const z6=Xc({properties:{ariaActiveDescendant:null,ariaAtomic:Ln,ariaAutoComplete:null,ariaBusy:Ln,ariaChecked:Ln,ariaColCount:je,ariaColIndex:je,ariaColSpan:je,ariaControls:Wt,ariaCurrent:null,ariaDescribedBy:Wt,ariaDetails:null,ariaDisabled:Ln,ariaDropEffect:Wt,ariaErrorMessage:null,ariaExpanded:Ln,ariaFlowTo:Wt,ariaGrabbed:Ln,ariaHasPopup:null,ariaHidden:Ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wt,ariaLevel:je,ariaLive:null,ariaModal:Ln,ariaMultiLine:Ln,ariaMultiSelectable:Ln,ariaOrientation:null,ariaOwns:Wt,ariaPlaceholder:null,ariaPosInSet:je,ariaPressed:Ln,ariaReadOnly:Ln,ariaRelevant:null,ariaRequired:Ln,ariaRoleDescription:Wt,ariaRowCount:je,ariaRowIndex:je,ariaRowSpan:je,ariaSelected:Ln,ariaSetSize:je,ariaSort:null,ariaValueMax:je,ariaValueMin:je,ariaValueNow:je,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function T6(e,t){return t in e?e[t]:t}function M6(e,t){return T6(e,t.toLowerCase())}const s_=Xc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ol,acceptCharset:Wt,accessKey:Wt,action:null,allow:null,allowFullScreen:pt,allowPaymentRequest:pt,allowUserMedia:pt,alpha:pt,alt:null,as:null,async:pt,autoCapitalize:null,autoComplete:Wt,autoFocus:pt,autoPlay:pt,blocking:Wt,capture:null,charSet:null,checked:pt,cite:null,className:Wt,closedBy:null,colorSpace:null,cols:je,colSpan:je,command:null,commandFor:null,content:null,contentEditable:Ln,controls:pt,controlsList:Wt,coords:je|Ol,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pt,defer:pt,dir:null,dirName:null,disabled:pt,download:mf,draggable:Ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pt,formTarget:null,headers:Wt,height:je,hidden:mf,high:je,href:null,hrefLang:null,htmlFor:Wt,httpEquiv:Wt,id:null,imageSizes:null,imageSrcSet:null,inert:pt,inputMode:null,integrity:null,is:null,isMap:pt,itemId:null,itemProp:Wt,itemRef:Wt,itemScope:pt,itemType:Wt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pt,low:je,manifest:null,max:null,maxLength:je,media:null,method:null,min:null,minLength:je,multiple:pt,muted:pt,name:null,nonce:null,noModule:pt,noValidate:pt,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:pt,optimum:je,pattern:null,ping:Wt,placeholder:null,playsInline:pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pt,referrerPolicy:null,rel:Wt,required:pt,reversed:pt,rows:je,rowSpan:je,sandbox:Wt,scope:null,scoped:pt,seamless:pt,selected:pt,shadowRootClonable:pt,shadowRootCustomElementRegistry:pt,shadowRootDelegatesFocus:pt,shadowRootMode:null,shadowRootSerializable:pt,shape:null,size:je,sizes:null,slot:null,span:je,spellCheck:Ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:je,step:null,style:null,tabIndex:je,target:null,title:null,translate:null,type:null,typeMustMatch:pt,useMap:null,value:Ln,width:je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wt,axis:null,background:null,bgColor:null,border:je,borderColor:null,bottomMargin:je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pt,declare:pt,event:null,face:null,frame:null,frameBorder:null,hSpace:je,leftMargin:je,link:null,longDesc:null,lowSrc:null,marginHeight:je,marginWidth:je,noResize:pt,noHref:pt,noShade:pt,noWrap:pt,object:null,profile:null,prompt:null,rev:null,rightMargin:je,rules:null,scheme:null,scrolling:Ln,standby:null,summary:null,text:null,topMargin:je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:je,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:pt,disablePictureInPicture:pt,disableRemotePlayback:pt,exportParts:Ol,part:Wt,prefix:null,property:null,results:je,security:null,unselectable:null},space:"html",transform:M6}),i_=Xc({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:Aa,accentHeight:je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:je,amplitude:je,arabicForm:null,ascent:je,attributeName:null,attributeType:null,azimuth:je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:je,by:null,calcMode:null,capHeight:je,className:Wt,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:je,diffuseConstant:je,direction:null,display:null,dur:null,divisor:je,dominantBaseline:null,download:pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:je,enableBackground:null,end:null,event:null,exponent:je,externalResourcesRequired:null,fill:null,fillOpacity:je,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:Ol,g2:Ol,glyphName:Ol,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:je,horizOriginX:je,horizOriginY:je,id:null,ideographic:je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:je,k:je,k1:je,k2:je,k3:je,k4:je,kernelMatrix:Aa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:je,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:je,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:je,overlineThickness:je,paintOrder:null,panose1:null,path:null,pathLength:je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:je,pointsAtY:je,pointsAtZ:je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Aa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Aa,rev:Aa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Aa,requiredFeatures:Aa,requiredFonts:Aa,requiredFormats:Aa,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:je,specularExponent:je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:je,strikethroughThickness:je,string:null,stroke:null,strokeDashArray:Aa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:je,strokeOpacity:je,strokeWidth:null,style:null,surfaceScale:je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Aa,tabIndex:je,tableValues:null,target:null,targetX:je,targetY:je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Aa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:je,underlineThickness:je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:je,values:null,vAlphabetic:je,vMathematical:je,vectorEffect:null,vHanging:je,vIdeographic:je,version:null,vertAdvY:je,vertOriginX:je,vertOriginY:je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T6}),L6=Xc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),I6=Xc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:M6}),R6=Xc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),l_=/[A-Z]/g,p3=/-[a-z]/g,c_=/^data[-\w.:]+$/i;function u_(e,t){const n=pf(t);let r=t,a=ma;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&c_.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(p3,p_);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!p3.test(l)){let i=l.replace(l_,d_);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=g2}return new a(r,t)}function d_(e){return"-"+e.toLowerCase()}function p_(e){return e.charAt(1).toUpperCase()}const m_=D6([z6,s_,L6,I6,R6],"html"),P6=D6([z6,i_,L6,I6,R6],"svg"),m3={}.hasOwnProperty;function h_(e,t){const n=t||{};function r(a,...l){let i=r.invalid;const u=r.handlers;if(a&&m3.call(a,e)){const d=String(a[e]);i=m3.call(u,d)?u[d]:r.unknown}if(i)return i.call(this,a,...l)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const f_=/["&'<>`]/g,g_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,b_=/[|\\{}()[\]^$+*?.]/g,h3=new WeakMap;function y_(e,t){if(e=e.replace(t.subset?x_(t.subset):f_,r),t.subset||t.escapeOnly)return e;return e.replace(g_,n).replace(v_,r);function n(a,l,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(l+2),t)}function r(a,l,i){return t.format(a.charCodeAt(0),i.charCodeAt(l+1),t)}}function x_(e){let t=h3.get(e);return t||(t=__(e),h3.set(e,t)),t}function __(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(b_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const w_=/[\dA-Fa-f]/;function j_(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!w_.test(String.fromCharCode(t))?r:r+";"}const C_=/\d/;function k_(e,t,n){const r="&#"+String(e);return n&&t&&!C_.test(String.fromCharCode(t))?r:r+";"}const N_=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],mh={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},S_=["cent","copy","divide","gt","lt","not","para","times"],q6={}.hasOwnProperty,ff={};let np;for(np in mh)q6.call(mh,np)&&(ff[mh[np]]=np);const $_=/[^\dA-Za-z]/;function A_(e,t,n,r){const a=String.fromCharCode(e);if(q6.call(ff,a)){const l=ff[a],i="&"+l;return n&&N_.includes(l)&&!S_.includes(l)&&(!r||t&&t!==61&&$_.test(String.fromCharCode(t)))?i:i+";"}return""}function E_(e,t,n){let r=j_(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=A_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const l=k_(e,t,n.omitOptionalSemicolons);l.length<r.length&&(r=l)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Bc(e,t){return y_(e,Object.assign({format:E_},t))}const D_=/^>|^->|<!--|-->|--!>|<!-$/g,z_=[">"],T_=["<",">"];function M_(e,t,n,r){return r.settings.bogusComments?"<?"+Bc(e.value,Object.assign({},r.settings.characterReferences,{subset:z_}))+">":"<!--"+e.value.replace(D_,a)+"-->";function a(l){return Bc(l,Object.assign({},r.settings.characterReferences,{subset:T_}))}}function L_(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Lp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function I_(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function R_(e){return e.join(" ").trim()}const P_=/[ \t\n\f\r]/g;function v2(e){return typeof e=="object"?e.type==="text"?f3(e.value):!1:f3(e)}function f3(e){return e.replace(P_,"")===""}const Zn=O6(1),F6=O6(-1),q_=[];function O6(e){return t;function t(n,r,a){const l=n?n.children:q_;let i=(r||0)+e,u=l[i];if(!a)for(;u&&v2(u);)i+=e,u=l[i];return u}}const F_={}.hasOwnProperty;function B6(e){return t;function t(n,r,a){return F_.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const b2=B6({body:B_,caption:hh,colgroup:hh,dd:G_,dt:V_,head:hh,html:O_,li:U_,optgroup:W_,option:Z_,p:H_,rp:g3,rt:g3,tbody:X_,td:v3,tfoot:Y_,th:v3,thead:Q_,tr:K_});function hh(e,t,n){const r=Zn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&v2(r.value.charAt(0)))}function O_(e,t,n){const r=Zn(n,t);return!r||r.type!=="comment"}function B_(e,t,n){const r=Zn(n,t);return!r||r.type!=="comment"}function H_(e,t,n){const r=Zn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function U_(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function V_(e,t,n){const r=Zn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function G_(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function g3(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function W_(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Z_(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Q_(e,t,n){const r=Zn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function X_(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Y_(e,t,n){return!Zn(n,t)}function K_(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function v3(e,t,n){const r=Zn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const J_=B6({body:nw,colgroup:rw,head:tw,html:ew,tbody:aw});function ew(e){const t=Zn(e,-1);return!t||t.type!=="comment"}function tw(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function nw(e){const t=Zn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&v2(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function rw(e,t,n){const r=F6(n,t),a=Zn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&b2(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function aw(e,t,n){const r=F6(n,t),a=Zn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&b2(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const rp={name:[[`
|
|
44
|
+
\f\r &/=>`.split(""),`
|
|
45
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
46
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
47
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
48
|
+
\f\r &>`.split(""),`\0
|
|
49
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
50
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
51
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ow(e,t,n,r){const a=r.schema,l=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=P6);const m=sw(r,e.properties),v=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,v&&(i=!1),(m||!l||!J_(e,t,n))&&(u.push("<",e.tagName,m?" "+m:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=m.charAt(m.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(v),!i&&(!l||!b2(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function sw(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const l=iw(e,a,t[a]);l&&n.push(l)}}for(;++r<n.length;){const l=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&l!=='"'&&l!=="'"&&(n[r]+=" ")}return n.join("")}function iw(e,t,n){const r=u_(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,l=e.settings.allowDangerousCharacters?0:1;let i=e.quote,u;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Bc(r.attribute,Object.assign({},e.settings.characterReferences,{subset:rp.name[a][l]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?I_:R_)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=Bc(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:rp.unquoted[a][l]}))),u!==n&&(e.settings.quoteSmart&&Lp(n,i)>Lp(n,e.alternative)&&(i=e.alternative),u=i+Bc(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?rp.single:rp.double)[a][l],attribute:!0}))+i),d+(u&&"="+u))}const lw=["<","&"];function H6(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Bc(e.value,Object.assign({},r.settings.characterReferences,{subset:lw}))}function cw(e,t,n,r){return r.settings.allowDangerousHtml?e.value:H6(e,t,n,r)}function uw(e,t,n,r){return r.all(e)}const dw=h_("type",{invalid:pw,unknown:mw,handlers:{comment:M_,doctype:L_,element:ow,raw:cw,root:uw,text:H6}});function pw(e){throw new Error("Expected node, not `"+e+"`")}function mw(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const hw={},fw={},gw=[];function vw(e,t){const n=t||hw,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:bw,all:yw,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||a_,characterReferences:n.characterReferences||fw,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?P6:m_,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function bw(e,t,n){return dw(e,t,n,this)}function yw(e){const t=[],n=e&&e.children||gw;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const b3=/\s+/g;function U6(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(b3)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(b3);for(const a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function xw(e){const t=pm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t.at(-1).length};let l=a,i=0;for(const u of t){if(l<u.length)break;l-=u.length,i++}return{line:i,character:l}}function r(a,l){let i=0;for(let u=0;u<a;u++)i+=t[u].length;return i+=l,i}return{lines:t,indexToPos:n,posToIndex:r}}const _w=["color","background-color"];function ww(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function jw(e,t){let n=0,r=e.length;for(;n<r;){const a=n+(r-n>>1);e[a]<=t?n=a+1:r=a}return n}function Cw(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const l=a.offset+a.content.length,i=jw(n,a.offset);let u=i;for(;u<n.length&&n[u]<l;)u++;if(i===u)return a;const d=n.slice(i,u);for(let m=0;m<d.length;m++)d[m]-=a.offset;return ww(a,d)})):e}function kw(e,t,n,r,a="css-vars"){const l={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(v=>Ip(e.variants[v])),u=new Set(i.flatMap(v=>Object.keys(v))),d={},m=(v,f)=>{const h=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[v]+(f==="color"?"":h)};return i.forEach((v,f)=>{for(const h of u){const b=v[h]||"inherit";if(f===0&&r&&_w.includes(h))if(r==="light-dark()"&&i.length>1){const y=t.findIndex(z=>z==="light"),j=t.findIndex(z=>z==="dark");if(y===-1||j===-1)throw new dn('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=i[y][h]||"inherit",N=i[j][h]||"inherit";d[h]=`light-dark(${C}, ${N})`,a==="css-vars"&&(d[m(f,h)]=b)}else d[h]=b;else a==="css-vars"&&(d[m(f,h)]=b)}}),l.htmlStyle=d,l}function Ip(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Dr.Italic&&(t["font-style"]="italic"),e.fontStyle&Dr.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Dr.Underline&&n.push("underline"),e.fontStyle&Dr.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function gf(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Nw(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let a=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new dn(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...r.indexToPos(i),offset:i}}else{const u=r.lines[i.line];if(u===void 0)throw new dn(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${r.lines.length}`);let d=i.character;if(d<0&&(d=u.length+d),d<0||d>u.length)throw new dn(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${u.length}`);return{...i,character:d,offset:r.posToIndex(i.line,d)}}};const r=xw(n.source),l=(n.options.decorations||[]).map(i=>({...i,start:a(i.start),end:a(i.end)}));Sw(l),e.set(n.meta,{decorations:l,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var r;if((r=this.options.decorations)!=null&&r.length)return Cw(n,t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]))},code(n){var v;if(!((v=this.options.decorations)!=null&&v.length))return;const r=t(this),a=[...n.children].filter(f=>f.type==="element"&&f.tagName==="span");if(a.length!==r.converter.lines.length)throw new dn(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function l(f,h,b,y){const j=a[f];let C="",N=-1,z=-1;if(h===0&&(N=0),b===0&&(z=0),b===Number.POSITIVE_INFINITY&&(z=j.children.length),N===-1||z===-1)for(let P=0;P<j.children.length;P++)C+=V6(j.children[P]),N===-1&&C.length===h&&(N=P+1),z===-1&&C.length===b&&(z=P+1);if(N===-1)throw new dn(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(z===-1)throw new dn(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const E=j.children.slice(N,z);if(!y.alwaysWrap&&E.length===j.children.length)u(j,y,"line");else if(!y.alwaysWrap&&E.length===1&&E[0].type==="element")u(E[0],y,"token");else{const P={type:"element",tagName:"span",properties:{},children:E};u(P,y,"wrapper"),j.children.splice(N,E.length,P)}}function i(f,h){a[f]=u(a[f],h,"line")}function u(f,h,b){var C;const y=h.properties||{},j=h.transform||(N=>N);return f.tagName=h.tagName||"span",f.properties={...f.properties,...y,class:f.properties.class},(C=h.properties)!=null&&C.class&&U6(f,h.properties.class),f=j(f,b)||f,f}const d=[],m=r.decorations.sort((f,h)=>h.start.offset-f.start.offset||f.end.offset-h.end.offset);for(const f of m){const{start:h,end:b}=f;if(h.line===b.line)l(h.line,h.character,b.character,f);else if(h.line<b.line){l(h.line,h.character,Number.POSITIVE_INFINITY,f);for(let y=h.line+1;y<b.line;y++)d.unshift(()=>i(y,f));l(b.line,0,b.character,f)}}d.forEach(f=>f())}}}function Sw(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new dn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],l=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,i=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,u=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(l||i||u||d){if(l&&i||u&&d||u&&n.start.offset===n.end.offset||i&&a.start.offset===a.end.offset)continue;throw new dn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function V6(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(V6).join(""):""}const $w=[Nw()];function Rp(e){const t=Aw(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...$w]}function Aw(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var Ml=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],fh={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ew(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function y3(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Dw(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)fh[r]&&t.push({type:"setDecoration",value:fh[r]});else if(r<=29){const a=fh[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ml[r-30]}});else if(r===38){const a=y3(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ml[r-40]}});else if(r===48){const a=y3(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ml[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ml[r-100+8]}})}return t}function zw(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let l=0;do{const i=Ew(r,l),u=i.sequence?r.substring(l,i.startPosition):r.substring(l);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const d=Dw(i.sequence);for(const m of d)m.type==="resetAll"?(e=null,t=null,n.clear()):m.type==="resetForegroundColor"?e=null:m.type==="resetBackgroundColor"?t=null:m.type==="resetDecoration"&&n.delete(m.value);for(const m of d)m.type==="setForegroundColor"?e=m.value:m.type==="setBackgroundColor"?t=m.value:m.type==="setDecoration"&&n.add(m.value)}l=i.position}while(l<r.length);return a}}}var Tw={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Mw(e=Tw){function t(u){return e[u]}function n(u){return`#${u.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let m=0;m<Ml.length;m++)r.push(t(Ml[m]));let u=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let v=0;v<6;v++)for(let f=0;f<6;f++)r.push(n([u[m],u[v],u[f]]));let d=8;for(let m=0;m<24;m++,d+=10)r.push(n([d,d,d]));return r}function l(u){return a()[u]}function i(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return l(u.index)}}return{value:i}}const Lw=/#([0-9a-f]{3,8})/i,Iw=/var\((--[\w-]+-ansi-[\w-]+)\)/,Rw={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Pw(e,t,n){const r=Mp(e,n),a=pm(t),l=Mw(Object.fromEntries(Ml.map(u=>{var m;const d=`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`;return[u,((m=e.colors)==null?void 0:m[d])||Rw[u]]}))),i=zw();return a.map(u=>i.parse(u[0]).map(d=>{let m,v;d.decorations.has("reverse")?(m=d.background?l.value(d.background):e.bg,v=d.foreground?l.value(d.foreground):e.fg):(m=d.foreground?l.value(d.foreground):e.fg,v=d.background?l.value(d.background):void 0),m=Oi(m,r),v=Oi(v,r),d.decorations.has("dim")&&(m=qw(m));let f=Dr.None;return d.decorations.has("bold")&&(f|=Dr.Bold),d.decorations.has("italic")&&(f|=Dr.Italic),d.decorations.has("underline")&&(f|=Dr.Underline),d.decorations.has("strikethrough")&&(f|=Dr.Strikethrough),{content:d.value,offset:u[1],color:m,bgColor:v,fontStyle:f}}))}function qw(e){const t=e.match(Lw);if(t){const r=t[1];if(r.length===8){const a=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${a}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const a=r[0],l=r[1],i=r[2],u=r[3];return`#${a}${a}${l}${l}${i}${i}${Math.round(Number.parseInt(`${u}${u}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const a=r[0],l=r[1],i=r[2];return`#${a}${a}${l}${l}${i}${i}80`}}}const n=e.match(Iw);return n?`var(${n[1]}-dim)`:e}function vf(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:a=e.getLoadedThemes()[0]}=n;if(!um(r)&&!dm(a)&&r==="ansi"){const{theme:l}=e.setTheme(a);return Pw(l,t,n)}return A6(e,t,n)}function Pp(e,t,n){let r,a,l,i,u,d;if("themes"in n){const{defaultColor:m="light",cssVariablePrefix:v="--shiki-",colorsRendering:f="css-vars"}=n,h=Object.entries(n.themes).filter(N=>N[1]).map(N=>({color:N[0],theme:N[1]})).sort((N,z)=>N.color===m?-1:z.color===m?1:0);if(h.length===0)throw new dn("`themes` option must not be empty");const b=E6(e,t,n,vf);if(d=N0(b),m&&m!=="light-dark()"&&!h.some(N=>N.color===m))throw new dn(`\`themes\` option must contain the defaultColor key \`${m}\``);const y=h.map(N=>e.getTheme(N.theme)),j=h.map(N=>N.color);l=b.map(N=>N.map(z=>kw(z,j,v,m,f))),d&&mm(l,d);const C=h.map(N=>Mp(N.theme,n));a=x3(h,y,C,v,m,"fg",f),r=x3(h,y,C,v,m,"bg",f),i=`shiki-themes ${y.map(N=>N.name).join(" ")}`,u=m?void 0:[a,r].join(";")}else if("theme"in n){const m=Mp(n.theme,n);l=vf(e,t,n);const v=e.getTheme(n.theme);r=Oi(v.bg,m),a=Oi(v.fg,m),i=v.name,d=N0(l)}else throw new dn("Invalid options, either `theme` or `themes` must be provided");return{tokens:l,fg:a,bg:r,themeName:i,rootStyle:u,grammarState:d}}function x3(e,t,n,r,a,l,i){return e.map((u,d)=>{const m=Oi(t[d][l],n[d])||"inherit",v=`${r+u.color}${l==="bg"?"-bg":""}:${m}`;if(d===0&&a){if(a==="light-dark()"&&e.length>1){const f=e.findIndex(b=>b.color==="light"),h=e.findIndex(b=>b.color==="dark");if(f===-1||h===-1)throw new dn('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Oi(t[f][l],n[f])||"inherit"}, ${Oi(t[h][l],n[h])||"inherit"});${v}`}return m}return i==="css-vars"?v:null}).filter(u=>!!u).join(";")}const G6=/^\s+$/,Fw=/^(\s*)(.*?)(\s*)$/;function qp(e,t,n,r={meta:{},options:n,codeToHast:(a,l)=>qp(e,a,l),codeToTokens:(a,l)=>Pp(e,a,l)}){var y,j;let a=t;for(const C of Rp(n))a=((y=C.preprocess)==null?void 0:y.call(r,a,n))||a;let{tokens:l,fg:i,bg:u,themeName:d,rootStyle:m,grammarState:v}=Pp(e,a,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:h=!1}=n;f===!0?l=Bw(l):f==="never"&&(l=Hw(l)),h&&(l=Uw(l));const b={...r,get source(){return a}};for(const C of Rp(n))l=((j=C.tokens)==null?void 0:j.call(b,l))||l;return Ow(l,{...n,fg:i,bg:u,themeName:d,rootStyle:n.rootStyle===!1?!1:n.rootStyle??m},b,v)}function Ow(e,t,n,r=N0(e)){var j,C,N,z;const a=Rp(t),l=[],i={type:"root",children:[]},{structure:u="classic",tabindex:d="0"}=t,m={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?m.style=t.rootStyle:m.style=`background-color:${t.bg};color:${t.fg}`),d!==!1&&d!=null&&(m.tabindex=d.toString());for(const[E,P]of Object.entries(t.meta||{}))E.startsWith("_")||(m[E]=P);let v={type:"element",tagName:"pre",properties:m,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:l};const h=[],b={...n,structure:u,addClassToHast:U6,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return v},get code(){return f},get lines(){return h}};if(e.forEach((E,P)=>{var U,W;P&&(u==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&l.push({type:"text",value:`
|
|
52
|
+
`}));let M={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const O of E){let q={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};const F=gf(O.htmlStyle||Ip(O));F&&(q.properties.style=F);for(const K of a)q=((U=K==null?void 0:K.span)==null?void 0:U.call(b,q,P+1,L,M,O))||q;u==="inline"?i.children.push(q):u==="classic"&&M.children.push(q),L+=O.content.length}if(u==="classic"){for(const O of a)M=((W=O==null?void 0:O.line)==null?void 0:W.call(b,M,P+1))||M;h.push(M),l.push(M)}else u==="inline"&&h.push(M)}),u==="classic"){for(const E of a)f=((j=E==null?void 0:E.code)==null?void 0:j.call(b,f))||f;v.children.push(f);for(const E of a)v=((C=E==null?void 0:E.pre)==null?void 0:C.call(b,v))||v;i.children.push(v)}else if(u==="inline"){const E=[];let P={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const L of i.children)L.type==="element"&&L.tagName==="br"?(E.push(P),P={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(L.type==="element"||L.type==="text")&&P.children.push(L);E.push(P);let M={type:"element",tagName:"code",properties:{},children:E};for(const L of a)M=((N=L==null?void 0:L.code)==null?void 0:N.call(b,M))||M;i.children=[];for(let L=0;L<M.children.length;L++){L>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const U=M.children[L];U.type==="element"&&i.children.push(...U.children)}}let y=i;for(const E of a)y=((z=E==null?void 0:E.root)==null?void 0:z.call(b,y))||y;return r&&mm(y,r),y}function Bw(e){return e.map(t=>{const n=[];let r="",a;return t.forEach((l,i)=>{const u=!(l.fontStyle&&(l.fontStyle&Dr.Underline||l.fontStyle&Dr.Strikethrough));u&&G6.test(l.content)&&t[i+1]?(a===void 0&&(a=l.offset),r+=l.content):r?(u?n.push({...l,offset:a,content:r+l.content}):n.push({content:r,offset:a},l),a=void 0,r=""):n.push(l)}),n})}function Hw(e){return e.map(t=>t.flatMap(n=>{if(G6.test(n.content))return n;const r=n.content.match(Fw);if(!r)return n;const[,a,l,i]=r;if(!a&&!i)return n;const u=[{...n,offset:n.offset+a.length,content:l}];return a&&u.unshift({content:a,offset:n.offset}),i&&u.push({content:i,offset:n.offset+a.length+l.length}),u}))}function Uw(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n.at(-1),l=gf(a.htmlStyle||Ip(a)),i=gf(r.htmlStyle||Ip(r)),u=a.fontStyle&&(a.fontStyle&Dr.Underline||a.fontStyle&Dr.Strikethrough),d=r.fontStyle&&(r.fontStyle&Dr.Underline||r.fontStyle&Dr.Strikethrough);!u&&!d&&l===i?a.content+=r.content:n.push({...r})}return n})}const Vw=vw;function Gw(e,t,n){var l;const r={meta:{},options:n,codeToHast:(i,u)=>qp(e,i,u),codeToTokens:(i,u)=>Pp(e,i,u)};let a=Vw(qp(e,t,n,r));for(const i of Rp(n))a=((l=i.postprocess)==null?void 0:l.call(r,a,n))||a;return a}function Ww(e){const t=Gx(e);return{getLastGrammarState:(...n)=>Yx(t,...n),codeToTokensBase:(n,r)=>vf(t,n,r),codeToTokensWithThemes:(n,r)=>E6(t,n,r),codeToTokens:(n,r)=>Pp(t,n,r),codeToHast:(n,r)=>qp(t,n,r),codeToHtml:(n,r)=>Gw(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Zw(e={}){var i;const{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,a=u=>{var d;return(d=e.variableDefaults)!=null&&d[u]?`var(${n}${u}, ${e.variableDefaults[u]})`:`var(${n}${u})`},l={name:t,type:"dark",colors:{"editor.foreground":a("foreground"),"editor.background":a("background"),"terminal.ansiBlack":a("ansi-black"),"terminal.ansiRed":a("ansi-red"),"terminal.ansiGreen":a("ansi-green"),"terminal.ansiYellow":a("ansi-yellow"),"terminal.ansiBlue":a("ansi-blue"),"terminal.ansiMagenta":a("ansi-magenta"),"terminal.ansiCyan":a("ansi-cyan"),"terminal.ansiWhite":a("ansi-white"),"terminal.ansiBrightBlack":a("ansi-bright-black"),"terminal.ansiBrightRed":a("ansi-bright-red"),"terminal.ansiBrightGreen":a("ansi-bright-green"),"terminal.ansiBrightYellow":a("ansi-bright-yellow"),"terminal.ansiBrightBlue":a("ansi-bright-blue"),"terminal.ansiBrightMagenta":a("ansi-bright-magenta"),"terminal.ansiBrightCyan":a("ansi-bright-cyan"),"terminal.ansiBrightWhite":a("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:a("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:a("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:a("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:a("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:a("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:a("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:a("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:a("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:a("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:a("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:a("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:a("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:a("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:a("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:a("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:a("token-changed")}}]};return r||(l.tokenColors=(i=l.tokenColors)==null?void 0:i.map(u=>{var d;return(d=u.settings)!=null&&d.fontStyle&&delete u.settings.fontStyle,u})),l}const _3=4294967295;var Qw=class{constructor(e,t={}){se(this,"patterns");se(this,"options");se(this,"regexps");this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:a}=t;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(l=>{if(typeof l!="string")return l;const i=r==null?void 0:r.get(l);if(i){if(i instanceof RegExp)return i;if(n)return null;throw i}try{const u=a(l);return r==null||r.set(l,u),u}catch(u){if(r==null||r.set(l,u),n)return null;throw u}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,a=[];function l(i,u,d=0){return{index:i,captureIndices:u.indices.map(m=>m==null?{start:_3,end:_3,length:0}:{start:m[0]+d,end:m[1]+d,length:m[1]-m[0]})}}for(let i=0;i<this.regexps.length;i++){const u=this.regexps[i];if(u)try{u.lastIndex=t;const d=u.exec(r);if(!d)continue;if(d.index===t)return l(i,d,0);a.push([i,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(a.length){const i=Math.min(...a.map(u=>u[1].index));for(const[u,d,m]of a)if(d.index===i)return l(u,d,m)}return null}};function Yc(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Xw(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const y2=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ir=String.raw;function Kc(e,t){if(e==null)throw new Error(t??"Value expected");return e}const W6=ir`\[\^?`,Z6=`c.? | C(?:-.?)?|${ir`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ir`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ir`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ir`o\{[^\}]*\}?`}|${ir`\d{1,3}`}`,x2=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ap=new RegExp(ir`
|
|
53
|
+
\\ (?:
|
|
54
|
+
${Z6}
|
|
55
|
+
| [gk]<[^>]*>?
|
|
56
|
+
| [gk]'[^']*'?
|
|
57
|
+
| .
|
|
58
|
+
)
|
|
59
|
+
| \( (?:
|
|
60
|
+
\? (?:
|
|
61
|
+
[:=!>({]
|
|
62
|
+
| <[=!]
|
|
63
|
+
| <[^>]*>
|
|
64
|
+
| '[^']*'
|
|
65
|
+
| ~\|?
|
|
66
|
+
| #(?:[^)\\]|\\.?)*
|
|
67
|
+
| [^:)]*[:)]
|
|
68
|
+
)?
|
|
69
|
+
| \*[^\)]*\)?
|
|
70
|
+
)?
|
|
71
|
+
| (?:${x2.source})+
|
|
72
|
+
| ${W6}
|
|
73
|
+
| .
|
|
74
|
+
`.replace(/\s+/g,""),"gsu"),gh=new RegExp(ir`
|
|
75
|
+
\\ (?:
|
|
76
|
+
${Z6}
|
|
77
|
+
| .
|
|
78
|
+
)
|
|
79
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
80
|
+
| ${W6}
|
|
81
|
+
| &&
|
|
82
|
+
| .
|
|
83
|
+
`.replace(/\s+/g,""),"gsu");function Yw(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=gj(n.flags),a=[r.extended],l={captureGroup:n.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(f){a.push(f)},replaceCurrentModX(f){a[a.length-1]=f},singleline:n.rules.singleline};let i=[],u;for(ap.lastIndex=0;u=ap.exec(e);){const f=Kw(l,e,u[0],ap.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(ap.lastIndex=f.lastIndex)}const d=[];let m=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++m:f.raw==="("&&d.push(f)}),m||d.forEach((f,h)=>{f.kind="capturing",f.number=h+1});const v=m||d.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?bj(f,v):f).flat(),flags:r}}function Kw(e,t,n,r){const[a,l]=n;if(n==="["||n==="[^"){const i=Jw(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(l))return{token:w3(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:cj(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:X6(n)}}if(l==="K")return{token:Y6("keep",n)};if(l==="N"||l==="R")return{token:Ll("newline",n,{negate:l==="N"})};if(l==="O")return{token:Ll("any",n)};if(l==="X")return{token:Ll("text_segment",n)};const i=Q6(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(a==="("){if(l==="*")return{token:mj(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:pj(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Pc("group",n)};if(n==="(?>")return{token:Pc("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Pc(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Pc("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Pc("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:sj(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
84
|
+
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:Ll("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":ir`\A`,$:ir`\Z`}[n]:n;return{token:w3(i,n)}}return n==="|"?{token:tj(n)}:x2.test(n)?{tokens:yj(n)}:{token:Ws(Yc(n),n)}}function Jw(e,t,n){const r=[j3(t[1]==="^",t)];let a=1,l;for(gh.lastIndex=n;l=gh.exec(e);){const i=l[0];if(i[0]==="["&&i[1]!==":")a++,r.push(j3(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Ws(93,i));else if(a--,r.push(nj(i)),!a)break}else{const u=ej(i);Array.isArray(u)?r.push(...u):r.push(u)}}return{tokens:r,lastIndex:gh.lastIndex||e.length}}function ej(e){if(e[0]==="\\")return Q6(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!y2.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Ll("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?rj(e):e==="&&"?aj(e):Ws(Yc(e),e)}function Q6(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return dj(e);if("dDhHsSwW".includes(n))return hj(e);if(e.startsWith(ir`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return fj(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),l=new TextEncoder;return[...a].map(i=>{const u=[...l.encode(i)].map(d=>`\\x${d.toString(16)}`).join("");return Ws(Yc(i),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Ws(vj(e),e);if(C3.has(n))return Ws(C3.get(n),e);if(/\d/.test(n))return oj(t,e);if(e==="\\")throw new Error(ir`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ws(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function tj(e){return{type:"Alternator",raw:e}}function w3(e,t){return{type:"Assertion",kind:e,raw:t}}function X6(e){return{type:"Backreference",raw:e}}function Ws(e,t){return{type:"Character",value:e,raw:t}}function nj(e){return{type:"CharacterClassClose",raw:e}}function rj(e){return{type:"CharacterClassHyphen",raw:e}}function aj(e){return{type:"CharacterClassIntersector",raw:e}}function j3(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Ll(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Y6(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Kc(n.flags),raw:t}}function oj(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function sj(e){return{type:"GroupClose",raw:e}}function Pc(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function ij(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function lj(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function cj(e){return{type:"Subroutine",raw:e}}const uj=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),C3=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function dj(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Ws(Yc(t.toUpperCase())-64,e)}function pj(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const a=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),l=N3(n),i=N3(r),u={};if(l&&(u.enable=l),i&&(u.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),Y6("flags",e,{flags:u});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,Pc("group",e,{...(l||i)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function mj(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:a}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const l=a?a.split(",").filter(v=>v!=="").map(v=>/^[+-]?\d+$/.test(v)?+v:v):[],[i,u,d]=l,m=uj.has(n)?n.toLowerCase():"custom";switch(m){case"fail":case"mismatch":case"skip":if(l.length>0)throw new Error(`Named callout arguments not allowed "${l}"`);break;case"error":if(l.length>1)throw new Error(`Named callout allows only one argument "${l}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!l.length||l.length>2)throw new Error(`Named callout must have one or two arguments "${l}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(l.length===2&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${u}"`);break;case"count":case"total_count":if(l.length>1)throw new Error(`Named callout allows only one argument "${l}"`);if(l.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(l.length!==3)throw new Error(`Named callout must have three arguments "${l}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof u=="number"||!/^(?:[<>!=]=|[<>])$/.test(u))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${u}"`);if(typeof d=="string"&&!/^[A-Za-z_]\w*$/.test(d))throw new Error(`Named callout argument three must be a tag or number "${d}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${m}"`)}return ij(m,r??null,(a==null?void 0:a.split(","))??null,e)}function k3(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:l}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+a>i||l&&+l>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=l===void 0?+a:l===""?1/0:+l,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return lj(t,n,r,e)}function hj(e){const t=e[1].toLowerCase();return Ll({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function fj(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Ll("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function N3(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function gj(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function vj(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function bj(e,t){const{raw:n,inCharClass:r}=e,a=n.slice(1);if(!r&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[X6(n)];const l=[],i=a.match(/^[0-7]+|\d/g);for(let u=0;u<i.length;u++){const d=i[u];let m;if(u===0&&d!=="8"&&d!=="9"){if(m=parseInt(d,8),m>127)throw new Error(ir`Octal encoded byte above 177 unsupported "${n}"`)}else m=Yc(d);l.push(Ws(m,(u===0?"\\":"")+d))}return l}function yj(e){const t=[],n=new RegExp(x2,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const l=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(l){const{min:i,max:u}=l.groups;if(+i>+u&&a.endsWith("?")){n.lastIndex--,t.push(k3(a.slice(0,-1)));continue}}}t.push(k3(a))}return t}function K6(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function xj(e){return _j.has(e.type)}const _j=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function J6(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Yw(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(h,b)=>{const y=r.tokens[l.nextIndex];switch(l.parent=h,l.nextIndex++,y.type){case"Alternator":return Bl();case"Assertion":return wj(y);case"Backreference":return jj(y,l);case"Character":return fm(y.value,{useLastValid:!!b.isCheckingRangeEnd});case"CharacterClassHyphen":return Cj(y,l,b);case"CharacterClassOpen":return kj(y,l,b);case"CharacterSet":return Nj(y,l);case"Directive":return zj(y.kind,{flags:y.flags});case"GroupOpen":return Sj(y,l,b);case"NamedCallout":return Mj(y.kind,y.tag,y.arguments);case"Quantifier":return $j(y,l);case"Subroutine":return Aj(y,l);default:throw new Error(`Unexpected token type "${y.type}"`)}},l={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},i=Ij(Tj(r.flags));let u=i.body[0];for(;l.nextIndex<r.tokens.length;){const h=a(u,{});h.type==="Alternative"?(i.body.push(h),u=h):u.body.push(h)}const{capturingGroups:d,hasNumberedRef:m,namedGroupsByName:v,subroutines:f}=l;if(m&&v.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of f)if(typeof h=="number"){if(h>d.length)throw new Error("Subroutine uses a group number that's not defined");h&&(d[h-1].isSubroutined=!0)}else if(v.has(h)){if(v.get(h).length>1)throw new Error(ir`Subroutine uses a duplicate group name "\g<${h}>"`);v.get(h)[0].isSubroutined=!0}else throw new Error(ir`Subroutine uses a group name that's not defined "\g<${h}>"`);return i}function wj({kind:e}){return bf(Kc({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===ir`\B`||e===ir`\Y`})}function jj({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(l,i=!1)=>{const u=t.capturingGroups.length;let d=!1;if(l>u)if(t.skipBackrefValidation)d=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,yf(i?u+1-l:l,{orphan:d})};if(n){const l=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(l)return a(+l.groups.num,!!l.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return yf(r)}return a(+r)}function Cj(e,t,n){const{tokens:r,walk:a}=t,l=t.parent,i=l.body.at(-1),u=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const d=a(l,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&d.type==="Character")return l.body.pop(),Dj(i,d);throw new Error("Invalid character class range")}return fm(Yc("-"))}function kj({negate:e},t,n){const{tokens:r,walk:a}=t,l=[jp()],i=r[t.nextIndex];let u=A3(i);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")l.push(jp()),t.nextIndex++;else{const m=l.at(-1);m.body.push(a(m,n))}u=A3(r[t.nextIndex],i)}const d=jp({negate:e});return l.length===1?d.body=l[0].body:(d.kind="intersection",d.body=l.map(m=>m.body.length===1?m.body[0]:m)),t.nextIndex++,d}function Nj({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:l,unicodePropertyMap:i}=r;if(e==="property"){const u=gm(n);if(y2.has(u)&&!(i!=null&&i.has(u)))e="posix",n=u;else return qc(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:l,unicodePropertyMap:i})}return e==="posix"?Lj(n,{negate:t}):xf(e,{negate:t})}function Sj(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:l,skipLookbehindValidation:i,walk:u}=t,d=Rj(e),m=d.type==="AbsenceFunction",v=$3(d),f=v&&d.negate;if(d.type==="CapturingGroup"&&(a.push(d),d.name&&Xw(l,d.name,[]).push(d)),m&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=E3(r[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")d.body.push(Bl()),t.nextIndex++;else{const b=d.body.at(-1),y=u(b,{...n,isInAbsenceFunction:n.isInAbsenceFunction||m,isInLookbehind:n.isInLookbehind||v,isInNegLookbehind:n.isInNegLookbehind||f});if(b.body.push(y),(v||n.isInLookbehind)&&!i){const j="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(S3(y)||y.type==="CapturingGroup")throw new Error(j)}else if(S3(y)||$3(y)&&y.negate)throw new Error(j)}}h=E3(r[t.nextIndex])}return t.nextIndex++,d}function $j({kind:e,min:t,max:n},r){const a=r.parent,l=a.body.at(-1);if(!l||!xj(l))throw new Error("Quantifier requires a repeatable token");const i=tb(e,t,n,l);return a.body.pop(),i}function Aj({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const l=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(l){const u=+l.groups.num,d=n.length;if(t.hasNumberedRef=!0,a={"":u,"+":d+u,"-":d+1-u}[l.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const i=nb(a);return r.push(i),i}function Ej(e,t){return{type:"AbsenceFunction",kind:e,body:R0(t==null?void 0:t.body)}}function Bl(e){return{type:"Alternative",body:rb(e==null?void 0:e.body)}}function bf(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function yf(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function eb(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Pj(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:R0(t==null?void 0:t.body)}}function fm(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function jp(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:rb(e==null?void 0:e.body)}}function Dj(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function xf(e,t){const n=!!(t!=null&&t.negate),r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function zj(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Kc(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Tj(e){return{type:"Flags",...e}}function Eo(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:R0(e==null?void 0:e.body)}}function Dl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:R0(e==null?void 0:e.body)}}function Mj(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function Lj(e,t){const n=!!(t!=null&&t.negate);if(!y2.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function tb(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function Ij(e,t){return{type:"Regex",body:R0(t==null?void 0:t.body),flags:e}}function nb(e){return{type:"Subroutine",ref:e}}function qc(e,t){var a;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(a=n.unicodePropertyMap)==null?void 0:a.get(gm(e));if(!r){if(n.normalizeUnknownPropertyNames)r=qj(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(ir`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function Rj({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return Ej("repeater");case"atomic":return Eo({atomic:!0});case"capturing":return eb(a,{name:n});case"group":return Eo({flags:e});case"lookahead":case"lookbehind":return Dl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function R0(e){if(e===void 0)e=[Bl()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function rb(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function S3(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function $3(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Pj(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function qj(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function gm(e){return e.replace(/[- _]+/g,"").toLowerCase()}function A3(e,t){const n=t;return Kc(e,`Unclosed character class${(n==null?void 0:n.type)==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function E3(e){return Kc(e,"Unclosed group")}function v0(e,t,n=null){function r(l,i){for(let u=0;u<l.length;u++){const d=a(l[u],i,u,l);u=Math.max(-1,u+d)}}function a(l,i=null,u=null,d=null){var N,z;let m=0,v=!1;const f={node:l,parent:i,key:u,container:d,root:e,remove(){op(d).splice(Math.max(0,zc(u)+m),1),m--,v=!0},removeAllNextSiblings(){return op(d).splice(zc(u)+1)},removeAllPrevSiblings(){const E=zc(u)+m;return m-=E,op(d).splice(0,Math.max(0,E))},replaceWith(E,P={}){const M=!!P.traverse;d?d[Math.max(0,zc(u)+m)]=E:Kc(i,"Can't replace root node")[u]=E,M&&a(E,i,u,d),v=!0},replaceWithMultiple(E,P={}){const M=!!P.traverse;if(op(d).splice(Math.max(0,zc(u)+m),1,...E),m+=E.length-1,M){let L=0;for(let U=0;U<E.length;U++)L+=a(E[U],i,zc(u)+U+L,d)}v=!0},skip(){v=!0}},{type:h}=l,b=t["*"],y=t[h],j=typeof b=="function"?b:b==null?void 0:b.enter,C=typeof y=="function"?y:y==null?void 0:y.enter;if(j==null||j(f,n),C==null||C(f,n),!v)switch(h){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(l.body,l);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(l.min,l,"min"),a(l.max,l,"max");break;case"Quantifier":a(l.body,l,"body");break;case"Regex":r(l.body,l),a(l.flags,l,"flags");break;default:throw new Error(`Unexpected node type "${h}"`)}return(N=y==null?void 0:y.exit)==null||N.call(y,f,n),(z=b==null?void 0:b.exit)==null||z.call(b,f,n),m}return a(e),e}function op(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function zc(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Fj=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Oj(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Bj(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const ro=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function _2(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),l=[!1];let i=0,u="";for(const d of e.matchAll(a)){const{0:m,groups:{$skip:v}}=d;if(!v&&(!r||r===ro.DEFAULT==!i)){n instanceof Function?u+=n(d,{context:i?ro.CHAR_CLASS:ro.DEFAULT,negated:l[l.length-1]}):u+=n;continue}m[0]==="["?(i++,l.push(m[1]==="^")):m==="]"&&i&&(i--,l.pop()),u+=m}return u}function ab(e,t,n,r){_2(e,t,n,r)}function Hj(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let l=0,i;for(;i=a.exec(e);){const{0:u,groups:{$skip:d}}=i;if(!d&&(!r||r===ro.DEFAULT==!l))return i;u==="["?l++:u==="]"&&l&&l--,a.lastIndex==i.index&&a.lastIndex++}return null}function sp(e,t,n){return!!Hj(e,t,0,n)}function Uj(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,l=1,i;for(;i=n.exec(e);){const[u]=i;if(u==="[")a++;else if(a)u==="]"&&a--;else if(u==="(")l++;else if(u===")"&&(l--,!l)){r=i.index;break}}return e.slice(t,r)}const D3=new RegExp(String.raw`(?<noncapturingStart>${Fj})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Vj(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const a="(?>",l="(?:(?=(",i=[0],u=[];let d=0,m=0,v=NaN,f;do{f=!1;let h=0,b=0,y=!1,j;for(D3.lastIndex=Number.isNaN(v)?0:v+l.length;j=D3.exec(e);){const{0:C,index:N,groups:{capturingStart:z,noncapturingStart:E}}=j;if(C==="[")h++;else if(h)C==="]"&&h--;else if(C===a&&!y)v=N,y=!0;else if(y&&E)b++;else if(z)y?b++:(d++,i.push(d+m));else if(C===")"&&y){if(!b){m++;const P=d+m;if(e=`${e.slice(0,v)}${l}${e.slice(v+a.length,N)}))<$$${P}>)${e.slice(N+1)}`,f=!0,u.push(P),Oj(n,P),r.size){const M=new Map;r.forEach((L,U)=>{M.set(U>=P?U+1:U,L.map(W=>W>=P?W+1:W))}),r=M}break}b--}}}while(f);return n.push(...u),e=_2(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:b,wrappedBackrefNum:y}})=>{if(b){const j=+b;if(j>i.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${i[j]}`}return`\\${y}`},ro.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const ob=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,vh=new RegExp(String.raw`
|
|
85
|
+
\\(?: \d+
|
|
86
|
+
| c[A-Za-z]
|
|
87
|
+
| [gk]<[^>]+>
|
|
88
|
+
| [pPu]\{[^\}]+\}
|
|
89
|
+
| u[A-Fa-f\d]{4}
|
|
90
|
+
| x[A-Fa-f\d]{2}
|
|
91
|
+
)
|
|
92
|
+
| \((?: \? (?: [:=!>]
|
|
93
|
+
| <(?:[=!]|[^>]+>)
|
|
94
|
+
| [A-Za-z\-]+:
|
|
95
|
+
| \(DEFINE\)
|
|
96
|
+
))?
|
|
97
|
+
| (?<qBase>${ob})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
98
|
+
| \\?.
|
|
99
|
+
`.replace(/\s+/g,""),"gsu");function Gj(e){if(!new RegExp(`${ob}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",l=0,i;for(vh.lastIndex=0;i=vh.exec(e);){const{0:u,index:d,groups:{qBase:m,qMod:v,invalidQ:f}}=i;if(u==="[")l||(r=d),l++;else if(u==="]")l?l--:r=null;else if(!l)if(v==="+"&&a&&!a.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${u}"`);let h=-1;if(/^\{\d+\}$/.test(m))e=Bj(e,d+m.length,v,"");else{if(a===")"||a==="]"){const b=a===")"?n:r;if(b===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,b)}(?>${e.slice(b,d)}${m})${e.slice(d+u.length)}`}else e=`${e.slice(0,d-a.length)}(?>${a}${m})${e.slice(d+u.length)}`;h+=4}vh.lastIndex+=h}else u[0]==="("?t.push(d):u===")"&&(n=t.length?t.pop():null);a=u}return{pattern:e}}const to=String.raw,Wj=to`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,_f=to`\(\?R=(?<rDepth>[^\)]+)\)|${Wj}`,vm=to`\(\?<(?![=!])(?<captureName>[^>]+)>`,sb=to`${vm}|(?<unnamed>\()(?!\?)`,Cl=new RegExp(to`${vm}|${_f}|\(\?|\\?.`,"gsu"),bh="Cannot use multiple overlapping recursions";function Zj(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(_f,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&sp(e,to`\(\?\(DEFINE\)`,ro.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const l=[],i=sp(e,to`\\[1-9]`,ro.DEFAULT),u=new Map,d=[];let m=!1,v=0,f=0,h;for(Cl.lastIndex=0;h=Cl.exec(e);){const{0:b,groups:{captureName:y,rDepth:j,gRNameOrNum:C,gRDepth:N}}=h;if(b==="[")v++;else if(v)b==="]"&&v--;else if(j){if(z3(j),m)throw new Error(bh);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const z=e.slice(0,h.index),E=e.slice(Cl.lastIndex);if(sp(E,_f,ro.DEFAULT))throw new Error(bh);const P=+j-1;e=T3(z,E,P,!1,n,l,f),a=L3(a,z,P,l.length,0,f);break}else if(C){z3(N);let z=!1;for(const K of d)if(K.name===C||K.num===+C){if(z=!0,K.hasRecursedWithin)throw new Error(bh);break}if(!z)throw new Error(to`Recursive \g cannot be used outside the referenced group "${r==="external"?C:to`\g<${C}&R=${N}>`}"`);const E=u.get(C),P=Uj(e,E);if(i&&sp(P,to`${vm}|\((?!\?)`,ro.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const M=e.slice(E,h.index),L=P.slice(M.length+b.length),U=l.length,W=+N-1,O=T3(M,L,W,!0,n,l,f);a=L3(a,M,W,l.length-U,U,f);const q=e.slice(0,E),F=e.slice(E+P.length);e=`${q}${O}${F}`,Cl.lastIndex+=O.length-b.length-M.length-L.length,d.forEach(K=>K.hasRecursedWithin=!0),m=!0}else if(y)f++,u.set(String(f),Cl.lastIndex),u.set(y,Cl.lastIndex),d.push({num:f,name:y});else if(b[0]==="("){const z=b==="(";z&&(f++,u.set(String(f),Cl.lastIndex)),d.push(z?{num:f}:{})}else b===")"&&d.pop()}return n.push(...l),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function z3(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function T3(e,t,n,r,a,l,i){const u=new Set;r&&ab(e+t,vm,({groups:{captureName:m}})=>{u.add(m)},ro.DEFAULT);const d=[n,r?u:null,a,l,i];return`${e}${M3(`(?:${e}`,"forward",...d)}(?:)${M3(`${t})`,"backward",...d)}${t}`}function M3(e,t,n,r,a,l,i){const d=v=>t==="forward"?v+2:n-v+2-1;let m="";for(let v=0;v<n;v++){const f=d(v);m+=_2(e,to`${sb}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:b,unnamed:y,backref:j}})=>{if(j&&r&&!r.has(j))return h;const C=`_$${f}`;if(y||b){const N=i+l.length+1;return l.push(N),Qj(a,N),y?h:`(?<${b}${C}>`}return to`\k<${j}${C}>`},ro.DEFAULT)}return m}function Qj(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function L3(e,t,n,r,a,l){if(e.size&&r){let i=0;ab(t,sb,()=>i++,ro.DEFAULT);const u=l-i+a,d=new Map;return e.forEach((m,v)=>{const f=(r-i*n)/n,h=i*n,b=v>u+i?v+r:v,y=[];for(const j of m)if(j<=u)y.push(j);else if(j>u+i+f)y.push(j+r);else if(j<=u+i)for(let C=0;C<=n;C++)y.push(j+i*C);else for(let C=0;C<=n;C++)y.push(j+h+f*C);d.set(b,y)}),d}return e}var Gn=String.fromCodePoint,ft=String.raw,Do={},bm=globalThis.RegExp;Do.flagGroups=(()=>{try{new bm("(?i:)")}catch{return!1}return!0})();Do.unicodeSets=(()=>{try{new bm("[[]]","v")}catch{return!1}return!0})();Do.bugFlagVLiteralHyphenIsRange=Do.unicodeSets?(()=>{try{new bm(ft`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Do.bugNestedClassIgnoresNegation=Do.unicodeSets&&new bm("[[^a]]","v").test("a");function Fp(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function S0(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function wf(e,t){return I3[e]>=I3[t]}function Xj(e,t){if(e==null)throw new Error(t??"Value expected");return e}var I3={ES2025:2025,ES2024:2024,ES2018:2018},Yj={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function ib(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Yj[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Do.flagGroups?"ES2025":Do.unicodeSets?"ES2024":"ES2018"),t}var Kj="[ -\r ]",Jj=new Set([Gn(304),Gn(305)]),qs=ft`[\p{L}\p{M}\p{N}\p{Pc}]`;function lb(e){if(Jj.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=nC.get(n),l=eC.get(n),i=tC.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),a&&t.add(a),t.add(n),l&&t.add(l),[...t]}var w2=new Map(`C Other
|
|
100
|
+
Cc Control cntrl
|
|
101
|
+
Cf Format
|
|
102
|
+
Cn Unassigned
|
|
103
|
+
Co Private_Use
|
|
104
|
+
Cs Surrogate
|
|
105
|
+
L Letter
|
|
106
|
+
LC Cased_Letter
|
|
107
|
+
Ll Lowercase_Letter
|
|
108
|
+
Lm Modifier_Letter
|
|
109
|
+
Lo Other_Letter
|
|
110
|
+
Lt Titlecase_Letter
|
|
111
|
+
Lu Uppercase_Letter
|
|
112
|
+
M Mark Combining_Mark
|
|
113
|
+
Mc Spacing_Mark
|
|
114
|
+
Me Enclosing_Mark
|
|
115
|
+
Mn Nonspacing_Mark
|
|
116
|
+
N Number
|
|
117
|
+
Nd Decimal_Number digit
|
|
118
|
+
Nl Letter_Number
|
|
119
|
+
No Other_Number
|
|
120
|
+
P Punctuation punct
|
|
121
|
+
Pc Connector_Punctuation
|
|
122
|
+
Pd Dash_Punctuation
|
|
123
|
+
Pe Close_Punctuation
|
|
124
|
+
Pf Final_Punctuation
|
|
125
|
+
Pi Initial_Punctuation
|
|
126
|
+
Po Other_Punctuation
|
|
127
|
+
Ps Open_Punctuation
|
|
128
|
+
S Symbol
|
|
129
|
+
Sc Currency_Symbol
|
|
130
|
+
Sk Modifier_Symbol
|
|
131
|
+
Sm Math_Symbol
|
|
132
|
+
So Other_Symbol
|
|
133
|
+
Z Separator
|
|
134
|
+
Zl Line_Separator
|
|
135
|
+
Zp Paragraph_Separator
|
|
136
|
+
Zs Space_Separator
|
|
137
|
+
ASCII
|
|
138
|
+
ASCII_Hex_Digit AHex
|
|
139
|
+
Alphabetic Alpha
|
|
140
|
+
Any
|
|
141
|
+
Assigned
|
|
142
|
+
Bidi_Control Bidi_C
|
|
143
|
+
Bidi_Mirrored Bidi_M
|
|
144
|
+
Case_Ignorable CI
|
|
145
|
+
Cased
|
|
146
|
+
Changes_When_Casefolded CWCF
|
|
147
|
+
Changes_When_Casemapped CWCM
|
|
148
|
+
Changes_When_Lowercased CWL
|
|
149
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
150
|
+
Changes_When_Titlecased CWT
|
|
151
|
+
Changes_When_Uppercased CWU
|
|
152
|
+
Dash
|
|
153
|
+
Default_Ignorable_Code_Point DI
|
|
154
|
+
Deprecated Dep
|
|
155
|
+
Diacritic Dia
|
|
156
|
+
Emoji
|
|
157
|
+
Emoji_Component EComp
|
|
158
|
+
Emoji_Modifier EMod
|
|
159
|
+
Emoji_Modifier_Base EBase
|
|
160
|
+
Emoji_Presentation EPres
|
|
161
|
+
Extended_Pictographic ExtPict
|
|
162
|
+
Extender Ext
|
|
163
|
+
Grapheme_Base Gr_Base
|
|
164
|
+
Grapheme_Extend Gr_Ext
|
|
165
|
+
Hex_Digit Hex
|
|
166
|
+
IDS_Binary_Operator IDSB
|
|
167
|
+
IDS_Trinary_Operator IDST
|
|
168
|
+
ID_Continue IDC
|
|
169
|
+
ID_Start IDS
|
|
170
|
+
Ideographic Ideo
|
|
171
|
+
Join_Control Join_C
|
|
172
|
+
Logical_Order_Exception LOE
|
|
173
|
+
Lowercase Lower
|
|
174
|
+
Math
|
|
175
|
+
Noncharacter_Code_Point NChar
|
|
176
|
+
Pattern_Syntax Pat_Syn
|
|
177
|
+
Pattern_White_Space Pat_WS
|
|
178
|
+
Quotation_Mark QMark
|
|
179
|
+
Radical
|
|
180
|
+
Regional_Indicator RI
|
|
181
|
+
Sentence_Terminal STerm
|
|
182
|
+
Soft_Dotted SD
|
|
183
|
+
Terminal_Punctuation Term
|
|
184
|
+
Unified_Ideograph UIdeo
|
|
185
|
+
Uppercase Upper
|
|
186
|
+
Variation_Selector VS
|
|
187
|
+
White_Space space
|
|
188
|
+
XID_Continue XIDC
|
|
189
|
+
XID_Start XIDS`.split(/\s/).map(e=>[gm(e),e])),eC=new Map([["s",Gn(383)],[Gn(383),"s"]]),tC=new Map([[Gn(223),Gn(7838)],[Gn(107),Gn(8490)],[Gn(229),Gn(8491)],[Gn(969),Gn(8486)]]),nC=new Map([Li(453),Li(456),Li(459),Li(498),...yh(8072,8079),...yh(8088,8095),...yh(8104,8111),Li(8124),Li(8140),Li(8188)]),rC=new Map([["alnum",ft`[\p{Alpha}\p{Nd}]`],["alpha",ft`\p{Alpha}`],["ascii",ft`\p{ASCII}`],["blank",ft`[\p{Zs}\t]`],["cntrl",ft`\p{Cc}`],["digit",ft`\p{Nd}`],["graph",ft`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ft`\p{Lower}`],["print",ft`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ft`[\p{P}\p{S}]`],["space",ft`\p{space}`],["upper",ft`\p{Upper}`],["word",ft`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ft`\p{AHex}`]]);function aC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Li(e){const t=Gn(e);return[t.toLowerCase(),t]}function yh(e,t){return aC(e,t).map(n=>Li(n))}var cb=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function oC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};ub(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:wf(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};v0(e,sC,r);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},l={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};v0(e,iC,l);const i={groupsByName:l.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:l.reffedNodesByReferencer};return v0(e,lC,i),e._originMap=l.groupOriginByCopy,e._strategy=r.strategy,e}var sC={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const l=Eo();l.body[0].body.push(Dl({negate:!0,body:r}),qc("Any"));const i=Eo();i.body[0].body.push(tb("greedy",0,1/0,l)),n(An(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const a=e.body.filter(l=>l.kind==="flags");for(let l=n+1;l<t.body.length;l++){const i=t.body[l];S0(r,i,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=pb(t.get(e));if(r){const a=Eo({flags:r});a.body[0].body=e.body,e.body=[An(a,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:l,replaceWith:i},u){const{kind:d,negate:m}=e,{asciiWordBoundaries:v,avoidSubclass:f,supportedGNodes:h,wordIsAscii:b}=u;if(d==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${m?"Y":"y"}"`);if(d==="line_end")i(An(Dl({body:[Bl({body:[bf("string_end")]}),Bl({body:[fm(10)]})]}),t));else if(d==="line_start")i(An(Fs(ft`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(d==="search_start")if(h.has(e))a.flags.sticky=!0,l();else{const y=r[n-1];if(y&&hC(y))i(An(Dl({negate:!0}),t));else{if(f)throw new Error(ft`Uses "\G" in a way that requires a subclass`);i(Ii(bf("string_start"),t)),u.strategy="clip_search"}}else if(!(d==="string_end"||d==="string_start"))if(d==="string_end_newline")i(An(Fs(ft`(?=\n?\z)`),t));else if(d==="word_boundary"){if(!b&&!v){const y=`(?:(?<=${qs})(?!${qs})|(?<!${qs})(?=${qs}))`,j=`(?:(?<=${qs})(?=${qs})|(?<!${qs})(?!${qs}))`;i(An(Fs(m?j:y),t))}}else throw new Error(`Unexpected assertion kind "${d}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!_h(n)&&(n=xh(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!_h(r)&&(r=xh(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=jp({body:[e]});n(An(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:l,spaceIsAscii:i,wordIsAscii:u}){const{kind:d,negate:m,value:v}=e;if(l&&(d==="digit"||v==="digit")){n(Ii(xf("digit",{negate:m}),t));return}if(i&&(d==="space"||v==="space")){n(An(wh(Fs(Kj),m),t));return}if(u&&(d==="word"||v==="word")){n(Ii(xf("word",{negate:m}),t));return}if(d==="any")n(Ii(qc("Any"),t));else if(d==="digit")n(Ii(qc("Nd",{negate:m}),t));else if(d!=="dot")if(d==="text_segment"){if(r==="strict")throw new Error(ft`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=ft`\p{RI}{2}|${f}(?:\u200D${f})*`;n(An(Fs(ft`(?>\r\n|${a?ft`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(d==="hex")n(Ii(qc("AHex",{negate:m}),t));else if(d==="newline")n(An(Fs(m?`[^
|
|
190
|
+
]`:`(?>\r
|
|
191
|
+
?|[
|
|
192
|
+
\v\f
\u2028\u2029])`),t));else if(d==="posix")if(!a&&(v==="graph"||v==="print")){if(r==="strict")throw new Error(`POSIX class "${v}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[v];m&&(f=`\0-${Gn(f.codePointAt(0)-1)}${Gn(f.codePointAt(2)+1)}-`),n(An(Fs(`[${f}]`),t))}else n(An(wh(Fs(rC.get(v)),m),t));else if(d==="property")w2.has(gm(v))||(e.key="sc");else if(d==="space")n(Ii(qc("space",{negate:m}),t));else if(d==="word")n(An(wh(Fs(qs),m),t));else throw new Error(`Unexpected character set kind "${d}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:l,removeAllNextSiblings:i}){const{kind:u,flags:d}=e;if(u==="flags")if(!d.enable&&!d.disable)r();else{const m=Eo({flags:d});m.body[0].body=i(),a(An(m,t),{traverse:!0})}else if(u==="keep"){const m=n.body[0],f=n.body.length===1&&K6(m,{type:"Group"})&&m.body[0].body.length===1?m.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(ft`Uses "\K" in a way that's unsupported`);const h=Dl({behind:!0});h.body[0].body=l(),a(An(h,t))}else throw new Error(`Unexpected directive kind "${u}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(An(Dl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Eo();t.body[0].body.push(e.body),e.body=An(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,a=!1;for(const l of e.body)if(l.body.length===1&&l.body[0].kind==="search_start")l.body.pop();else{const i=hb(l.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):a=!0}r&&!a&&n.forEach(l=>t.add(l))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(ft`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!_h(n)&&(n=xh(n,t),e.ref=n)}},iC={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:l})=>l)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:l,multiplexCapturesToLeftByRef:i,openRefs:u,reffedNodesByReferencer:d}){const m=a.get(e);if(m&&u.has(e.number)){const f=Ii(R3(e.number),t);d.set(f,u.get(e.number)),n(f);return}u.set(e.number,e),i.set(e.number,[]),e.name&&S0(i,e.name,[]);const v=i.get(e.name??e.number);for(let f=0;f<v.length;f++){const h=v[f];if(m===h.node||m&&m===h.origin||e===h.origin){v.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:m}),e.name&&i.get(e.name).push({node:e,origin:m}),e.name){const f=S0(l,e.name,new Map);let h=!1;if(m)h=!0;else for(const b of f.values())if(!b.hasDuplicateNameToRemove){h=!0;break}l.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Fp(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:l}=e;if(a){let v=t;for(;(v=v.parent)&&!(v.type==="CapturingGroup"&&(v.name===l||v.number===l)););r.reffedNodesByReferencer.set(e,v);return}const i=r.subroutineRefMap.get(l),u=l===0,d=u?R3(0):db(i,r.groupOriginByCopy,null);let m=d;if(!u){const v=pb(dC(i,h=>h.type==="Group"&&!!h.flags)),f=v?Fp(r.globalFlags,v):r.globalFlags;cC(f,r.currentFlags)||(m=Eo({flags:pC(f)}),m.body[0].body.push(d))}n(An(m,t),{traverse:!u})}},lC={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const l=r.reffedNodesByReferencer.get(e).filter(i=>uC(i,e));if(!l.length)n(An(Dl({negate:!0}),t));else if(l.length>1){const i=Eo({atomic:!0,body:l.reverse().map(u=>Bl({body:[yf(u.number)]}))});n(An(i,t))}else e.ref=l[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const a=eb();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function ub(e){v0(e,{"*"({node:t,parent:n}){t.parent=n}})}function cC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function uC(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=mb(n.parent);for(const a of r){if(a===n)break;if(a===e||fb(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function db(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[l,i]of Object.entries(e))l==="parent"?a.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?a[l]=db(i,t,a,n):(l==="type"&&i==="CapturingGroup"&&t.set(a,t.get(e)??e),a[l]=i);return a}function R3(e){const t=nb(e);return t.isRecursive=!0,t}function dC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function xh(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function pb(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{var l,i;(l=r.enable)!=null&&l[a]&&(delete n.disable[a],n.enable[a]=!0),(i=r.disable)!=null&&i[a]&&(n.disable[a]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function pC({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function mb(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function hb(e){const t=e.find(n=>n.kind==="search_start"||fC(n,{negate:!1})||!mC(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const a=hb(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function fb(e,t){const n=mb(e)??[];for(const r of n)if(r===t||fb(r,t))return!0;return!1}function mC({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function hC(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function fC(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&K6(e.body[0],{type:"Assertion",kind:"search_start"})}function _h(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Fs(e,t){const r=J6(e,{...t,unicodePropertyMap:w2}).body;return r.length>1||r[0].body.length>1?Eo({body:r}):r[0].body[0]}function wh(e,t){return e.negate=t,e}function Ii(e,t){return e.parent=t,e}function An(e,t){return ub(e),e.parent=t,e}function gC(e,t){const n=ib(t),r=wf(n.target,"ES2024"),a=wf(n.target,"ES2025"),l=n.rules.recursionLimit;if(!Number.isInteger(l)||l<2||l>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,u=null;if(!a){const b=[e.flags.ignoreCase];v0(e,vC,{getCurrentModI:()=>b.at(-1),popModI(){b.pop()},pushModI(y){b.push(y)},setHasCasedChar(){b.at(-1)?i=!0:u=!0}})}const d={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!u)};let m=e;const v={accuracy:n.accuracy,appliedGlobalFlags:d,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:m,originMap:e._originMap,recursionLimit:l,useAppliedIgnoreCase:!!(!a&&i&&u),useFlagMods:a,useFlagV:r,verbose:n.verbose};function f(b){return v.lastNode=m,m=b,Xj(bC[b.type],`Unexpected node type "${b.type}"`)(b,v,f)}const h={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],v.captureMap.forEach((b,y)=>{b.hidden&&h._hiddenCaptures.push(y),b.transferTo&&S0(h._captureTransfers,b.transferTo,[]).push(y)}),h}var vC={"*":{enter({node:e},t){if(q3(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Fp({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){q3(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){j2(Gn(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),gb(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&cb.has(e.value)&&t.setHasCasedChar()}},bC={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ft`\B`:ft`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:a,number:l}=e,i={ignoreCase:t.currentFlags.ignoreCase},u=t.originMap.get(e);return u&&(i.hidden=!0,l>u.number&&(i.transferTo=u.number)),t.captureMap.set(l,i),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Gn(e),r=Tc(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&j2(n)){const a=lb(n);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:a,parent:l}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Do.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(F3)&&(i=[fm(45),...i.filter(m=>!F3(m))]);const u=()=>`[${a?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Do.bugNestedClassIgnoresNegation)&&!a){const v=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(v.length){const f=Eo(),h=f.body[0];return f.parent=l,h.parent=f,i=i.filter(b=>!v.includes(b)),e.body=i,i.length?(e.parent=h,h.body.push(e)):f.body.pop(),v.forEach(b=>{const y=Bl({body:[b]});b.parent=y,y.parent=f,f.body.push(y)}),n(f)}}t.inCharClass=!0;const m=u();return t.inCharClass=!1,m}const d=i[0];if(r==="union"&&!a&&d&&((!t.useFlagV||!t.verbose)&&l.kind==="union"&&!(Do.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&l.kind==="intersection"&&i.length===1&&d.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&l.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return u()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},l=Tc(n,a),i=Tc(r,a),u=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const d=gb(e);jC(d).forEach(v=>{u.add(Array.isArray(v)?`${Tc(v[0],a)}-${Tc(v[1],a)}`:Tc(v,a))})}return`${l}-${i}${[...u].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":ft`[^\n]`;if(e==="digit")return t?ft`\D`:ft`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&cb.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ft`\P`:ft`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ft`\W`:ft`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},a,l){const i=a.currentFlags;n&&(a.currentFlags=Fp(i,n));const u=t.map(l).join("|"),d=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?u:`(?${CC(e,n,a.useFlagMods)}${u})`;return a.currentFlags=i,d},LookaroundAssertion({body:e,kind:t,negate:n},r,a){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,n){return n(e.body)+kC(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:ft`\g<${t}&R=${r}>`}},yC=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),xC=new Set(["-","\\","]","^","["]),_C=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),P3=new Map([[9,ft`\t`],[10,ft`\n`],[11,ft`\v`],[12,ft`\f`],[13,ft`\r`],[8232,ft`\u2028`],[8233,ft`\u2029`],[65279,ft`\uFEFF`]]),wC=new RegExp("^\\p{Cased}$","u");function j2(e){return wC.test(e)}function gb(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,a=e.max.value,l=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return l;for(let i=r;i<=a;i++){const u=Gn(i);if(!j2(u))continue;const d=lb(u).filter(m=>{const v=m.codePointAt(0);return v<r||v>a});if(d.length&&(l.push(...d),n))break}return l}function Tc(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(P3.has(e))return P3.get(e);if(e<32||e>126&&e<160||e>262143||t&&NC(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?_C:xC:yC,l=Gn(e);return(a.has(l)?"\\":"")+l}function jC(e){const t=e.map(a=>a.codePointAt(0)).sort((a,l)=>a-l),n=[];let r=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?r??(r=t[a]):r===null?n.push(t[a]):(n.push([r,t[a]]),r=null);return n}function CC(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:l}=t;r=(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")+(l?"-":"")+(l!=null&&l.ignoreCase?"i":"")+(l!=null&&l.dotAll?"s":"")}return`${r}:`}function kC({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function q3({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function NC(e){return e>47&&e<58}function F3({type:e,value:t}){return e==="Character"&&t===45}var Ri,Vs,Pl,Pi,ql,M0,jf,Bi,SC=(Bi=class extends RegExp{constructor(n,r,a){var t=(...zre)=>(super(...zre),jl(this,M0),jl(this,Ri,new Map),jl(this,Vs,null),jl(this,Pl),jl(this,Pi,null),jl(this,ql,null),se(this,"rawOptions",{}),this);const l=!!(a!=null&&a.lazyCompile);if(n instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),jo(this,Pl,i.source),i instanceof Bi&&(jo(this,Ri,Br(i,Ri)),jo(this,Pi,Br(i,Pi)),jo(this,ql,Br(i,ql)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...a};t(l?"":n,r),jo(this,Pl,n),jo(this,Ri,AC(i.hiddenCaptures,i.transfers)),jo(this,ql,i.strategy),this.rawOptions=a??{}}l||jo(this,Vs,this)}get source(){return Br(this,Pl)||"(?:)"}exec(n){if(!Br(this,Vs)){const{lazyCompile:l,...i}=this.rawOptions;jo(this,Vs,new Bi(Br(this,Pl),this.flags,i))}const r=this.global||this.sticky,a=this.lastIndex;if(Br(this,ql)==="clip_search"&&r&&a){this.lastIndex=0;const l=J1(this,M0,jf).call(this,n.slice(a));return l&&($C(l,a,n,this.hasIndices),this.lastIndex+=a),l}return J1(this,M0,jf).call(this,n)}},Ri=new WeakMap,Vs=new WeakMap,Pl=new WeakMap,Pi=new WeakMap,ql=new WeakMap,M0=new WeakSet,jf=function(n){Br(this,Vs).lastIndex=this.lastIndex;const r=Pg(Bi.prototype,this,"exec").call(Br(this,Vs),n);if(this.lastIndex=Br(this,Vs).lastIndex,!r||!Br(this,Ri).size)return r;const a=[...r];r.length=1;let l;this.hasIndices&&(l=[...r.indices],r.indices.length=1);const i=[0];for(let u=1;u<a.length;u++){const{hidden:d,transferTo:m}=Br(this,Ri).get(u)??{};if(d?i.push(null):(i.push(r.length),r.push(a[u]),this.hasIndices&&r.indices.push(l[u])),m&&a[u]!==void 0){const v=i[m];if(!v)throw new Error(`Invalid capture transfer to "${v}"`);if(r[v]=a[u],this.hasIndices&&(r.indices[v]=l[u]),r.groups){Br(this,Pi)||jo(this,Pi,EC(this.source));const f=Br(this,Pi).get(m);f&&(r.groups[f]=a[u],this.hasIndices&&(r.indices.groups[f]=l[u]))}}}return r},Bi);function $C(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let i=0;i<a.length;i++){const u=a[i];u&&(a[i]=[u[0]+t,u[1]+t])}const l=a.groups;l&&Object.keys(l).forEach(i=>{const u=l[i];u&&(l[i]=[u[0]+t,u[1]+t])})}}function AC(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const l of a)S0(n,l,{}).transferTo=r;return n}function EC(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,l;for(;l=t.exec(e);){const{0:i,groups:{capture:u,name:d}}=l;i==="["?r++:r?i==="]"&&r--:u&&(a++,d&&n.set(a,d))}return n}function DC(e,t){const n=zC(e,t);return n.options?new SC(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function zC(e,t){const n=ib(t),r=J6(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:w2}),a=oC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),l=gC(a,n),i=Zj(l.pattern,{captureTransfers:l._captureTransfers,hiddenCaptures:l._hiddenCaptures,mode:"external"}),u=Gj(i.pattern),d=Vj(u.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),m={pattern:d.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${l.flags}${l.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const v=d.hiddenCaptures.sort((y,j)=>y-j),f=Array.from(d.captureTransfers),h=a._strategy,b=m.pattern.length>=n.lazyCompileLength;(v.length||f.length||h||b)&&(m.options={...v.length&&{hiddenCaptures:v},...f.length&&{transfers:f},...h&&{strategy:h},...b&&{lazyCompile:b}})}return m}function vb(e,t){return DC(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function TC(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||(t.regexConstructor=n=>vb(n,{target:t.target})),{createScanner(n){return new Qw(n,t)},createString(n){return{content:n}}}}const MC=Object.freeze(JSON.parse('{"displayName":"TypeScript","name":"typescript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},"after-operator-block-as-object-literal":{"begin":"(?<!\\\\+\\\\+|--)(?<=[!(+,:=>?\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.ts"},{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async))?((?<![]!)}])\\\\s*(?=((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"((?<=[}\\\\S])(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.ts","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(async)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.async.ts"},"binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern"},{"include":"#array-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"}]},"binding-element-const":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern-const"},{"include":"#array-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"}]},"boolean-literal":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))true(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.true.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.ts"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"captures":{"1":{"name":"meta.brace.angle.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"meta.brace.angle.ts"}},"match":"\\\\s*(<)\\\\s*(const)\\\\s*(>)","name":"cast.expr.ts"},{"begin":"(?<!\\\\+\\\\+|--)(?<=^return|[^$._[:alnum:]]return|^throw|[^$._[:alnum:]]throw|^yield|[^$._[:alnum:]]yield|^await|[^$._[:alnum:]]await|^default|[^$._[:alnum:]]default|[\\\\&(*,:=>?^|]|[^$_[:alnum:]](?:\\\\+\\\\+|--)|[^+]\\\\+|[^-]-)\\\\s*(<)(?!<?=)(?!\\\\s*$)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]},{"begin":"(?<=^)\\\\s*(<)(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*>)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]}]},"class-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.class.ts"}},"end":"(?<=})","name":"meta.class.ts","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-declaration-or-expression-patterns":{"patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.class.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"class-expression":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(class)\\\\b(?=\\\\s+|[<{]|/[*/])","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.type.class.ts"}},"end":"(?<=})","name":"meta.class.ts","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"include":"#decorator"},{"begin":"(?<=:)\\\\s*","end":"(?=[-\\\\])+,:;}\\\\s]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#expression"}]},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#field-declaration"},{"include":"#string"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"include":"#access-modifier"},{"include":"#property-accessor"},{"include":"#async-modifier"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"class-or-interface-heritage":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(extends|implements)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"name":"comment.block.documentation.ts","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"},"2":{"name":"storage.type.internaldeclaration.ts"},"3":{"name":"punctuation.decorator.internaldeclaration.ts"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"name":"comment.block.ts"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ts"},"2":{"name":"comment.line.double-slash.ts"},"3":{"name":"punctuation.definition.comment.ts"},"4":{"name":"storage.type.internaldeclaration.ts"},"5":{"name":"punctuation.decorator.internaldeclaration.ts"}},"contentName":"comment.line.double-slash.ts","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.ts"},{"captures":{"1":{"name":"keyword.control.loop.ts"},"2":{"name":"entity.name.label.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.ts"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.ts"}},"end":"(?=[;}]|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#expression"}]},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default|switch)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.switch.ts"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.ts"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.block.ts","patterns":[{"include":"#statements"}]},"declaration":{"patterns":[{"include":"#decorator"},{"include":"#var-expr"},{"include":"#function-declaration"},{"include":"#class-declaration"},{"include":"#interface-declaration"},{"include":"#enum-declaration"},{"include":"#namespace-declaration"},{"include":"#type-alias-declaration"},{"include":"#import-equals-declaration"},{"include":"#import-declaration"},{"include":"#export-declaration"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(declare|export)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"}]},"decorator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))@","beginCaptures":{"0":{"name":"punctuation.decorator.ts"}},"end":"(?=\\\\s)","name":"meta.decorator.ts","patterns":[{"include":"#expression"}]},"destructuring-const":{"patterns":[{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.ts","patterns":[{"include":"#object-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.ts","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"name":"meta.parameter.object-binding-pattern.ts","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"name":"meta.paramter.array-binding-pattern.ts","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable":{"patterns":[{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.ts","patterns":[{"include":"#object-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.ts","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"meta.definition.variable.ts variable.other.readwrite.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"meta.definition.variable.ts variable.other.constant.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"directives":{"begin":"^(///)\\\\s*(?=<(reference|amd-dependency|amd-module)(\\\\s+(path|types|no-default-lib|lib|name|resolution-mode)\\\\s*=\\\\s*((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))+\\\\s*/>\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.ts","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.ts"},"2":{"name":"entity.name.tag.directive.ts"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.ts"}},"name":"meta.tag.ts","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"(</)caption(>)|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.ts"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.ts"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|\'(?:\\\\*(?!/)|\\\\\\\\(?!\')|[^*\\\\\\\\])*?\'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"\']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?(?:\\\\b(const)\\\\s+)?\\\\b(enum)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.enum.ts"},"5":{"name":"entity.name.type.enum.ts"}},"end":"(?<=})","name":"meta.enum.declaration.ts","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.ts"}},"end":"(?=[,}]|$)","patterns":[{"include":"#comment"},{"include":"#variable-initializer"}]},{"begin":"(?=((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+])))","end":"(?=[,}]|$)","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#comment"},{"include":"#variable-initializer"}]},{"include":"#punctuation-comma"}]}]},"export-declaration":{"patterns":[{"captures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.as.ts"},"3":{"name":"storage.type.namespace.ts"},"4":{"name":"entity.name.type.module.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)\\\\s+(as)\\\\s+(namespace)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?(?:\\\\s*(=)|\\\\s+(default)(?=\\\\s+))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.type.ts"},"3":{"name":"keyword.operator.assignment.ts"},"4":{"name":"keyword.control.default.ts"}},"end":"(?=$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.export.default.ts","patterns":[{"include":"#interface-declaration"},{"include":"#expression"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?\\\\b(?!(\\\\$)|(\\\\s*:))((?=\\\\s*[*{])|((?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*([,\\\\s]))(?!\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.type.ts"}},"end":"(?=$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.export.ts","patterns":[{"include":"#import-export-declaration"}]}]},"expression":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-inside-possibly-arrow-parens":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*[,:]|$)"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.ts"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.ts"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.ts"},"2":{"name":"keyword.generator.asterisk.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.ts"},{"include":"#typeof-operator"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[]),:;}]))"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"keyword.control.satisfies.ts"}},"end":"(?=^|[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.ts"},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ts"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"keyword.operator.assignment.compound.ts"},"3":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?<!\\\\()(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s+)?(?=\\\\s*(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(?:(?:(\\\\?)|(!))\\\\s*)?([,:;=}]|$))","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?=[,;}]|$|^((?!\\\\s*(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(?:(?:(\\\\?)|(!))\\\\s*)?([,:;=]|$))))|(?<=})","name":"meta.field.declaration.ts","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.ts entity.name.function.ts"},"2":{"name":"keyword.operator.optional.ts"},"3":{"name":"keyword.operator.definiteassignment.ts"}},"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\\\?)|(!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.ts variable.object.property.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"},{"match":"!","name":"keyword.operator.definiteassignment.ts"}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*))await)?\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.ts"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#var-expr"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]}]},"function-body":{"patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#return-type"},{"include":"#type-function-return-type"},{"include":"#decl-block"},{"match":"\\\\*","name":"keyword.generator.asterisk.ts"}]},"function-call":{"patterns":[{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.ts punctuation.accessor.optional.ts"},{"match":"!","name":"meta.function-call.ts keyword.operator.definiteassignment.ts"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"}]},"function-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?(?:(async)\\\\s+)?(function)\\\\b(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.async.ts"},"4":{"name":"storage.type.function.ts"},"5":{"name":"keyword.generator.asterisk.ts"},"6":{"name":"meta.definition.function.ts entity.name.function.ts"}},"end":"(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|(?<=})","name":"meta.function.ts","patterns":[{"include":"#function-name"},{"include":"#function-body"}]},"function-expression":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(async)\\\\s+)?(function)\\\\b(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.function.ts"},"3":{"name":"keyword.generator.asterisk.ts"},"4":{"name":"meta.definition.function.ts entity.name.function.ts"}},"end":"(?=;)|(?<=})","name":"meta.function.expression.ts","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.function.ts entity.name.function.ts"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#function-parameters-body"}]},"function-parameters-body":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"include":"#parameter-name"},{"include":"#parameter-type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"entity.name.function.ts"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.ts"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"include":"#statements"}]}]},"import-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type)(?!\\\\s+from))?(?!\\\\s*[(:])(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"}},"end":"(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)","name":"meta.import.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#string"},{"begin":"(?<=(?:^|[^$._[:alnum:]])import)(?!\\\\s*[\\"\'])","end":"\\\\bfrom\\\\b","endCaptures":{"0":{"name":"keyword.control.from.ts"}},"patterns":[{"include":"#import-export-declaration"}]},{"include":"#import-export-declaration"}]},"import-equals-declaration":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)\\\\s*(require)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"},"5":{"name":"variable.other.readwrite.alias.ts"},"6":{"name":"keyword.operator.assignment.ts"},"7":{"name":"keyword.control.require.ts"},"8":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.import-equals.external.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)\\\\s*(?!require\\\\b)","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"},"5":{"name":"variable.other.readwrite.alias.ts"},"6":{"name":"keyword.operator.assignment.ts"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.ts"}]}]},"import-export-assert-clause":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.ts"},"2":{"name":"keyword.control.assert.ts"},"3":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object-literal.key.ts"},{"match":":","name":"punctuation.separator.key-value.ts"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.block.ts","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.ts"},"2":{"name":"keyword.control.default.ts"},"3":{"name":"constant.language.import-export-all.ts"},"4":{"name":"variable.other.readwrite.ts"},"5":{"name":"string.quoted.alias.ts"},"12":{"name":"keyword.control.as.ts"},"13":{"name":"keyword.control.default.ts"},"14":{"name":"variable.other.readwrite.alias.ts"},"15":{"name":"string.quoted.alias.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(type)\\\\s+)?(?:\\\\b(default)|(\\\\*)|\\\\b([$_[:alpha:]][$_[:alnum:]]*)|((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))\\\\s+(as)\\\\s+(?:(default(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|([$_[:alpha:]][$_[:alnum:]]*)|((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))"},{"include":"#punctuation-comma"},{"match":"\\\\*","name":"constant.language.import-export-all.ts"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.ts"},{"captures":{"1":{"name":"keyword.control.type.ts"},"2":{"name":"variable.other.readwrite.alias.ts"},"3":{"name":"string.quoted.alias.ts"}},"match":"(?:\\\\b(type)\\\\s+)?(?:([$_[:alpha:]][$_[:alnum:]]*)|((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))"}]},"import-export-declaration":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#import-export-block"},{"match":"\\\\bfrom\\\\b","name":"keyword.control.from.ts"},{"include":"#import-export-assert-clause"},{"include":"#import-export-clause"}]},"indexer-declaration":{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=:)","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"meta.brace.square.ts"},"3":{"name":"variable.parameter.ts"}},"end":"(])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.ts"},"2":{"name":"keyword.operator.optional.ts"}},"name":"meta.indexer.declaration.ts","patterns":[{"include":"#type-annotation"}]},"indexer-mapped-type-declaration":{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([-+])?(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(in)\\\\s+","beginCaptures":{"1":{"name":"keyword.operator.type.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"meta.brace.square.ts"},"4":{"name":"entity.name.type.ts"},"5":{"name":"keyword.operator.expression.in.ts"}},"end":"(])([-+])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.ts"},"2":{"name":"keyword.operator.type.modifier.ts"},"3":{"name":"keyword.operator.optional.ts"}},"name":"meta.indexer.mappedtype.declaration.ts","patterns":[{"captures":{"1":{"name":"keyword.control.as.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+"},{"include":"#type"}]},"inline-tags":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.bracket.square.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.square.end.jsdoc"}},"match":"(\\\\[)[^]]+(])(?=\\\\{@(?:link|linkcode|linkplain|tutorial))","name":"constant.other.description.jsdoc"},{"begin":"(\\\\{)((@)(?:link(?:code|plain)?|tutorial))\\\\s*","beginCaptures":{"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"},"2":{"name":"storage.type.class.jsdoc"},"3":{"name":"punctuation.definition.inline.tag.jsdoc"}},"end":"}|(?=\\\\*/)","endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"name":"entity.name.type.instance.jsdoc","patterns":[{"captures":{"1":{"name":"variable.other.link.underline.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?=https?://)(?:[^*|}\\\\s]|\\\\*/)+)(\\\\|)?"},{"captures":{"1":{"name":"variable.other.description.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?:[^*@{|}\\\\s]|\\\\*[^/])+)(\\\\|)?"}]}]},"instanceof-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(instanceof)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.expression.instanceof.ts"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","patterns":[{"include":"#type"}]},"interface-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(interface)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.interface.ts"}},"end":"(?<=})","name":"meta.interface.ts","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"jsdoctype":{"patterns":[{"begin":"\\\\G(\\\\{)","beginCaptures":{"0":{"name":"entity.name.type.instance.jsdoc"},"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"}},"contentName":"entity.name.type.instance.jsdoc","end":"((}))\\\\s*|(?=\\\\*/)","endCaptures":{"1":{"name":"entity.name.type.instance.jsdoc"},"2":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"patterns":[{"include":"#brackets"}]}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"punctuation.separator.label.ts"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"punctuation.separator.label.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?\\\\s*\\\\b(constructor)\\\\b(?!:)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\s*\\\\b(new)\\\\b(?!:)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))|(?:(\\\\*)\\\\s*)?)(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"keyword.operator.new.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.property.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??)\\\\s*[(<])","end":"(?=[(<])","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.method.ts entity.name.function.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"}]},"namespace-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[\\"$\'_`[:alpha:]])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.namespace.ts"}},"end":"(?<=})|(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.namespace.declaration.ts","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.type.module.ts"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.ts"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","name":"new.expr.ts","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.ts"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"storage.type.numeric.bigint.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"storage.type.numeric.bigint.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"storage.type.numeric.bigint.ts"},"7":{"name":"storage.type.numeric.bigint.ts"},"8":{"name":"meta.delimiter.decimal.period.ts"},"9":{"name":"storage.type.numeric.bigint.ts"},"10":{"name":"meta.delimiter.decimal.period.ts"},"11":{"name":"storage.type.numeric.bigint.ts"},"12":{"name":"meta.delimiter.decimal.period.ts"},"13":{"name":"storage.type.numeric.bigint.ts"},"14":{"name":"storage.type.numeric.bigint.ts"}},"match":"(?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)"}]},"numericConstant-literal":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))NaN(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.nan.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.ts"}]},"object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element"}]},{"include":"#object-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-const":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element-const"}]},{"include":"#object-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-propertyName":{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(:)","endCaptures":{"0":{"name":"punctuation.destructuring.ts"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.object.property.ts"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.object.property.ts"},"4":{"name":"variable.other.object.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(#?\\\\p{upper}[$_\\\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"object-literal-method-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"\'`])","end":"(?=:)|((?<=[\\"\'`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)))","end":"(?=:)|(?=\\\\s*([(,<}])|(\\\\s+as|satisifies\\\\s+))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[]\\"\'`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.ts"},"1":{"name":"constant.numeric.decimal.ts"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"},"1":{"name":"entity.name.function.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ts"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=[,}])","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.ts"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"keyword.control.satisfies.ts"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.ts","patterns":[{"include":"#type"}]},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.ts punctuation.separator.key-value.ts"}},"end":"(?=[,}])","name":"meta.object.member.ts","patterns":[{"begin":"(?<=:)\\\\s*(async)?(?=\\\\s*(<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)"}]},"parameter-object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#parameter-binding-element"},{"include":"#paren-expression"}]},{"include":"#parameter-object-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"parameter-object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=[),])|(?==[^>])","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.ts meta.return.type.arrow.ts keyword.operator.type.annotation.ts"}},"contentName":"meta.arrow.ts meta.return.type.arrow.ts","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(accessor|get|set)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.type.property.ts"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#string-character-escape"}]},"regex":{"patterns":[{"begin":"(?<!\\\\+\\\\+|--|})(?<=[!(+,:=?\\\\[]|^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case|=>|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"begin":"((?<![]$)_[:alnum:]]|\\\\+\\\\+|--|}|\\\\*/)|((?<=^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case))\\\\s*)/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]}]},"regex-character-class":{"patterns":[{"match":"\\\\\\\\[DSWdfnrstvw]|\\\\.","name":"constant.other.character-class.regexp"},{"match":"\\\\\\\\([0-7]{3}|x\\\\h{2}|u\\\\h{4})","name":"constant.character.numeric.regexp"},{"match":"\\\\\\\\c[A-Z]","name":"constant.character.control.regexp"},{"match":"\\\\\\\\.","name":"constant.character.escape.backslash.regexp"}]},"regexp":{"patterns":[{"match":"\\\\\\\\[Bb]|[$^]","name":"keyword.control.anchor.regexp"},{"captures":{"0":{"name":"keyword.other.back-reference.regexp"},"1":{"name":"variable.other.regexp"}},"match":"\\\\\\\\(?:[1-9]\\\\d*|k<([$A-Z_a-z][$\\\\w]*)>)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?<!))","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"punctuation.definition.group.assertion.regexp"},"3":{"name":"meta.assertion.look-ahead.regexp"},"4":{"name":"meta.assertion.negative-look-ahead.regexp"},"5":{"name":"meta.assertion.look-behind.regexp"},"6":{"name":"meta.assertion.negative-look-behind.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.assertion.regexp","patterns":[{"include":"#regexp"}]},{"begin":"\\\\((?:(\\\\?:)|\\\\?<([$A-Z_a-z][$\\\\w]*)>)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])(?=$|^|[,;{}]|//)","name":"meta.return.type.ts","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])((?=[,;{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.ts","patterns":[{"include":"#return-type-core"}]}]},"return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<=[\\\\&:|])(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"shebang":{"captures":{"1":{"name":"punctuation.definition.comment.ts"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.ts"},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ts"},"2":{"name":"comment.line.double-slash.ts"},"3":{"name":"punctuation.definition.comment.ts"},"4":{"name":"storage.type.internaldeclaration.ts"},"5":{"name":"punctuation.decorator.internaldeclaration.ts"}},"contentName":"comment.line.double-slash.ts","end":"(?=^)"},"statements":{"patterns":[{"include":"#declaration"},{"include":"#control-statement"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#label"},{"include":"#expression"},{"include":"#punctuation-semicolon"},{"include":"#string"},{"include":"#comment"}]},"string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template"}]},"string-character-escape":{"match":"\\\\\\\\(x\\\\h{2}|u\\\\h{4}|u\\\\{\\\\h+}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"super-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.ts"},"support-function-call-identifiers":{"patterns":[{"include":"#literal"},{"include":"#support-objects"},{"include":"#object-identifiers"},{"include":"#punctuation-accessor"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\(\\\\s*[\\"\'`])","name":"keyword.operator.expression.import.ts"}]},"support-objects":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.ts"},{"captures":{"1":{"name":"keyword.control.import.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"support.variable.property.importmeta.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"support.variable.property.target.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"support.variable.property.ts"},"4":{"name":"support.constant.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(constructor|length|prototype|__proto__)\\\\b(?!\\\\$|\\\\s*(<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.ts"},"2":{"name":"support.type.object.module.ts"},"3":{"name":"punctuation.accessor.ts"},"4":{"name":"punctuation.accessor.optional.ts"},"5":{"name":"support.type.object.module.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(exports)|(module)(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(exports|id|filename|loaded|parent|children))?)\\\\b(?!\\\\$)"}]},"switch-statement":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bswitch\\\\s*\\\\()","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"switch-statement.expr.ts","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"switch-expression.expr.ts","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"(?=})","name":"switch-block.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.ts"}},"end":"(?=:)","name":"case-clause.expr.ts","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.ts punctuation.definition.section.case-statement.ts"},"2":{"name":"meta.block.ts punctuation.definition.block.ts"}},"contentName":"meta.block.ts","end":"}","endCaptures":{"0":{"name":"meta.block.ts punctuation.definition.block.ts"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.ts punctuation.definition.section.case-statement.ts"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]}]},"template-call":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"patterns":[{"include":"#comment"},{"include":"#type-string"},{"include":"#numeric-literal"},{"include":"#type-primitive"},{"include":"#type-builtin-literals"},{"include":"#type-parameters"},{"include":"#type-tuple"},{"include":"#type-object"},{"include":"#type-operators"},{"include":"#type-conditional"},{"include":"#type-fn-type-parameters"},{"include":"#type-paren-or-function-parameters"},{"include":"#type-function-return-type"},{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*"},{"include":"#type-name"}]},"type-alias-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(type)\\\\b\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.type.ts"},"4":{"name":"entity.name.type.alias.ts"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.type.declaration.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"},"2":{"name":"keyword.control.intrinsic.ts"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type"}]},{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type"}]}]},"type-annotation":{"patterns":[{"begin":"(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])(?!\\\\s*[\\\\&|]\\\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.ts"},"type-conditional":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.ts"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*<)","beginCaptures":{"1":{"name":"meta.type.constructor.ts storage.modifier.ts"},"2":{"name":"meta.type.constructor.ts keyword.control.new.ts"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.ts"}},"end":"(?<!=>)(?<![\\\\&|])(?=[]),:;=>?{}]|//|$)","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"(?<!=>)(?<![\\\\&|])((?=[]),:;=>?{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.ts"},"2":{"name":"entity.name.type.ts"},"3":{"name":"keyword.operator.expression.extends.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.ts"}]},"type-name":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.ts"},"2":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?=\\\\S)"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.ts"},{"match":"([:?])","name":"keyword.operator.ternary.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.ts"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=\\\\s*(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.ts"},"2":{"name":"variable.parameter.ts variable.language.this.ts"},"3":{"name":"variable.parameter.ts"},"4":{"name":"keyword.operator.expression.is.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s(is)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.ts"},"2":{"name":"variable.parameter.ts variable.language.this.ts"},"3":{"name":"variable.parameter.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.ts"}]},"type-primitive":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.ts"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.ts"},{"captures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"keyword.operator.optional.ts"},"3":{"name":"punctuation.separator.label.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.ts"}},"end":"(?=[]\\\\&),:;=>?{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))undefined(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.undefined.ts"},"var-expr":{"patterns":[{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!^let|[^$._[:alnum:]]let|^var|[^$._[:alnum:]]var)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!(?:^|[^$._[:alnum:]])const)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!(?:^|[^$._[:alnum:]]|^await\\\\s+|[^$._[:alnum:]]await\\\\s+)using)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=//))","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]}]},"var-single-const":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts entity.name.function.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts entity.name.function.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.readwrite.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable-type-annotation":{"patterns":[{"include":"#type-annotation"},{"include":"#string"},{"include":"#comment"}]},"variable-initializer":{"patterns":[{"begin":"(?<![!=])(=)(?!=)(?=\\\\s*\\\\S)(?!\\\\s*.*=>\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![-\\\\&*+/|])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.ts","aliases":["ts","cts","mts"]}')),LC=[MC],IC=Object.freeze(JSON.parse(`{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"')}])([^\\\\t\\\\n\\\\r \\"\\\\&');->\`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|('))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*(('))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=\`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;\`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\['\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}`)),RC=[IC],PC=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),qC=[PC],FC={};function OC(e,t){const n=FC,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return bb(e,r,a)}function bb(e,t,n){if(BC(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return O3(e.children,t,n)}return Array.isArray(e)?O3(e,t,n):""}function O3(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=bb(e[a],t,n);return r.join("")}function BC(e){return!!(e&&typeof e=="object")}const B3=document.createElement("i");function C2(e){const t="&"+e+";";B3.innerHTML=t;const n=B3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Da(e,t,n,r){const a=e.length;let l=0,i;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function Ja(e,t){return e.length>0?(Da(e,e.length,0,t),e):t}const H3={}.hasOwnProperty;function yb(e){const t={};let n=-1;for(;++n<e.length;)HC(t,e[n]);return t}function HC(e,t){let n;for(n in t){const a=(H3.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let i;if(l)for(i in l){H3.call(a,i)||(a[i]=[]);const u=l[i];UC(a[i],Array.isArray(u)?u:u?[u]:[])}}}function UC(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Da(e,0,0,r)}function xb(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function zo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Gr=Zi(/[A-Za-z]/),zr=Zi(/[\dA-Za-z]/),VC=Zi(/[#-'*+\--9=?A-Z^-~]/);function Op(e){return e!==null&&(e<32||e===127)}const Cf=Zi(/\d/),GC=Zi(/[\dA-Fa-f]/),WC=Zi(/[!-/:-@[-`{-~]/);function He(e){return e!==null&&e<-2}function Zt(e){return e!==null&&(e<0||e===32)}function yt(e){return e===-2||e===-1||e===32}const P0=Zi(new RegExp("\\p{P}|\\p{S}","u")),Hl=Zi(/\s/);function Zi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function k2(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const l=e.charCodeAt(n);let i="";if(l===37&&zr(e.charCodeAt(n+1))&&zr(e.charCodeAt(n+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(i=String.fromCharCode(l,u),a=1):i="�"}else i=String.fromCharCode(l);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function gt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(d){return yt(d)?(e.enter(n),u(d)):t(d)}function u(d){return yt(d)&&l++<a?(e.consume(d),u):(e.exit(n),t(d))}}const ZC={tokenize:QC};function QC(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),gt(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),l(u)}function l(u){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,i(u)}function i(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return He(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),i)}}const XC={tokenize:YC},U3={tokenize:KC};function YC(e){const t=this,n=[];let r=0,a,l,i;return u;function u(E){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,d,m)(E)}return m(E)}function d(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&z();const P=t.events.length;let M=P,L;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){L=t.events[M][1].end;break}N(r);let U=P;for(;U<t.events.length;)t.events[U][1].end={...L},U++;return Da(t.events,M+1,0,t.events.slice(P)),t.events.length=U,m(E)}return u(E)}function m(E){if(r===n.length){if(!a)return h(E);if(a.currentConstruct&&a.currentConstruct.concrete)return y(E);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(U3,v,f)(E)}function v(E){return a&&z(),N(r),h(E)}function f(E){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,y(E)}function h(E){return t.containerState={},e.attempt(U3,b,y)(E)}function b(E){return r++,n.push([t.currentConstruct,t.containerState]),h(E)}function y(E){if(E===null){a&&z(),N(0),e.consume(E);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:l}),j(E)}function j(E){if(E===null){C(e.exit("chunkFlow"),!0),N(0),e.consume(E);return}return He(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(E),j)}function C(E,P){const M=t.sliceStream(E);if(P&&M.push(null),E.previous=l,l&&(l.next=E),l=E,a.defineSkip(E.start),a.write(M),t.parser.lazy[E.start.line]){let L=a.events.length;for(;L--;)if(a.events[L][1].start.offset<i&&(!a.events[L][1].end||a.events[L][1].end.offset>i))return;const U=t.events.length;let W=U,O,q;for(;W--;)if(t.events[W][0]==="exit"&&t.events[W][1].type==="chunkFlow"){if(O){q=t.events[W][1].end;break}O=!0}for(N(r),L=U;L<t.events.length;)t.events[L][1].end={...q},L++;Da(t.events,W+1,0,t.events.slice(U)),t.events.length=L}}function N(E){let P=n.length;for(;P-- >E;){const M=n[P];t.containerState=M[1],M[0].exit.call(t,e)}n.length=E}function z(){a.write([null]),l=void 0,a=void 0,t.containerState._closeFlow=void 0}}function KC(e,t,n){return gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vc(e){if(e===null||Zt(e)||Hl(e))return 1;if(P0(e))return 2}function ym(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const l=e[a].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Bp={name:"attention",resolveAll:JC,tokenize:ek};function JC(e,t){let n=-1,r,a,l,i,u,d,m,v;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};V3(f,-d),V3(h,d),i={type:d>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},l={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...i.start},end:{...u.end}},e[r][1].end={...i.start},e[n][1].start={...u.end},m=[],e[r][1].end.offset-e[r][1].start.offset&&(m=Ja(m,[["enter",e[r][1],t],["exit",e[r][1],t]])),m=Ja(m,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",l,t]]),m=Ja(m,ym(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),m=Ja(m,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(v=2,m=Ja(m,[["enter",e[n][1],t],["exit",e[n][1],t]])):v=0,Da(e,r-1,n-r+3,m),n=r+m.length-v-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ek(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Vc(r);let l;return i;function i(d){return l=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===l)return e.consume(d),u;const m=e.exit("attentionSequence"),v=Vc(d),f=!v||v===2&&a||n.includes(d),h=!a||a===2&&v||n.includes(r);return m._open=!!(l===42?f:f&&(a||!h)),m._close=!!(l===42?h:h&&(v||!f)),t(d)}}function V3(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tk={name:"autolink",tokenize:nk};function nk(e,t,n){let r=0;return a;function a(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return Gr(b)?(e.consume(b),i):b===64?n(b):m(b)}function i(b){return b===43||b===45||b===46||zr(b)?(r=1,u(b)):m(b)}function u(b){return b===58?(e.consume(b),r=0,d):(b===43||b===45||b===46||zr(b))&&r++<32?(e.consume(b),u):(r=0,m(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Op(b)?n(b):(e.consume(b),d)}function m(b){return b===64?(e.consume(b),v):VC(b)?(e.consume(b),m):n(b)}function v(b){return zr(b)?f(b):n(b)}function f(b){return b===46?(e.consume(b),r=0,v):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):h(b)}function h(b){if((b===45||zr(b))&&r++<63){const y=b===45?h:f;return e.consume(b),y}return n(b)}}const q0={partial:!0,tokenize:rk};function rk(e,t,n){return r;function r(l){return yt(l)?gt(e,a,"linePrefix")(l):a(l)}function a(l){return l===null||He(l)?t(l):n(l)}}const _b={continuation:{tokenize:ok},exit:sk,name:"blockQuote",tokenize:ak};function ak(e,t,n){const r=this;return a;function a(i){if(i===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),l}return n(i)}function l(i){return yt(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function ok(e,t,n){const r=this;return a;function a(i){return yt(i)?gt(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):l(i)}function l(i){return e.attempt(_b,t,n)(i)}}function sk(e){e.exit("blockQuote")}const wb={name:"characterEscape",tokenize:ik};function ik(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),a}function a(l){return WC(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const jb={name:"characterReference",tokenize:lk};function lk(e,t,n){const r=this;let a=0,l,i;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),d}function d(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),l=31,i=zr,v(f))}function m(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,i=GC,v):(e.enter("characterReferenceValue"),l=7,i=Cf,v(f))}function v(f){if(f===59&&a){const h=e.exit("characterReferenceValue");return i===zr&&!C2(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(f)&&a++<l?(e.consume(f),v):n(f)}}const G3={partial:!0,tokenize:uk},W3={concrete:!0,name:"codeFenced",tokenize:ck};function ck(e,t,n){const r=this,a={partial:!0,tokenize:M};let l=0,i=0,u;return d;function d(L){return m(L)}function m(L){const U=r.events[r.events.length-1];return l=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,u=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(L)}function v(L){return L===u?(i++,e.consume(L),v):i<3?n(L):(e.exit("codeFencedFenceSequence"),yt(L)?gt(e,f,"whitespace")(L):f(L))}function f(L){return L===null||He(L)?(e.exit("codeFencedFence"),r.interrupt?t(L):e.check(G3,j,P)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(L))}function h(L){return L===null||He(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(L)):yt(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),gt(e,b,"whitespace")(L)):L===96&&L===u?n(L):(e.consume(L),h)}function b(L){return L===null||He(L)?f(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(L))}function y(L){return L===null||He(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(L)):L===96&&L===u?n(L):(e.consume(L),y)}function j(L){return e.attempt(a,P,C)(L)}function C(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return l>0&&yt(L)?gt(e,z,"linePrefix",l+1)(L):z(L)}function z(L){return L===null||He(L)?e.check(G3,j,P)(L):(e.enter("codeFlowValue"),E(L))}function E(L){return L===null||He(L)?(e.exit("codeFlowValue"),z(L)):(e.consume(L),E)}function P(L){return e.exit("codeFenced"),t(L)}function M(L,U,W){let O=0;return q;function q(ne){return L.enter("lineEnding"),L.consume(ne),L.exit("lineEnding"),F}function F(ne){return L.enter("codeFencedFence"),yt(ne)?gt(L,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):K(ne)}function K(ne){return ne===u?(L.enter("codeFencedFenceSequence"),le(ne)):W(ne)}function le(ne){return ne===u?(O++,L.consume(ne),le):O>=i?(L.exit("codeFencedFenceSequence"),yt(ne)?gt(L,me,"whitespace")(ne):me(ne)):W(ne)}function me(ne){return ne===null||He(ne)?(L.exit("codeFencedFence"),U(ne)):W(ne)}}}function uk(e,t,n){const r=this;return a;function a(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const jh={name:"codeIndented",tokenize:pk},dk={partial:!0,tokenize:mk};function pk(e,t,n){const r=this;return a;function a(m){return e.enter("codeIndented"),gt(e,l,"linePrefix",5)(m)}function l(m){const v=r.events[r.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?i(m):n(m)}function i(m){return m===null?d(m):He(m)?e.attempt(dk,i,d)(m):(e.enter("codeFlowValue"),u(m))}function u(m){return m===null||He(m)?(e.exit("codeFlowValue"),i(m)):(e.consume(m),u)}function d(m){return e.exit("codeIndented"),t(m)}}function mk(e,t,n){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?n(i):He(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):gt(e,l,"linePrefix",5)(i)}function l(i){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):He(i)?a(i):n(i)}}const hk={name:"codeText",previous:gk,resolve:fk,tokenize:vk};function fk(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function gk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vk(e,t,n){let r=0,a,l;return i;function i(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),d(f))}function d(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),d):f===96?(l=e.enter("codeTextSequence"),a=0,v(f)):He(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("codeTextData"),m(f))}function m(f){return f===null||f===32||f===96||He(f)?(e.exit("codeTextData"),d(f)):(e.consume(f),m)}function v(f){return f===96?(e.consume(f),a++,v):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(l.type="codeTextData",m(f))}}class bk{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&r0(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),r0(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),r0(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);r0(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);r0(this.left,n.reverse())}}}function r0(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Cb(e){const t={};let n=-1,r,a,l,i,u,d,m;const v=new bk(e);for(;++n<v.length;){for(;n in t;)n=t[n];if(r=v.get(n),n&&r[1].type==="chunkFlow"&&v.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,yk(v,n)),n=t[n],m=!0);else if(r[1]._container){for(l=n,a=void 0;l--;)if(i=v.get(l),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(v.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=l);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end={...v.get(a)[1].start},u=v.slice(a,n),u.unshift(r),v.splice(a,n-a+1,u))}}return Da(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!m}function yk(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const l=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const u=i.events,d=[],m={};let v,f,h=-1,b=n,y=0,j=0;const C=[j];for(;b;){for(;e.get(++a)[1]!==b;);l.push(a),b._tokenizer||(v=r.sliceStream(b),b.next||v.push(null),f&&i.defineSkip(b.start),b._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(v),b._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=b,b=b.next}for(b=n;++h<u.length;)u[h][0]==="exit"&&u[h-1][0]==="enter"&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(j=h+1,C.push(j),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(i.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),h=C.length;h--;){const N=u.slice(C[h],C[h+1]),z=l.pop();d.push([z,z+N.length-1]),e.splice(z,2,N)}for(d.reverse(),h=-1;++h<d.length;)m[y+d[h][0]]=y+d[h][1],y+=d[h][1]-d[h][0]-1;return m}const xk={resolve:wk,tokenize:jk},_k={partial:!0,tokenize:Ck};function wk(e){return Cb(e),e}function jk(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?l(u):He(u)?e.check(_k,i,l)(u):(e.consume(u),a)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function i(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Ck(e,t,n){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),gt(e,l,"linePrefix")}function l(i){if(i===null||He(i))return n(i);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function kb(e,t,n,r,a,l,i,u,d){const m=d||Number.POSITIVE_INFINITY;let v=0;return f;function f(N){return N===60?(e.enter(r),e.enter(a),e.enter(l),e.consume(N),e.exit(l),h):N===null||N===32||N===41||Op(N)?n(N):(e.enter(r),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),j(N))}function h(N){return N===62?(e.enter(l),e.consume(N),e.exit(l),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(N))}function b(N){return N===62?(e.exit("chunkString"),e.exit(u),h(N)):N===null||N===60||He(N)?n(N):(e.consume(N),N===92?y:b)}function y(N){return N===60||N===62||N===92?(e.consume(N),b):b(N)}function j(N){return!v&&(N===null||N===41||Zt(N))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(r),t(N)):v<m&&N===40?(e.consume(N),v++,j):N===41?(e.consume(N),v--,j):N===null||N===32||N===40||Op(N)?n(N):(e.consume(N),N===92?C:j)}function C(N){return N===40||N===41||N===92?(e.consume(N),j):j(N)}}function Nb(e,t,n,r,a,l){const i=this;let u=0,d;return m;function m(b){return e.enter(r),e.enter(a),e.consume(b),e.exit(a),e.enter(l),v}function v(b){return u>999||b===null||b===91||b===93&&!d||b===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?n(b):b===93?(e.exit(l),e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):He(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===null||b===91||b===93||He(b)||u++>999?(e.exit("chunkString"),v(b)):(e.consume(b),d||(d=!yt(b)),b===92?h:f)}function h(b){return b===91||b===92||b===93?(e.consume(b),u++,f):f(b)}}function Sb(e,t,n,r,a,l){let i;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(a),e.consume(h),e.exit(a),i=h===40?41:h,d):n(h)}function d(h){return h===i?(e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):(e.enter(l),m(h))}function m(h){return h===i?(e.exit(l),d(i)):h===null?n(h):He(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),gt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(h))}function v(h){return h===i||h===null||He(h)?(e.exit("chunkString"),m(h)):(e.consume(h),h===92?f:v)}function f(h){return h===i||h===92?(e.consume(h),v):v(h)}}function b0(e,t){let n;return r;function r(a){return He(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):yt(a)?gt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const kk={name:"definition",tokenize:Sk},Nk={partial:!0,tokenize:$k};function Sk(e,t,n){const r=this;let a;return l;function l(b){return e.enter("definition"),i(b)}function i(b){return Nb.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return a=zo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return Zt(b)?b0(e,m)(b):m(b)}function m(b){return kb(e,v,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function v(b){return e.attempt(Nk,f,f)(b)}function f(b){return yt(b)?gt(e,h,"whitespace")(b):h(b)}function h(b){return b===null||He(b)?(e.exit("definition"),r.parser.defined.push(a),t(b)):n(b)}}function $k(e,t,n){return r;function r(u){return Zt(u)?b0(e,a)(u):n(u)}function a(u){return Sb(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return yt(u)?gt(e,i,"whitespace")(u):i(u)}function i(u){return u===null||He(u)?t(u):n(u)}}const Ak={name:"hardBreakEscape",tokenize:Ek};function Ek(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),a}function a(l){return He(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Dk={name:"headingAtx",resolve:zk,tokenize:Tk};function zk(e,t){let n=e.length-2,r=3,a,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Da(e,r,n-r+1,[["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t]])),e}function Tk(e,t,n){let r=0;return a;function a(v){return e.enter("atxHeading"),l(v)}function l(v){return e.enter("atxHeadingSequence"),i(v)}function i(v){return v===35&&r++<6?(e.consume(v),i):v===null||Zt(v)?(e.exit("atxHeadingSequence"),u(v)):n(v)}function u(v){return v===35?(e.enter("atxHeadingSequence"),d(v)):v===null||He(v)?(e.exit("atxHeading"),t(v)):yt(v)?gt(e,u,"whitespace")(v):(e.enter("atxHeadingText"),m(v))}function d(v){return v===35?(e.consume(v),d):(e.exit("atxHeadingSequence"),u(v))}function m(v){return v===null||v===35||Zt(v)?(e.exit("atxHeadingText"),u(v)):(e.consume(v),m)}}const Mk=["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"],Z3=["pre","script","style","textarea"],Lk={concrete:!0,name:"htmlFlow",resolveTo:Pk,tokenize:qk},Ik={partial:!0,tokenize:Ok},Rk={partial:!0,tokenize:Fk};function Pk(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function qk(e,t,n){const r=this;let a,l,i,u,d;return m;function m(T){return v(T)}function v(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),h):T===47?(e.consume(T),l=!0,j):T===63?(e.consume(T),a=3,r.interrupt?t:I):Gr(T)?(e.consume(T),i=String.fromCharCode(T),C):n(T)}function h(T){return T===45?(e.consume(T),a=2,b):T===91?(e.consume(T),a=5,u=0,y):Gr(T)?(e.consume(T),a=4,r.interrupt?t:I):n(T)}function b(T){return T===45?(e.consume(T),r.interrupt?t:I):n(T)}function y(T){const Se="CDATA[";return T===Se.charCodeAt(u++)?(e.consume(T),u===Se.length?r.interrupt?t:K:y):n(T)}function j(T){return Gr(T)?(e.consume(T),i=String.fromCharCode(T),C):n(T)}function C(T){if(T===null||T===47||T===62||Zt(T)){const Se=T===47,ge=i.toLowerCase();return!Se&&!l&&Z3.includes(ge)?(a=1,r.interrupt?t(T):K(T)):Mk.includes(i.toLowerCase())?(a=6,Se?(e.consume(T),N):r.interrupt?t(T):K(T)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):l?z(T):E(T))}return T===45||zr(T)?(e.consume(T),i+=String.fromCharCode(T),C):n(T)}function N(T){return T===62?(e.consume(T),r.interrupt?t:K):n(T)}function z(T){return yt(T)?(e.consume(T),z):q(T)}function E(T){return T===47?(e.consume(T),q):T===58||T===95||Gr(T)?(e.consume(T),P):yt(T)?(e.consume(T),E):q(T)}function P(T){return T===45||T===46||T===58||T===95||zr(T)?(e.consume(T),P):M(T)}function M(T){return T===61?(e.consume(T),L):yt(T)?(e.consume(T),M):E(T)}function L(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),d=T,U):yt(T)?(e.consume(T),L):W(T)}function U(T){return T===d?(e.consume(T),d=null,O):T===null||He(T)?n(T):(e.consume(T),U)}function W(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Zt(T)?M(T):(e.consume(T),W)}function O(T){return T===47||T===62||yt(T)?E(T):n(T)}function q(T){return T===62?(e.consume(T),F):n(T)}function F(T){return T===null||He(T)?K(T):yt(T)?(e.consume(T),F):n(T)}function K(T){return T===45&&a===2?(e.consume(T),ce):T===60&&a===1?(e.consume(T),Ae):T===62&&a===4?(e.consume(T),V):T===63&&a===3?(e.consume(T),I):T===93&&a===5?(e.consume(T),te):He(T)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Ik,ie,le)(T)):T===null||He(T)?(e.exit("htmlFlowData"),le(T)):(e.consume(T),K)}function le(T){return e.check(Rk,me,ie)(T)}function me(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ne}function ne(T){return T===null||He(T)?le(T):(e.enter("htmlFlowData"),K(T))}function ce(T){return T===45?(e.consume(T),I):K(T)}function Ae(T){return T===47?(e.consume(T),i="",de):K(T)}function de(T){if(T===62){const Se=i.toLowerCase();return Z3.includes(Se)?(e.consume(T),V):K(T)}return Gr(T)&&i.length<8?(e.consume(T),i+=String.fromCharCode(T),de):K(T)}function te(T){return T===93?(e.consume(T),I):K(T)}function I(T){return T===62?(e.consume(T),V):T===45&&a===2?(e.consume(T),I):K(T)}function V(T){return T===null||He(T)?(e.exit("htmlFlowData"),ie(T)):(e.consume(T),V)}function ie(T){return e.exit("htmlFlow"),t(T)}}function Fk(e,t,n){const r=this;return a;function a(i){return He(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):n(i)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function Ok(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(q0,t,n)}}const Bk={name:"htmlText",tokenize:Hk};function Hk(e,t,n){const r=this;let a,l,i;return u;function u(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),d}function d(I){return I===33?(e.consume(I),m):I===47?(e.consume(I),M):I===63?(e.consume(I),E):Gr(I)?(e.consume(I),W):n(I)}function m(I){return I===45?(e.consume(I),v):I===91?(e.consume(I),l=0,y):Gr(I)?(e.consume(I),z):n(I)}function v(I){return I===45?(e.consume(I),b):n(I)}function f(I){return I===null?n(I):I===45?(e.consume(I),h):He(I)?(i=f,Ae(I)):(e.consume(I),f)}function h(I){return I===45?(e.consume(I),b):f(I)}function b(I){return I===62?ce(I):I===45?h(I):f(I)}function y(I){const V="CDATA[";return I===V.charCodeAt(l++)?(e.consume(I),l===V.length?j:y):n(I)}function j(I){return I===null?n(I):I===93?(e.consume(I),C):He(I)?(i=j,Ae(I)):(e.consume(I),j)}function C(I){return I===93?(e.consume(I),N):j(I)}function N(I){return I===62?ce(I):I===93?(e.consume(I),N):j(I)}function z(I){return I===null||I===62?ce(I):He(I)?(i=z,Ae(I)):(e.consume(I),z)}function E(I){return I===null?n(I):I===63?(e.consume(I),P):He(I)?(i=E,Ae(I)):(e.consume(I),E)}function P(I){return I===62?ce(I):E(I)}function M(I){return Gr(I)?(e.consume(I),L):n(I)}function L(I){return I===45||zr(I)?(e.consume(I),L):U(I)}function U(I){return He(I)?(i=U,Ae(I)):yt(I)?(e.consume(I),U):ce(I)}function W(I){return I===45||zr(I)?(e.consume(I),W):I===47||I===62||Zt(I)?O(I):n(I)}function O(I){return I===47?(e.consume(I),ce):I===58||I===95||Gr(I)?(e.consume(I),q):He(I)?(i=O,Ae(I)):yt(I)?(e.consume(I),O):ce(I)}function q(I){return I===45||I===46||I===58||I===95||zr(I)?(e.consume(I),q):F(I)}function F(I){return I===61?(e.consume(I),K):He(I)?(i=F,Ae(I)):yt(I)?(e.consume(I),F):O(I)}function K(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),a=I,le):He(I)?(i=K,Ae(I)):yt(I)?(e.consume(I),K):(e.consume(I),me)}function le(I){return I===a?(e.consume(I),a=void 0,ne):I===null?n(I):He(I)?(i=le,Ae(I)):(e.consume(I),le)}function me(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Zt(I)?O(I):(e.consume(I),me)}function ne(I){return I===47||I===62||Zt(I)?O(I):n(I)}function ce(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function Ae(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),de}function de(I){return yt(I)?gt(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):te(I)}function te(I){return e.enter("htmlTextData"),i(I)}}const N2={name:"labelEnd",resolveAll:Wk,resolveTo:Zk,tokenize:Qk},Uk={tokenize:Xk},Vk={tokenize:Yk},Gk={tokenize:Kk};function Wk(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Da(e,0,e.length,n),e}function Zk(e,t){let n=e.length,r=0,a,l,i,u;for(;n--;)if(a=e[n][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[l][1].start},end:{...e[i][1].end}},v={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[i-2][1].start}};return u=[["enter",d,t],["enter",m,t]],u=Ja(u,e.slice(l+1,l+r+3)),u=Ja(u,[["enter",v,t]]),u=Ja(u,ym(t.parser.constructs.insideSpan.null,e.slice(l+r+4,i-3),t)),u=Ja(u,[["exit",v,t],e[i-2],e[i-1],["exit",m,t]]),u=Ja(u,e.slice(i+1)),u=Ja(u,[["exit",d,t]]),Da(e,l,e.length,u),e}function Qk(e,t,n){const r=this;let a=r.events.length,l,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){l=r.events[a][1];break}return u;function u(h){return l?l._inactive?f(h):(i=r.parser.defined.includes(zo(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),d):n(h)}function d(h){return h===40?e.attempt(Uk,v,i?v:f)(h):h===91?e.attempt(Vk,v,i?m:f)(h):i?v(h):f(h)}function m(h){return e.attempt(Gk,v,f)(h)}function v(h){return t(h)}function f(h){return l._balanced=!0,n(h)}}function Xk(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return Zt(f)?b0(e,l)(f):l(f)}function l(f){return f===41?v(f):kb(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function i(f){return Zt(f)?b0(e,d)(f):v(f)}function u(f){return n(f)}function d(f){return f===34||f===39||f===40?Sb(e,m,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):v(f)}function m(f){return Zt(f)?b0(e,v)(f):v(f)}function v(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Yk(e,t,n){const r=this;return a;function a(u){return Nb.call(r,e,l,i,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(zo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function i(u){return n(u)}}function Kk(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),a}function a(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const Jk={name:"labelStartImage",resolveAll:N2.resolveAll,tokenize:eN};function eN(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),i):n(u)}function i(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const tN={name:"labelStartLink",resolveAll:N2.resolveAll,tokenize:nN};function nN(e,t,n){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),l}function l(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const Ch={name:"lineEnding",tokenize:rN};function rN(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),gt(e,t,"linePrefix")}}const Cp={name:"thematicBreak",tokenize:aN};function aN(e,t,n){let r=0,a;return l;function l(m){return e.enter("thematicBreak"),i(m)}function i(m){return a=m,u(m)}function u(m){return m===a?(e.enter("thematicBreakSequence"),d(m)):r>=3&&(m===null||He(m))?(e.exit("thematicBreak"),t(m)):n(m)}function d(m){return m===a?(e.consume(m),r++,d):(e.exit("thematicBreakSequence"),yt(m)?gt(e,u,"whitespace")(m):u(m))}}const ua={continuation:{tokenize:lN},exit:uN,name:"list",tokenize:iN},oN={partial:!0,tokenize:dN},sN={partial:!0,tokenize:cN};function iN(e,t,n){const r=this,a=r.events[r.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return u;function u(b){const y=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Cf(b)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Cp,n,m)(b):m(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return Cf(b)&&++i<10?(e.consume(b),d):(!r.interrupt||i<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),m(b)):n(b)}function m(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(q0,r.interrupt?n:v,e.attempt(oN,h,f))}function v(b){return r.containerState.initialBlankLine=!0,l++,h(b)}function f(b){return yt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),h):n(b)}function h(b){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function lN(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(q0,a,l);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,gt(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!yt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(sN,t,i)(u))}function i(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,gt(e,e.attempt(ua,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function cN(e,t,n){const r=this;return gt(e,a,"listItemIndent",r.containerState.size+1);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(l):n(l)}}function uN(e){e.exit(this.containerState.type)}function dN(e,t,n){const r=this;return gt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const i=r.events[r.events.length-1];return!yt(l)&&i&&i[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Q3={name:"setextUnderline",resolveTo:pN,tokenize:mN};function pN(e,t){let n=e.length,r,a,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",l?(e.splice(a,0,["enter",i,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function mN(e,t,n){const r=this;let a;return l;function l(m){let v=r.events.length,f;for(;v--;)if(r.events[v][1].type!=="lineEnding"&&r.events[v][1].type!=="linePrefix"&&r.events[v][1].type!=="content"){f=r.events[v][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=m,i(m)):n(m)}function i(m){return e.enter("setextHeadingLineSequence"),u(m)}function u(m){return m===a?(e.consume(m),u):(e.exit("setextHeadingLineSequence"),yt(m)?gt(e,d,"lineSuffix")(m):d(m))}function d(m){return m===null||He(m)?(e.exit("setextHeadingLine"),t(m)):n(m)}}const hN={tokenize:fN};function fN(e){const t=this,n=e.attempt(q0,r,e.attempt(this.parser.constructs.flowInitial,a,gt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(xk,a)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const gN={resolveAll:Ab()},vN=$b("string"),bN=$b("text");function $b(e){return{resolveAll:Ab(e==="text"?yN:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],l=n.attempt(a,i,u);return i;function i(v){return m(v)?l(v):u(v)}function u(v){if(v===null){n.consume(v);return}return n.enter("data"),n.consume(v),d}function d(v){return m(v)?(n.exit("data"),l(v)):(n.consume(v),d)}function m(v){if(v===null)return!0;const f=a[v];let h=-1;if(f)for(;++h<f.length;){const b=f[h];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function Ab(e){return t;function t(n,r){let a=-1,l;for(;++a<=n.length;)l===void 0?n[a]&&n[a][1].type==="data"&&(l=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==l+2&&(n[l][1].end=n[a-1][1].end,n.splice(l+2,a-l-2),a=l+2),l=void 0);return e?e(n,r):n}}function yN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let l=a.length,i=-1,u=0,d;for(;l--;){const m=a[l];if(typeof m=="string"){for(i=m.length;m.charCodeAt(i-1)===32;)u++,i--;if(i)break;i=-1}else if(m===-2)d=!0,u++;else if(m!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const m={type:n===e.length||d||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?i:r.start._bufferIndex+i,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...m.start},r.start.offset===r.end.offset?Object.assign(r,m):(e.splice(n,0,["enter",m,t],["exit",m,t]),n+=2)}n++}return e}const xN={42:ua,43:ua,45:ua,48:ua,49:ua,50:ua,51:ua,52:ua,53:ua,54:ua,55:ua,56:ua,57:ua,62:_b},_N={91:kk},wN={[-2]:jh,[-1]:jh,32:jh},jN={35:Dk,42:Cp,45:[Q3,Cp],60:Lk,61:Q3,95:Cp,96:W3,126:W3},CN={38:jb,92:wb},kN={[-5]:Ch,[-4]:Ch,[-3]:Ch,33:Jk,38:jb,42:Bp,60:[tk,Bk],91:tN,92:[Ak,wb],93:N2,95:Bp,96:hk},NN={null:[Bp,gN]},SN={null:[42,95]},$N={null:[]},AN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:SN,contentInitial:_N,disable:$N,document:xN,flow:jN,flowInitial:wN,insideSpan:NN,string:CN,text:kN},Symbol.toStringTag,{value:"Module"}));function EN(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},l=[];let i=[],u=[];const d={attempt:U(M),check:U(L),consume:z,enter:E,exit:P,interrupt:U(L,{interrupt:!0})},m={code:null,containerState:{},defineSkip:j,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:b,write:f};let v=t.tokenize.call(m,d);return t.resolveAll&&l.push(t),m;function f(F){return i=Ja(i,F),C(),i[i.length-1]!==null?[]:(W(t,0),m.events=ym(l,m.events,m),m.events)}function h(F,K){return zN(b(F),K)}function b(F){return DN(i,F)}function y(){const{_bufferIndex:F,_index:K,line:le,column:me,offset:ne}=r;return{_bufferIndex:F,_index:K,line:le,column:me,offset:ne}}function j(F){a[F.line]=F.column,q()}function C(){let F;for(;r._index<i.length;){const K=i[r._index];if(typeof K=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<K.length;)N(K.charCodeAt(r._bufferIndex));else N(K)}}function N(F){v=v(F)}function z(F){He(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,q()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=F}function E(F,K){const le=K||{};return le.type=F,le.start=y(),m.events.push(["enter",le,m]),u.push(le),le}function P(F){const K=u.pop();return K.end=y(),m.events.push(["exit",K,m]),K}function M(F,K){W(F,K.from)}function L(F,K){K.restore()}function U(F,K){return le;function le(me,ne,ce){let Ae,de,te,I;return Array.isArray(me)?ie(me):"tokenize"in me?ie([me]):V(me);function V(Oe){return be;function be(Te){const Ee=Te!==null&&Oe[Te],rt=Te!==null&&Oe.null,Nt=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(rt)?rt:rt?[rt]:[]];return ie(Nt)(Te)}}function ie(Oe){return Ae=Oe,de=0,Oe.length===0?ce:T(Oe[de])}function T(Oe){return be;function be(Te){return I=O(),te=Oe,Oe.partial||(m.currentConstruct=Oe),Oe.name&&m.parser.constructs.disable.null.includes(Oe.name)?ge():Oe.tokenize.call(K?Object.assign(Object.create(m),K):m,d,Se,ge)(Te)}}function Se(Oe){return F(te,I),ne}function ge(Oe){return I.restore(),++de<Ae.length?T(Ae[de]):ce}}}function W(F,K){F.resolveAll&&!l.includes(F)&&l.push(F),F.resolve&&Da(m.events,K,m.events.length-K,F.resolve(m.events.slice(K),m)),F.resolveTo&&(m.events=F.resolveTo(m.events,m))}function O(){const F=y(),K=m.previous,le=m.currentConstruct,me=m.events.length,ne=Array.from(u);return{from:me,restore:ce};function ce(){r=F,m.previous=K,m.currentConstruct=le,m.events.length=me,u=ne,q()}}function q(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function DN(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,l=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,l)];else{if(i=e.slice(n,a),r>-1){const u=i[0];typeof u=="string"?i[0]=u.slice(r):i.shift()}l>0&&i.push(e[a].slice(0,l))}return i}function zN(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const l=e[n];let i;if(typeof l=="string")i=l;else switch(l){case-5:{i="\r";break}case-4:{i=`
|
|
193
|
+
`;break}case-3:{i=`\r
|
|
194
|
+
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&a)continue;i=" ";break}default:i=String.fromCharCode(l)}a=l===-2,r.push(i)}return r.join("")}function TN(e){const r={constructs:yb([AN,...(e||{}).extensions||[]]),content:a(ZC),defined:[],document:a(XC),flow:a(hN),lazy:{},string:a(vN),text:a(bN)};return r;function a(l){return i;function i(u){return EN(r,l,u)}}}function MN(e){for(;!Cb(e););return e}const X3=/[\0\t\n\r]/g;function LN(){let e=1,t="",n=!0,r;return a;function a(l,i,u){const d=[];let m,v,f,h,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(i||void 0).decode(l)),f=0,t="",n&&(l.charCodeAt(0)===65279&&f++,n=void 0);f<l.length;){if(X3.lastIndex=f,m=X3.exec(l),h=m&&m.index!==void 0?m.index:l.length,b=l.charCodeAt(h),!m){t=l.slice(f);break}if(b===10&&f===h&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),f<h&&(d.push(l.slice(f,h)),e+=h-f),b){case 0:{d.push(65533),e++;break}case 9:{for(v=Math.ceil(e/4)*4,d.push(-2);e++<v;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return u&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const IN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RN(e){return e.replace(IN,PN)}function PN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return xb(n.slice(l?2:1),l?16:10)}return C2(n)||e}function kp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Y3(e.position):"start"in e||"end"in e?Y3(e):"line"in e||"column"in e?kf(e):""}function kf(e){return K3(e&&e.line)+":"+K3(e&&e.column)}function Y3(e){return kf(e&&e.start)+"-"+kf(e&&e.end)}function K3(e){return e&&typeof e=="number"?e:1}const Eb={}.hasOwnProperty;function Db(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),qN(n)(MN(TN(n).document().write(LN()(e,t,!0))))}function qN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(tn),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(Ut),blockQuote:l(rt),characterEscape:O,characterReference:O,codeFenced:l(Nt),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:l(Nt,i),codeText:l(Jt,i),codeTextData:O,data:O,codeFlowValue:O,definition:l(Dn),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:l(en),hardBreakEscape:l(Qn),hardBreakTrailing:l(Qn),htmlFlow:l(Xn,i),htmlFlowData:O,htmlText:l(Xn,i),htmlTextData:O,image:l(ha),label:i,link:l(tn),listItem:l(cr),listItemValue:h,listOrdered:l(yn,f),listUnordered:l(yn),paragraph:l(qn),reference:T,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:l(Ut),strong:l(Yn),thematicBreak:l(Qr)},exit:{atxHeading:d(),atxHeadingSequence:M,autolink:d(),autolinkEmail:Ee,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:Oe,characterReference:be,codeFenced:d(C),codeFencedFence:j,codeFencedFenceInfo:b,codeFencedFenceMeta:y,codeFlowValue:q,codeIndented:d(N),codeText:d(ne),codeTextData:q,data:q,definition:d(),definitionDestinationString:P,definitionLabelString:z,definitionTitleString:E,emphasis:d(),hardBreakEscape:d(K),hardBreakTrailing:d(K),htmlFlow:d(le),htmlFlowData:q,htmlText:d(me),htmlTextData:q,image:d(Ae),label:te,labelText:de,lineEnding:F,link:d(ce),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Se,resourceDestinationString:I,resourceTitleString:V,resource:ie,setextHeading:d(W),setextHeadingLineSequence:U,setextHeadingText:L,strong:d(),thematicBreak:d()}};zb(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ne={type:"root",children:[]};const Qe={stack:[Ne],tokenStack:[],config:t,enter:u,exit:m,buffer:i,resume:v,data:n},at=[];let ut=-1;for(;++ut<ue.length;)if(ue[ut][1].type==="listOrdered"||ue[ut][1].type==="listUnordered")if(ue[ut][0]==="enter")at.push(ut);else{const nn=at.pop();ut=a(ue,nn,ut)}for(ut=-1;++ut<ue.length;){const nn=t[ue[ut][0]];Eb.call(nn,ue[ut][1].type)&&nn[ue[ut][1].type].call(Object.assign({sliceSerialize:ue[ut][2].sliceSerialize},Qe),ue[ut][1])}if(Qe.tokenStack.length>0){const nn=Qe.tokenStack[Qe.tokenStack.length-1];(nn[1]||J3).call(Qe,void 0,nn[0])}for(Ne.position={start:zi(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:zi(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},ut=-1;++ut<t.transforms.length;)Ne=t.transforms[ut](Ne)||Ne;return Ne}function a(ue,Ne,Qe){let at=Ne-1,ut=-1,nn=!1,Mr,sn,_r,Pt;for(;++at<=Qe;){const xn=ue[at];switch(xn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xn[0]==="enter"?ut++:ut--,Pt=void 0;break}case"lineEndingBlank":{xn[0]==="enter"&&(Mr&&!Pt&&!ut&&!_r&&(_r=at),Pt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pt=void 0}if(!ut&&xn[0]==="enter"&&xn[1].type==="listItemPrefix"||ut===-1&&xn[0]==="exit"&&(xn[1].type==="listUnordered"||xn[1].type==="listOrdered")){if(Mr){let _n=at;for(sn=void 0;_n--;){const Kn=ue[_n];if(Kn[1].type==="lineEnding"||Kn[1].type==="lineEndingBlank"){if(Kn[0]==="exit")continue;sn&&(ue[sn][1].type="lineEndingBlank",nn=!0),Kn[1].type="lineEnding",sn=_n}else if(!(Kn[1].type==="linePrefix"||Kn[1].type==="blockQuotePrefix"||Kn[1].type==="blockQuotePrefixWhitespace"||Kn[1].type==="blockQuoteMarker"||Kn[1].type==="listItemIndent"))break}_r&&(!sn||_r<sn)&&(Mr._spread=!0),Mr.end=Object.assign({},sn?ue[sn][1].start:xn[1].end),ue.splice(sn||at,0,["exit",Mr,xn[2]]),at++,Qe++}if(xn[1].type==="listItemPrefix"){const _n={type:"listItem",_spread:!1,start:Object.assign({},xn[1].start),end:void 0};Mr=_n,ue.splice(at,0,["enter",_n,xn[2]]),at++,Qe++,_r=void 0,Pt=!0}}}return ue[Ne][1]._spread=nn,Qe}function l(ue,Ne){return Qe;function Qe(at){u.call(this,ue(at),at),Ne&&Ne.call(this,at)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(ue,Ne,Qe){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([Ne,Qe||void 0]),ue.position={start:zi(Ne.start),end:void 0}}function d(ue){return Ne;function Ne(Qe){ue&&ue.call(this,Qe),m.call(this,Qe)}}function m(ue,Ne){const Qe=this.stack.pop(),at=this.tokenStack.pop();if(at)at[0].type!==ue.type&&(Ne?Ne.call(this,ue,at[0]):(at[1]||J3).call(this,ue,at[0]));else throw new Error("Cannot close `"+ue.type+"` ("+kp({start:ue.start,end:ue.end})+"): it’s not open");Qe.position.end=zi(ue.end)}function v(){return OC(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(ue){if(this.data.expectingFirstListItemValue){const Ne=this.stack[this.stack.length-2];Ne.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.lang=ue}function y(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.meta=ue}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ue.replace(/(\r?\n|\r)$/g,"")}function z(ue){const Ne=this.resume(),Qe=this.stack[this.stack.length-1];Qe.label=Ne,Qe.identifier=zo(this.sliceSerialize(ue)).toLowerCase()}function E(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=ue}function P(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=ue}function M(ue){const Ne=this.stack[this.stack.length-1];if(!Ne.depth){const Qe=this.sliceSerialize(ue).length;Ne.depth=Qe}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function U(ue){const Ne=this.stack[this.stack.length-1];Ne.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function O(ue){const Qe=this.stack[this.stack.length-1].children;let at=Qe[Qe.length-1];(!at||at.type!=="text")&&(at=Vt(),at.position={start:zi(ue.start),end:void 0},Qe.push(at)),this.stack.push(at)}function q(ue){const Ne=this.stack.pop();Ne.value+=this.sliceSerialize(ue),Ne.position.end=zi(ue.end)}function F(ue){const Ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Qe=Ne.children[Ne.children.length-1];Qe.position.end=zi(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ne.type)&&(O.call(this,ue),q.call(this,ue))}function K(){this.data.atHardBreak=!0}function le(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ue}function me(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ue}function ne(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ue}function ce(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const Ne=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=Ne,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function Ae(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const Ne=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=Ne,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function de(ue){const Ne=this.sliceSerialize(ue),Qe=this.stack[this.stack.length-2];Qe.label=RN(Ne),Qe.identifier=zo(Ne).toLowerCase()}function te(){const ue=this.stack[this.stack.length-1],Ne=this.resume(),Qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Qe.type==="link"){const at=ue.children;Qe.children=at}else Qe.alt=Ne}function I(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=ue}function V(){const ue=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=ue}function ie(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function Se(ue){const Ne=this.resume(),Qe=this.stack[this.stack.length-1];Qe.label=Ne,Qe.identifier=zo(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function ge(ue){this.data.characterReferenceType=ue.type}function Oe(ue){const Ne=this.sliceSerialize(ue),Qe=this.data.characterReferenceType;let at;Qe?(at=xb(Ne,Qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):at=C2(Ne);const ut=this.stack[this.stack.length-1];ut.value+=at}function be(ue){const Ne=this.stack.pop();Ne.position.end=zi(ue.end)}function Te(ue){q.call(this,ue);const Ne=this.stack[this.stack.length-1];Ne.url=this.sliceSerialize(ue)}function Ee(ue){q.call(this,ue);const Ne=this.stack[this.stack.length-1];Ne.url="mailto:"+this.sliceSerialize(ue)}function rt(){return{type:"blockquote",children:[]}}function Nt(){return{type:"code",lang:null,meta:null,value:""}}function Jt(){return{type:"inlineCode",value:""}}function Dn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function en(){return{type:"emphasis",children:[]}}function Ut(){return{type:"heading",depth:0,children:[]}}function Qn(){return{type:"break"}}function Xn(){return{type:"html",value:""}}function ha(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function yn(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function cr(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function qn(){return{type:"paragraph",children:[]}}function Yn(){return{type:"strong",children:[]}}function Vt(){return{type:"text",value:""}}function Qr(){return{type:"thematicBreak"}}}function zi(e){return{line:e.line,column:e.column,offset:e.offset}}function zb(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?zb(e,r):FN(e,r)}}function FN(e,t){let n;for(n in t)if(Eb.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function J3(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+kp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+kp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+kp({start:t.start,end:t.end})+") is still open")}function ON(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const S2=(function(e){if(e==null)return VN;if(typeof e=="function")return xm(e);if(typeof e=="object")return Array.isArray(e)?BN(e):HN(e);if(typeof e=="string")return UN(e);throw new Error("Expected function, string, or object as test")});function BN(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=S2(e[n]);return xm(r);function r(...a){let l=-1;for(;++l<t.length;)if(t[l].apply(this,a))return!0;return!1}}function HN(e){const t=e;return xm(n);function n(r){const a=r;let l;for(l in e)if(a[l]!==t[l])return!1;return!0}}function UN(e){return xm(t);function t(n){return n&&n.type===e}}function xm(e){return t;function t(n,r,a){return!!(GN(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function VN(){return!0}function GN(e){return e!==null&&typeof e=="object"&&"type"in e}const Tb=[],WN=!0,ev=!1,ZN="skip";function QN(e,t,n,r){let a;a=t;const l=S2(a),i=1;u(e,void 0,[])();function u(d,m,v){const f=d&&typeof d=="object"?d:{};if(typeof f.type=="string"){const b=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return h;function h(){let b=Tb,y,j,C;if(l(d,m,v[v.length-1]||void 0)&&(b=XN(n(d,v)),b[0]===ev))return b;if("children"in d&&d.children){const N=d;if(N.children&&b[0]!==ZN)for(j=-1+i,C=v.concat(N);j>-1&&j<N.children.length;){const z=N.children[j];if(y=u(z,j,C)(),y[0]===ev)return y;j=typeof y[1]=="number"?y[1]:j+i}}return b}}}function XN(e){return Array.isArray(e)?e:typeof e=="number"?[WN,e]:e==null?Tb:[e]}function YN(e,t,n){const a=S2((n||{}).ignore||[]),l=KN(t);let i=-1;for(;++i<l.length;)QN(e,"text",u);function u(m,v){let f=-1,h;for(;++f<v.length;){const b=v[f],y=h?h.children:void 0;if(a(b,y?y.indexOf(b):void 0,h))return;h=b}if(h)return d(m,v)}function d(m,v){const f=v[v.length-1],h=l[i][0],b=l[i][1];let y=0;const C=f.children.indexOf(m);let N=!1,z=[];h.lastIndex=0;let E=h.exec(m.value);for(;E;){const P=E.index,M={index:E.index,input:E.input,stack:[...v,m]};let L=b(...E,M);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?h.lastIndex=P+1:(y!==P&&z.push({type:"text",value:m.value.slice(y,P)}),Array.isArray(L)?z.push(...L):L&&z.push(L),y=P+E[0].length,N=!0),!h.global)break;E=h.exec(m.value)}return N?(y<m.value.length&&z.push({type:"text",value:m.value.slice(y)}),f.children.splice(C,1,...z)):z=[m],C+z.length}}function KN(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([JN(a[0]),eS(a[1])])}return t}function JN(e){return typeof e=="string"?new RegExp(ON(e),"g"):e}function eS(e){return typeof e=="function"?e:function(){return e}}function tS(){return{transforms:[iS],enter:{literalAutolink:nS,literalAutolinkEmail:kh,literalAutolinkHttp:kh,literalAutolinkWww:kh},exit:{literalAutolink:sS,literalAutolinkEmail:oS,literalAutolinkHttp:rS,literalAutolinkWww:aS}}}function nS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function kh(e){this.config.enter.autolinkProtocol.call(this,e)}function rS(e){this.config.exit.autolinkProtocol.call(this,e)}function aS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function oS(e){this.config.exit.autolinkEmail.call(this,e)}function sS(e){this.exit(e)}function iS(e){YN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cS]],{ignore:["link","linkReference"]})}function lS(e,t,n,r,a){let l="";if(!Mb(a)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!uS(n)))return!1;const i=dS(n+r);if(!i[0])return!1;const u={type:"link",title:null,url:l+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[u,{type:"text",value:i[1]}]:u}function cS(e,t,n,r){return!Mb(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function uS(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Lp(e,"(");let l=Lp(e,")");for(;r!==-1&&a>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Mb(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Hl(n)||P0(n))&&(!t||n!==47)}function pS(){this.buffer()}function mS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hS(){this.buffer()}function fS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vS(e){this.exit(e)}function bS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yS(e){this.exit(e)}function xS(){return{enter:{gfmFootnoteCallString:pS,gfmFootnoteCall:mS,gfmFootnoteDefinitionLabelString:hS,gfmFootnoteDefinition:fS},exit:{gfmFootnoteCallString:gS,gfmFootnoteCall:vS,gfmFootnoteDefinitionLabelString:bS,gfmFootnoteDefinition:yS}}}function _S(){return{canContainEols:["delete"],enter:{strikethrough:wS},exit:{strikethrough:jS}}}function wS(e){this.enter({type:"delete",children:[]},e)}function jS(e){this.exit(e)}function CS(){return{enter:{table:kS,tableData:tv,tableHeader:tv,tableRow:SS},exit:{codeText:$S,table:NS,tableData:Nh,tableHeader:Nh,tableRow:Nh}}}function kS(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function NS(e){this.exit(e),this.data.inTable=void 0}function SS(e){this.enter({type:"tableRow",children:[]},e)}function Nh(e){this.exit(e)}function tv(e){this.enter({type:"tableCell",children:[]},e)}function $S(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,AS));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function AS(e,t){return t==="|"?t:e}function ES(){return{exit:{taskListCheckValueChecked:nv,taskListCheckValueUnchecked:nv,paragraph:DS}}}function nv(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function DS(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let l=-1,i;for(;++l<a.length;){const u=a[l];if(u.type==="paragraph"){i=u;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Lb(){return[tS(),xS(),_S(),CS(),ES()]}function zS(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:l},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:u,mathText:i,mathTextData:u}};function e(d){const m={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[m]}},d)}function t(){this.buffer()}function n(){const d=this.resume(),m=this.stack[this.stack.length-1];m.type,m.meta=d}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(d){const m=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),v=this.stack[this.stack.length-1];v.type,this.exit(d),v.value=m;const f=v.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:m}),this.data.mathFlowInside=void 0}function l(d){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},d),this.buffer()}function i(d){const m=this.resume(),v=this.stack[this.stack.length-1];v.type,this.exit(d),v.value=m,v.data.hChildren.push({type:"text",value:m})}function u(d){this.config.enter.data.call(this,d),this.config.exit.data.call(this,d)}}const TS={tokenize:qS,partial:!0},Ib={tokenize:FS,partial:!0},Rb={tokenize:OS,partial:!0},Pb={tokenize:BS,partial:!0},MS={tokenize:HS,partial:!0},qb={name:"wwwAutolink",tokenize:RS,previous:Ob},Fb={name:"protocolAutolink",tokenize:PS,previous:Bb},Xs={name:"emailAutolink",tokenize:IS,previous:Hb},ds={};function LS(){return{text:ds}}let kl=48;for(;kl<123;)ds[kl]=Xs,kl++,kl===58?kl=65:kl===91&&(kl=97);ds[43]=Xs;ds[45]=Xs;ds[46]=Xs;ds[95]=Xs;ds[72]=[Xs,Fb];ds[104]=[Xs,Fb];ds[87]=[Xs,qb];ds[119]=[Xs,qb];function IS(e,t,n){const r=this;let a,l;return i;function i(f){return!Nf(f)||!Hb.call(r,r.previous)||$2(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(f))}function u(f){return Nf(f)?(e.consume(f),u):f===64?(e.consume(f),d):n(f)}function d(f){return f===46?e.check(MS,v,m)(f):f===45||f===95||zr(f)?(l=!0,e.consume(f),d):v(f)}function m(f){return e.consume(f),a=!0,d}function v(f){return l&&a&&Gr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function RS(e,t,n){const r=this;return a;function a(i){return i!==87&&i!==119||!Ob.call(r,r.previous)||$2(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TS,e.attempt(Ib,e.attempt(Rb,l),n),n)(i))}function l(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function PS(e,t,n){const r=this;let a="",l=!1;return i;function i(f){return(f===72||f===104)&&Bb.call(r,r.previous)&&!$2(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),u):n(f)}function u(f){if(Gr(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),u;if(f===58){const h=a.toLowerCase();if(h==="http"||h==="https")return e.consume(f),d}return n(f)}function d(f){return f===47?(e.consume(f),l?m:(l=!0,d)):n(f)}function m(f){return f===null||Op(f)||Zt(f)||Hl(f)||P0(f)?n(f):e.attempt(Ib,e.attempt(Rb,v),n)(f)}function v(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function qS(e,t,n){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),l):n(i)}function l(i){return i===null?n(i):t(i)}}function FS(e,t,n){let r,a,l;return i;function i(m){return m===46||m===95?e.check(Pb,d,u)(m):m===null||Zt(m)||Hl(m)||m!==45&&P0(m)?d(m):(l=!0,e.consume(m),i)}function u(m){return m===95?r=!0:(a=r,r=void 0),e.consume(m),i}function d(m){return a||r||!l?n(m):t(m)}}function OS(e,t){let n=0,r=0;return a;function a(i){return i===40?(n++,e.consume(i),a):i===41&&r<n?l(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(Pb,t,l)(i):i===null||Zt(i)||Hl(i)?t(i):(e.consume(i),a)}function l(i){return i===41&&r++,e.consume(i),a}}function BS(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),a):u===60||u===null||Zt(u)||Hl(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||Zt(u)||Hl(u)?t(u):r(u)}function l(u){return Gr(u)?i(u):n(u)}function i(u){return u===59?(e.consume(u),r):Gr(u)?(e.consume(u),i):n(u)}}function HS(e,t,n){return r;function r(l){return e.consume(l),a}function a(l){return zr(l)?n(l):t(l)}}function Ob(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Zt(e)}function Bb(e){return!Gr(e)}function Hb(e){return!(e===47||Nf(e))}function Nf(e){return e===43||e===45||e===46||e===95||zr(e)}function $2(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const US={tokenize:KS,partial:!0};function VS(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:QS,continuation:{tokenize:XS},exit:YS}},text:{91:{name:"gfmFootnoteCall",tokenize:ZS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:GS,resolveTo:WS}}}}function GS(e,t,n){const r=this;let a=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){i=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!i||!i._balanced)return n(d);const m=zo(r.sliceSerialize({start:i.end,end:r.now()}));return m.codePointAt(0)!==94||!l.includes(m.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function WS(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function ZS(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,i;return u;function u(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),d}function d(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(f){if(l>999||f===93&&!i||f===null||f===91||Zt(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return a.includes(zo(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Zt(f)||(i=!0),l++,e.consume(f),f===92?v:m}function v(f){return f===91||f===92||f===93?(e.consume(f),l++,m):m(f)}}function QS(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,i=0,u;return d;function d(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",v):n(y)}function v(y){if(i>999||y===93&&!u||y===null||y===91||Zt(y))return n(y);if(y===93){e.exit("chunkString");const j=e.exit("gfmFootnoteDefinitionLabelString");return l=zo(r.sliceSerialize(j)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Zt(y)||(u=!0),i++,e.consume(y),y===92?f:v}function f(y){return y===91||y===92||y===93?(e.consume(y),i++,v):v(y)}function h(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),a.includes(l)||a.push(l),gt(e,b,"gfmFootnoteDefinitionWhitespace")):n(y)}function b(y){return t(y)}}function XS(e,t,n){return e.check(q0,t,e.attempt(US,t,n))}function YS(e){e.exit("gfmFootnoteDefinition")}function KS(e,t,n){const r=this;return gt(e,a,"gfmFootnoteDefinitionIndent",5);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(l):n(l)}}function JS(e){let n={}.singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(i,u){let d=-1;for(;++d<i.length;)if(i[d][0]==="enter"&&i[d][1].type==="strikethroughSequenceTemporary"&&i[d][1]._close){let m=d;for(;m--;)if(i[m][0]==="exit"&&i[m][1].type==="strikethroughSequenceTemporary"&&i[m][1]._open&&i[d][1].end.offset-i[d][1].start.offset===i[m][1].end.offset-i[m][1].start.offset){i[d][1].type="strikethroughSequence",i[m][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},i[m][1].start),end:Object.assign({},i[d][1].end)},f={type:"strikethroughText",start:Object.assign({},i[m][1].end),end:Object.assign({},i[d][1].start)},h=[["enter",v,u],["enter",i[m][1],u],["exit",i[m][1],u],["enter",f,u]],b=u.parser.constructs.insideSpan.null;b&&Da(h,h.length,0,ym(b,i.slice(m+1,d),u)),Da(h,h.length,0,[["exit",f,u],["enter",i[d][1],u],["exit",i[d][1],u],["exit",v,u]]),Da(i,m-1,d-m+3,h),d=m+h.length-2;break}}for(d=-1;++d<i.length;)i[d][1].type==="strikethroughSequenceTemporary"&&(i[d][1].type="data");return i}function l(i,u,d){const m=this.previous,v=this.events;let f=0;return h;function h(y){return m===126&&v[v.length-1][1].type!=="characterEscape"?d(y):(i.enter("strikethroughSequenceTemporary"),b(y))}function b(y){const j=Vc(m);if(y===126)return f>1?d(y):(i.consume(y),f++,b);if(f<2&&!n)return d(y);const C=i.exit("strikethroughSequenceTemporary"),N=Vc(y);return C._open=!N||N===2&&!!j,C._close=!j||j===2&&!!N,u(y)}}}class e${constructor(){this.map=[]}add(t,n,r){t$(this,t,n,r)}consume(t){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const l of a)t.push(l);a=r.pop()}this.map.length=0}}function t$(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function n$(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function r$(){return{flow:{null:{name:"table",tokenize:a$,resolveAll:o$}}}}function a$(e,t,n){const r=this;let a=0,l=0,i;return u;function u(q){let F=r.events.length-1;for(;F>-1;){const me=r.events[F][1].type;if(me==="lineEnding"||me==="linePrefix")F--;else break}const K=F>-1?r.events[F][1].type:null,le=K==="tableHead"||K==="tableRow"?L:d;return le===L&&r.parser.lazy[r.now().line]?n(q):le(q)}function d(q){return e.enter("tableHead"),e.enter("tableRow"),m(q)}function m(q){return q===124||(i=!0,l+=1),v(q)}function v(q){return q===null?n(q):He(q)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),b):n(q):yt(q)?gt(e,v,"whitespace")(q):(l+=1,i&&(i=!1,a+=1),q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),i=!0,v):(e.enter("data"),f(q)))}function f(q){return q===null||q===124||Zt(q)?(e.exit("data"),v(q)):(e.consume(q),q===92?h:f)}function h(q){return q===92||q===124?(e.consume(q),f):f(q)}function b(q){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(q):(e.enter("tableDelimiterRow"),i=!1,yt(q)?gt(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):y(q))}function y(q){return q===45||q===58?C(q):q===124?(i=!0,e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),j):M(q)}function j(q){return yt(q)?gt(e,C,"whitespace")(q):C(q)}function C(q){return q===58?(l+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),N):q===45?(l+=1,N(q)):q===null||He(q)?P(q):M(q)}function N(q){return q===45?(e.enter("tableDelimiterFiller"),z(q)):M(q)}function z(q){return q===45?(e.consume(q),z):q===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(q))}function E(q){return yt(q)?gt(e,P,"whitespace")(q):P(q)}function P(q){return q===124?y(q):q===null||He(q)?!i||a!==l?M(q):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(q)):M(q)}function M(q){return n(q)}function L(q){return e.enter("tableRow"),U(q)}function U(q){return q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),U):q===null||He(q)?(e.exit("tableRow"),t(q)):yt(q)?gt(e,U,"whitespace")(q):(e.enter("data"),W(q))}function W(q){return q===null||q===124||Zt(q)?(e.exit("data"),U(q)):(e.consume(q),q===92?O:W)}function O(q){return q===92||q===124?(e.consume(q),W):W(q)}}function o$(e,t){let n=-1,r=!0,a=0,l=[0,0,0,0],i=[0,0,0,0],u=!1,d=0,m,v,f;const h=new e$;for(;++n<e.length;){const b=e[n],y=b[1];b[0]==="enter"?y.type==="tableHead"?(u=!1,d!==0&&(rv(h,t,d,m,v),v=void 0,d=0),m={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",m,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,f=void 0,l=[0,0,0,0],i=[0,n+1,0,0],u&&(u=!1,v={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",v,t]])),a=y.type==="tableDelimiterRow"?2:v?3:1):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(l[1]!==0&&(i[0]=i[1],f=ip(h,t,l,a,void 0,f),l=[0,0,0,0]),i[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(i[0]=i[1],f=ip(h,t,l,a,void 0,f)),l=i,i=[l[1],n,0,0])):y.type==="tableHead"?(u=!0,d=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(d=n,l[1]!==0?(i[0]=i[1],f=ip(h,t,l,a,n,f)):i[1]!==0&&(f=ip(h,t,i,a,n,f)),a=0):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(i[3]=n)}for(d!==0&&rv(h,t,d,m,v),h.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=n$(t.events,n))}return e}function ip(e,t,n,r,a,l){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},Fc(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=Fc(t.events,n[1]);if(l={type:i,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const m=Fc(t.events,n[2]),v=Fc(t.events,n[3]),f={type:u,start:Object.assign({},m),end:Object.assign({},v)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],b=t.events[n[3]];if(h[1].end=Object.assign({},b[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,j=n[3]-n[2]-1;e.add(y,j,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return a!==void 0&&(l.end=Object.assign({},Fc(t.events,a)),e.add(a,0,[["exit",l,t]]),l=void 0),l}function rv(e,t,n,r,a){const l=[],i=Fc(t.events,n);a&&(a.end=Object.assign({},i),l.push(["exit",a,t])),r.end=Object.assign({},i),l.push(["exit",r,t]),e.add(n+1,0,l)}function Fc(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const s$={name:"tasklistCheck",tokenize:l$};function i$(){return{text:{91:s$}}}function l$(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),l)}function l(d){return Zt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),i):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),i):n(d)}function i(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(d)}function u(d){return He(d)?t(d):yt(d)?e.check({tokenize:c$},t,n)(d):n(d)}}function c$(e,t,n){return gt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function Ub(e){return yb([LS(),VS(),JS(),r$(),i$()])}const u$={tokenize:d$,concrete:!0,name:"mathFlow"},av={tokenize:p$,partial:!0};function d$(e,t,n){const r=this,a=r.events[r.events.length-1],l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let i=0;return u;function u(z){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),d(z)}function d(z){return z===36?(e.consume(z),i++,d):i<2?n(z):(e.exit("mathFlowFenceSequence"),gt(e,m,"whitespace")(z))}function m(z){return z===null||He(z)?f(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||He(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(z)):z===36?n(z):(e.consume(z),v)}function f(z){return e.exit("mathFlowFence"),r.interrupt?t(z):e.attempt(av,h,C)(z)}function h(z){return e.attempt({tokenize:N,partial:!0},C,b)(z)}function b(z){return(l?gt(e,y,"linePrefix",l+1):y)(z)}function y(z){return z===null?C(z):He(z)?e.attempt(av,h,C)(z):(e.enter("mathFlowValue"),j(z))}function j(z){return z===null||He(z)?(e.exit("mathFlowValue"),y(z)):(e.consume(z),j)}function C(z){return e.exit("mathFlow"),t(z)}function N(z,E,P){let M=0;return gt(z,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function L(O){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),U(O)}function U(O){return O===36?(M++,z.consume(O),U):M<i?P(O):(z.exit("mathFlowFenceSequence"),gt(z,W,"whitespace")(O))}function W(O){return O===null||He(O)?(z.exit("mathFlowFence"),E(O)):P(O)}}}function p$(e,t,n){const r=this;return a;function a(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function m$(e){let n={}.singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:h$,previous:f$,name:"mathText"};function r(a,l,i){let u=0,d,m;return v;function v(j){return a.enter("mathText"),a.enter("mathTextSequence"),f(j)}function f(j){return j===36?(a.consume(j),u++,f):u<2&&!n?i(j):(a.exit("mathTextSequence"),h(j))}function h(j){return j===null?i(j):j===36?(m=a.enter("mathTextSequence"),d=0,y(j)):j===32?(a.enter("space"),a.consume(j),a.exit("space"),h):He(j)?(a.enter("lineEnding"),a.consume(j),a.exit("lineEnding"),h):(a.enter("mathTextData"),b(j))}function b(j){return j===null||j===32||j===36||He(j)?(a.exit("mathTextData"),h(j)):(a.consume(j),b)}function y(j){return j===36?(a.consume(j),d++,y):d===u?(a.exit("mathTextSequence"),a.exit("mathText"),l(j)):(m.type="mathTextData",b(j))}}}function h$(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function f$(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function g$(e){return{flow:{36:u$},text:{36:m$()}}}class Ce extends Error{constructor(t,n){var r="KaTeX parse error: "+t,a,l,i=n&&n.loc;if(i&&i.start<=i.end){var u=i.lexer.input;a=i.start,l=i.end,a===u.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var d=u.slice(a,l).replace(/[^]/g,"$&̲"),m;a>15?m="…"+u.slice(a-15,a):m=u.slice(0,a);var v;l+15<u.length?v=u.slice(l,l+15)+"…":v=u.slice(l),r+=m+d+v}super(r),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Ce.prototype),this.position=a,a!=null&&l!=null&&(this.length=l-a),this.rawMessage=t}}var v$=/([A-Z])/g,b$=e=>e.replace(v$,"-$1").toLowerCase(),y$={"&":"&",">":">","<":"<",'"':""","'":"'"},x$=/[&><"']/g,Tr=e=>String(e).replace(x$,t=>y$[t]),Np=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Np(e.body[0]):e:e.type==="font"?Np(e.body):e,_$=new Set(["mathord","textord","atom"]),Ys=e=>_$.has(Np(e).type),w$=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Sf={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function j$(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function C$(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return j$(t)}function k$(e,t,n,r){var a=n[t];e[t]=a!==void 0?r.processor?r.processor(a):a:C$(r)}class A2{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n of Object.keys(Sf)){var r=Sf[n];r&&k$(this,n,t,r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Ce("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=w$(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Ti{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return ls[N$[this.id]]}sub(){return ls[S$[this.id]]}fracNum(){return ls[$$[this.id]]}fracDen(){return ls[A$[this.id]]}cramp(){return ls[E$[this.id]]}text(){return ls[D$[this.id]]}isTight(){return this.size>=2}}var E2=0,Hp=1,Hc=2,Zs=3,$0=4,ao=5,Gc=6,Wr=7,ls=[new Ti(E2,0,!1),new Ti(Hp,0,!0),new Ti(Hc,1,!1),new Ti(Zs,1,!0),new Ti($0,2,!1),new Ti(ao,2,!0),new Ti(Gc,3,!1),new Ti(Wr,3,!0)],N$=[$0,ao,$0,ao,Gc,Wr,Gc,Wr],S$=[ao,ao,ao,ao,Wr,Wr,Wr,Wr],$$=[Hc,Zs,$0,ao,Gc,Wr,Gc,Wr],A$=[Zs,Zs,ao,ao,Wr,Wr,Wr,Wr],E$=[Hp,Hp,Zs,Zs,ao,ao,Wr,Wr],D$=[E2,Hp,Hc,Zs,Hc,Zs,Hc,Zs],ht={DISPLAY:ls[E2],TEXT:ls[Hc],SCRIPT:ls[$0],SCRIPTSCRIPT:ls[Gc]},$f=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function z$(e){for(var t=0;t<$f.length;t++)for(var n=$f[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var Sp=[];$f.forEach(e=>e.blocks.forEach(t=>Sp.push(...t)));function Vb(e){for(var t=0;t<Sp.length;t+=2)if(e>=Sp[t]&&e<=Sp[t+1])return!0;return!1}var Un=e=>e+" "+e,Mc=80,T$=function(t,n){return"M95,"+(622+t+n)+`
|
|
195
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
196
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
197
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
198
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
199
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
200
|
+
l`+t/2.075+" -"+t+`
|
|
201
|
+
c5.3,-9.3,12,-14,20,-14
|
|
202
|
+
H400000v`+(40+t)+`H845.2724
|
|
203
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
204
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
205
|
+
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},M$=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
206
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
207
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
208
|
+
l`+t/2.084+" -"+t+`
|
|
209
|
+
c4.7,-7.3,11,-11,19,-11
|
|
210
|
+
H40000v`+(40+t)+`H1012.3
|
|
211
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
212
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
213
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
214
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
215
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},L$=function(t,n){return"M983 "+(10+t+n)+`
|
|
216
|
+
l`+t/3.13+" -"+t+`
|
|
217
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
218
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
219
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
220
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
221
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
222
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
223
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
224
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},I$=function(t,n){return"M424,"+(2398+t+n)+`
|
|
225
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
226
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
227
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
228
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
229
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
230
|
+
v`+(40+t)+`H1014.6
|
|
231
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
232
|
+
c-2,6,-10,9,-24,9
|
|
233
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
234
|
+
h400000v`+(40+t)+"h-400000z"},R$=function(t,n){return"M473,"+(2713+t+n)+`
|
|
235
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
236
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
237
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
238
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
239
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
240
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
241
|
+
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},P$=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},q$=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
242
|
+
H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
243
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
244
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
245
|
+
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},F$=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=T$(n,Mc);break;case"sqrtSize1":a=M$(n,Mc);break;case"sqrtSize2":a=L$(n,Mc);break;case"sqrtSize3":a=I$(n,Mc);break;case"sqrtSize4":a=R$(n,Mc);break;case"sqrtTall":a=q$(n,Mc,r)}return a},O$=function(t,n){switch(t){case"⎜":return Un("M291 0 H417 V"+n+" H291z");case"∣":return Un("M145 0 H188 V"+n+" H145z");case"∥":return Un("M145 0 H188 V"+n+" H145z")+Un("M367 0 H410 V"+n+" H367z");case"⎟":return Un("M457 0 H583 V"+n+" H457z");case"⎢":return Un("M319 0 H403 V"+n+" H319z");case"⎥":return Un("M263 0 H347 V"+n+" H263z");case"⎪":return Un("M384 0 H504 V"+n+" H384z");case"⏐":return Un("M312 0 H355 V"+n+" H312z");case"‖":return Un("M257 0 H300 V"+n+" H257z")+Un("M478 0 H521 V"+n+" H478z");default:return""}},ov={doubleleftarrow:`M262 157
|
|
246
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
247
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
248
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
249
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
250
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
251
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
252
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
253
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
254
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
255
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
256
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
257
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
258
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
259
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
260
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
261
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
262
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
263
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
264
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
265
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
266
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
267
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
268
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
269
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
270
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
271
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
272
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
273
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
274
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
275
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
276
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
277
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
278
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
279
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
280
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
281
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
282
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
283
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
284
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
285
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
286
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
287
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
288
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
289
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
290
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
291
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Un("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Un("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Un("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Un("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
292
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
293
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
294
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Un("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
295
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
296
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
297
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
298
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
299
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
300
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
301
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
302
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
303
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
304
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
305
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
306
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
307
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
308
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
309
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
310
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
311
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
312
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
313
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
314
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
315
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
316
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
317
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
318
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
319
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
320
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
321
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
322
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
323
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
324
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
325
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
326
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
327
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
328
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
329
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
330
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
331
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
332
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
333
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
334
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
335
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
336
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
337
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
338
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
339
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
340
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
341
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
342
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
343
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Un("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Un("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Un("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
344
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
345
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
346
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
347
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
348
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
349
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
350
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
351
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
352
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
353
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
354
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
355
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
356
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
357
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
358
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
359
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
360
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
361
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
362
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
363
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
364
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
365
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
366
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
367
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
368
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
369
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
370
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
371
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
372
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
373
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
374
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
375
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
376
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
377
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
378
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
379
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
380
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
381
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
382
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
383
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
384
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
385
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
386
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
387
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
388
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
389
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
390
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
391
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
392
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
393
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
394
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
395
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
396
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
397
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
398
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
399
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
400
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
401
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
402
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
403
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
404
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
405
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
406
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
407
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
408
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
409
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
410
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
411
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
412
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
413
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
414
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
415
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
416
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},B$=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 v84 h347 v-84
|
|
417
|
+
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
|
|
418
|
+
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
419
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
420
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
421
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
422
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
423
|
+
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
424
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
425
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
|
|
426
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
427
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
428
|
+
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
429
|
+
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
430
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
431
|
+
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
432
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
433
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
434
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
435
|
+
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
436
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
437
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
438
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
439
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
440
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
441
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
442
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
443
|
+
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
444
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function H$(e){return"toText"in e}class Jc{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){return this.children.map(t=>{if(H$(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var Af={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},U$={ex:!0,em:!0,mu:!0},Gb=function(t){return typeof t!="string"&&(t=t.unit),t in Af||t in U$||t==="ex"},bn=function(t,n){var r;if(t.unit in Af)r=Af[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new Ce("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},De=function(t){return+t.toFixed(4)+"em"},Hi=function(t){return t.filter(n=>n).join(" ")},D2=function(t){var n="";for(var r of Object.keys(t)){var a=t[r];a!==void 0&&(n+=b$(r)+":"+a+";")}return n},Wb=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},Zb=function(t){var n=document.createElement(t);n.className=Hi(this.classes),Object.assign(n.style,this.style);for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},V$=/[\s"'>/=\x00-\x1f]/,Qb=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Tr(Hi(this.classes))+'"');var r=D2(this.style);r&&(n+=' style="'+Tr(r)+'"');for(var a of Object.keys(this.attributes)){if(V$.test(a))throw new Ce("Invalid attribute name '"+a+"'");n+=" "+a+'="'+Tr(this.attributes[a])+'"'}n+=">";for(var l=0;l<this.children.length;l++)n+=this.children[l].toMarkup();return n+="</"+t+">",n};class eu{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Wb.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return Zb.call(this,"span")}toMarkup(){return Qb.call(this,"span")}}class _m{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Wb.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return Zb.call(this,"a")}toMarkup(){return Qb.call(this,"a")}}class G${constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Tr(this.src)+'"'+(' alt="'+Tr(this.alt)+'"'),n=D2(this.style);return n&&(t+=' style="'+Tr(n)+'"'),t+="'/>",t}}var W$={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Ma{constructor(t,n,r,a,l,i,u,d){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=a||0,this.skew=l||0,this.width=i||0,this.classes=u||[],this.style=d||{},this.maxFontSize=0;var m=z$(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=W$[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=De(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Hi(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Tr(Hi(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+De(this.italic)+";"),r+=D2(this.style),r&&(t=!0,n+=' style="'+Tr(r)+'"');var a=Tr(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class Qs{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Tr(this.attributes[n])+'"';t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Ui{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",ov[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Tr(this.alternate)+'"/>':'<path d="'+Tr(ov[this.pathName])+'"/>'}}class Ef{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Tr(this.attributes[n])+'"';return t+="/>",t}}function Z$(e){if(e instanceof Ma)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Q$(e){if(e instanceof eu)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var X$=e=>e instanceof eu||e instanceof _m||e instanceof Jc,cs={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},lp={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},sv={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Y$(e,t){cs[e]=t}function z2(e,t,n){if(!cs[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=cs[t][r];if(!a&&e[0]in sv&&(r=sv[e[0]].charCodeAt(0),a=cs[t][r]),!a&&n==="text"&&Vb(r)&&(a=cs[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Sh={};function K$(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Sh[t]){var n=Sh[t]={cssEmPerMu:lp.quad[t]/18};for(var r in lp)lp.hasOwnProperty(r)&&(n[r]=lp[r][t])}return Sh[t]}var pn={math:{},text:{}};function _(e,t,n,r,a,l){pn[e][a]={font:t,group:n,replace:r},l&&r&&(pn[e][r]=pn[e][a])}var k="math",fe="text",$="main",H="ams",mn="accent-token",Pe="bin",Zr="close",tu="inner",nt="mathord",Pn="op-token",La="open",F0="punct",G="rel",Ks="spacing",Y="textord";_(k,$,G,"≡","\\equiv",!0);_(k,$,G,"≺","\\prec",!0);_(k,$,G,"≻","\\succ",!0);_(k,$,G,"∼","\\sim",!0);_(k,$,G,"⊥","\\perp");_(k,$,G,"⪯","\\preceq",!0);_(k,$,G,"⪰","\\succeq",!0);_(k,$,G,"≃","\\simeq",!0);_(k,$,G,"∣","\\mid",!0);_(k,$,G,"≪","\\ll",!0);_(k,$,G,"≫","\\gg",!0);_(k,$,G,"≍","\\asymp",!0);_(k,$,G,"∥","\\parallel");_(k,$,G,"⋈","\\bowtie",!0);_(k,$,G,"⌣","\\smile",!0);_(k,$,G,"⊑","\\sqsubseteq",!0);_(k,$,G,"⊒","\\sqsupseteq",!0);_(k,$,G,"≐","\\doteq",!0);_(k,$,G,"⌢","\\frown",!0);_(k,$,G,"∋","\\ni",!0);_(k,$,G,"∝","\\propto",!0);_(k,$,G,"⊢","\\vdash",!0);_(k,$,G,"⊣","\\dashv",!0);_(k,$,G,"∋","\\owns");_(k,$,F0,".","\\ldotp");_(k,$,F0,"⋅","\\cdotp");_(k,$,F0,"⋅","·");_(fe,$,Y,"⋅","·");_(k,$,Y,"#","\\#");_(fe,$,Y,"#","\\#");_(k,$,Y,"&","\\&");_(fe,$,Y,"&","\\&");_(k,$,Y,"ℵ","\\aleph",!0);_(k,$,Y,"∀","\\forall",!0);_(k,$,Y,"ℏ","\\hbar",!0);_(k,$,Y,"∃","\\exists",!0);_(k,$,Y,"∇","\\nabla",!0);_(k,$,Y,"♭","\\flat",!0);_(k,$,Y,"ℓ","\\ell",!0);_(k,$,Y,"♮","\\natural",!0);_(k,$,Y,"♣","\\clubsuit",!0);_(k,$,Y,"℘","\\wp",!0);_(k,$,Y,"♯","\\sharp",!0);_(k,$,Y,"♢","\\diamondsuit",!0);_(k,$,Y,"ℜ","\\Re",!0);_(k,$,Y,"♡","\\heartsuit",!0);_(k,$,Y,"ℑ","\\Im",!0);_(k,$,Y,"♠","\\spadesuit",!0);_(k,$,Y,"§","\\S",!0);_(fe,$,Y,"§","\\S");_(k,$,Y,"¶","\\P",!0);_(fe,$,Y,"¶","\\P");_(k,$,Y,"†","\\dag");_(fe,$,Y,"†","\\dag");_(fe,$,Y,"†","\\textdagger");_(k,$,Y,"‡","\\ddag");_(fe,$,Y,"‡","\\ddag");_(fe,$,Y,"‡","\\textdaggerdbl");_(k,$,Zr,"⎱","\\rmoustache",!0);_(k,$,La,"⎰","\\lmoustache",!0);_(k,$,Zr,"⟯","\\rgroup",!0);_(k,$,La,"⟮","\\lgroup",!0);_(k,$,Pe,"∓","\\mp",!0);_(k,$,Pe,"⊖","\\ominus",!0);_(k,$,Pe,"⊎","\\uplus",!0);_(k,$,Pe,"⊓","\\sqcap",!0);_(k,$,Pe,"∗","\\ast");_(k,$,Pe,"⊔","\\sqcup",!0);_(k,$,Pe,"◯","\\bigcirc",!0);_(k,$,Pe,"∙","\\bullet",!0);_(k,$,Pe,"‡","\\ddagger");_(k,$,Pe,"≀","\\wr",!0);_(k,$,Pe,"⨿","\\amalg");_(k,$,Pe,"&","\\And");_(k,$,G,"⟵","\\longleftarrow",!0);_(k,$,G,"⇐","\\Leftarrow",!0);_(k,$,G,"⟸","\\Longleftarrow",!0);_(k,$,G,"⟶","\\longrightarrow",!0);_(k,$,G,"⇒","\\Rightarrow",!0);_(k,$,G,"⟹","\\Longrightarrow",!0);_(k,$,G,"↔","\\leftrightarrow",!0);_(k,$,G,"⟷","\\longleftrightarrow",!0);_(k,$,G,"⇔","\\Leftrightarrow",!0);_(k,$,G,"⟺","\\Longleftrightarrow",!0);_(k,$,G,"↦","\\mapsto",!0);_(k,$,G,"⟼","\\longmapsto",!0);_(k,$,G,"↗","\\nearrow",!0);_(k,$,G,"↩","\\hookleftarrow",!0);_(k,$,G,"↪","\\hookrightarrow",!0);_(k,$,G,"↘","\\searrow",!0);_(k,$,G,"↼","\\leftharpoonup",!0);_(k,$,G,"⇀","\\rightharpoonup",!0);_(k,$,G,"↙","\\swarrow",!0);_(k,$,G,"↽","\\leftharpoondown",!0);_(k,$,G,"⇁","\\rightharpoondown",!0);_(k,$,G,"↖","\\nwarrow",!0);_(k,$,G,"⇌","\\rightleftharpoons",!0);_(k,H,G,"≮","\\nless",!0);_(k,H,G,"","\\@nleqslant");_(k,H,G,"","\\@nleqq");_(k,H,G,"⪇","\\lneq",!0);_(k,H,G,"≨","\\lneqq",!0);_(k,H,G,"","\\@lvertneqq");_(k,H,G,"⋦","\\lnsim",!0);_(k,H,G,"⪉","\\lnapprox",!0);_(k,H,G,"⊀","\\nprec",!0);_(k,H,G,"⋠","\\npreceq",!0);_(k,H,G,"⋨","\\precnsim",!0);_(k,H,G,"⪹","\\precnapprox",!0);_(k,H,G,"≁","\\nsim",!0);_(k,H,G,"","\\@nshortmid");_(k,H,G,"∤","\\nmid",!0);_(k,H,G,"⊬","\\nvdash",!0);_(k,H,G,"⊭","\\nvDash",!0);_(k,H,G,"⋪","\\ntriangleleft");_(k,H,G,"⋬","\\ntrianglelefteq",!0);_(k,H,G,"⊊","\\subsetneq",!0);_(k,H,G,"","\\@varsubsetneq");_(k,H,G,"⫋","\\subsetneqq",!0);_(k,H,G,"","\\@varsubsetneqq");_(k,H,G,"≯","\\ngtr",!0);_(k,H,G,"","\\@ngeqslant");_(k,H,G,"","\\@ngeqq");_(k,H,G,"⪈","\\gneq",!0);_(k,H,G,"≩","\\gneqq",!0);_(k,H,G,"","\\@gvertneqq");_(k,H,G,"⋧","\\gnsim",!0);_(k,H,G,"⪊","\\gnapprox",!0);_(k,H,G,"⊁","\\nsucc",!0);_(k,H,G,"⋡","\\nsucceq",!0);_(k,H,G,"⋩","\\succnsim",!0);_(k,H,G,"⪺","\\succnapprox",!0);_(k,H,G,"≆","\\ncong",!0);_(k,H,G,"","\\@nshortparallel");_(k,H,G,"∦","\\nparallel",!0);_(k,H,G,"⊯","\\nVDash",!0);_(k,H,G,"⋫","\\ntriangleright");_(k,H,G,"⋭","\\ntrianglerighteq",!0);_(k,H,G,"","\\@nsupseteqq");_(k,H,G,"⊋","\\supsetneq",!0);_(k,H,G,"","\\@varsupsetneq");_(k,H,G,"⫌","\\supsetneqq",!0);_(k,H,G,"","\\@varsupsetneqq");_(k,H,G,"⊮","\\nVdash",!0);_(k,H,G,"⪵","\\precneqq",!0);_(k,H,G,"⪶","\\succneqq",!0);_(k,H,G,"","\\@nsubseteqq");_(k,H,Pe,"⊴","\\unlhd");_(k,H,Pe,"⊵","\\unrhd");_(k,H,G,"↚","\\nleftarrow",!0);_(k,H,G,"↛","\\nrightarrow",!0);_(k,H,G,"⇍","\\nLeftarrow",!0);_(k,H,G,"⇏","\\nRightarrow",!0);_(k,H,G,"↮","\\nleftrightarrow",!0);_(k,H,G,"⇎","\\nLeftrightarrow",!0);_(k,H,G,"△","\\vartriangle");_(k,H,Y,"ℏ","\\hslash");_(k,H,Y,"▽","\\triangledown");_(k,H,Y,"◊","\\lozenge");_(k,H,Y,"Ⓢ","\\circledS");_(k,H,Y,"®","\\circledR");_(fe,H,Y,"®","\\circledR");_(k,H,Y,"∡","\\measuredangle",!0);_(k,H,Y,"∄","\\nexists");_(k,H,Y,"℧","\\mho");_(k,H,Y,"Ⅎ","\\Finv",!0);_(k,H,Y,"⅁","\\Game",!0);_(k,H,Y,"‵","\\backprime");_(k,H,Y,"▲","\\blacktriangle");_(k,H,Y,"▼","\\blacktriangledown");_(k,H,Y,"■","\\blacksquare");_(k,H,Y,"⧫","\\blacklozenge");_(k,H,Y,"★","\\bigstar");_(k,H,Y,"∢","\\sphericalangle",!0);_(k,H,Y,"∁","\\complement",!0);_(k,H,Y,"ð","\\eth",!0);_(fe,$,Y,"ð","ð");_(k,H,Y,"╱","\\diagup");_(k,H,Y,"╲","\\diagdown");_(k,H,Y,"□","\\square");_(k,H,Y,"□","\\Box");_(k,H,Y,"◊","\\Diamond");_(k,H,Y,"¥","\\yen",!0);_(fe,H,Y,"¥","\\yen",!0);_(k,H,Y,"✓","\\checkmark",!0);_(fe,H,Y,"✓","\\checkmark");_(k,H,Y,"ℶ","\\beth",!0);_(k,H,Y,"ℸ","\\daleth",!0);_(k,H,Y,"ℷ","\\gimel",!0);_(k,H,Y,"ϝ","\\digamma",!0);_(k,H,Y,"ϰ","\\varkappa");_(k,H,La,"┌","\\@ulcorner",!0);_(k,H,Zr,"┐","\\@urcorner",!0);_(k,H,La,"└","\\@llcorner",!0);_(k,H,Zr,"┘","\\@lrcorner",!0);_(k,H,G,"≦","\\leqq",!0);_(k,H,G,"⩽","\\leqslant",!0);_(k,H,G,"⪕","\\eqslantless",!0);_(k,H,G,"≲","\\lesssim",!0);_(k,H,G,"⪅","\\lessapprox",!0);_(k,H,G,"≊","\\approxeq",!0);_(k,H,Pe,"⋖","\\lessdot");_(k,H,G,"⋘","\\lll",!0);_(k,H,G,"≶","\\lessgtr",!0);_(k,H,G,"⋚","\\lesseqgtr",!0);_(k,H,G,"⪋","\\lesseqqgtr",!0);_(k,H,G,"≑","\\doteqdot");_(k,H,G,"≓","\\risingdotseq",!0);_(k,H,G,"≒","\\fallingdotseq",!0);_(k,H,G,"∽","\\backsim",!0);_(k,H,G,"⋍","\\backsimeq",!0);_(k,H,G,"⫅","\\subseteqq",!0);_(k,H,G,"⋐","\\Subset",!0);_(k,H,G,"⊏","\\sqsubset",!0);_(k,H,G,"≼","\\preccurlyeq",!0);_(k,H,G,"⋞","\\curlyeqprec",!0);_(k,H,G,"≾","\\precsim",!0);_(k,H,G,"⪷","\\precapprox",!0);_(k,H,G,"⊲","\\vartriangleleft");_(k,H,G,"⊴","\\trianglelefteq");_(k,H,G,"⊨","\\vDash",!0);_(k,H,G,"⊪","\\Vvdash",!0);_(k,H,G,"⌣","\\smallsmile");_(k,H,G,"⌢","\\smallfrown");_(k,H,G,"≏","\\bumpeq",!0);_(k,H,G,"≎","\\Bumpeq",!0);_(k,H,G,"≧","\\geqq",!0);_(k,H,G,"⩾","\\geqslant",!0);_(k,H,G,"⪖","\\eqslantgtr",!0);_(k,H,G,"≳","\\gtrsim",!0);_(k,H,G,"⪆","\\gtrapprox",!0);_(k,H,Pe,"⋗","\\gtrdot");_(k,H,G,"⋙","\\ggg",!0);_(k,H,G,"≷","\\gtrless",!0);_(k,H,G,"⋛","\\gtreqless",!0);_(k,H,G,"⪌","\\gtreqqless",!0);_(k,H,G,"≖","\\eqcirc",!0);_(k,H,G,"≗","\\circeq",!0);_(k,H,G,"≜","\\triangleq",!0);_(k,H,G,"∼","\\thicksim");_(k,H,G,"≈","\\thickapprox");_(k,H,G,"⫆","\\supseteqq",!0);_(k,H,G,"⋑","\\Supset",!0);_(k,H,G,"⊐","\\sqsupset",!0);_(k,H,G,"≽","\\succcurlyeq",!0);_(k,H,G,"⋟","\\curlyeqsucc",!0);_(k,H,G,"≿","\\succsim",!0);_(k,H,G,"⪸","\\succapprox",!0);_(k,H,G,"⊳","\\vartriangleright");_(k,H,G,"⊵","\\trianglerighteq");_(k,H,G,"⊩","\\Vdash",!0);_(k,H,G,"∣","\\shortmid");_(k,H,G,"∥","\\shortparallel");_(k,H,G,"≬","\\between",!0);_(k,H,G,"⋔","\\pitchfork",!0);_(k,H,G,"∝","\\varpropto");_(k,H,G,"◀","\\blacktriangleleft");_(k,H,G,"∴","\\therefore",!0);_(k,H,G,"∍","\\backepsilon");_(k,H,G,"▶","\\blacktriangleright");_(k,H,G,"∵","\\because",!0);_(k,H,G,"⋘","\\llless");_(k,H,G,"⋙","\\gggtr");_(k,H,Pe,"⊲","\\lhd");_(k,H,Pe,"⊳","\\rhd");_(k,H,G,"≂","\\eqsim",!0);_(k,$,G,"⋈","\\Join");_(k,H,G,"≑","\\Doteq",!0);_(k,H,Pe,"∔","\\dotplus",!0);_(k,H,Pe,"∖","\\smallsetminus");_(k,H,Pe,"⋒","\\Cap",!0);_(k,H,Pe,"⋓","\\Cup",!0);_(k,H,Pe,"⩞","\\doublebarwedge",!0);_(k,H,Pe,"⊟","\\boxminus",!0);_(k,H,Pe,"⊞","\\boxplus",!0);_(k,H,Pe,"⋇","\\divideontimes",!0);_(k,H,Pe,"⋉","\\ltimes",!0);_(k,H,Pe,"⋊","\\rtimes",!0);_(k,H,Pe,"⋋","\\leftthreetimes",!0);_(k,H,Pe,"⋌","\\rightthreetimes",!0);_(k,H,Pe,"⋏","\\curlywedge",!0);_(k,H,Pe,"⋎","\\curlyvee",!0);_(k,H,Pe,"⊝","\\circleddash",!0);_(k,H,Pe,"⊛","\\circledast",!0);_(k,H,Pe,"⋅","\\centerdot");_(k,H,Pe,"⊺","\\intercal",!0);_(k,H,Pe,"⋒","\\doublecap");_(k,H,Pe,"⋓","\\doublecup");_(k,H,Pe,"⊠","\\boxtimes",!0);_(k,H,G,"⇢","\\dashrightarrow",!0);_(k,H,G,"⇠","\\dashleftarrow",!0);_(k,H,G,"⇇","\\leftleftarrows",!0);_(k,H,G,"⇆","\\leftrightarrows",!0);_(k,H,G,"⇚","\\Lleftarrow",!0);_(k,H,G,"↞","\\twoheadleftarrow",!0);_(k,H,G,"↢","\\leftarrowtail",!0);_(k,H,G,"↫","\\looparrowleft",!0);_(k,H,G,"⇋","\\leftrightharpoons",!0);_(k,H,G,"↶","\\curvearrowleft",!0);_(k,H,G,"↺","\\circlearrowleft",!0);_(k,H,G,"↰","\\Lsh",!0);_(k,H,G,"⇈","\\upuparrows",!0);_(k,H,G,"↿","\\upharpoonleft",!0);_(k,H,G,"⇃","\\downharpoonleft",!0);_(k,$,G,"⊶","\\origof",!0);_(k,$,G,"⊷","\\imageof",!0);_(k,H,G,"⊸","\\multimap",!0);_(k,H,G,"↭","\\leftrightsquigarrow",!0);_(k,H,G,"⇉","\\rightrightarrows",!0);_(k,H,G,"⇄","\\rightleftarrows",!0);_(k,H,G,"↠","\\twoheadrightarrow",!0);_(k,H,G,"↣","\\rightarrowtail",!0);_(k,H,G,"↬","\\looparrowright",!0);_(k,H,G,"↷","\\curvearrowright",!0);_(k,H,G,"↻","\\circlearrowright",!0);_(k,H,G,"↱","\\Rsh",!0);_(k,H,G,"⇊","\\downdownarrows",!0);_(k,H,G,"↾","\\upharpoonright",!0);_(k,H,G,"⇂","\\downharpoonright",!0);_(k,H,G,"⇝","\\rightsquigarrow",!0);_(k,H,G,"⇝","\\leadsto");_(k,H,G,"⇛","\\Rrightarrow",!0);_(k,H,G,"↾","\\restriction");_(k,$,Y,"‘","`");_(k,$,Y,"$","\\$");_(fe,$,Y,"$","\\$");_(fe,$,Y,"$","\\textdollar");_(k,$,Y,"%","\\%");_(fe,$,Y,"%","\\%");_(k,$,Y,"_","\\_");_(fe,$,Y,"_","\\_");_(fe,$,Y,"_","\\textunderscore");_(k,$,Y,"∠","\\angle",!0);_(k,$,Y,"∞","\\infty",!0);_(k,$,Y,"′","\\prime");_(k,$,Y,"△","\\triangle");_(k,$,Y,"Γ","\\Gamma",!0);_(k,$,Y,"Δ","\\Delta",!0);_(k,$,Y,"Θ","\\Theta",!0);_(k,$,Y,"Λ","\\Lambda",!0);_(k,$,Y,"Ξ","\\Xi",!0);_(k,$,Y,"Π","\\Pi",!0);_(k,$,Y,"Σ","\\Sigma",!0);_(k,$,Y,"Υ","\\Upsilon",!0);_(k,$,Y,"Φ","\\Phi",!0);_(k,$,Y,"Ψ","\\Psi",!0);_(k,$,Y,"Ω","\\Omega",!0);_(k,$,Y,"A","Α");_(k,$,Y,"B","Β");_(k,$,Y,"E","Ε");_(k,$,Y,"Z","Ζ");_(k,$,Y,"H","Η");_(k,$,Y,"I","Ι");_(k,$,Y,"K","Κ");_(k,$,Y,"M","Μ");_(k,$,Y,"N","Ν");_(k,$,Y,"O","Ο");_(k,$,Y,"P","Ρ");_(k,$,Y,"T","Τ");_(k,$,Y,"X","Χ");_(k,$,Y,"¬","\\neg",!0);_(k,$,Y,"¬","\\lnot");_(k,$,Y,"⊤","\\top");_(k,$,Y,"⊥","\\bot");_(k,$,Y,"∅","\\emptyset");_(k,H,Y,"∅","\\varnothing");_(k,$,nt,"α","\\alpha",!0);_(k,$,nt,"β","\\beta",!0);_(k,$,nt,"γ","\\gamma",!0);_(k,$,nt,"δ","\\delta",!0);_(k,$,nt,"ϵ","\\epsilon",!0);_(k,$,nt,"ζ","\\zeta",!0);_(k,$,nt,"η","\\eta",!0);_(k,$,nt,"θ","\\theta",!0);_(k,$,nt,"ι","\\iota",!0);_(k,$,nt,"κ","\\kappa",!0);_(k,$,nt,"λ","\\lambda",!0);_(k,$,nt,"μ","\\mu",!0);_(k,$,nt,"ν","\\nu",!0);_(k,$,nt,"ξ","\\xi",!0);_(k,$,nt,"ο","\\omicron",!0);_(k,$,nt,"π","\\pi",!0);_(k,$,nt,"ρ","\\rho",!0);_(k,$,nt,"σ","\\sigma",!0);_(k,$,nt,"τ","\\tau",!0);_(k,$,nt,"υ","\\upsilon",!0);_(k,$,nt,"ϕ","\\phi",!0);_(k,$,nt,"χ","\\chi",!0);_(k,$,nt,"ψ","\\psi",!0);_(k,$,nt,"ω","\\omega",!0);_(k,$,nt,"ε","\\varepsilon",!0);_(k,$,nt,"ϑ","\\vartheta",!0);_(k,$,nt,"ϖ","\\varpi",!0);_(k,$,nt,"ϱ","\\varrho",!0);_(k,$,nt,"ς","\\varsigma",!0);_(k,$,nt,"φ","\\varphi",!0);_(k,$,Pe,"∗","*",!0);_(k,$,Pe,"+","+");_(k,$,Pe,"−","-",!0);_(k,$,Pe,"⋅","\\cdot",!0);_(k,$,Pe,"∘","\\circ",!0);_(k,$,Pe,"÷","\\div",!0);_(k,$,Pe,"±","\\pm",!0);_(k,$,Pe,"×","\\times",!0);_(k,$,Pe,"∩","\\cap",!0);_(k,$,Pe,"∪","\\cup",!0);_(k,$,Pe,"∖","\\setminus",!0);_(k,$,Pe,"∧","\\land");_(k,$,Pe,"∨","\\lor");_(k,$,Pe,"∧","\\wedge",!0);_(k,$,Pe,"∨","\\vee",!0);_(k,$,Y,"√","\\surd");_(k,$,La,"⟨","\\langle",!0);_(k,$,La,"∣","\\lvert");_(k,$,La,"∥","\\lVert");_(k,$,Zr,"?","?");_(k,$,Zr,"!","!");_(k,$,Zr,"⟩","\\rangle",!0);_(k,$,Zr,"∣","\\rvert");_(k,$,Zr,"∥","\\rVert");_(k,$,G,"=","=");_(k,$,G,":",":");_(k,$,G,"≈","\\approx",!0);_(k,$,G,"≅","\\cong",!0);_(k,$,G,"≥","\\ge");_(k,$,G,"≥","\\geq",!0);_(k,$,G,"←","\\gets");_(k,$,G,">","\\gt",!0);_(k,$,G,"∈","\\in",!0);_(k,$,G,"","\\@not");_(k,$,G,"⊂","\\subset",!0);_(k,$,G,"⊃","\\supset",!0);_(k,$,G,"⊆","\\subseteq",!0);_(k,$,G,"⊇","\\supseteq",!0);_(k,H,G,"⊈","\\nsubseteq",!0);_(k,H,G,"⊉","\\nsupseteq",!0);_(k,$,G,"⊨","\\models");_(k,$,G,"←","\\leftarrow",!0);_(k,$,G,"≤","\\le");_(k,$,G,"≤","\\leq",!0);_(k,$,G,"<","\\lt",!0);_(k,$,G,"→","\\rightarrow",!0);_(k,$,G,"→","\\to");_(k,H,G,"≱","\\ngeq",!0);_(k,H,G,"≰","\\nleq",!0);_(k,$,Ks," ","\\ ");_(k,$,Ks," ","\\space");_(k,$,Ks," ","\\nobreakspace");_(fe,$,Ks," ","\\ ");_(fe,$,Ks," "," ");_(fe,$,Ks," ","\\space");_(fe,$,Ks," ","\\nobreakspace");_(k,$,Ks,"","\\nobreak");_(k,$,Ks,"","\\allowbreak");_(k,$,F0,",",",");_(k,$,F0,";",";");_(k,H,Pe,"⊼","\\barwedge",!0);_(k,H,Pe,"⊻","\\veebar",!0);_(k,$,Pe,"⊙","\\odot",!0);_(k,$,Pe,"⊕","\\oplus",!0);_(k,$,Pe,"⊗","\\otimes",!0);_(k,$,Y,"∂","\\partial",!0);_(k,$,Pe,"⊘","\\oslash",!0);_(k,H,Pe,"⊚","\\circledcirc",!0);_(k,H,Pe,"⊡","\\boxdot",!0);_(k,$,Pe,"△","\\bigtriangleup");_(k,$,Pe,"▽","\\bigtriangledown");_(k,$,Pe,"†","\\dagger");_(k,$,Pe,"⋄","\\diamond");_(k,$,Pe,"⋆","\\star");_(k,$,Pe,"◃","\\triangleleft");_(k,$,Pe,"▹","\\triangleright");_(k,$,La,"{","\\{");_(fe,$,Y,"{","\\{");_(fe,$,Y,"{","\\textbraceleft");_(k,$,Zr,"}","\\}");_(fe,$,Y,"}","\\}");_(fe,$,Y,"}","\\textbraceright");_(k,$,La,"{","\\lbrace");_(k,$,Zr,"}","\\rbrace");_(k,$,La,"[","\\lbrack",!0);_(fe,$,Y,"[","\\lbrack",!0);_(k,$,Zr,"]","\\rbrack",!0);_(fe,$,Y,"]","\\rbrack",!0);_(k,$,La,"(","\\lparen",!0);_(k,$,Zr,")","\\rparen",!0);_(fe,$,Y,"<","\\textless",!0);_(fe,$,Y,">","\\textgreater",!0);_(k,$,La,"⌊","\\lfloor",!0);_(k,$,Zr,"⌋","\\rfloor",!0);_(k,$,La,"⌈","\\lceil",!0);_(k,$,Zr,"⌉","\\rceil",!0);_(k,$,Y,"\\","\\backslash");_(k,$,Y,"∣","|");_(k,$,Y,"∣","\\vert");_(fe,$,Y,"|","\\textbar",!0);_(k,$,Y,"∥","\\|");_(k,$,Y,"∥","\\Vert");_(fe,$,Y,"∥","\\textbardbl");_(fe,$,Y,"~","\\textasciitilde");_(fe,$,Y,"\\","\\textbackslash");_(fe,$,Y,"^","\\textasciicircum");_(k,$,G,"↑","\\uparrow",!0);_(k,$,G,"⇑","\\Uparrow",!0);_(k,$,G,"↓","\\downarrow",!0);_(k,$,G,"⇓","\\Downarrow",!0);_(k,$,G,"↕","\\updownarrow",!0);_(k,$,G,"⇕","\\Updownarrow",!0);_(k,$,Pn,"∐","\\coprod");_(k,$,Pn,"⋁","\\bigvee");_(k,$,Pn,"⋀","\\bigwedge");_(k,$,Pn,"⨄","\\biguplus");_(k,$,Pn,"⋂","\\bigcap");_(k,$,Pn,"⋃","\\bigcup");_(k,$,Pn,"∫","\\int");_(k,$,Pn,"∫","\\intop");_(k,$,Pn,"∬","\\iint");_(k,$,Pn,"∭","\\iiint");_(k,$,Pn,"∏","\\prod");_(k,$,Pn,"∑","\\sum");_(k,$,Pn,"⨂","\\bigotimes");_(k,$,Pn,"⨁","\\bigoplus");_(k,$,Pn,"⨀","\\bigodot");_(k,$,Pn,"∮","\\oint");_(k,$,Pn,"∯","\\oiint");_(k,$,Pn,"∰","\\oiiint");_(k,$,Pn,"⨆","\\bigsqcup");_(k,$,Pn,"∫","\\smallint");_(fe,$,tu,"…","\\textellipsis");_(k,$,tu,"…","\\mathellipsis");_(fe,$,tu,"…","\\ldots",!0);_(k,$,tu,"…","\\ldots",!0);_(k,$,tu,"⋯","\\@cdots",!0);_(k,$,tu,"⋱","\\ddots",!0);_(k,$,Y,"⋮","\\varvdots");_(fe,$,Y,"⋮","\\varvdots");_(k,$,mn,"ˊ","\\acute");_(k,$,mn,"ˋ","\\grave");_(k,$,mn,"¨","\\ddot");_(k,$,mn,"~","\\tilde");_(k,$,mn,"ˉ","\\bar");_(k,$,mn,"˘","\\breve");_(k,$,mn,"ˇ","\\check");_(k,$,mn,"^","\\hat");_(k,$,mn,"⃗","\\vec");_(k,$,mn,"˙","\\dot");_(k,$,mn,"˚","\\mathring");_(k,$,nt,"","\\@imath");_(k,$,nt,"","\\@jmath");_(k,$,Y,"ı","ı");_(k,$,Y,"ȷ","ȷ");_(fe,$,Y,"ı","\\i",!0);_(fe,$,Y,"ȷ","\\j",!0);_(fe,$,Y,"ß","\\ss",!0);_(fe,$,Y,"æ","\\ae",!0);_(fe,$,Y,"œ","\\oe",!0);_(fe,$,Y,"ø","\\o",!0);_(fe,$,Y,"Æ","\\AE",!0);_(fe,$,Y,"Œ","\\OE",!0);_(fe,$,Y,"Ø","\\O",!0);_(fe,$,mn,"ˊ","\\'");_(fe,$,mn,"ˋ","\\`");_(fe,$,mn,"ˆ","\\^");_(fe,$,mn,"˜","\\~");_(fe,$,mn,"ˉ","\\=");_(fe,$,mn,"˘","\\u");_(fe,$,mn,"˙","\\.");_(fe,$,mn,"¸","\\c");_(fe,$,mn,"˚","\\r");_(fe,$,mn,"ˇ","\\v");_(fe,$,mn,"¨",'\\"');_(fe,$,mn,"˝","\\H");_(fe,$,mn,"◯","\\textcircled");var Xb={"--":!0,"---":!0,"``":!0,"''":!0};_(fe,$,Y,"–","--",!0);_(fe,$,Y,"–","\\textendash");_(fe,$,Y,"—","---",!0);_(fe,$,Y,"—","\\textemdash");_(fe,$,Y,"‘","`",!0);_(fe,$,Y,"‘","\\textquoteleft");_(fe,$,Y,"’","'",!0);_(fe,$,Y,"’","\\textquoteright");_(fe,$,Y,"“","``",!0);_(fe,$,Y,"“","\\textquotedblleft");_(fe,$,Y,"”","''",!0);_(fe,$,Y,"”","\\textquotedblright");_(k,$,Y,"°","\\degree",!0);_(fe,$,Y,"°","\\degree");_(fe,$,Y,"°","\\textdegree",!0);_(k,$,Y,"£","\\pounds");_(k,$,Y,"£","\\mathsterling",!0);_(fe,$,Y,"£","\\pounds");_(fe,$,Y,"£","\\textsterling",!0);_(k,H,Y,"✠","\\maltese");_(fe,H,Y,"✠","\\maltese");var iv='0123456789/@."';for(var $h=0;$h<iv.length;$h++){var lv=iv.charAt($h);_(k,$,Y,lv,lv)}var cv='0123456789!@*()-=+";:?/.,';for(var Ah=0;Ah<cv.length;Ah++){var uv=cv.charAt(Ah);_(fe,$,Y,uv,uv)}var Up="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Eh=0;Eh<Up.length;Eh++){var cp=Up.charAt(Eh);_(k,$,nt,cp,cp),_(fe,$,Y,cp,cp)}_(k,H,Y,"C","ℂ");_(fe,H,Y,"C","ℂ");_(k,H,Y,"H","ℍ");_(fe,H,Y,"H","ℍ");_(k,H,Y,"N","ℕ");_(fe,H,Y,"N","ℕ");_(k,H,Y,"P","ℙ");_(fe,H,Y,"P","ℙ");_(k,H,Y,"Q","ℚ");_(fe,H,Y,"Q","ℚ");_(k,H,Y,"R","ℝ");_(fe,H,Y,"R","ℝ");_(k,H,Y,"Z","ℤ");_(fe,H,Y,"Z","ℤ");_(k,$,nt,"h","ℎ");_(fe,$,nt,"h","ℎ");var lt;for(var Hr=0;Hr<Up.length;Hr++){var Cn=Up.charAt(Hr);lt=String.fromCharCode(55349,56320+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56372+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56424+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56580+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56684+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56736+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56788+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56840+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56944+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),Hr<26&&(lt=String.fromCharCode(55349,56632+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt),lt=String.fromCharCode(55349,56476+Hr),_(k,$,nt,Cn,lt),_(fe,$,Y,Cn,lt))}lt="𝕜";_(k,$,nt,"k",lt);_(fe,$,Y,"k",lt);for(var Nl=0;Nl<10;Nl++){var Mi=Nl.toString();lt=String.fromCharCode(55349,57294+Nl),_(k,$,nt,Mi,lt),_(fe,$,Y,Mi,lt),lt=String.fromCharCode(55349,57314+Nl),_(k,$,nt,Mi,lt),_(fe,$,Y,Mi,lt),lt=String.fromCharCode(55349,57324+Nl),_(k,$,nt,Mi,lt),_(fe,$,Y,Mi,lt),lt=String.fromCharCode(55349,57334+Nl),_(k,$,nt,Mi,lt),_(fe,$,Y,Mi,lt)}var Df="ÐÞþ";for(var Dh=0;Dh<Df.length;Dh++){var up=Df.charAt(Dh);_(k,$,nt,up,up),_(fe,$,Y,up,up)}var zf={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},dv={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},pv={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},J$={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},zl={mathClass:"",textClass:"",font:""},mv={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},hv={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},fv={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Tf={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Mf={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},gv={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Lf={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},vv=[zf,zf,dv,dv,pv,pv,J$,zl,zl,zl,mv,mv,hv,hv,fv,fv,Tf,Tf,Mf,Mf,gv,gv,zl,zl,Lf,Lf],eA=[zf,zl,Tf,Mf,Lf],tA=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484){var a=Math.floor((r-119808)/26);return vv[a]}else if(120782<=r&&r<=120831){var l=Math.floor((r-120782)/10);return eA[l]}else{if(r===120485||r===120486)return vv[0];if(120486<r&&r<120782)return zl;throw new Ce("Unsupported character: "+e)}},wm=function(t,n,r){if(pn[r][t]){var a=pn[r][t].replace;a&&(t=a)}return{value:t,metrics:z2(t,n,r)}},Vr=function(t,n,r,a,l){var i=wm(t,n,r),u=i.metrics;t=i.value;var d;if(u){var m=u.italic;(r==="text"||a&&a.font==="mathit")&&(m=0),d=new Ma(t,u.height,u.depth,m,u.skew,u.width,l)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),d=new Ma(t,0,0,0,0,0,l);if(a){d.maxFontSize=a.sizeMultiplier,a.style.isTight()&&d.classes.push("mtight");var v=a.getColor();v&&(d.style.color=v)}return d},T2=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&wm(t,"Main-Bold",n).metrics?Vr(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||pn[n][t].font==="main"?Vr(t,"Main-Regular",n,r,a):Vr(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},nA=function(t,n,r){return r!=="textord"&&wm(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},jm=function(t,n,r){var a=t.mode,l=t.text,i=["mord"],{font:u,fontFamily:d,fontWeight:m,fontShape:v}=n,f=a==="math"||a==="text"&&!!u,h=f?u:d,b="",y="";if(l.charCodeAt(0)===55349){var j=tA(l);b=j.font,y=j[a+"Class"]}if(b)return Vr(l,b,a,n,i.concat(y));if(h){var C,N;if(h==="boldsymbol"){var z=nA(l,a,r);C=z.fontName,N=[z.fontClass]}else f?(C=If[u].fontName,N=[u]):(C=dp(d,m,v),N=[d,m,v]);if(wm(l,C,a).metrics)return Vr(l,C,a,n,i.concat(N));if(Xb.hasOwnProperty(l)&&C.slice(0,10)==="Typewriter"){for(var E=[],P=0;P<l.length;P++)E.push(Vr(l[P],C,a,n,i.concat(N)));return Js(E)}}if(r==="mathord")return Vr(l,"Math-Italic",a,n,i.concat(["mathnormal"]));if(r==="textord"){var M=pn[a][l]&&pn[a][l].font;if(M==="ams"){var L=dp("amsrm",m,v);return Vr(l,L,a,n,i.concat("amsrm",m,v))}else if(M==="main"||!M){var U=dp("textrm",m,v);return Vr(l,U,a,n,i.concat(m,v))}else{var W=dp(M,m,v);return Vr(l,W,a,n,i.concat(W,m,v))}}else throw new Error("unexpected type: "+r+" in makeOrd")},rA=(e,t)=>{if(Hi(e.classes)!==Hi(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},Yb=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ma&&r instanceof Ma&&rA(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},M2=function(t){for(var n=0,r=0,a=0,l=0;l<t.children.length;l++){var i=t.children[l];i.height>n&&(n=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},_e=function(t,n,r,a){var l=new eu(t,n,r,a);return M2(l),l},Vi=(e,t,n,r)=>new eu(e,t,n,r),Wc=function(t,n,r){var a=_e([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=De(a.height),a.maxFontSize=1,a},aA=function(t,n,r,a){var l=new _m(t,n,r,a);return M2(l),l},Js=function(t){var n=new Jc(t);return M2(n),n},Zc=function(t,n){return t instanceof Jc?_e([],[t],n):t},oA=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,l=a,i=1;i<n.length;i++){var u=-n[i].shift-l-n[i].elem.depth,d=u-(n[i-1].elem.height+n[i-1].elem.depth);l=l+u,r.push({type:"kern",size:d}),r.push(n[i])}return{children:r,depth:a}}var m;if(t.positionType==="top"){for(var v=t.positionData,f=0;f<t.children.length;f++){var h=t.children[f];v-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}m=v}else if(t.positionType==="bottom")m=-t.positionData;else{var b=t.children[0];if(b.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")m=-b.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")m=-b.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:m}},Et=function(t,n){for(var{children:r,depth:a}=oA(t),l=0,i=0;i<r.length;i++){var u=r[i];if(u.type==="elem"){var d=u.elem;l=Math.max(l,d.maxFontSize,d.height)}}l+=2;var m=_e(["pstrut"],[]);m.style.height=De(l);for(var v=[],f=a,h=a,b=a,y=0;y<r.length;y++){var j=r[y];if(j.type==="kern")b+=j.size;else{var C=j.elem,N=j.wrapperClasses||[],z=j.wrapperStyle||{},E=_e(N,[m,C],void 0,z);E.style.top=De(-l-b-C.depth),j.marginLeft&&(E.style.marginLeft=j.marginLeft),j.marginRight&&(E.style.marginRight=j.marginRight),v.push(E),b+=C.height+C.depth}f=Math.min(f,b),h=Math.max(h,b)}var P=_e(["vlist"],v);P.style.height=De(h);var M;if(f<0){var L=_e([],[]),U=_e(["vlist"],[L]);U.style.height=De(-f);var W=_e(["vlist-s"],[new Ma("")]);M=[_e(["vlist-r"],[P,W]),_e(["vlist-r"],[U])]}else M=[_e(["vlist-r"],[P])];var O=_e(["vlist-t"],M);return M.length===2&&O.classes.push("vlist-t2"),O.height=h,O.depth=-f,O},Kb=(e,t)=>{var n=_e(["mspace"],[],t),r=bn(e,t);return n.style.marginRight=De(r),n},dp=(e,t,n)=>{var r,a;switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return t==="textbf"&&n==="textit"?a="BoldItalic":t==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",r+"-"+a},If={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Jb={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},e7=function(t,n){var[r,a,l]=Jb[t],i=new Ui(r),u=new Qs([i],{width:De(a),height:De(l),style:"width:"+De(a),viewBox:"0 0 "+1e3*a+" "+1e3*l,preserveAspectRatio:"xMinYMin"}),d=Vi(["overlay"],[u],n);return d.height=l,d.style.height=De(l),d.style.width=De(a),d},gn={number:3,unit:"mu"},Sl={number:4,unit:"mu"},Os={number:5,unit:"mu"},sA={mord:{mop:gn,mbin:Sl,mrel:Os,minner:gn},mop:{mord:gn,mop:gn,mrel:Os,minner:gn},mbin:{mord:Sl,mop:Sl,mopen:Sl,minner:Sl},mrel:{mord:Os,mop:Os,mopen:Os,minner:Os},mopen:{},mclose:{mop:gn,mbin:Sl,mrel:Os,minner:gn},mpunct:{mord:gn,mop:gn,mrel:Os,mopen:gn,mclose:gn,mpunct:gn,minner:gn},minner:{mord:gn,mop:gn,mbin:Sl,mrel:Os,mopen:gn,mpunct:gn,minner:gn}},iA={mord:{mop:gn},mop:{mord:gn,mop:gn},mbin:{},mrel:{},mopen:{},mclose:{mop:gn},mpunct:{},minner:{mop:gn}},t7={},Vp={},Gp={};function Ie(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:l,mathmlBuilder:i}=e,u={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},d=0;d<n.length;++d)t7[n[d]]=u;t&&(l&&(Vp[t]=l),i&&(Gp[t]=i))}function Zl(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ie({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Wp=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},In=function(t){return t.type==="ordgroup"?t.body:[t]},lA=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),cA=new Set(["rightmost","mrel","mclose","mpunct"]),uA={display:ht.DISPLAY,text:ht.TEXT,script:ht.SCRIPT,scriptscript:ht.SCRIPTSCRIPT},dA={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Wn=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var l=[],i=0;i<t.length;i++){var u=Dt(t[i],n);if(u instanceof Jc){var d=u.children;l.push(...d)}else l.push(u)}if(Yb(l),!r)return l;var m=n;if(t.length===1){var v=t[0];v.type==="sizing"?m=n.havingSize(v.size):v.type==="styling"&&(m=n.havingStyle(uA[v.style]))}var f=_e([a[0]||"leftmost"],[],n),h=_e([a[1]||"rightmost"],[],n),b=r==="root";return Rf(l,(y,j)=>{var C=j.classes[0],N=y.classes[0];C==="mbin"&&cA.has(N)?j.classes[0]="mord":N==="mbin"&&lA.has(C)&&(y.classes[0]="mord")},{node:f},h,b),Rf(l,(y,j)=>{var C,N,z=qf(j),E=qf(y),P=z&&E?y.hasClass("mtight")?(C=iA[z])==null?void 0:C[E]:(N=sA[z])==null?void 0:N[E]:null;if(P)return Kb(P,m)},{node:f},h,b),l},Rf=function(t,n,r,a,l){a&&t.push(a);for(var i=0;i<t.length;i++){var u=t[i],d=n7(u);if(d){Rf(d.children,n,r,null,l);continue}var m=!u.hasClass("mspace");if(m){var v=n(u,r.node);v&&(r.insertAfter?r.insertAfter(v):(t.unshift(v),i++))}m?r.node=u:l&&u.hasClass("newline")&&(r.node=_e(["leftmost"])),r.insertAfter=(f=>h=>{t.splice(f+1,0,h),i++})(i)}a&&t.pop()},n7=function(t){return t instanceof Jc||t instanceof _m||t instanceof eu&&t.hasClass("enclosing")?t:null},Pf=function(t,n){var r=n7(t);if(r){var a=r.children;if(a.length){if(n==="right")return Pf(a[a.length-1],"right");if(n==="left")return Pf(a[0],"left")}}return t},qf=function(t,n){if(!t)return null;n&&(t=Pf(t,n));var r=t.classes[0];return dA[r]||null},A0=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return _e(n.concat(r))},Dt=function(t,n,r){if(!t)return _e();if(Vp[t.type]){var a=Vp[t.type](t,n);if(r&&n.size!==r.size){a=_e(n.sizingClasses(r),[a],n);var l=n.sizeMultiplier/r.sizeMultiplier;a.height*=l,a.depth*=l}return a}else throw new Ce("Got group of unknown type: '"+t.type+"'")};function pp(e,t){var n=_e(["base"],e,t),r=_e(["strut"]);return r.style.height=De(n.height+n.depth),n.depth&&(r.style.verticalAlign=De(-n.depth)),n.children.unshift(r),n}function Ff(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Wn(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var l=[],i=[],u=0;u<r.length;u++)if(i.push(r[u]),r[u].hasClass("mbin")||r[u].hasClass("mrel")||r[u].hasClass("allowbreak")){for(var d=!1;u<r.length-1&&r[u+1].hasClass("mspace")&&!r[u+1].hasClass("newline");)u++,i.push(r[u]),r[u].hasClass("nobreak")&&(d=!0);d||(l.push(pp(i,t)),i=[])}else r[u].hasClass("newline")&&(i.pop(),i.length>0&&(l.push(pp(i,t)),i=[]),l.push(r[u]));i.length>0&&l.push(pp(i,t));var m;n?(m=pp(Wn(n,t,!0),t),m.classes=["tag"],l.push(m)):a&&l.push(a);var v=_e(["katex-html"],l);if(v.setAttribute("aria-hidden","true"),m){var f=m.children[0];f.style.height=De(v.height+v.depth),v.depth&&(f.style.verticalAlign=De(-v.depth))}return v}function r7(e){return new Jc(e)}class ke{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Hi(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Rn&&this.children[r+1]instanceof Rn){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Rn;)a+=this.children[++r].toText();t.appendChild(new Rn(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Tr(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Tr(Hi(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Rn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Tr(this.toText())}toText(){return this.text}}class a7{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",De(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+De(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var pA=new Set(["\\imath","\\jmath"]),mA=new Set(["mrow","mtable"]),oo=function(t,n,r){return pn[n][t]&&pn[n][t].replace&&t.charCodeAt(0)!==55349&&!(Xb.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=pn[n][t].replace),new Rn(t)},L2=function(t){return t.length===1?t[0]:new ke("mrow",t)},hA={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},I2=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var r=e.mode,a=hA[n];if(a)return typeof a=="function"?a(e):a;var l=e.text;if(pA.has(l))return null;if(pn[r][l]){var i=pn[r][l].replace;i&&(l=i)}var u=If[n].fontName;return z2(l,u,r)?If[n].variant:null};function zh(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Rn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Rn&&n.text===","}else return!1}var Ia=function(t,n,r){if(t.length===1){var a=Qt(t[0],n);return r&&a instanceof ke&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var l=[],i,u=0;u<t.length;u++){var d=Qt(t[u],n);if(d instanceof ke&&i instanceof ke){if(d.type==="mtext"&&i.type==="mtext"&&d.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...d.children);continue}else if(d.type==="mn"&&i.type==="mn"){i.children.push(...d.children);continue}else if(zh(d)&&i.type==="mn"){i.children.push(...d.children);continue}else if(d.type==="mn"&&zh(i))d.children=[...i.children,...d.children],l.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(i.type==="mn"||zh(i))){var m=d.children[0];m instanceof ke&&m.type==="mn"&&(m.children=[...i.children,...m.children],l.pop())}else if(i.type==="mi"&&i.children.length===1){var v=i.children[0];if(v instanceof Rn&&v.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var f=d.children[0];f instanceof Rn&&f.text.length>0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),l.pop())}}}l.push(d),i=d}return l},Gi=function(t,n,r){return L2(Ia(t,n,r))},Qt=function(t,n){if(!t)return new ke("mrow");if(Gp[t.type])return Gp[t.type](t,n);throw new Ce("Got group of unknown type: '"+t.type+"'")};function bv(e,t,n,r,a){var l=Ia(e,n),i;l.length===1&&l[0]instanceof ke&&mA.has(l[0].type)?i=l[0]:i=new ke("mrow",l);var u=new ke("annotation",[new Rn(t)]);u.setAttribute("encoding","application/x-tex");var d=new ke("semantics",[i,u]),m=new ke("math",[d]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&m.setAttribute("display","block");var v=a?"katex":"katex-mathml";return _e([v],[m])}var fA=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yv=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],xv=function(t,n){return n.size<2?t:fA[t-1][n.size-1]};class Us{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Us.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=yv[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new Us(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:xv(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:yv[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=xv(Us.BASESIZE,t);return this.size===n&&this.textSize===Us.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Us.BASESIZE?["sizing","reset-size"+this.size,"size"+Us.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=K$(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Us.BASESIZE=6;var o7=function(t){return new Us({style:t.displayMode?ht.DISPLAY:ht.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},s7=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=_e(r,[t])}return t},gA=function(t,n,r){var a=o7(r),l;if(r.output==="mathml")return bv(t,n,a,r.displayMode,!0);if(r.output==="html"){var i=Ff(t,a);l=_e(["katex"],[i])}else{var u=bv(t,n,a,r.displayMode,!1),d=Ff(t,a);l=_e(["katex"],[u,d])}return s7(l,r)},vA=function(t,n,r){var a=o7(r),l=Ff(t,a),i=_e(["katex"],[l]);return s7(i,r)},bA={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Cm=function(t){var n=new ke("mo",[new Rn(bA[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},yA={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},xA=new Set(["widehat","widecheck","widetilde","utilde"]),km=function(t,n){function r(){var u=4e5,d=t.label.slice(1);if(xA.has(d)&&"base"in t){var m=t.base.type==="ordgroup"?t.base.body.length:1,v,f,h;if(m>5)d==="widehat"||d==="widecheck"?(v=420,u=2364,h=.42,f=d+"4"):(v=312,u=2340,h=.34,f="tilde4");else{var b=[1,1,2,2,3,3][m];d==="widehat"||d==="widecheck"?(u=[0,1062,2364,2364,2364][b],v=[0,239,300,360,420][b],h=[0,.24,.3,.3,.36,.42][b],f=d+b):(u=[0,600,1033,2339,2340][b],v=[0,260,286,306,312][b],h=[0,.26,.286,.3,.306,.34][b],f="tilde"+b)}var y=new Ui(f),j=new Qs([y],{width:"100%",height:De(h),viewBox:"0 0 "+u+" "+v,preserveAspectRatio:"none"});return{span:Vi([],[j],n),minWidth:0,height:h}}else{var C=[],N=yA[d];if(!N)throw new Error('No SVG data for "'+d+'".');var[z,E,P]=N,M=P/1e3,L=z.length,U,W;if(L===1){if(N.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');U=["hide-tail"],W=[N[3]]}else if(L===2)U=["halfarrow-left","halfarrow-right"],W=["xMinYMin","xMaxYMin"];else if(L===3)U=["brace-left","brace-center","brace-right"],W=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
445
|
+
`+L+" children.");for(var O=0;O<L;O++){var q=new Ui(z[O]),F=new Qs([q],{width:"400em",height:De(M),viewBox:"0 0 "+u+" "+P,preserveAspectRatio:W[O]+" slice"}),K=Vi([U[O]],[F],n);if(L===1)return{span:K,minWidth:E,height:M};K.style.height=De(M),C.push(K)}return{span:_e(["stretchy"],C,n),minWidth:E,height:M}}}var{span:a,minWidth:l,height:i}=r();return a.height=i,a.style.height=De(i),l>0&&(a.style.minWidth=De(l)),a},_A=function(t,n,r,a,l){var i,u=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(i=_e(["stretchy",n],[],l),n==="fbox"){var d=l.color&&l.getColor();d&&(i.style.borderColor=d)}}else{var m=[];/^[bx]cancel$/.test(n)&&m.push(new Ef({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&m.push(new Ef({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new Qs(m,{width:"100%",height:De(u)});i=Vi([],[v],l)}return i.height=u,i.style.height=De(u),i},wA={bin:1,close:1,inner:1,open:1,punct:1,rel:1},jA={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function CA(e){return e in wA}function vt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Nm(e){var t=Sm(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Sm(e){return e&&(e.type==="atom"||jA.hasOwnProperty(e.type))?e:null}var i7=e=>{if(e instanceof Ma)return e;if(X$(e)&&e.children.length===1)return i7(e.children[0])},R2=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=vt(e.base,"accent"),n=r.base,e.base=n,a=Q$(Dt(e,t)),e.base=r):(r=vt(e,"accent"),n=r.base);var l=Dt(n,t.havingCrampedStyle()),i=r.isShifty&&Ys(n),u=0;if(i){var d,m;u=(d=(m=i7(l))==null?void 0:m.skew)!=null?d:0}var v=r.label==="\\c",f=v?l.height+l.depth:Math.min(l.height,t.fontMetrics().xHeight),h;if(r.isStretchy)h=km(r,t),h=Et({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+De(2*u)+")",marginLeft:De(2*u)}:void 0}]});else{var b,y;r.label==="\\vec"?(b=e7("vec",t),y=Jb.vec[1]):(b=jm({mode:r.mode,text:r.label},t,"textord"),b=Z$(b),b.italic=0,y=b.width,v&&(f+=b.depth)),h=_e(["accent-body"],[b]);var j=r.label==="\\textcircled";j&&(h.classes.push("accent-full"),f=l.height);var C=u;j||(C-=y/2),h.style.left=De(C),r.label==="\\textcircled"&&(h.style.top=".2em"),h=Et({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-f},{type:"elem",elem:h}]})}var N=_e(["mord","accent"],[h],t);return a?(a.children[0]=N,a.height=Math.max(N.height,a.height),a.classes[0]="mord",a):N},l7=(e,t)=>{var n=e.isStretchy?Cm(e.label):new ke("mo",[oo(e.label,e.mode)]),r=new ke("mover",[Qt(e.base,t),n]);return r.setAttribute("accent","true"),r},kA=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ie({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Wp(t[0]),r=!kA.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:R2,mathmlBuilder:l7});Ie({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:R2,mathmlBuilder:l7});Ie({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=Dt(e.base,t),r=km(e,t),a=e.label==="\\utilde"?.12:0,l=Et({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return _e(["mord","accentunder"],[l],t)},mathmlBuilder:(e,t)=>{var n=Cm(e.label),r=new ke("munder",[Qt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var mp=e=>{var t=new ke("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ie({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=Zc(Dt(e.body,r,t),t),l=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(l+"-arrow-pad");var i;e.below&&(r=t.havingStyle(n.sub()),i=Zc(Dt(e.below,r,t),t),i.classes.push(l+"-arrow-pad"));var u=km(e,t),d=-t.fontMetrics().axisHeight+.5*u.height,m=-t.fontMetrics().axisHeight-.5*u.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(m-=a.depth);var v;if(i){var f=-t.fontMetrics().axisHeight+i.height+.5*u.height+.111;v=Et({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:u,shift:d,wrapperClasses:["svg-align"]},{type:"elem",elem:i,shift:f}]})}else v=Et({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:u,shift:d,wrapperClasses:["svg-align"]}]});return _e(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var n=Cm(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=mp(Qt(e.body,t));if(e.below){var l=mp(Qt(e.below,t));r=new ke("munderover",[n,l,a])}else r=new ke("mover",[n,a])}else if(e.below){var i=mp(Qt(e.below,t));r=new ke("munder",[n,i])}else r=mp(),r=new ke("mover",[n,r]);return r}});function c7(e,t){var n=Wn(e.body,t,!0);return _e([e.mclass],n,t)}function u7(e,t){var n,r=Ia(e.body,t);return e.mclass==="minner"?n=new ke("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ke("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ke("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Ie({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:In(a),isCharacterBox:Ys(a)}},htmlBuilder:c7,mathmlBuilder:u7});var $m=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ie({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:$m(t[0]),body:In(t[1]),isCharacterBox:Ys(t[1])}}});Ie({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],l=t[0],i;r!=="\\stackrel"?i=$m(a):i="mrel";var u={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:In(a)},d={type:"supsub",mode:l.mode,base:u,sup:r==="\\underset"?null:l,sub:r==="\\underset"?l:null};return{type:"mclass",mode:n.mode,mclass:i,body:[d],isCharacterBox:Ys(d)}},htmlBuilder:c7,mathmlBuilder:u7});Ie({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:$m(t[0]),body:In(t[0])}},htmlBuilder(e,t){var n=Wn(e.body,t,!0),r=_e([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ia(e.body,t),r=new ke("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var NA={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},_v=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),wv=e=>e.type==="textord"&&e.text==="@",SA=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function $A(e,t,n){var r=NA[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),l={type:"atom",text:r,mode:"math",family:"rel"},i=n.callFunction("\\Big",[l],[]),u=n.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[a,i,u]};return n.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function AA(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ce("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],l=0;l<t.length;l++){for(var i=t[l],u=_v(),d=0;d<i.length;d++)if(!wv(i[d]))u.body.push(i[d]);else{r.push(u),d+=1;var m=Nm(i[d]).text,v=new Array(2);if(v[0]={type:"ordgroup",mode:"math",body:[]},v[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var f=0;f<2;f++){for(var h=!0,b=d+1;b<i.length;b++){if(SA(i[b],m)){h=!1,d=b;break}if(wv(i[b]))throw new Ce("Missing a "+m+" character to complete a CD arrow.",i[b]);v[f].body.push(i[b])}if(h)throw new Ce("Missing a "+m+" character to complete a CD arrow.",i[d])}else throw new Ce('Expected one of "<>AV=|." after @',i[d]);var y=$A(m,v,e),j={type:"styling",body:[y],mode:"math",style:"display",resetFont:!0};r.push(j),u=_v()}l%2===0?r.push(u):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Ie({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Zc(Dt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=De(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ke("mrow",[Qt(e.label,t)]);return n=new ke("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ke("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ie({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Zc(Dt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ke("mrow",[Qt(e.fragment,t)])}});Ie({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=vt(t[0],"ordgroup"),a=r.body,l="",i=0;i<a.length;i++){var u=vt(a[i],"textord");l+=u.text}var d=parseInt(l),m;if(isNaN(d))throw new Ce("\\@char has non-numeric argument "+l);if(d<0||d>=1114111)throw new Ce("\\@char with invalid code point "+l);return d<=65535?m=String.fromCharCode(d):(d-=65536,m=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:n.mode,text:m}}});var d7=(e,t)=>{var n=Wn(e.body,t.withColor(e.color),!1);return Js(n)},p7=(e,t)=>{var n=Ia(e.body,t.withColor(e.color)),r=new ke("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ie({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=vt(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:In(a)}},htmlBuilder:d7,mathmlBuilder:p7});Ie({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=vt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var l=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:l}},htmlBuilder:d7,mathmlBuilder:p7});Ie({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,l=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:l,size:a&&vt(a,"size").value}},htmlBuilder(e,t){var n=_e(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=De(bn(e.size,t)))),n},mathmlBuilder(e,t){var n=new ke("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",De(bn(e.size,t)))),n}});var Of={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},m7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ce("Expected a control sequence",e);return t},EA=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},h7=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};Ie({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Of[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Of[r.text]),vt(t.parseFunction(),"internal");throw new Ce("Invalid token after macro prefix",r)}});Ie({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Ce("Expected a control sequence",r);for(var l=0,i,u=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){i=t.gullet.future(),u[l].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ce('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==l+1)throw new Ce('Argument number "'+r.text+'" out of order');l++,u.push([])}else{if(r.text==="EOF")throw new Ce("Expected a macro definition");u[l].push(r.text)}var{tokens:d}=t.gullet.consumeArg();return i&&d.unshift(i),(n==="\\edef"||n==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(a,{tokens:d,numArgs:l,delimiters:u},n===Of[n]),{type:"internal",mode:t.mode}}});Ie({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=m7(t.gullet.popToken());t.gullet.consumeSpaces();var a=EA(t);return h7(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ie({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=m7(t.gullet.popToken()),a=t.gullet.popToken(),l=t.gullet.popToken();return h7(t,r,l,n==="\\\\globalfuture"),t.gullet.pushToken(l),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var m0=function(t,n,r){var a=pn.math[t]&&pn.math[t].replace,l=z2(a||t,n,r);if(!l)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return l},P2=function(t,n,r,a){var l=r.havingBaseStyle(n),i=_e(a.concat(l.sizingClasses(r)),[t],r),u=l.sizeMultiplier/r.sizeMultiplier;return i.height*=u,i.depth*=u,i.maxFontSize=l.sizeMultiplier,i},f7=function(t,n,r){var a=n.havingBaseStyle(r),l=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=De(l),t.height-=l,t.depth+=l},DA=function(t,n,r,a,l,i){var u=Vr(t,"Main-Regular",l,a),d=P2(u,n,a,i);return f7(d,a,n),d},zA=function(t,n,r,a){return Vr(t,"Size"+n+"-Regular",r,a)},g7=function(t,n,r,a,l,i){var u=zA(t,n,l,a),d=P2(_e(["delimsizing","size"+n],[u],a),ht.TEXT,a,i);return r&&f7(d,a,ht.TEXT),d},Th=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var l=_e(["delimsizinginner",a],[_e([],[Vr(t,n,r)])]);return{type:"elem",elem:l}},Mh=function(t,n,r){var a=cs["Size4-Regular"][t.charCodeAt(0)]?cs["Size4-Regular"][t.charCodeAt(0)][4]:cs["Size1-Regular"][t.charCodeAt(0)][4],l=new Ui("inner",O$(t,Math.round(1e3*n))),i=new Qs([l],{width:De(a),height:De(n),style:"width:"+De(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),u=Vi([],[i],r);return u.height=n,u.style.height=De(n),u.style.width=De(a),{type:"elem",elem:u}},Bf=.008,hp={type:"kern",size:-1*Bf},TA=new Set(["|","\\lvert","\\rvert","\\vert"]),MA=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),v7=function(t,n,r,a,l,i){var u,d,m,v,f="",h=0;u=m=v=t,d=null;var b="Size1-Regular";t==="\\uparrow"?m=v="⏐":t==="\\Uparrow"?m=v="‖":t==="\\downarrow"?u=m="⏐":t==="\\Downarrow"?u=m="‖":t==="\\updownarrow"?(u="\\uparrow",m="⏐",v="\\downarrow"):t==="\\Updownarrow"?(u="\\Uparrow",m="‖",v="\\Downarrow"):TA.has(t)?(m="∣",f="vert",h=333):MA.has(t)?(m="∥",f="doublevert",h=556):t==="["||t==="\\lbrack"?(u="⎡",m="⎢",v="⎣",b="Size4-Regular",f="lbrack",h=667):t==="]"||t==="\\rbrack"?(u="⎤",m="⎥",v="⎦",b="Size4-Regular",f="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(m=u="⎢",v="⎣",b="Size4-Regular",f="lfloor",h=667):t==="\\lceil"||t==="⌈"?(u="⎡",m=v="⎢",b="Size4-Regular",f="lceil",h=667):t==="\\rfloor"||t==="⌋"?(m=u="⎥",v="⎦",b="Size4-Regular",f="rfloor",h=667):t==="\\rceil"||t==="⌉"?(u="⎤",m=v="⎥",b="Size4-Regular",f="rceil",h=667):t==="("||t==="\\lparen"?(u="⎛",m="⎜",v="⎝",b="Size4-Regular",f="lparen",h=875):t===")"||t==="\\rparen"?(u="⎞",m="⎟",v="⎠",b="Size4-Regular",f="rparen",h=875):t==="\\{"||t==="\\lbrace"?(u="⎧",d="⎨",v="⎩",m="⎪",b="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(u="⎫",d="⎬",v="⎭",m="⎪",b="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(u="⎧",v="⎩",m="⎪",b="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(u="⎫",v="⎭",m="⎪",b="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(u="⎧",v="⎭",m="⎪",b="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(u="⎫",v="⎩",m="⎪",b="Size4-Regular");var y=m0(u,b,l),j=y.height+y.depth,C=m0(m,b,l),N=C.height+C.depth,z=m0(v,b,l),E=z.height+z.depth,P=0,M=1;if(d!==null){var L=m0(d,b,l);P=L.height+L.depth,M=2}var U=j+E+P,W=Math.max(0,Math.ceil((n-U)/(M*N))),O=U+W*M*N,q=a.fontMetrics().axisHeight;r&&(q*=a.sizeMultiplier);var F=O/2-q,K=[];if(f.length>0){var le=O-j-E,me=Math.round(O*1e3),ne=B$(f,Math.round(le*1e3)),ce=new Ui(f,ne),Ae=De(h/1e3),de=De(me/1e3),te=new Qs([ce],{width:Ae,height:de,viewBox:"0 0 "+h+" "+me}),I=Vi([],[te],a);I.height=me/1e3,I.style.width=Ae,I.style.height=de,K.push({type:"elem",elem:I})}else{if(K.push(Th(v,b,l)),K.push(hp),d===null){var V=O-j-E+2*Bf;K.push(Mh(m,V,a))}else{var ie=(O-j-E-P)/2+2*Bf;K.push(Mh(m,ie,a)),K.push(hp),K.push(Th(d,b,l)),K.push(hp),K.push(Mh(m,ie,a))}K.push(hp),K.push(Th(u,b,l))}var T=a.havingBaseStyle(ht.TEXT),Se=Et({positionType:"bottom",positionData:F,children:K});return P2(_e(["delimsizing","mult"],[Se],T),ht.TEXT,a,i)},Lh=80,Ih=.08,Rh=function(t,n,r,a,l){var i=F$(t,a,r),u=new Ui(t,i),d=new Qs([u],{width:"400em",height:De(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Vi(["hide-tail"],[d],l)},LA=function(t,n){var r=n.havingBaseSizing(),a=w7("\\surd",t*r.sizeMultiplier,_7,r),l=r.sizeMultiplier,i=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),u,d,m,v,f;return a.type==="small"?(v=1e3+1e3*i+Lh,t<1?l=1:t<1.4&&(l=.7),d=(1+i+Ih)/l,m=(1+i)/l,u=Rh("sqrtMain",d,v,i,n),u.style.minWidth="0.853em",f=.833/l):a.type==="large"?(v=(1e3+Lh)*y0[a.size],m=(y0[a.size]+i)/l,d=(y0[a.size]+i+Ih)/l,u=Rh("sqrtSize"+a.size,d,v,i,n),u.style.minWidth="1.02em",f=1/l):(d=t+i+Ih,m=t+i,v=Math.floor(1e3*t+i)+Lh,u=Rh("sqrtTall",d,v,i,n),u.style.minWidth="0.742em",f=1.056),u.height=m,u.style.height=De(d),{span:u,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+i)*l}},b7=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),IA=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),y7=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),y0=[0,1.2,1.8,2.4,3],x7=function(t,n,r,a,l){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),b7.has(t)||y7.has(t))return g7(t,n,!1,r,a,l);if(IA.has(t))return v7(t,y0[n],!1,r,a,l);throw new Ce("Illegal delimiter: '"+t+"'")},RA=[{type:"small",style:ht.SCRIPTSCRIPT},{type:"small",style:ht.SCRIPT},{type:"small",style:ht.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],PA=[{type:"small",style:ht.SCRIPTSCRIPT},{type:"small",style:ht.SCRIPT},{type:"small",style:ht.TEXT},{type:"stack"}],_7=[{type:"small",style:ht.SCRIPTSCRIPT},{type:"small",style:ht.SCRIPT},{type:"small",style:ht.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],qA=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},w7=function(t,n,r,a){for(var l=Math.min(2,3-a.style.size),i=l;i<r.length;i++){var u=r[i];if(u.type==="stack")break;var d=m0(t,qA(u),"math"),m=d.height+d.depth;if(u.type==="small"){var v=a.havingBaseStyle(u.style);m*=v.sizeMultiplier}if(m>n)return u}return r[r.length-1]},Hf=function(t,n,r,a,l,i){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var u;y7.has(t)?u=RA:b7.has(t)?u=_7:u=PA;var d=w7(t,n,u,a);return d.type==="small"?DA(t,d.style,r,a,l,i):d.type==="large"?g7(t,d.size,r,a,l,i):v7(t,n,r,a,l,i)},Ph=function(t,n,r,a,l,i){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,d=901,m=5/a.fontMetrics().ptPerEm,v=Math.max(n-u,r+u),f=Math.max(v/500*d,2*v-m);return Hf(t,f,!0,a,l,i)},jv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},FA=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Cv(e){return"isMiddle"in e}function Am(e,t){var n=Sm(e);if(n&&FA.has(n.text))return n;throw n?new Ce("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ce("Invalid delimiter type '"+e.type+"'",e)}Ie({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Am(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:jv[e.funcName].size,mclass:jv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?_e([e.mclass]):x7(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(oo(e.delim,e.mode));var n=new ke("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=De(y0[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function kv(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ie({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ce("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Am(t[0],e).text,color:n}}});Ie({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Am(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var l=vt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,t)=>{kv(e);for(var n=Wn(e.body,t,!0,["mopen","mclose"]),r=0,a=0,l=!1,i=0;i<n.length;i++){var u=n[i];Cv(u)?l=!0:(r=Math.max(n[i].height,r),a=Math.max(n[i].depth,a))}r*=t.sizeMultiplier,a*=t.sizeMultiplier;var d;if(e.left==="."?d=A0(t,["mopen"]):d=Ph(e.left,r,a,t,e.mode,["mopen"]),n.unshift(d),l)for(var m=1;m<n.length;m++){var v=n[m];if(Cv(v)){var f=v.isMiddle;n[m]=Ph(f.delim,r,a,f.options,e.mode,[])}}var h;if(e.right===".")h=A0(t,["mclose"]);else{var b=e.rightColor?t.withColor(e.rightColor):t;h=Ph(e.right,r,a,b,e.mode,["mclose"])}return n.push(h),_e(["minner"],n,t)},mathmlBuilder:(e,t)=>{kv(e);var n=Ia(e.body,t);if(e.left!=="."){var r=new ke("mo",[oo(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new ke("mo",[oo(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return L2(n)}});Ie({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Am(t[0],e);if(!e.parser.leftrightDepth)throw new Ce("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=A0(t,[]):(n=x7(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?oo("|","text"):oo(e.delim,e.mode),r=new ke("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Em=(e,t)=>{var n=Zc(Dt(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,l,i,u=Ys(e.body);if(r==="sout")l=_e(["stretchy","sout"]),l.height=t.fontMetrics().defaultRuleThickness/a,i=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var d=bn({number:.6,unit:"pt"},t),m=bn({number:.35,unit:"ex"},t),v=t.havingBaseSizing();a=a/v.sizeMultiplier;var f=n.height+n.depth+d+m;n.style.paddingLeft=De(f/2+d);var h=Math.floor(1e3*f*a),b=P$(h),y=new Qs([new Ui("phase",b)],{width:"400em",height:De(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});l=Vi(["hide-tail"],[y],t),l.style.height=De(f),i=n.depth+d+m}else{/cancel/.test(r)?u||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var j,C,N=0;/box/.test(r)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),j=t.fontMetrics().fboxsep+(r==="colorbox"?0:N),C=j):r==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),j=4*N,C=Math.max(0,.25-n.depth)):(j=u?.2:0,C=j),l=_A(n,r,j,C,t),/fbox|boxed|fcolorbox/.test(r)?(l.style.borderStyle="solid",l.style.borderWidth=De(N)):r==="angl"&&N!==.049&&(l.style.borderTopWidth=De(N),l.style.borderRightWidth=De(N)),i=n.depth+C,e.backgroundColor&&(l.style.backgroundColor=e.backgroundColor,e.borderColor&&(l.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=Et({positionType:"individualShift",children:[{type:"elem",elem:l,shift:i},{type:"elem",elem:n,shift:0}]});else{var E=/cancel|phase/.test(r)?["svg-align"]:[];z=Et({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:l,shift:i,wrapperClasses:E}]})}return/cancel/.test(r)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(r)&&!u?_e(["mord","cancel-lap"],[z],t):_e(["mord"],[z],t)},Dm=(e,t)=>{var n,r=new ke(e.label.includes("colorbox")?"mpadded":"menclose",[Qt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+De(a)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ie({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,l=vt(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,body:i}},htmlBuilder:Em,mathmlBuilder:Dm});Ie({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,l=vt(t[0],"color-token").color,i=vt(t[1],"color-token").color,u=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,borderColor:l,body:u}},htmlBuilder:Em,mathmlBuilder:Dm});Ie({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Ie({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Em,mathmlBuilder:Dm});Ie({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Em,mathmlBuilder:Dm});Ie({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var j7={};function ps(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:l,mathmlBuilder:i}=e,u={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},d=0;d<n.length;++d)j7[n[d]]=u;l&&(Vp[t]=l),i&&(Gp[t]=i)}var C7={};function R(e,t){C7[e]=t}class pa{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new pa(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class za{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new za(n,pa.range(this,t))}}function Nv(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var zm=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ce("{"+e.envName+"} can be used only in display mode.")},OA=new Set(["gather","gather*"]);function q2(e){if(!e.includes("ed"))return!e.includes("*")}function Qi(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:l,arraystretch:i,colSeparationType:u,autoTag:d,singleRow:m,emptySingleRow:v,maxNumCols:f,leqno:h}=t;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var b=e.gullet.expandMacroAsText("\\arraystretch");if(b==null)i=1;else if(i=parseFloat(b),!i||i<0)throw new Ce("Invalid \\arraystretch: "+b)}e.gullet.beginGroup();var y=[],j=[y],C=[],N=[],z=d!=null?[]:void 0;function E(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function P(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new za("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),N.push(Nv(e));;){var M=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var L={type:"ordgroup",mode:e.mode,body:M};n&&(L={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[L]}),y.push(L);var U=e.fetch().text;if(U==="&"){if(f&&y.length===f){if(m||u)throw new Ce("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){P(),y.length===1&&L.type==="styling"&&L.body.length===1&&L.body[0].type==="ordgroup"&&L.body[0].body.length===0&&(j.length>1||!v)&&j.pop(),N.length<j.length+1&&N.push([]);break}else if(U==="\\\\"){e.consume();var W=void 0;e.gullet.future().text!==" "&&(W=e.parseSizeGroup(!0)),C.push(W?W.value:null),P(),N.push(Nv(e)),y=[],j.push(y),E()}else throw new Ce("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:i,body:j,cols:l,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:N,colSeparationType:u,tags:z,leqno:h}}function F2(e){return e.slice(0,1)==="d"?"display":"text"}var ms=function(t,n){var r,a,l=t.body.length,i=t.hLinesBeforeRow,u=0,d=new Array(l),m=[],v=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),f=1/n.fontMetrics().ptPerEm,h=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var b=n.havingStyle(ht.SCRIPT).sizeMultiplier;h=.2778*(b/n.sizeMultiplier)}var y=t.colSeparationType==="CD"?bn({number:3,unit:"ex"},n):12*f,j=3*f,C=t.arraystretch*y,N=.7*C,z=.3*C,E=0;function P(Qe){for(var at=0;at<Qe.length;++at)at>0&&(E+=.25),m.push({pos:E,isDashed:Qe[at]})}for(P(i[0]),r=0;r<t.body.length;++r){var M=t.body[r],L=N,U=z;u<M.length&&(u=M.length);var W={cells:new Array(M.length),height:0,depth:0,pos:0};for(a=0;a<M.length;++a){var O=Dt(M[a],n);U<O.depth&&(U=O.depth),L<O.height&&(L=O.height),W.cells[a]=O}var q=t.rowGaps[r],F=0;q&&(F=bn(q,n),F>0&&(F+=z,U<F&&(U=F),F=0)),t.addJot&&r<t.body.length-1&&(U+=j),W.height=L,W.depth=U,E+=L,W.pos=E,E+=U+F,d[r]=W,P(i[r+1])}var K=E/2+n.fontMetrics().axisHeight,le=t.cols||[],me=[],ne,ce,Ae=[];if(t.tags&&t.tags.some(Qe=>Qe))for(r=0;r<l;++r){var de=d[r],te=de.pos-K,I=t.tags[r],V=void 0;I===!0?V=_e(["eqn-num"],[],n):I===!1?V=_e([],[],n):V=_e([],Wn(I,n,!0),n),V.depth=de.depth,V.height=de.height,Ae.push({type:"elem",elem:V,shift:te})}for(a=0,ce=0;a<u||ce<le.length;++a,++ce){for(var ie,T=le[ce],Se=!0;((ge=T)==null?void 0:ge.type)==="separator";){var ge;if(Se||(ne=_e(["arraycolsep"],[]),ne.style.width=De(n.fontMetrics().doubleRuleSep),me.push(ne)),T.separator==="|"||T.separator===":"){var Oe=T.separator==="|"?"solid":"dashed",be=_e(["vertical-separator"],[],n);be.style.height=De(E),be.style.borderRightWidth=De(v),be.style.borderRightStyle=Oe,be.style.margin="0 "+De(-v/2);var Te=E-K;Te&&(be.style.verticalAlign=De(-Te)),me.push(be)}else throw new Ce("Invalid separator type: "+T.separator);ce++,T=le[ce],Se=!1}if(!(a>=u)){var Ee=void 0;if(a>0||t.hskipBeforeAndAfter){var rt,Nt;Ee=(rt=(Nt=T)==null?void 0:Nt.pregap)!=null?rt:h,Ee!==0&&(ne=_e(["arraycolsep"],[]),ne.style.width=De(Ee),me.push(ne))}var Jt=[];for(r=0;r<l;++r){var Dn=d[r],en=Dn.cells[a];if(en){var Ut=Dn.pos-K;en.depth=Dn.depth,en.height=Dn.height,Jt.push({type:"elem",elem:en,shift:Ut})}}var Qn=Et({positionType:"individualShift",children:Jt}),Xn=_e(["col-align-"+(((ie=T)==null?void 0:ie.align)||"c")],[Qn]);if(me.push(Xn),a<u-1||t.hskipBeforeAndAfter){var ha,tn;Ee=(ha=(tn=T)==null?void 0:tn.postgap)!=null?ha:h,Ee!==0&&(ne=_e(["arraycolsep"],[]),ne.style.width=De(Ee),me.push(ne))}}}var yn=_e(["mtable"],me);if(m.length>0){for(var cr=Wc("hline",n,v),qn=Wc("hdashline",n,v),Yn=[{type:"elem",elem:yn,shift:0}];m.length>0;){var Vt=m.pop(),Qr=Vt.pos-K;Vt.isDashed?Yn.push({type:"elem",elem:qn,shift:Qr}):Yn.push({type:"elem",elem:cr,shift:Qr})}yn=Et({positionType:"individualShift",children:Yn})}if(Ae.length===0)return _e(["mord"],[yn],n);var ue=Et({positionType:"individualShift",children:Ae}),Ne=_e(["tag"],[ue],n);return Js([yn,Ne])},BA={c:"center ",l:"left ",r:"right "},hs=function(t,n){for(var r=[],a=new ke("mtd",[],["mtr-glue"]),l=new ke("mtd",[],["mml-eqn-num"]),i=0;i<t.body.length;i++){for(var u=t.body[i],d=[],m=0;m<u.length;m++)d.push(new ke("mtd",[Qt(u[m],n)]));t.tags&&t.tags[i]&&(d.unshift(a),d.push(a),t.leqno?d.unshift(l):d.push(l)),r.push(new ke("mtr",d))}var v=new ke("mtable",r),f=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",De(f));var h="",b="";if(t.cols&&t.cols.length>0){var y=t.cols,j="",C=!1,N=0,z=y.length;y[0].type==="separator"&&(h+="top ",N=1),y[y.length-1].type==="separator"&&(h+="bottom ",z-=1);for(var E=N;E<z;E++){var P=y[E];P.type==="align"?(b+=BA[P.align],C&&(j+="none "),C=!0):P.type==="separator"&&C&&(j+=P.separator==="|"?"solid ":"dashed ",C=!1)}v.setAttribute("columnalign",b.trim()),/[sd]/.test(j)&&v.setAttribute("columnlines",j.trim())}if(t.colSeparationType==="align"){for(var M=t.cols||[],L="",U=1;U<M.length;U++)L+=U%2?"0em ":"1em ";v.setAttribute("columnspacing",L.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?v.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?v.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?v.setAttribute("columnspacing","0.5em"):v.setAttribute("columnspacing","1em");var W="",O=t.hLinesBeforeRow;h+=O[0].length>0?"left ":"",h+=O[O.length-1].length>0?"right ":"";for(var q=1;q<O.length-1;q++)W+=O[q].length===0?"none ":O[q][0]?"dashed ":"solid ";return/[sd]/.test(W)&&v.setAttribute("rowlines",W.trim()),h!==""&&(v=new ke("menclose",[v]),v.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(v=new ke("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},k7=function(t,n){t.envName.includes("ed")||zm(t);var r=[],a=t.envName.includes("at")?"alignat":"align",l=t.envName==="split",i=Qi(t.parser,{cols:r,addJot:!0,autoTag:l?void 0:q2(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:l?2:void 0,leqno:t.parser.settings.leqno},"display"),u=0,d=0,m={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var v="",f=0;f<n[0].body.length;f++){var h=vt(n[0].body[f],"textord");v+=h.text}u=Number(v),d=u*2}var b=!d;i.body.forEach(function(N){for(var z=1;z<N.length;z+=2){var E=vt(N[z],"styling"),P=vt(E.body[0],"ordgroup");P.body.unshift(m)}if(b)d<N.length&&(d=N.length);else{var M=N.length/2;if(u<M)throw new Ce("Too many math in a row: "+("expected "+u+", but got "+M),N[0])}});for(var y=0;y<d;++y){var j="r",C=0;y%2===1?j="l":y>0&&b&&(C=1),r[y]={type:"align",align:j,pregap:C,postgap:0}}return i.colSeparationType=b?"align":"alignat",i};ps({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Sm(t[0]),r=n?[t[0]]:vt(t[0],"ordgroup").body,a=r.map(function(i){var u=Nm(i),d=u.text;if("lcr".includes(d))return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new Ce("Unknown column alignment: "+d,i)}),l={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Qi(e.parser,l,F2(e.envName))},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,!"lcr".includes(n))throw new Ce("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var l=Qi(e.parser,r,F2(e.envName)),i=Math.max(0,...l.body.map(u=>u.length));return l.cols=new Array(i).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[l],left:t[0],right:t[1],rightColor:void 0}:l},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Qi(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Sm(t[0]),r=n?[t[0]]:vt(t[0],"ordgroup").body,a=r.map(function(u){var d=Nm(u),m=d.text;if("lc".includes(m))return{type:"align",align:m};throw new Ce("Unknown column alignment: "+m,u)});if(a.length>1)throw new Ce("{subarray} can contain only one column");var l={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},i=Qi(e.parser,l,"script");if(i.body.length>0&&i.body[0].length>1)throw new Ce("{subarray} can contain only one column");return i},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Qi(e.parser,t,F2(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:k7,htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){OA.has(e.envName)&&zm(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:q2(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Qi(e.parser,t,"display")},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:k7,htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){zm(e);var t={autoTag:q2(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Qi(e.parser,t,"display")},htmlBuilder:ms,mathmlBuilder:hs});ps({type:"array",names:["CD"],props:{numArgs:0},handler(e){return zm(e),AA(e.parser)},htmlBuilder:ms,mathmlBuilder:hs});R("\\nonumber","\\gdef\\@eqnsw{0}");R("\\notag","\\nonumber");Ie({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ce(e.funcName+" valid only within array environment")}});var Sv=j7;Ie({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new Ce("Invalid environment name",a);for(var l="",i=0;i<a.body.length;++i)l+=vt(a.body[i],"textord").text;if(r==="\\begin"){if(!Sv.hasOwnProperty(l))throw new Ce("No such environment: "+l,a);var u=Sv[l],{args:d,optArgs:m}=n.parseArguments("\\begin{"+l+"}",u),v={mode:n.mode,envName:l,parser:n},f=u.handler(v,d,m);n.expect("\\end",!1);var h=n.nextToken,b=vt(n.parseFunction(),"environment");if(b.name!==l)throw new Ce("Mismatch: \\begin{"+l+"} matched by \\end{"+b.name+"}",h);return f}return{type:"environment",mode:n.mode,name:l,nameGroup:a}}});var N7=(e,t)=>{var n=e.font,r=t.withFont(n);return Dt(e.body,r)},S7=(e,t)=>{var n=e.font,r=t.withFont(n);return Qt(e.body,r)},$v={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Ie({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=Wp(t[0]),l=r;return l in $v&&(l=$v[l]),{type:"font",mode:n.mode,font:l.slice(1),body:a}},htmlBuilder:N7,mathmlBuilder:S7});Ie({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:$m(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:Ys(r)}}});Ie({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:l}=n,i=n.parseExpression(!0,a);return{type:"font",mode:l,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:i}}},htmlBuilder:N7,mathmlBuilder:S7});var HA=(e,t)=>{var n=t.style,r=n.fracNum(),a=n.fracDen(),l;l=t.havingStyle(r);var i=Dt(e.numer,l,t);if(e.continued){var u=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;i.height=i.height<u?u:i.height,i.depth=i.depth<d?d:i.depth}l=t.havingStyle(a);var m=Dt(e.denom,l,t),v,f,h;e.hasBarLine?(e.barSize?(f=bn(e.barSize,t),v=Wc("frac-line",t,f)):v=Wc("frac-line",t),f=v.height,h=v.height):(v=null,f=0,h=t.fontMetrics().defaultRuleThickness);var b,y,j;n.size===ht.DISPLAY.size?(b=t.fontMetrics().num1,f>0?y=3*h:y=7*h,j=t.fontMetrics().denom1):(f>0?(b=t.fontMetrics().num2,y=h):(b=t.fontMetrics().num3,y=3*h),j=t.fontMetrics().denom2);var C;if(v){var z=t.fontMetrics().axisHeight;b-i.depth-(z+.5*f)<y&&(b+=y-(b-i.depth-(z+.5*f))),z-.5*f-(m.height-j)<y&&(j+=y-(z-.5*f-(m.height-j)));var E=-(z-.5*f);C=Et({positionType:"individualShift",children:[{type:"elem",elem:m,shift:j},{type:"elem",elem:v,shift:E},{type:"elem",elem:i,shift:-b}]})}else{var N=b-i.depth-(m.height-j);N<y&&(b+=.5*(y-N),j+=.5*(y-N)),C=Et({positionType:"individualShift",children:[{type:"elem",elem:m,shift:j},{type:"elem",elem:i,shift:-b}]})}l=t.havingStyle(n),C.height*=l.sizeMultiplier/t.sizeMultiplier,C.depth*=l.sizeMultiplier/t.sizeMultiplier;var P;n.size===ht.DISPLAY.size?P=t.fontMetrics().delim1:n.size===ht.SCRIPTSCRIPT.size?P=t.havingStyle(ht.SCRIPT).fontMetrics().delim2:P=t.fontMetrics().delim2;var M,L;return e.leftDelim==null?M=A0(t,["mopen"]):M=Hf(e.leftDelim,P,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?L=_e([]):e.rightDelim==null?L=A0(t,["mclose"]):L=Hf(e.rightDelim,P,!0,t.havingStyle(n),e.mode,["mclose"]),_e(["mord"].concat(l.sizingClasses(t)),[M,_e(["mfrac"],[C]),L],t)},UA=(e,t)=>{var n=new ke("mfrac",[Qt(e.numer,t),Qt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=bn(e.barSize,t);n.setAttribute("linethickness",De(r))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var l=new ke("mo",[new Rn(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}if(a.push(n),e.rightDelim!=null){var i=new ke("mo",[new Rn(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}return L2(a)}return n},$7=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Ie({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],l=t[1],i,u=null,d=null;switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,u="(",d=")";break;case"\\\\bracefrac":i=!1,u="\\{",d="\\}";break;case"\\\\brackfrac":i=!1,u="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}var m=r==="\\cfrac",v=null;return m||r.startsWith("\\d")?v="display":r.startsWith("\\t")&&(v="text"),$7({type:"genfrac",mode:n.mode,numer:a,denom:l,continued:m,hasBarLine:i,leftDelim:u,rightDelim:d,barSize:null},v)},htmlBuilder:HA,mathmlBuilder:UA});Ie({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:r}}});var Av=["display","text","script","scriptscript"],Ev=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ie({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],l=Wp(t[0]),i=l.type==="atom"&&l.family==="open"?Ev(l.text):null,u=Wp(t[1]),d=u.type==="atom"&&u.family==="close"?Ev(u.text):null,m=vt(t[2],"size"),v,f=null;m.isBlank?v=!0:(f=m.value,v=f.number>0);var h=null,b=t[3];if(b.type==="ordgroup"){if(b.body.length>0){var y=vt(b.body[0],"textord");h=Av[Number(y.text)]}}else b=vt(b,"textord"),h=Av[Number(b.text)];return $7({type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:v,barSize:f,leftDelim:i,rightDelim:d},h)}});Ie({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:vt(t[0],"size").value,token:a}}});Ie({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],l=vt(t[1],"infix").size;if(!l)throw new Error("\\\\abovefrac expected size, but got "+String(l));var i=t[2],u=l.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:u,barSize:l,leftDelim:null,rightDelim:null}}});var A7=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?Dt(e.sup,t.havingStyle(n.sup()),t):Dt(e.sub,t.havingStyle(n.sub()),t),a=vt(e.base,"horizBrace")):a=vt(e,"horizBrace");var l=Dt(a.base,t.havingBaseStyle(ht.DISPLAY)),i=km(a,t),u;if(a.isOver?u=Et({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:i,wrapperClasses:["svg-align"]}]}):u=Et({positionType:"bottom",positionData:l.depth+.1+i.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:l}]}),r){var d=_e(["minner",a.isOver?"mover":"munder"],[u],t);a.isOver?u=Et({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:r}]}):u=Et({positionType:"bottom",positionData:d.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:d}]})}return _e(["minner",a.isOver?"mover":"munder"],[u],t)},VA=(e,t)=>{var n=Cm(e.label);return new ke(e.isOver?"mover":"munder",[Qt(e.base,t),n])};Ie({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:A7,mathmlBuilder:VA});Ie({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=vt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:In(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Wn(e.body,t,!1);return aA(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Gi(e.body,t);return n instanceof ke||(n=new ke("mrow",[n])),n.setAttribute("href",e.href),n}});Ie({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=vt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],l=0;l<r.length;l++){var i=r[l];i==="~"&&(i="\\textasciitilde"),a.push({type:"textord",mode:"text",text:i})}var u={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:In(u)}}});Ie({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:In(t[0])}},htmlBuilder(e,t){var n=Wn(e.body,t.withFont(""),!1);return Js(n)},mathmlBuilder(e,t){return new ke("mrow",Ia(e.body,t.withFont("")))}});Ie({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,l=vt(t[0],"raw").string,i=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u,d={};switch(r){case"\\htmlClass":d.class=l,u={command:"\\htmlClass",class:l};break;case"\\htmlId":d.id=l,u={command:"\\htmlId",id:l};break;case"\\htmlStyle":d.style=l,u={command:"\\htmlStyle",style:l};break;case"\\htmlData":{for(var m=l.split(","),v=0;v<m.length;v++){var f=m[v],h=f.indexOf("=");if(h<0)throw new Ce("\\htmlData key/value '"+f+"' missing equals sign");var b=f.slice(0,h),y=f.slice(h+1);d["data-"+b.trim()]=y}u={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(u)?{type:"html",mode:n.mode,attributes:d,body:In(i)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Wn(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=_e(r,n,t);for(var l in e.attributes)l!=="class"&&e.attributes.hasOwnProperty(l)&&a.setAttribute(l,e.attributes[l]);return a},mathmlBuilder:(e,t)=>Gi(e.body,t)});Ie({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:In(t[0]),mathml:In(t[1])}},htmlBuilder:(e,t)=>{var n=Wn(e.html,t,!1);return Js(n)},mathmlBuilder:(e,t)=>Gi(e.mathml,t)});var qh=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ce("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Gb(r))throw new Ce("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Ie({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},l={number:.9,unit:"em"},i={number:0,unit:"em"},u="";if(n[0])for(var d=vt(n[0],"raw").string,m=d.split(","),v=0;v<m.length;v++){var f=m[v].split("=");if(f.length===2){var h=f[1].trim();switch(f[0].trim()){case"alt":u=h;break;case"width":a=qh(h);break;case"height":l=qh(h);break;case"totalheight":i=qh(h);break;default:throw new Ce("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var b=vt(t[0],"url").url;return u===""&&(u=b,u=u.replace(/^.*[\\/]/,""),u=u.substring(0,u.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:b})?{type:"includegraphics",mode:r.mode,alt:u,width:a,height:l,totalheight:i,src:b}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=bn(e.height,t),r=0;e.totalheight.number>0&&(r=bn(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=bn(e.width,t));var l={height:De(n+r)};a>0&&(l.width=De(a)),r>0&&(l.verticalAlign=De(-r));var i=new G$(e.src,e.alt,l);return i.height=n,i.depth=r,i},mathmlBuilder:(e,t)=>{var n=new ke("mglyph",[]);n.setAttribute("alt",e.alt);var r=bn(e.height,t),a=0;if(e.totalheight.number>0&&(a=bn(e.totalheight,t)-r,n.setAttribute("valign",De(-a))),n.setAttribute("height",De(r+a)),e.width.number>0){var l=bn(e.width,t);n.setAttribute("width",De(l))}return n.setAttribute("src",e.src),n}});Ie({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=vt(t[0],"size");if(n.settings.strict){var l=r[1]==="m",i=a.value.unit==="mu";l?(i||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):i&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return Kb(e.dimension,t)},mathmlBuilder(e,t){var n=bn(e.dimension,t);return new a7(n)}});Ie({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=_e([],[Dt(e.body,t)]),n=_e(["inner"],[n],t)):n=_e(["inner"],[Dt(e.body,t)]);var r=_e(["fix"],[]),a=_e([e.alignment],[n,r],t),l=_e(["strut"]);return l.style.height=De(a.height+a.depth),a.depth&&(l.style.verticalAlign=De(-a.depth)),a.children.unshift(l),a=_e(["thinbox"],[a],t),_e(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ke("mpadded",[Qt(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Ie({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var l=n==="\\("?"\\)":"$",i=r.parseExpression(!1,l);return r.expect(l),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",resetFont:!0,body:i}}});Ie({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ce("Mismatched "+e.funcName)}});var Dv=(e,t)=>{switch(t.style.size){case ht.DISPLAY.size:return e.display;case ht.TEXT.size:return e.text;case ht.SCRIPT.size:return e.script;case ht.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ie({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:In(t[0]),text:In(t[1]),script:In(t[2]),scriptscript:In(t[3])}},htmlBuilder:(e,t)=>{var n=Dv(e,t),r=Wn(n,t,!1);return Js(r)},mathmlBuilder:(e,t)=>{var n=Dv(e,t);return Gi(n,t)}});var E7=(e,t,n,r,a,l,i)=>{e=_e([],[e]);var u=n&&Ys(n),d,m;if(t){var v=Dt(t,r.havingStyle(a.sup()),r);m={elem:v,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-v.depth)}}if(n){var f=Dt(n,r.havingStyle(a.sub()),r);d={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var h;if(m&&d){var b=r.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+i;h=Et({positionType:"bottom",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:De(-l)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:De(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(d){var y=e.height-i;h=Et({positionType:"top",positionData:y,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:De(-l)},{type:"kern",size:d.kern},{type:"elem",elem:e}]})}else if(m){var j=e.depth+i;h=Et({positionType:"bottom",positionData:j,children:[{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:De(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else return e;var C=[h];if(d&&l!==0&&!u){var N=_e(["mspace"],[],r);N.style.marginRight=De(l),C.unshift(N)}return _e(["mop","op-limits"],C,r)},D7=new Set(["\\smallint"]),nu=(e,t)=>{var n,r,a=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=vt(e.base,"op"),a=!0):l=vt(e,"op");var i=t.style,u=!1;i.size===ht.DISPLAY.size&&l.symbol&&!D7.has(l.name)&&(u=!0);var d,m;if(l.symbol){var v=u?"Size2-Regular":"Size1-Regular",f="";if((l.name==="\\oiint"||l.name==="\\oiiint")&&(f=l.name.slice(1),l.name=f==="oiint"?"\\iint":"\\iiint"),d=Vr(l.name,v,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),m=d.italic,f.length>0){var h=e7(f+"Size"+(u?"2":"1"),t);d=Et({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:h,shift:u?.08:0}]}),l.name="\\"+f,d.classes.unshift("mop"),d.italic=m}}else if(l.body){var b=Wn(l.body,t,!0);b.length===1&&b[0]instanceof Ma?(d=b[0],d.classes[0]="mop"):d=_e(["mop"],b,t)}else{for(var y=[],j=1;j<l.name.length;j++)y.push(T2(l.name[j],l.mode,t));d=_e(["mop"],y,t)}var C=0,N=0;if((d instanceof Ma||l.name==="\\oiint"||l.name==="\\oiiint")&&!l.suppressBaseShift){var z;C=(d.height-d.depth)/2-t.fontMetrics().axisHeight,N=(z=d.italic)!=null?z:0}return a?E7(d,n,r,t,i,N,C):(C&&(d.style.position="relative",d.style.top=De(C)),d)},O0=(e,t)=>{var n;if(e.symbol)n=new ke("mo",[oo(e.name,e.mode)]),D7.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ke("mo",Ia(e.body,t));else{n=new ke("mi",[new Rn(e.name.slice(1))]);var r=new ke("mo",[oo("","text")]);e.parentIsSupSub?n=new ke("mrow",[n,r]):n=r7([n,r])}return n},GA={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ie({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=r;return a.length===1&&(a=GA[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:nu,mathmlBuilder:O0});Ie({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:In(r)}},htmlBuilder:nu,mathmlBuilder:O0});var WA={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ie({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:nu,mathmlBuilder:O0});Ie({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:nu,mathmlBuilder:O0});Ie({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=WA[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:nu,mathmlBuilder:O0});var z7=(e,t)=>{var n,r,a=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=vt(e.base,"operatorname"),a=!0):l=vt(e,"operatorname");var i;if(l.body.length>0){for(var u=l.body.map(f=>{var h="text"in f?f.text:void 0;return typeof h=="string"?{type:"textord",mode:f.mode,text:h}:f}),d=Wn(u,t.withFont("mathrm"),!0),m=0;m<d.length;m++){var v=d[m];v instanceof Ma&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=_e(["mop"],d,t)}else i=_e(["mop"],[],t);return a?E7(i,n,r,t,t.style,0,0):i},ZA=(e,t)=>{for(var n=Ia(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var l=n[a];if(!(l instanceof a7))if(l instanceof ke)switch(l.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var i=l.children[0];l.children.length===1&&i instanceof Rn?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var u=n.map(v=>v.toText()).join("");n=[new Rn(u)]}var d=new ke("mi",n);d.setAttribute("mathvariant","normal");var m=new ke("mo",[oo("","text")]);return e.parentIsSupSub?new ke("mrow",[d,m]):r7([d,m])};Ie({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:In(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:z7,mathmlBuilder:ZA});R("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Zl({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Js(Wn(e.body,t,!1)):_e(["mord"],Wn(e.body,t,!0),t)},mathmlBuilder(e,t){return Gi(e.body,t,!0)}});Ie({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Dt(e.body,t.havingCrampedStyle()),r=Wc("overline-line",t),a=t.fontMetrics().defaultRuleThickness,l=Et({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]});return _e(["mord","overline"],[l],t)},mathmlBuilder(e,t){var n=new ke("mo",[new Rn("‾")]);n.setAttribute("stretchy","true");var r=new ke("mover",[Qt(e.body,t),n]);return r.setAttribute("accent","true"),r}});Ie({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:In(r)}},htmlBuilder:(e,t)=>{var n=Wn(e.body,t.withPhantom(),!1);return Js(n)},mathmlBuilder:(e,t)=>{var n=Ia(e.body,t);return new ke("mphantom",n)}});R("\\hphantom","\\smash{\\phantom{#1}}");Ie({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=_e(["inner"],[Dt(e.body,t.withPhantom())]),r=_e(["fix"],[]);return _e(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ia(In(e.body),t),r=new ke("mphantom",n),a=new ke("mpadded",[r]);return a.setAttribute("width","0px"),a}});Ie({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=vt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=Dt(e.body,t),r=bn(e.dy,t);return Et({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ke("mpadded",[Qt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Ie({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ie({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],l=vt(t[0],"size"),i=vt(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&vt(a,"size").value,width:l.value,height:i.value}},htmlBuilder(e,t){var n=_e(["mord","rule"],[],t),r=bn(e.width,t),a=bn(e.height,t),l=e.shift?bn(e.shift,t):0;return n.style.borderRightWidth=De(r),n.style.borderTopWidth=De(a),n.style.bottom=De(l),n.width=r,n.height=a+l,n.depth=-l,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=bn(e.width,t),r=bn(e.height,t),a=e.shift?bn(e.shift,t):0,l=t.color&&t.getColor()||"black",i=new ke("mspace");i.setAttribute("mathbackground",l),i.setAttribute("width",De(n)),i.setAttribute("height",De(r));var u=new ke("mpadded",[i]);return a>=0?u.setAttribute("height",De(a)):(u.setAttribute("height",De(a)),u.setAttribute("depth",De(-a))),u.setAttribute("voffset",De(a)),u}});function T7(e,t,n){for(var r=Wn(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,l=0;l<r.length;l++){var i=r[l].classes.indexOf("sizing");i<0?Array.prototype.push.apply(r[l].classes,t.sizingClasses(n)):r[l].classes[i+1]==="reset-size"+t.size&&(r[l].classes[i+1]="reset-size"+n.size),r[l].height*=a,r[l].depth*=a}return Js(r)}var zv=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],QA=(e,t)=>{var n=t.havingSize(e.size);return T7(e.body,n,t)};Ie({type:"sizing",names:zv,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,l=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:zv.indexOf(r)+1,body:l}},htmlBuilder:QA,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ia(e.body,n),a=new ke("mstyle",r);return a.setAttribute("mathsize",De(n.sizeMultiplier)),a}});Ie({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,l=!1,i=n[0]&&vt(n[0],"ordgroup");if(i)for(var u,d=0;d<i.body.length;++d){var m=i.body[d];if(u=Nm(m).text,u==="t")a=!0;else if(u==="b")l=!0;else{a=!1,l=!1;break}}else a=!0,l=!0;var v=t[0];return{type:"smash",mode:r.mode,body:v,smashHeight:a,smashDepth:l}},htmlBuilder:(e,t)=>{var n=_e([],[Dt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return _e(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);var a=Et({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return _e(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ke("mpadded",[Qt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ie({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],l=t[0];return{type:"sqrt",mode:r.mode,body:l,index:a}},htmlBuilder(e,t){var n=Dt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Zc(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,l=a;t.style.id<ht.TEXT.id&&(l=t.fontMetrics().xHeight);var i=a+l/4,u=n.height+n.depth+i+a,{span:d,ruleWidth:m,advanceWidth:v}=LA(u,t),f=d.height-m;f>n.height+n.depth+i&&(i=(i+f-n.height-n.depth)/2);var h=d.height-n.height-i-m;n.style.paddingLeft=De(v);var b=Et({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:d},{type:"kern",size:m}]});if(e.index){var y=t.havingStyle(ht.SCRIPTSCRIPT),j=Dt(e.index,y,t),C=.6*(b.height-b.depth),N=Et({positionType:"shift",positionData:-C,children:[{type:"elem",elem:j}]}),z=_e(["root"],[N]);return _e(["mord","sqrt"],[z,b],t)}else return _e(["mord","sqrt"],[b],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ke("mroot",[Qt(n,t),Qt(r,t)]):new ke("msqrt",[Qt(n,t)])}});var Uf={display:ht.DISPLAY,text:ht.TEXT,script:ht.SCRIPT,scriptscript:ht.SCRIPTSCRIPT};function XA(e){return e in Uf}Ie({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,l=a.parseExpression(!0,n),i=r.slice(1,r.length-5);if(!XA(i))throw new Error("Unknown style: "+i);return{type:"styling",mode:a.mode,style:i,body:l}},htmlBuilder(e,t){var n=Uf[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont("")),T7(e.body,r,t)},mathmlBuilder(e,t){var n=Uf[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(""));var a=Ia(e.body,r),l=new ke("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},u=i[e.style];return l.setAttribute("scriptlevel",u[0]),l.setAttribute("displaystyle",u[1]),l}});var YA=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===ht.DISPLAY.size||r.alwaysHandleSupSub);return a?nu:null}else if(r.type==="operatorname"){var l=r.alwaysHandleSupSub&&(n.style.size===ht.DISPLAY.size||r.limits);return l?z7:null}else{if(r.type==="accent")return Ys(r.base)?R2:null;if(r.type==="horizBrace"){var i=!t.sub;return i===r.isOver?A7:null}else return null}else return null};Zl({type:"supsub",htmlBuilder(e,t){var n=YA(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:l}=e,i=Dt(r,t),u,d,m=t.fontMetrics(),v=0,f=0,h=r&&Ys(r);if(a){var b=t.havingStyle(t.style.sup());u=Dt(a,b,t),h||(v=i.height-b.fontMetrics().supDrop*b.sizeMultiplier/t.sizeMultiplier)}if(l){var y=t.havingStyle(t.style.sub());d=Dt(l,y,t),h||(f=i.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}var j;t.style===ht.DISPLAY?j=m.sup1:t.style.cramped?j=m.sup3:j=m.sup2;var C=t.sizeMultiplier,N=De(.5/m.ptPerEm/C),z=null;if(d){var E=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(i instanceof Ma||E){var P;z=De(-((P=i.italic)!=null?P:0))}}var M;if(u&&d){v=Math.max(v,j,u.depth+.25*m.xHeight),f=Math.max(f,m.sub2);var L=m.defaultRuleThickness,U=4*L;if(v-u.depth-(d.height-f)<U){f=U-(v-u.depth)+d.height;var W=.8*m.xHeight-(v-u.depth);W>0&&(v+=W,f-=W)}var O=[{type:"elem",elem:d,shift:f,marginRight:N,marginLeft:z},{type:"elem",elem:u,shift:-v,marginRight:N}];M=Et({positionType:"individualShift",children:O})}else if(d){f=Math.max(f,m.sub1,d.height-.8*m.xHeight);var q=[{type:"elem",elem:d,marginLeft:z,marginRight:N}];M=Et({positionType:"shift",positionData:f,children:q})}else if(u)v=Math.max(v,j,u.depth+.25*m.xHeight),M=Et({positionType:"shift",positionData:-v,children:[{type:"elem",elem:u,marginRight:N}]});else throw new Error("supsub must have either sup or sub.");var F=qf(i,"right")||"mord";return _e([F],[i,_e(["msupsub"],[M])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var l=[Qt(e.base,t)];e.sub&&l.push(Qt(e.sub,t)),e.sup&&l.push(Qt(e.sup,t));var i;if(n)i=r?"mover":"munder";else if(e.sub)if(e.sup){var m=e.base;m&&m.type==="op"&&m.limits&&t.style===ht.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(t.style===ht.DISPLAY||m.limits)?i="munderover":i="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===ht.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===ht.DISPLAY)?i="munder":i="msub"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ht.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ht.DISPLAY)?i="mover":i="msup"}return new ke(i,l)}});Zl({type:"atom",htmlBuilder(e,t){return T2(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ke("mo",[oo(e.text,e.mode)]);if(e.family==="bin"){var r=I2(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var M7={mi:"italic",mn:"normal",mtext:"normal"};Zl({type:"mathord",htmlBuilder(e,t){return jm(e,t,"mathord")},mathmlBuilder(e,t){var n=new ke("mi",[oo(e.text,e.mode,t)]),r=I2(e,t)||"italic";return r!==M7[n.type]&&n.setAttribute("mathvariant",r),n}});Zl({type:"textord",htmlBuilder(e,t){return jm(e,t,"textord")},mathmlBuilder(e,t){var n=oo(e.text,e.mode,t),r=I2(e,t)||"normal",a;return e.mode==="text"?a=new ke("mtext",[n]):/[0-9]/.test(e.text)?a=new ke("mn",[n]):e.text==="\\prime"?a=new ke("mo",[n]):a=new ke("mi",[n]),r!==M7[a.type]&&a.setAttribute("mathvariant",r),a}});var Fh={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Oh={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Zl({type:"spacing",htmlBuilder(e,t){if(Oh.hasOwnProperty(e.text)){var n=Oh[e.text].className||"";if(e.mode==="text"){var r=jm(e,t,"textord");return r.classes.push(n),r}else return _e(["mspace",n],[T2(e.text,e.mode,t)],t)}else{if(Fh.hasOwnProperty(e.text))return _e(["mspace",Fh[e.text]],[],t);throw new Ce('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Oh.hasOwnProperty(e.text))n=new ke("mtext",[new Rn(" ")]);else{if(Fh.hasOwnProperty(e.text))return new ke("mspace");throw new Ce('Unknown type of space "'+e.text+'"')}return n}});var Tv=()=>{var e=new ke("mtd",[]);return e.setAttribute("width","50%"),e};Zl({type:"tag",mathmlBuilder(e,t){var n=new ke("mtable",[new ke("mtr",[Tv(),new ke("mtd",[Gi(e.body,t)]),Tv(),new ke("mtd",[Gi(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Mv={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lv={"\\textbf":"textbf","\\textmd":"textmd"},KA={"\\textit":"textit","\\textup":"textup"},Iv=(e,t)=>{var n=e.font;if(n){if(Mv[n])return t.withTextFontFamily(Mv[n]);if(Lv[n])return t.withTextFontWeight(Lv[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(KA[n])};Ie({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:In(a),font:r}},htmlBuilder(e,t){var n=Iv(e,t),r=Wn(e.body,n,!0);return _e(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Iv(e,t);return Gi(e.body,n)}});Ie({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Dt(e.body,t),r=Wc("underline-line",t),a=t.fontMetrics().defaultRuleThickness,l=Et({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]});return _e(["mord","underline"],[l],t)},mathmlBuilder(e,t){var n=new ke("mo",[new Rn("‾")]);n.setAttribute("stretchy","true");var r=new ke("munder",[Qt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Ie({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Dt(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return Et({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ke("mpadded",[Qt(e.body,t)],["vcenter"]);return new ke("mrow",[n])}});Ie({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ce("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Rv(e),r=[],a=t.havingStyle(t.style.text()),l=0;l<n.length;l++){var i=n[l];i==="~"&&(i="\\textasciitilde"),r.push(Vr(i,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return _e(["mord","text"].concat(a.sizingClasses(t)),Yb(r),a)},mathmlBuilder(e,t){var n=new Rn(Rv(e)),r=new ke("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Rv=e=>e.body.replace(/ /g,e.star?"␣":" "),qi=t7,L7=`[ \r
|
|
446
|
+
]`,JA="\\\\[a-zA-Z@]+",eE="\\\\[^\uD800-\uDFFF]",tE="("+JA+")"+L7+"*",nE=`\\\\(
|
|
447
|
+
|[ \r ]+
|
|
448
|
+
?)[ \r ]*`,Vf="[̀-ͯ]",rE=new RegExp(Vf+"+$"),aE="("+L7+"+)|"+(nE+"|")+"([!-\\[\\]-‧-豈-]"+(Vf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Vf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+tE)+("|"+eE+")");class Pv{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(aE,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new za("EOF",new pa(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Ce("Unexpected character: '"+t[n]+"'",new za(t[n],new pa(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var l=t.indexOf(`
|
|
449
|
+
`,this.tokenRegex.lastIndex);return l===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=l+1,this.lex()}return new za(a,new pa(this,n,this.tokenRegex.lastIndex))}}class oE{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ce("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var l=this.undefStack[this.undefStack.length-1];l&&!l.hasOwnProperty(t)&&(l[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var sE=C7;R("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});R("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});R("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});R("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});R("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});R("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");R("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var qv={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};R("\\char",function(e){var t=e.popToken(),n,r=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ce("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=qv[t.text],r==null||r>=n)throw new Ce("Invalid base-"+n+" digit "+t.text);for(var a;(a=qv[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var O2=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Ce("\\newcommand's first argument must be a macro name");var l=a[0].text,i=e.isDefined(l);if(i&&!t)throw new Ce("\\newcommand{"+l+"} attempting to redefine "+(l+"; use \\renewcommand"));if(!i&&!n)throw new Ce("\\renewcommand{"+l+"} when command "+l+" does not yet exist; use \\newcommand");var u=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var d="",m=e.expandNextToken();m.text!=="]"&&m.text!=="EOF";)d+=m.text,m=e.expandNextToken();if(!d.match(/^\s*[0-9]+\s*$/))throw new Ce("Invalid number of arguments: "+d);u=parseInt(d),a=e.consumeArg().tokens}return i&&r||e.macros.set(l,{tokens:a,numArgs:u}),""};R("\\newcommand",e=>O2(e,!1,!0,!1));R("\\renewcommand",e=>O2(e,!0,!1,!1));R("\\providecommand",e=>O2(e,!0,!0,!0));R("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});R("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});R("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),qi[n],pn.math[n],pn.text[n]),""});R("\\bgroup","{");R("\\egroup","}");R("~","\\nobreakspace");R("\\lq","`");R("\\rq","'");R("\\aa","\\r a");R("\\AA","\\r A");R("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");R("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");R("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");R("ℬ","\\mathscr{B}");R("ℰ","\\mathscr{E}");R("ℱ","\\mathscr{F}");R("ℋ","\\mathscr{H}");R("ℐ","\\mathscr{I}");R("ℒ","\\mathscr{L}");R("ℳ","\\mathscr{M}");R("ℛ","\\mathscr{R}");R("ℭ","\\mathfrak{C}");R("ℌ","\\mathfrak{H}");R("ℨ","\\mathfrak{Z}");R("\\Bbbk","\\Bbb{k}");R("\\llap","\\mathllap{\\textrm{#1}}");R("\\rlap","\\mathrlap{\\textrm{#1}}");R("\\clap","\\mathclap{\\textrm{#1}}");R("\\mathstrut","\\vphantom{(}");R("\\underbar","\\underline{\\text{#1}}");R("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');R("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");R("\\ne","\\neq");R("≠","\\neq");R("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");R("∉","\\notin");R("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");R("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");R("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");R("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");R("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");R("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");R("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");R("⟂","\\perp");R("‼","\\mathclose{!\\mkern-0.8mu!}");R("∌","\\notni");R("⌜","\\ulcorner");R("⌝","\\urcorner");R("⌞","\\llcorner");R("⌟","\\lrcorner");R("©","\\copyright");R("®","\\textregistered");R("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');R("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');R("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');R("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');R("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");R("⋮","\\vdots");R("\\varGamma","\\mathit{\\Gamma}");R("\\varDelta","\\mathit{\\Delta}");R("\\varTheta","\\mathit{\\Theta}");R("\\varLambda","\\mathit{\\Lambda}");R("\\varXi","\\mathit{\\Xi}");R("\\varPi","\\mathit{\\Pi}");R("\\varSigma","\\mathit{\\Sigma}");R("\\varUpsilon","\\mathit{\\Upsilon}");R("\\varPhi","\\mathit{\\Phi}");R("\\varPsi","\\mathit{\\Psi}");R("\\varOmega","\\mathit{\\Omega}");R("\\substack","\\begin{subarray}{c}#1\\end{subarray}");R("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");R("\\boxed","\\fbox{$\\displaystyle{#1}$}");R("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");R("\\implies","\\DOTSB\\;\\Longrightarrow\\;");R("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");R("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");R("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Fv={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},iE=new Set(["bin","rel"]);R("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Fv?t=Fv[n]:(n.slice(0,4)==="\\not"||n in pn.math&&iE.has(pn.math[n].group))&&(t="\\dotsb"),t});var B2={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};R("\\dotso",function(e){var t=e.future().text;return t in B2?"\\ldots\\,":"\\ldots"});R("\\dotsc",function(e){var t=e.future().text;return t in B2&&t!==","?"\\ldots\\,":"\\ldots"});R("\\cdots",function(e){var t=e.future().text;return t in B2?"\\@cdots\\,":"\\@cdots"});R("\\dotsb","\\cdots");R("\\dotsm","\\cdots");R("\\dotsi","\\!\\cdots");R("\\dotsx","\\ldots\\,");R("\\DOTSI","\\relax");R("\\DOTSB","\\relax");R("\\DOTSX","\\relax");R("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");R("\\,","\\tmspace+{3mu}{.1667em}");R("\\thinspace","\\,");R("\\>","\\mskip{4mu}");R("\\:","\\tmspace+{4mu}{.2222em}");R("\\medspace","\\:");R("\\;","\\tmspace+{5mu}{.2777em}");R("\\thickspace","\\;");R("\\!","\\tmspace-{3mu}{.1667em}");R("\\negthinspace","\\!");R("\\negmedspace","\\tmspace-{4mu}{.2222em}");R("\\negthickspace","\\tmspace-{5mu}{.277em}");R("\\enspace","\\kern.5em ");R("\\enskip","\\hskip.5em\\relax");R("\\quad","\\hskip1em\\relax");R("\\qquad","\\hskip2em\\relax");R("\\tag","\\@ifstar\\tag@literal\\tag@paren");R("\\tag@paren","\\tag@literal{({#1})}");R("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ce("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});R("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");R("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");R("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");R("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");R("\\newline","\\\\\\relax");R("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var I7=De(cs["Main-Regular"][84][1]-.7*cs["Main-Regular"][65][1]);R("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+I7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");R("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+I7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");R("\\hspace","\\@ifstar\\@hspacer\\@hspace");R("\\@hspace","\\hskip #1\\relax");R("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");R("\\ordinarycolon",":");R("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");R("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');R("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');R("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');R("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');R("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');R("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');R("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');R("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');R("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');R("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');R("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');R("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');R("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');R("∷","\\dblcolon");R("∹","\\eqcolon");R("≔","\\coloneqq");R("≕","\\eqqcolon");R("⩴","\\Coloneqq");R("\\ratio","\\vcentcolon");R("\\coloncolon","\\dblcolon");R("\\colonequals","\\coloneqq");R("\\coloncolonequals","\\Coloneqq");R("\\equalscolon","\\eqqcolon");R("\\equalscoloncolon","\\Eqqcolon");R("\\colonminus","\\coloneq");R("\\coloncolonminus","\\Coloneq");R("\\minuscolon","\\eqcolon");R("\\minuscoloncolon","\\Eqcolon");R("\\coloncolonapprox","\\Colonapprox");R("\\coloncolonsim","\\Colonsim");R("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");R("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");R("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");R("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");R("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");R("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");R("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");R("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");R("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");R("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");R("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");R("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");R("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");R("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");R("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");R("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");R("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");R("\\nleqq","\\html@mathml{\\@nleqq}{≰}");R("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");R("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");R("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");R("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");R("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");R("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");R("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");R("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");R("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");R("\\imath","\\html@mathml{\\@imath}{ı}");R("\\jmath","\\html@mathml{\\@jmath}{ȷ}");R("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");R("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");R("⟦","\\llbracket");R("⟧","\\rrbracket");R("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");R("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");R("⦃","\\lBrace");R("⦄","\\rBrace");R("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");R("⦵","\\minuso");R("\\darr","\\downarrow");R("\\dArr","\\Downarrow");R("\\Darr","\\Downarrow");R("\\lang","\\langle");R("\\rang","\\rangle");R("\\uarr","\\uparrow");R("\\uArr","\\Uparrow");R("\\Uarr","\\Uparrow");R("\\N","\\mathbb{N}");R("\\R","\\mathbb{R}");R("\\Z","\\mathbb{Z}");R("\\alef","\\aleph");R("\\alefsym","\\aleph");R("\\Alpha","\\mathrm{A}");R("\\Beta","\\mathrm{B}");R("\\bull","\\bullet");R("\\Chi","\\mathrm{X}");R("\\clubs","\\clubsuit");R("\\cnums","\\mathbb{C}");R("\\Complex","\\mathbb{C}");R("\\Dagger","\\ddagger");R("\\diamonds","\\diamondsuit");R("\\empty","\\emptyset");R("\\Epsilon","\\mathrm{E}");R("\\Eta","\\mathrm{H}");R("\\exist","\\exists");R("\\harr","\\leftrightarrow");R("\\hArr","\\Leftrightarrow");R("\\Harr","\\Leftrightarrow");R("\\hearts","\\heartsuit");R("\\image","\\Im");R("\\infin","\\infty");R("\\Iota","\\mathrm{I}");R("\\isin","\\in");R("\\Kappa","\\mathrm{K}");R("\\larr","\\leftarrow");R("\\lArr","\\Leftarrow");R("\\Larr","\\Leftarrow");R("\\lrarr","\\leftrightarrow");R("\\lrArr","\\Leftrightarrow");R("\\Lrarr","\\Leftrightarrow");R("\\Mu","\\mathrm{M}");R("\\natnums","\\mathbb{N}");R("\\Nu","\\mathrm{N}");R("\\Omicron","\\mathrm{O}");R("\\plusmn","\\pm");R("\\rarr","\\rightarrow");R("\\rArr","\\Rightarrow");R("\\Rarr","\\Rightarrow");R("\\real","\\Re");R("\\reals","\\mathbb{R}");R("\\Reals","\\mathbb{R}");R("\\Rho","\\mathrm{P}");R("\\sdot","\\cdot");R("\\sect","\\S");R("\\spades","\\spadesuit");R("\\sub","\\subset");R("\\sube","\\subseteq");R("\\supe","\\supseteq");R("\\Tau","\\mathrm{T}");R("\\thetasym","\\vartheta");R("\\weierp","\\wp");R("\\Zeta","\\mathrm{Z}");R("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");R("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");R("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");R("\\bra","\\mathinner{\\langle{#1}|}");R("\\ket","\\mathinner{|{#1}\\rangle}");R("\\braket","\\mathinner{\\langle{#1}\\rangle}");R("\\Bra","\\left\\langle#1\\right|");R("\\Ket","\\left|#1\\right\\rangle");var R7=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.consumeArg().tokens,i=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var d=f=>h=>{e&&(h.macros.set("|",i),a.length&&h.macros.set("\\|",u));var b=f;if(!f&&a.length){var y=h.future();y.text==="|"&&(h.popToken(),b=!0)}return{tokens:b?a:r,numArgs:0}};t.macros.set("|",d(!1)),a.length&&t.macros.set("\\|",d(!0));var m=t.consumeArg().tokens,v=t.expandTokens([...l,...m,...n]);return t.macros.endGroup(),{tokens:v.reverse(),numArgs:0}};R("\\bra@ket",R7(!1));R("\\bra@set",R7(!0));R("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");R("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");R("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");R("\\angln","{\\angl n}");R("\\blue","\\textcolor{##6495ed}{#1}");R("\\orange","\\textcolor{##ffa500}{#1}");R("\\pink","\\textcolor{##ff00af}{#1}");R("\\red","\\textcolor{##df0030}{#1}");R("\\green","\\textcolor{##28ae7b}{#1}");R("\\gray","\\textcolor{gray}{#1}");R("\\purple","\\textcolor{##9d38bd}{#1}");R("\\blueA","\\textcolor{##ccfaff}{#1}");R("\\blueB","\\textcolor{##80f6ff}{#1}");R("\\blueC","\\textcolor{##63d9ea}{#1}");R("\\blueD","\\textcolor{##11accd}{#1}");R("\\blueE","\\textcolor{##0c7f99}{#1}");R("\\tealA","\\textcolor{##94fff5}{#1}");R("\\tealB","\\textcolor{##26edd5}{#1}");R("\\tealC","\\textcolor{##01d1c1}{#1}");R("\\tealD","\\textcolor{##01a995}{#1}");R("\\tealE","\\textcolor{##208170}{#1}");R("\\greenA","\\textcolor{##b6ffb0}{#1}");R("\\greenB","\\textcolor{##8af281}{#1}");R("\\greenC","\\textcolor{##74cf70}{#1}");R("\\greenD","\\textcolor{##1fab54}{#1}");R("\\greenE","\\textcolor{##0d923f}{#1}");R("\\goldA","\\textcolor{##ffd0a9}{#1}");R("\\goldB","\\textcolor{##ffbb71}{#1}");R("\\goldC","\\textcolor{##ff9c39}{#1}");R("\\goldD","\\textcolor{##e07d10}{#1}");R("\\goldE","\\textcolor{##a75a05}{#1}");R("\\redA","\\textcolor{##fca9a9}{#1}");R("\\redB","\\textcolor{##ff8482}{#1}");R("\\redC","\\textcolor{##f9685d}{#1}");R("\\redD","\\textcolor{##e84d39}{#1}");R("\\redE","\\textcolor{##bc2612}{#1}");R("\\maroonA","\\textcolor{##ffbde0}{#1}");R("\\maroonB","\\textcolor{##ff92c6}{#1}");R("\\maroonC","\\textcolor{##ed5fa6}{#1}");R("\\maroonD","\\textcolor{##ca337c}{#1}");R("\\maroonE","\\textcolor{##9e034e}{#1}");R("\\purpleA","\\textcolor{##ddd7ff}{#1}");R("\\purpleB","\\textcolor{##c6b9fc}{#1}");R("\\purpleC","\\textcolor{##aa87ff}{#1}");R("\\purpleD","\\textcolor{##7854ab}{#1}");R("\\purpleE","\\textcolor{##543b78}{#1}");R("\\mintA","\\textcolor{##f5f9e8}{#1}");R("\\mintB","\\textcolor{##edf2df}{#1}");R("\\mintC","\\textcolor{##e0e5cc}{#1}");R("\\grayA","\\textcolor{##f6f7f7}{#1}");R("\\grayB","\\textcolor{##f0f1f2}{#1}");R("\\grayC","\\textcolor{##e3e5e6}{#1}");R("\\grayD","\\textcolor{##d6d8da}{#1}");R("\\grayE","\\textcolor{##babec2}{#1}");R("\\grayF","\\textcolor{##888d93}{#1}");R("\\grayG","\\textcolor{##626569}{#1}");R("\\grayH","\\textcolor{##3b3e40}{#1}");R("\\grayI","\\textcolor{##21242c}{#1}");R("\\kaBlue","\\textcolor{##314453}{#1}");R("\\kaGreen","\\textcolor{##71B307}{#1}");var P7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class lE{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new oE(sE,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Pv(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new za("EOF",r.loc)),this.pushTokens(a),new za("",pa.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),l,i=0,u=0;do{if(l=this.popToken(),n.push(l),l.text==="{")++i;else if(l.text==="}"){if(--i,i===-1)throw new Ce("Extra }",l)}else if(l.text==="EOF")throw new Ce("Unexpected end of input in a macro argument, expected '"+(t&&r?t[u]:"}")+"'",l);if(t&&r)if((i===0||i===1&&t[u]==="{")&&l.text===t[u]){if(++u,u===t.length){n.splice(-u,u);break}}else u=0}while(i!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:l}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ce("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var l=this.popToken();if(r[a]!==l.text)throw new Ce("Use of the macro doesn't match its definition",l)}}for(var i=[],u=0;u<t;u++)i.push(this.consumeArg(n&&n[u+1]).tokens);return i}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Ce("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new Ce("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var l=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){l=l.slice();for(var u=l.length-1;u>=0;--u){var d=l[u];if(d.text==="#"){if(u===0)throw new Ce("Incomplete placeholder at end of macro body",d);if(d=l[--u],d.text==="#")l.splice(u+1,1);else if(/^[1-9]$/.test(d.text))l.splice(u,2,...i[+d.text-1]);else throw new Ce("Not a valid argument number",d)}}}return this.pushTokens(l),l.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new za(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var l=0;if(a.includes("#"))for(var i=a.replace(/##/g,"");i.includes("#"+(l+1));)++l;for(var u=new Pv(a,this.settings),d=[],m=u.lex();m.text!=="EOF";)d.push(m),m=u.lex();d.reverse();var v={tokens:d,numArgs:l};return v}return a}isDefined(t){return this.macros.has(t)||qi.hasOwnProperty(t)||pn.math.hasOwnProperty(t)||pn.text.hasOwnProperty(t)||P7.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:qi.hasOwnProperty(t)&&!qi[t].primitive}}var Ov=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,fp=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Bh={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Bv={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Tm{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new lE(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ce("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new za("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Tm.endOfExpression.has(a.text)||n&&a.text===n||t&&qi[a.text]&&qi[a.text].infix)break;var l=this.parseAtom(n);if(l){if(l.type==="internal")continue}else break;r.push(l)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++){var l=t[a];if(l.type==="infix"){if(n!==-1)throw new Ce("only one infix operator per group",l.token);n=a,r=l.replaceWith}}if(n!==-1&&r){var i,u,d=t.slice(0,n),m=t.slice(n+1);d.length===1&&d[0].type==="ordgroup"?i=d[0]:i={type:"ordgroup",mode:this.mode,body:d},m.length===1&&m[0].type==="ordgroup"?u=m[0]:u={type:"ordgroup",mode:this.mode,body:m};var v;return r==="\\\\abovefrac"?v=this.callFunction(r,[i,t[n],u],[]):v=this.callFunction(r,[i,u],[]),[v]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var l;a=this.parseGroup(t)}while(((l=a)==null?void 0:l.type)==="internal");if(!a)throw new Ce("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},l={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return l}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var l=this.fetch();if(l.text==="\\limits"||l.text==="\\nolimits"){if(n&&n.type==="op"){var i=l.text==="\\limits";n.limits=i,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=l.text==="\\limits");else throw new Ce("Limit controls must follow a math operator",l);this.consume()}else if(l.text==="^"){if(r)throw new Ce("Double superscript",l);r=this.handleSupSubscript("superscript")}else if(l.text==="_"){if(a)throw new Ce("Double subscript",l);a=this.handleSupSubscript("subscript")}else if(l.text==="'"){if(r)throw new Ce("Double superscript",l);var u={type:"textord",mode:this.mode,text:"\\prime"},d=[u];for(this.consume();this.fetch().text==="'";)d.push(u),this.consume();this.fetch().text==="^"&&d.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:d}}else if(fp[l.text]){var m=Ov.test(l.text),v=[];for(v.push(new za(fp[l.text])),this.consume();;){var f=this.fetch().text;if(!fp[f]||Ov.test(f)!==m)break;v.unshift(new za(fp[f])),this.consume()}var h=this.subparse(v);m?a={type:"ordgroup",mode:"math",body:h}:r={type:"ordgroup",mode:"math",body:h}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,l=qi[a];if(!l)return null;if(this.consume(),n&&n!=="atom"&&!l.allowedInArgument)throw new Ce("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!l.allowedInText)throw new Ce("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&l.allowedInMath===!1)throw new Ce("Can't use function '"+a+"' in math mode",r);var{args:i,optArgs:u}=this.parseArguments(a,l);return this.callFunction(a,i,u,r,t)}callFunction(t,n,r,a,l){var i={funcName:t,parser:this,token:a,breakOnTokenText:l},u=qi[t];if(u&&u.handler)return u.handler(i,n,r);throw new Ce("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],l=[],i=0;i<r;i++){var u=n.argTypes&&n.argTypes[i],d=i<n.numOptionalArgs;("primitive"in n&&n.primitive&&u==null||n.type==="sqrt"&&i===1&&l[0]==null)&&(u="primitive");var m=this.parseGroupOfType("argument to '"+t+"'",u,d);if(d)l.push(m);else if(m!=null)a.push(m);else throw new Ce("Null argument, please report this as a bug")}return{args:a,optArgs:l}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var l=this.parseStringGroup("raw",r);return l!=null?{type:"raw",mode:"text",string:l.text}:null}case"primitive":{if(r)throw new Ce("A primitive argument cannot be optional");var i=this.parseGroup(t);if(i==null)throw new Ce("Expected group as "+t,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Ce("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",l;(l=this.fetch()).text!=="EOF";)a+=l.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,l="",i;(i=this.fetch()).text!=="EOF"&&t.test(l+i.text);)a=i,l+=a.text,this.consume();if(l==="")throw new Ce("Invalid "+n+": '"+r.text+"'",r);return r.range(a,l)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Ce("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new Ce("Invalid size: '"+n.text+"'",n);var l={number:+(a[1]+a[2]),unit:a[3]};if(!Gb(l))throw new Ce("Invalid unit: '"+l.unit+"'",n);return{type:"size",mode:this.mode,value:l,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var l=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:l};return n&&this.switchMode(a),i}parseGroup(t,n){var r=this.fetch(),a=r.text,l;if(a==="{"||a==="\\begingroup"){this.consume();var i=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,i),d=this.fetch();this.expect(i),this.gullet.endGroup(),l={type:"ordgroup",mode:this.mode,loc:pa.range(r,d),body:u,semisimple:a==="\\begingroup"||void 0}}else if(l=this.parseFunction(n,t)||this.parseSymbol(),l==null&&a[0]==="\\"&&!P7.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Ce("Undefined control sequence: "+a,r);l=this.formatUnsupportedCmd(a),this.consume()}return l}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r];if(a.type==="textord"){var l=a.text,i=t[r+1];if(!(!i||i.type!=="textord")){if(l==="-"&&i.text==="-"){var u=t[r+2];r+1<n&&u&&u.type==="textord"&&u.text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:pa.range(a,u),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:pa.range(a,i),text:"--"}),n-=1)}(l==="'"||l==="`")&&i.text===l&&(t.splice(r,2,{type:"textord",mode:"text",loc:pa.range(a,i),text:l+l}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Ce(`\\verb assertion failed --
|
|
450
|
+
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}Bv.hasOwnProperty(n[0])&&!pn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=Bv[n[0]]+n.slice(1));var l=rE.exec(n);l&&(n=n.substring(0,l.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var i;if(pn[this.mode][n]){this.settings.strict&&this.mode==="math"&&Df.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var u=pn[this.mode][n].group,d=pa.range(t),m;CA(u)?m={type:"atom",mode:this.mode,family:u,loc:d,text:n}:m={type:u,mode:this.mode,loc:d,text:n},i=m}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Vb(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),i={type:"textord",mode:"text",loc:pa.range(t),text:n};else return null;if(this.consume(),l)for(var v=0;v<l[0].length;v++){var f=l[0][v];if(!Bh[f])throw new Ce("Unknown accent ' "+f+"'",t);var h=Bh[f][this.mode]||Bh[f].text;if(!h)throw new Ce("Accent "+f+" unsupported in "+this.mode+" mode",t);i={type:"accent",mode:this.mode,loc:pa.range(t),label:h,isStretchy:!1,isShifty:!0,base:i}}return i}}Tm.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var H2=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Tm(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Ce("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new za("\\df@tag")])}]}return a},q7=function(t,n,r){n.textContent="";var a=U2(t,r).toNode();n.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),q7=function(){throw new Ce("KaTeX doesn't work in quirks mode.")});var cE=function(t,n){var r=U2(t,n).toMarkup();return r},uE=function(t,n){var r=new A2(n);return H2(t,r)},F7=function(t,n,r){if(r.throwOnError||!(t instanceof Ce))throw t;var a=_e(["katex-error"],[new Ma(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},U2=function(t,n){var r=new A2(n);try{var a=H2(t,r);return gA(a,t,r)}catch(l){return F7(l,t,r)}},dE=function(t,n){var r=new A2(n);try{var a=H2(t,r);return vA(a,t,r)}catch(l){return F7(l,t,r)}},pE="0.16.47",mE={Span:eu,Anchor:_m,SymbolNode:Ma,SvgNode:Qs,PathNode:Ui,LineNode:Ef},Hv={version:pE,render:q7,renderToString:cE,ParseError:Ce,SETTINGS_SCHEMA:Sf,__parse:uE,__renderToDomTree:U2,__renderToHTMLTree:dE,__setFontMetrics:Y$,__defineSymbol:_,__defineFunction:Ie,__defineMacro:R,__domTree:mE};const jt={eof:null,dollarSign:36,leftParenthesis:40,rightParenthesis:41,asterisk:42,leftSquareBracket:91,backslash:92,rightSquareBracket:93},Gf={characterGroupPunctuation:2,tabSize:4},Ea={whitespace:"whitespace",lineEnding:"lineEnding",linePrefix:"linePrefix",characterEscape:"characterEscape",chunkString:"chunkString"},hE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})}),fE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.jsx("path",{d:"M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z",fill:"currentColor"})]}),E0=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("g",{clipPath:"url(#clip0_1450_63327)",children:[o.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"}),o.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"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1450_63327",children:o.jsx("rect",{width:16,height:16,fill:"currentColor"})})})]}),gE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M4.55146 8.00001C4.55146 8.63513 4.03659 9.15001 3.40146 9.15001C2.76634 9.15001 2.25146 8.63513 2.25146 8.00001C2.25146 7.36488 2.76634 6.85001 3.40146 6.85001C4.03659 6.85001 4.55146 7.36488 4.55146 8.00001Z",fill:"currentColor"}),o.jsx("path",{d:"M9.1476 8.00001C9.1476 8.63513 8.63273 9.15001 7.9976 9.15001C7.36248 9.15001 6.8476 8.63513 6.8476 8.00001C6.8476 7.36488 7.36248 6.85001 7.9976 6.85001C8.63273 6.85001 9.1476 7.36488 9.1476 8.00001Z",fill:"currentColor"}),o.jsx("path",{d:"M13.7486 8.00001C13.7486 8.63513 13.2338 9.15001 12.5986 9.15001C11.9635 9.15001 11.4486 8.63513 11.4486 8.00001C11.4486 7.36488 11.9635 6.85001 12.5986 6.85001C13.2338 6.85001 13.7486 7.36488 13.7486 8.00001Z",fill:"currentColor"})]}),V2=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})}),vE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0762 1.37207C14.0846 1.37228 14.9021 2.19077 14.9023 3.19922C14.9022 4.20772 14.0847 5.02518 13.0762 5.02539C12.2967 5.02539 11.6325 4.53691 11.3701 3.84961H4.35547C4.79397 4.26458 5.15861 4.7644 5.41699 5.33496L7.10645 9.06738C7.88526 10.7875 9.55104 11.9228 11.4189 12.0371C11.7085 11.4109 12.3411 10.9756 13.0762 10.9756C14.0843 10.9759 14.9023 11.7936 14.9023 12.8018C14.9023 13.81 14.0843 14.6277 13.0762 14.6279C12.2534 14.6279 11.5574 14.0832 11.3291 13.335C8.9868 13.1879 6.89981 11.7612 5.92285 9.60352L4.23242 5.87109C3.67503 4.64033 2.44878 3.84961 1.09766 3.84961V2.54883C1.10665 2.54883 1.11601 2.54975 1.125 2.5498L11.3701 2.54883C11.6326 1.86151 12.2969 1.37207 13.0762 1.37207ZM13.0762 12.2764C12.7858 12.2764 12.5508 12.5114 12.5508 12.8018C12.5508 13.0921 12.7858 13.3281 13.0762 13.3281C13.3664 13.3279 13.6025 13.092 13.6025 12.8018C13.6025 12.5115 13.3664 12.2766 13.0762 12.2764ZM13.0762 2.67285C12.7855 2.67285 12.55 2.90861 12.5498 3.19922C12.5499 3.48987 12.7855 3.72559 13.0762 3.72559C13.3667 3.72538 13.6024 3.48975 13.6025 3.19922C13.6023 2.90874 13.3666 2.67306 13.0762 2.67285Z",fill:"currentColor"})}),bE=({size:e=14,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M4.25 2.82782L4.25 11.1722C4.25 11.6622 4.84243 11.9076 5.18891 11.5611L9.36109 7.38891C9.57588 7.17412 9.57588 6.82588 9.36109 6.61109L5.18891 2.43891C4.84243 2.09243 4.25 2.33782 4.25 2.82782Z",fill:"currentColor"})}),yE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z",fill:"currentColor"}),o.jsx("path",{d:"M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z",fill:"currentColor"})]}),xE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})}),_E=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M7.95889 1.52285C7.95888 0.826234 8.76055 0.467983 9.27669 0.875208L9.37524 0.967191L15.1317 7.18358C15.5582 7.64419 15.5582 8.35614 15.1317 8.81676L9.37524 15.0331C8.87034 15.578 7.95888 15.2205 7.95889 14.4775V10.8207C7.10614 10.8432 6.31361 10.9316 5.45468 11.2515C4.39484 11.6463 3.18248 12.413 1.64676 13.9425C1.4533 14.135 1.18329 14.1696 0.969086 14.0908C0.74748 14.0091 0.547307 13.7879 0.54859 13.4844L0.55516 13.1315C0.618924 11.3494 1.11153 9.29838 2.27656 7.63787C3.45289 5.96147 5.29554 4.71635 7.95889 4.54797V1.52285ZM9.20911 5.13366C9.20899 5.50567 8.9031 5.77687 8.56523 5.77755C5.99383 5.78282 4.33736 6.8762 3.29964 8.35496C2.54519 9.43014 2.10739 10.7283 1.9152 11.9939C3.04749 11.0323 4.0569 10.4385 5.01917 10.0801C6.29638 9.60449 7.4406 9.56343 8.56429 9.56295C8.9178 9.5628 9.20894 9.84909 9.20911 10.2068L9.20817 13.3737L14.1837 8.00017L9.20817 2.62571L9.20911 5.13366Z",fill:"currentColor"})}),G2=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})}),wE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M9.94133 6.50173C11.3218 7.99603 11.3218 10.3011 9.94128 11.7954C9.88691 11.8542 9.82125 11.9196 9.72099 12.0198L7.75707 13.9838C7.65709 14.0838 7.592 14.1491 7.53334 14.2034C6.03906 15.5843 3.7327 15.5854 2.23827 14.2048C2.17933 14.1503 2.11374 14.0844 2.01315 13.9838C1.91318 13.8839 1.84922 13.8188 1.79495 13.7601C0.413857 12.2657 0.413909 9.95948 1.795 8.46503C1.84923 8.4064 1.91335 8.34115 2.01321 8.24129L3.79275 6.46313C3.71814 7.08101 3.75236 7.71445 3.90115 8.33518L3.00344 9.23151C2.89398 9.34097 2.8535 9.38307 2.82251 9.41658C1.93771 10.3744 1.93704 11.8514 2.82179 12.8092C2.85279 12.8427 2.89383 12.884 3.0034 12.9936C3.11272 13.1029 3.15429 13.1442 3.18777 13.1752C4.14561 14.0603 5.62381 14.0608 6.58178 13.1758C6.61532 13.1448 6.65722 13.1032 6.76685 12.9935L8.73077 11.0296C8.83999 10.9204 8.88142 10.8787 8.91238 10.8452C9.79744 9.88728 9.7969 8.40911 8.91173 7.45124C8.88074 7.41775 8.83944 7.3762 8.73011 7.26687C8.62082 7.15757 8.58061 7.11623 8.54712 7.08526C8.37347 6.92477 8.18243 6.79361 7.98088 6.69165L9.00289 5.66964C9.17506 5.78373 9.34035 5.91265 9.49663 6.05703C9.55538 6.11135 9.62026 6.17652 9.72036 6.27662C9.82094 6.3772 9.88686 6.4428 9.94133 6.50173Z",fill:"currentColor"}),o.jsx("path",{d:"M6.06816 9.49196C4.68626 7.99724 4.68667 5.68942 6.06885 4.19487C6.12268 4.13671 6.18789 4.07306 6.28706 3.9739L8.24541 2.01416C8.34478 1.91479 8.41018 1.85055 8.46845 1.79665C9.96301 0.414902 12.2689 0.414922 13.7635 1.79665C13.8217 1.85051 13.8866 1.91559 13.9858 2.01486C14.0849 2.11394 14.1502 2.17769 14.204 2.23583C15.5861 3.7304 15.5866 6.03823 14.2047 7.53291C14.1508 7.59125 14.0854 7.65638 13.9858 7.75595L12.1994 9.54098C12.2614 8.92982 12.2185 8.30587 12.0634 7.69657L12.9956 6.76573C13.1044 6.65692 13.1458 6.61529 13.1765 6.58205C14.0621 5.62404 14.0621 4.1454 13.1765 3.18738C13.1458 3.15419 13.104 3.1135 12.9956 3.00508C12.8877 2.89716 12.8471 2.85551 12.814 2.82485C11.8559 1.9389 10.376 1.93886 9.41794 2.82485C9.38479 2.85554 9.34381 2.89622 9.23564 3.00439L7.27728 4.96413C7.16875 5.07265 7.12708 5.11322 7.09636 5.14643C6.21074 6.10441 6.21153 7.58236 7.09705 8.5404C7.12775 8.57357 7.16826 8.61575 7.27659 8.72408C7.38456 8.83205 7.42647 8.87227 7.45958 8.90293C7.62849 9.0591 7.81309 9.1881 8.00856 9.28894L6.98795 10.3095C6.82111 10.1978 6.66052 10.0715 6.50872 9.93114C6.45057 9.87733 6.38547 9.81341 6.28637 9.71431C6.1871 9.61504 6.12202 9.55018 6.06816 9.49196Z",fill:"currentColor"})]}),W2=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M14.4782 4.84067L14.2138 10.1152C14.1102 12.1872 14.067 13.0115 13.3866 13.9607C13.1044 14.3546 12.7498 14.6912 12.3424 14.9535C11.8239 15.2872 11.2415 15.4316 10.5585 15.4998C9.88727 15.5668 9.04946 15.5656 7.99998 15.5656C6.95051 15.5656 6.1127 15.5668 5.44142 15.4998C4.75851 15.4316 4.17602 15.2872 3.65753 14.9535C3.25012 14.6912 2.89559 14.3546 2.61332 13.9607C1.93296 13.0115 1.88979 12.1872 1.78619 10.1152L1.52179 4.84067L2.89006 4.77277L3.15343 10.0463C3.26221 12.2218 3.32452 12.6015 3.72646 13.1624C3.90825 13.4161 4.13686 13.6334 4.39927 13.8023C4.66204 13.9714 5.00263 14.0792 5.57825 14.1367C6.16562 14.1953 6.92298 14.1963 7.99998 14.1963C9.07699 14.1963 9.83434 14.1953 10.4217 14.1367C10.9973 14.0792 11.3379 13.9714 11.6007 13.8023C11.8631 13.6334 12.0917 13.4161 12.2735 13.1624C12.6755 12.6015 12.7378 12.2218 12.8465 10.0463L13.1099 4.77277L14.4782 4.84067ZM5.43011 6.22849H6.7994V11.3909H5.43011V6.22849ZM9.20056 6.22849H10.5699V11.3909H9.20056V6.22849ZM8.53597 0.434431C9.17976 0.434431 9.6522 0.426926 10.0966 0.571258C10.2357 0.616451 10.3717 0.672554 10.502 0.738948C10.9182 0.951107 11.2464 1.29099 11.7015 1.74612L12.4978 2.54136H15.3742V3.91169H0.625732V2.54136H3.50218L4.29845 1.74612C4.75358 1.29099 5.08174 0.951107 5.49801 0.738948C5.62831 0.672554 5.76425 0.616451 5.90334 0.571258C6.34776 0.426926 6.82021 0.434431 7.46399 0.434431H8.53597ZM7.46399 1.80476C6.73208 1.80476 6.51641 1.81187 6.32617 1.87369C6.25545 1.89667 6.18668 1.92533 6.12041 1.95907C5.96398 2.03878 5.82348 2.16253 5.44142 2.54136H10.5585C10.1765 2.16253 10.036 2.03878 9.87955 1.95907C9.81329 1.92533 9.74452 1.89667 9.6738 1.87369C9.48356 1.81187 9.26789 1.80476 8.53597 1.80476H7.46399Z",fill:"currentColor"})}),jE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M11.0307 5.46369C11.0305 3.78995 9.6734 2.43357 7.99961 2.43357C6.32601 2.43379 4.96972 3.79009 4.96949 5.46369C4.96949 7.13748 6.32587 8.49455 7.99961 8.49477C9.67354 8.49477 11.0307 7.13762 11.0307 5.46369ZM12.3163 5.46369C12.3163 7.84777 10.3837 9.78042 7.99961 9.78042C5.61572 9.7802 3.68288 7.84763 3.68288 5.46369C3.6831 3.07993 5.61586 1.14718 7.99961 1.14695C10.3836 1.14695 12.3161 3.0798 12.3163 5.46369Z",fill:"currentColor"}),o.jsx("path",{d:"M8.00002 10.3316C11.7343 10.3316 14.1864 11.8997 15.0387 14.4445L14.4292 14.6483L13.8197 14.8531C13.1955 12.9893 11.3673 11.6182 8.00002 11.6182C4.63277 11.6182 2.80455 12.9893 2.18031 14.8531L1.5708 14.6483L0.961304 14.4445C1.81368 11.8997 4.26579 10.3316 8.00002 10.3316Z",fill:"currentColor"})]}),O7=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M15.3695 11.411L15.1234 12.8866C14.8869 14.3042 13.6603 15.3436 12.223 15.3436H3.77673C2.33958 15.3434 1.1128 14.3042 0.876343 12.8866L0.630249 11.411L2.05408 11.1747L2.29919 12.6493C2.41973 13.3713 3.04475 13.9001 3.77673 13.9003H12.223C12.9551 13.9002 13.58 13.3713 13.7006 12.6493L13.9457 11.1747L15.3695 11.411ZM8.72205 8.994C8.77717 8.93934 8.83792 8.88106 8.90271 8.81627L12.4828 5.23424L13.5043 6.25572L9.92224 9.8358C9.6395 10.1185 9.38763 10.3732 9.15857 10.5575C8.91892 10.7503 8.63953 10.9224 8.2865 10.9784C8.09711 11.0083 7.90363 11.0083 7.71423 10.9784C7.36106 10.9224 7.0809 10.7503 6.84119 10.5575C6.61215 10.3732 6.36022 10.1185 6.07751 9.8358L2.49646 6.25572L3.51697 5.23424L7.09705 8.81627C7.16219 8.88142 7.22331 8.94006 7.27869 8.99498V1.3065H8.72205V8.994Z",fill:"currentColor"})}),CE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",children:[o.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"}),o.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"})]}),kE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",children:o.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"})}),NE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.jsx("path",{d:"M8.65039 0.5V2.5H7.34961V0.5H8.65039Z",fill:"currentColor"}),o.jsx("path",{d:"M8.65039 13.5V15.5H7.34961V13.5H8.65039Z",fill:"currentColor"}),o.jsx("path",{d:"M3.15808 2.24035L4.57229 3.65456L3.6525 4.57435L2.23829 3.16014L3.15808 2.24035Z",fill:"currentColor"}),o.jsx("path",{d:"M12.3505 11.4327L13.7647 12.8469L12.8449 13.7667L11.4307 12.3525L12.3505 11.4327Z",fill:"currentColor"}),o.jsx("path",{d:"M2.24537 12.8469L3.65958 11.4327L4.57937 12.3525L3.16516 13.7667L2.24537 12.8469Z",fill:"currentColor"}),o.jsx("path",{d:"M11.4377 3.65455L12.852 2.24033L13.7718 3.16012L12.3575 4.57434L11.4377 3.65455Z",fill:"currentColor"}),o.jsx("path",{d:"M0.5 7.35461H2.5V8.6554H0.5L0.5 7.35461Z",fill:"currentColor"}),o.jsx("path",{d:"M13.5 7.35461H15.5V8.6554H13.5V7.35461Z",fill:"currentColor"})]}),SE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})}),$E=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12.1665 13.5811V14.7803H3.66651V13.5811H12.1665Z",fill:"currentColor"}),o.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"})]}),AE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"})]}),EE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M6.1 3.1Q6.6 7.8 11.3 8.3Q6.6 8.8 6.1 13.5Q5.6 8.8 0.9 8.3Q5.6 7.8 6.1 3.1Z",fill:"currentColor"}),o.jsx("path",{d:"M11.9 1Q12.2 3.7 14.9 4Q12.2 4.3 11.9 7Q11.6 4.3 8.9 4Q11.6 3.7 11.9 1Z",fill:"currentColor"}),o.jsx("path",{d:"M12.5 9.4Q12.7 11.4 14.7 11.6Q12.7 11.8 12.5 13.8Q12.3 11.8 10.3 11.6Q12.3 11.4 12.5 9.4Z",fill:"currentColor"})]}),DE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"})]});var gp={};function Le({variant:e="ghost",size:t="md",icon:n,className:r,children:a,...l}){return o.jsxs("button",{type:"button",className:tt(gp.button,gp[e],gp[t],r),...l,children:[n!=null&&o.jsx("span",{className:gp.icon,children:n}),a]})}var Hh={};function Ta({icon:e,className:t,...n}){return o.jsxs("span",{className:tt(Hh.wrap,t),children:[e!=null&&o.jsx("span",{className:Hh.icon,children:e}),o.jsx("input",{className:Hh.input,...n})]})}async function zE(e){var r;if((r=navigator.clipboard)!=null&&r.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const t=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(t===void 0)return!1;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.left="-9999px",document.body.appendChild(n),n.select();try{return t("copy")}catch{return!1}finally{n.remove()}}var rs={};function lr({open:e,onClose:t,title:n,closeLabel:r="Close",description:a,children:l,footer:i,className:u,contentClassName:d,headless:m=!1}){return S.useEffect(()=>{if(!e)return;const v=f=>{f.key==="Escape"&&t()};return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[e,t]),e?Yy.createPortal(o.jsxs("div",{className:rs.root,role:"presentation",children:[o.jsx("div",{className:rs.mask,"aria-hidden":"true",onClick:t}),o.jsx("div",{className:tt(rs.dialog,u),role:"dialog","aria-modal":"true","aria-label":n,children:m?l:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:tt(rs.content,d),children:[o.jsxs("div",{className:rs.header,children:[o.jsx("h2",{className:rs.title,children:n}),o.jsx("button",{type:"button",className:rs.close,"aria-label":r,onClick:t,children:o.jsx(yE,{size:14})})]}),a!==void 0&&a!==""&&o.jsx("p",{className:rs.description,children:a}),l!==void 0&&o.jsx("div",{className:rs.body,children:l})]}),i!==void 0&&o.jsx("div",{className:rs.footer,children:i})]})})]}),document.body):null}var TE={};function ME({reconnecting:e,label:t="连接已断开,正在重连…"}){return e?o.jsx("div",{className:TE.banner,children:t}):null}const LE=[LC,RC,qC],IE=new Map([["python",()=>un(()=>import("./python-B6aJPvgy.js"),[],import.meta.url)],["ruby",()=>un(()=>import("./ruby-D3HLU4IP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)],["go",()=>un(()=>import("./go-C27-OAKa.js"),[],import.meta.url)],["rust",()=>un(()=>import("./rust-B1yitclQ.js"),[],import.meta.url)],["java",()=>un(()=>import("./java-CylS5w8V.js"),[],import.meta.url)],["c",()=>un(()=>import("./c-BIGW1oBm.js"),[],import.meta.url)],["cpp",()=>un(()=>import("./cpp-DddhVWhK.js"),__vite__mapDeps([6,7]),import.meta.url)],["csharp",()=>un(()=>import("./csharp-DSvCPggb.js"),[],import.meta.url)],["kotlin",()=>un(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url)],["swift",()=>un(()=>import("./swift-C2oV4EkX.js"),[],import.meta.url)],["php",()=>un(()=>import("./php-BHWCwDKR.js"),__vite__mapDeps([10,1,2,3,4,5]),import.meta.url)],["yaml",()=>un(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url)],["toml",()=>un(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url)],["ini",()=>un(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url)],["markdown",()=>un(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url)],["mdx",()=>un(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url)],["html",()=>un(()=>import("./html-CfGypltT.js").then(e=>e.a),__vite__mapDeps([1,2]),import.meta.url)],["css",()=>un(()=>import("./css-CLj8gQPS.js"),[],import.meta.url)],["scss",()=>un(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([11,2]),import.meta.url)],["less",()=>un(()=>import("./less-B1dDrJ26.js"),[],import.meta.url)],["sql",()=>un(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url)],["xml",()=>un(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([3,4]),import.meta.url)],["lua",()=>un(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([8,7]),import.meta.url)]]),RE=new Map([["typescript","typescript"],["ts","typescript"],["tsx","typescript"],["javascript","typescript"],["js","typescript"],["jsx","typescript"],["shellscript","shellscript"],["bash","shellscript"],["sh","shellscript"],["shell","shellscript"],["zsh","shellscript"],["json","json"],["jsonc","json"],["py","python"],["python","python"],["rb","ruby"],["ruby","ruby"],["go","go"],["rs","rust"],["rust","rust"],["java","java"],["c","c"],["cpp","cpp"],["cs","csharp"],["csharp","csharp"],["kotlin","kotlin"],["swift","swift"],["php","php"],["yaml","yaml"],["yml","yaml"],["toml","toml"],["ini","ini"],["md","markdown"],["markdown","markdown"],["mdx","mdx"],["html","html"],["css","css"],["scss","scss"],["less","less"],["sql","sql"],["xml","xml"],["lua","lua"]]),PE=Zw({name:"css-variables",variablePrefix:"--shiki-",fontStyle:!0}),qE=TC({forgiving:!0,regexConstructor:e=>vb(e,{lazyCompileLength:Number.POSITIVE_INFINITY})});let Uv;const FE=[{lang:"typescript",code:"const answer: number = 42"},{lang:"shellscript",code:`printf '%s\\n' "$HOME"`},{lang:"json",code:'{"ready":true}'}];function OE(){const e=Ww({themes:[PE],langs:LE,engine:qE});for(const t of FE)e.codeToTokens(t.code,{lang:t.lang,theme:"css-variables",tokenizeTimeLimit:0});return e}function Zp(){return Uv??(Uv=OE()),Uv}const Vv=new Set,Wf=new Set;let B7=0;function BE(e){return Wf.add(e),()=>{Wf.delete(e)}}function Gv(){return B7}function HE(e){const t=IE.get(e);return t===void 0||Zp().getLoadedLanguages().includes(e)?!0:(Vv.has(e)||(Vv.add(e),t().then(n=>{Zp().loadLanguageSync(n.default),B7+=1;for(const r of Wf)r()})),!1)}var t6,n6;(n6=(t6=setTimeout(()=>{Zp()},0)).unref)==null||n6.call(t6);function UE(e,t){const n=t===void 0?void 0:RE.get(t.toLowerCase());if(n!==void 0&&HE(n))return Zp().codeToHtml(e,{lang:n,theme:"css-variables"})}const VE=2;function Wv(e,t,n){var a;const r=(a=e.position)==null?void 0:a.start.offset;return r===void 0?-(n+1):t+r}var GE=class{constructor(e){se(this,"parse");se(this,"prevText","");se(this,"tailStart",0);se(this,"frozen",[]);se(this,"generation",0);se(this,"cached",null);this.parse=e}update(e){var l,i;if(this.cached!==null&&e===this.prevText)return this.cached;e.startsWith(this.prevText)||(this.prevText="",this.tailStart=0,this.frozen=[],this.generation+=1),this.prevText=e;const t=this.tailStart,n=this.parse(e.slice(t)).children;let r=Math.max(0,n.length-VE);if(r>0){const u=(i=(l=n[r-1])==null?void 0:l.position)==null?void 0:i.end.offset;if(u===void 0)r=0;else{for(const d of n.slice(0,r))this.frozen.push({node:d,key:Wv(d,t,this.frozen.length)});this.tailStart=t+u}}const a=n.slice(r).map((u,d)=>({node:u,key:Wv(u,t,d)}));return this.cached={frozen:[...this.frozen],tail:a,generation:this.generation},this.cached}};const WE=new RegExp(["\\p{Script_Extensions=Han}","\\p{Script_Extensions=Hiragana}","\\p{Script_Extensions=Katakana}","\\p{Script_Extensions=Hangul}","\\p{Script_Extensions=Bopomofo}"].join("|"),"u");function ZE(e){return e!==null&&e>=0&&WE.test(String.fromCodePoint(e))}const QE=function(e,t,n){const r=this.parser.constructs.attentionMarkers.null;if(r===void 0)throw new Error("micromark CommonMark attention markers are unavailable");const a=r,l=this.previous,i=Vc(l);let u=jt.eof;return d;function d(v){return v!==jt.asterisk?n(v):(u=v,e.enter("attentionSequence"),m(v))}function m(v){if(v===u)return e.consume(v),m;const f=e.exit("attentionSequence"),h=Vc(v),b=!h||h===Gf.characterGroupPunctuation&&!!i||a.includes(v),y=!i||i===Gf.characterGroupPunctuation&&!!h||a.includes(l),j=f.end.offset-f.start.offset>=2&&P0(l)&&ZE(v),C=y||j;return f._open=b,f._close=C,t(v)}},XE={name:"cjkFriendlyAttention",resolveAll:Bp.resolveAll,tokenize:QE},YE={text:{[jt.asterisk]:XE}};function H7(){return YE}const KE=function(e){if(e!==jt.backslash)return!0;const t=this.events.at(-1);return t===void 0?!1:t[1].type===Ea.characterEscape},JE=function(e,t,n){return r;function r(b){return b!==jt.backslash?n(b):(e.enter("mathText"),e.enter("mathTextSequence"),e.consume(b),a)}function a(b){return b!==jt.leftParenthesis?n(b):(e.consume(b),e.exit("mathTextSequence"),l)}function l(b){return b===jt.eof?n(b):b===jt.backslash?e.attempt({partial:!0,tokenize:f},v,i)(b):He(b)?(e.enter(Ea.lineEnding),e.consume(b),e.exit(Ea.lineEnding),l):u(b)}function i(b){return e.check({partial:!0,tokenize:h},n,u)(b)}function u(b){return e.enter("mathTextData"),e.consume(b),b===jt.backslash?d:m}function d(b){return b===jt.backslash?(e.consume(b),m):m(b)}function m(b){return b===jt.eof||b===jt.backslash||He(b)?(e.exit("mathTextData"),l(b)):(e.consume(b),m)}function v(b){return e.exit("mathText"),t(b)}function f(b,y,j){return C;function C(z){return z!==jt.backslash?j(z):(b.enter("mathTextSequence"),b.consume(z),N)}function N(z){return z!==jt.rightParenthesis?j(z):(b.consume(z),b.exit("mathTextSequence"),y)}}function h(b,y,j){return C;function C(z){return z!==jt.backslash?j(z):(b.enter(Ea.chunkString),b.consume(z),N)}function N(z){return z!==jt.leftParenthesis?j(z):(b.consume(z),b.exit(Ea.chunkString),y)}}};function U7(e,t,n,r){const a=function(l,i,u){const d=this;let m=!1;const v=d.events.at(-1),f=(v==null?void 0:v[1].type)===Ea.linePrefix?v[2].sliceSerialize(v[1],!0).length:0;return h;function h(O){return O!==e?u(O):(l.enter("mathFlow"),l.enter("mathFlowFence"),l.enter("mathFlowFenceSequence"),l.consume(O),b)}function b(O){return O!==t?u(O):(l.consume(O),l.exit("mathFlowFenceSequence"),l.exit("mathFlowFence"),e===jt.dollarSign?y:j)}function y(O){return O===jt.dollarSign?u(O):j(O)}function j(O){return O===jt.eof?u(O):O===e&&(e!==jt.dollarSign||!m)?l.attempt({partial:!0,tokenize:U},L,C)(O):He(O)?r?l.attempt(tD,N,u)(O):u(O):z(O)}function C(O){return e===jt.backslash?l.check({partial:!0,tokenize:W},u,E)(O):E(O)}function N(O){return l.attempt({partial:!0,tokenize:U},L,f?gt(l,j,Ea.linePrefix,f+1):j)(O)}function z(O){return l.enter("mathFlowValue"),m=O===jt.backslash,l.consume(O),M}function E(O){return l.enter("mathFlowValue"),m=!1,l.consume(O),P}function P(O){return O===e?(l.consume(O),M):M(O)}function M(O){return O===jt.eof||O===e||He(O)?(l.exit("mathFlowValue"),j(O)):(m=O===jt.backslash?!m:!1,l.consume(O),M)}function L(O){return l.exit("mathFlow"),i(O)}function U(O,q,F){return gt(O,K,Ea.linePrefix,Gf.tabSize);function K(ne){return ne!==e?F(ne):(O.enter("mathFlowFence"),O.enter("mathFlowFenceSequence"),O.consume(ne),le)}function le(ne){return ne!==n?F(ne):(O.consume(ne),O.exit("mathFlowFenceSequence"),gt(O,me,Ea.whitespace))}function me(ne){return ne!==jt.eof&&!He(ne)?F(ne):(O.exit("mathFlowFence"),q(ne))}}function W(O,q,F){return K;function K(me){return me!==e?F(me):(O.enter(Ea.chunkString),O.consume(me),le)}function le(me){return me!==t?F(me):(O.consume(me),O.exit(Ea.chunkString),q)}}};return{concrete:!0,name:e===jt.dollarSign?"sameLineDollarMathFlow":"backslashMathFlow",tokenize:a}}const eD=function(e,t,n){const r=this;return a;function a(i){return i===jt.eof?t(i):He(i)?(e.enter(Ea.lineEnding),e.consume(i),e.exit(Ea.lineEnding),l):n(i)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}},tD={partial:!0,tokenize:eD},nD={name:"backslashMathText",previous:KE,tokenize:JE},rD=U7(jt.backslash,jt.leftSquareBracket,jt.rightSquareBracket,!0),aD=U7(jt.dollarSign,jt.dollarSign,jt.dollarSign,!1),oD={flow:{[jt.backslash]:rD,[jt.dollarSign]:aD},text:{[jt.backslash]:nD}};function sD(){return oD}function iD(e){return Db(e,{extensions:[Ub(),H7()],mdastExtensions:[Lb()]})}function lD(e){return Db(e,{extensions:[Ub(),H7(),sD(),g$()],mdastExtensions:[Lb(),zS()]})}var $l={};function V7({code:e,lang:t,className:n,copyLabel:r="复制",copiedLabel:a="复制成功"}){const l=e.endsWith(`
|
|
451
|
+
`)?e.slice(0,-1):e,i=S.useMemo(()=>UE(l,t),[l,t,S.useSyncExternalStore(BE,Gv,Gv)]),u=S.useRef(null),[d,m]=S.useState(!1),v=S.useCallback(()=>{var h,b;d||zE(((b=(h=u.current)==null?void 0:h.querySelector("pre"))==null?void 0:b.textContent)??l).then(y=>{y&&(m(!0),window.setTimeout(()=>{m(!1)},1e3))})},[d,l]),f=i===void 0?o.jsx("pre",{className:$l.plain,children:o.jsx("code",{children:l})}):o.jsx("div",{dangerouslySetInnerHTML:{__html:i}});return o.jsxs("div",{ref:u,className:tt($l.block,"md-code-block",n),children:[o.jsx("div",{className:$l.bannerWrap,children:o.jsxs("div",{className:$l.banner,children:[o.jsx("div",{className:$l.infostring,children:t??""}),o.jsx("div",{className:$l.action,children:o.jsx("button",{type:"button",className:$l.copyButton,onClick:v,children:d?a:r})})]})}),f]})}function cD(e){const t={};for(const n of e.split(";")){const r=n.indexOf(":");if(r===-1)continue;const a=n.slice(0,r).trim().replace(/-([a-z])/g,(l,i)=>i.toUpperCase());t[a]=n.slice(r+1).trim()}return t}function G7(e,t){if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.nodeType!==Node.ELEMENT_NODE)return null;const n=e,r={key:t};for(const l of n.attributes)l.name==="class"?r.className=l.value:l.name==="style"?r.style=cD(l.value):r[l.name]=l.value;const a=[...n.childNodes].map(G7);return a.length===0?S.createElement(n.localName,r):S.createElement(n.localName,r,...a)}function Zf(e,t){let n;try{n=Hv.renderToString(e,{displayMode:t,throwOnError:!0})}catch(r){try{n=Hv.renderToString(e,{displayMode:t,strict:"ignore",throwOnError:!1})}catch{return o.jsx("span",{className:"katex-error",style:{color:"#cc0000"},title:String(r),children:e})}}return[...new DOMParser().parseFromString(n,"text/html").body.childNodes].map(G7)}var D0={};function W7(e){try{switch(new URL(e).protocol){case"http:":case"https:":case"mailto:":return e;default:return""}}catch{return""}}function uD(e){try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function Qf(){return{definitions:new Map,footnotes:new Map}}function Qp(e,t){for(const n of e){if(n.type==="definition"){const r=n.identifier.toUpperCase();t.definitions.has(r)||t.definitions.set(r,n)}else if(n.type==="footnoteDefinition"){const r=n.identifier.toUpperCase();t.footnotes.has(r)||t.footnotes.set(r,n)}"children"in n&&Qp(n.children,t)}}function Xf(e,t){return e.map(n=>Q2(n.node,n.key,t)).filter(n=>n!==null)}function Z2(e,t){const n=[];for(const r of e)(t||n.length>0)&&n.push(`
|
|
452
|
+
`),n.push(r);return t&&e.length>0&&n.push(`
|
|
453
|
+
`),n}function Z7(e,t){const n=[];for(const[r,a]of e.entries())if(a.type==="paragraph")n.push({paragraph:No(a.children,t)});else{const l=Q2(a,r,t);l!==null&&n.push({element:l})}return n}function No(e,t){return e.map((n,r)=>Q2(n,r,t))}function Q2(e,t,n){var r;switch(e.type){case"text":return e.value;case"paragraph":return o.jsx("p",{children:No(e.children,n)},t);case"heading":return S.createElement(`h${e.depth}`,{key:t},...No(e.children,n));case"blockquote":return o.jsx("blockquote",{children:Z2(No(e.children,n).filter(a=>a!==null),!0)},t);case"thematicBreak":return o.jsx("hr",{},t);case"break":return o.jsxs(S.Fragment,{children:[o.jsx("br",{}),`
|
|
454
|
+
`]},t);case"strong":return o.jsx("strong",{children:No(e.children,n)},t);case"emphasis":return o.jsx("em",{children:No(e.children,n)},t);case"delete":return o.jsx("del",{children:No(e.children,n)},t);case"inlineCode":{const a=e.value.replace(/\r?\n|\r/g," "),l=fD(a);if(l!==void 0)return o.jsx("code",{children:Y7(l,[a],"link")},t);const i=n.inLink===!0||(r=n.fileMentions)==null?void 0:r.resolve(a);return i!==void 0?o.jsx("code",{children:o.jsx("button",{type:"button",className:D0.fileMention,title:i.title,"aria-label":i.label,onClick:i.open,children:a})},t):o.jsx("code",{children:a},t)}case"html":return e.value;case"code":return dD(e,t,n);case"math":return o.jsx(S.Fragment,{children:Zf(e.value,!0)},t);case"inlineMath":return o.jsx(S.Fragment,{children:Zf(e.value,!1)},t);case"list":return mD(e,t,n);case"listItem":return X7(e,Q7(e),t,n);case"table":return hD(e,t,n);case"link":return K7(e.url,No(e.children,{...n,inLink:!0}),t);case"linkReference":return gD(e,t,n);case"image":return J7(e.url,e.alt??"",t);case"imageReference":return vD(e,t,n);case"footnoteReference":return bD(e,t,n);case"definition":case"footnoteDefinition":return null;default:return null}}function dD(e,t,n){var l,i,u;const r=e.lang??void 0;if(e.value==="")return o.jsx("pre",{children:o.jsx("code",{className:r===void 0?void 0:`language-${r}`})},t);const a=r===void 0||(l=/^[\w-]+/.exec(r))==null?void 0:l[0];return!n.streaming&&a==="math"?o.jsx(S.Fragment,{children:Zf(`${e.value}
|
|
455
|
+
`,!0)},t):o.jsx(V7,{code:`${e.value}
|
|
456
|
+
`,lang:n.streaming?void 0:a,copyLabel:(i=n.codeLabels)==null?void 0:i.copyLabel,copiedLabel:(u=n.codeLabels)==null?void 0:u.copiedLabel},t)}function pD(e){return(e.spread??!1)||e.children.some(Q7)}function Q7(e){return e.spread??e.children.length>1}function mD(e,t,n){const r=pD(e),a={};return typeof e.start=="number"&&e.start!==1&&(a.start=e.start),e.children.some(l=>typeof l.checked=="boolean")&&(a.className="contains-task-list"),S.createElement(e.ordered===!0?"ol":"ul",{key:t,...a},...e.children.map((l,i)=>X7(l,r,i,n)))}function X7(e,t,n,r){const a=Z7(e.children,r),l=typeof e.checked=="boolean";if(l){const d=o.jsx("input",{type:"checkbox",checked:e.checked===!0,disabled:!0},"task-checkbox"),m=a[0];m!==void 0&&"paragraph"in m?m.paragraph=m.paragraph.length>0?[d," ",...m.paragraph]:[d]:a.unshift({paragraph:[d]})}const i=[];for(const[d,m]of a.entries()){const v="paragraph"in m;(t||d!==0||!v)&&i.push(`
|
|
457
|
+
`),v?t?i.push(o.jsx("p",{children:m.paragraph},`p-${d}`)):i.push(o.jsx(S.Fragment,{children:m.paragraph},`p-${d}`)):i.push(m.element)}const u=a[a.length-1];return u!==void 0&&(t||!("paragraph"in u))&&i.push(`
|
|
458
|
+
`),o.jsx("li",{className:l?"task-list-item":void 0,children:i},n)}function hD(e,t,n){const r=e.align??null,[a,...l]=e.children;return o.jsx("div",{className:D0.tableScroll,children:o.jsxs("table",{children:[a!==void 0&&o.jsx("thead",{children:Zv(a,"th",r,0,n)}),l.length>0&&o.jsx("tbody",{children:l.map((i,u)=>Zv(i,"td",r,u+1,n))})]})},t)}function Zv(e,t,n,r,a){const l=n===null?e.children.length:n.length,i=[];for(let u=0;u<l;u++){const d=e.children[u],m=n==null?void 0:n[u];i.push(S.createElement(t,{key:u,style:m==null?void 0:{textAlign:m}},...d===void 0?[]:No(d.children,a)))}return o.jsx("tr",{children:i},r)}function Y7(e,t,n){const r=W7(e);return r===""?o.jsx(S.Fragment,{children:t},n):o.jsx("a",{href:r,...["http:","https:"].includes(new URL(r).protocol)?{target:"_blank",rel:"noopener noreferrer"}:{},children:t},n)}function K7(e,t,n){return Y7(k2(e),t,n)}function fD(e){if(e.trim()===e)try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function J7(e,t,n){const r=uD(W7(k2(e)));return r===void 0?o.jsx("span",{className:D0.imageAlt,children:t},n):o.jsx("img",{className:D0.image,src:r,alt:t,loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"},n)}function e8(e){return e.referenceType==="collapsed"?"][]":e.referenceType==="full"?`][${e.label??e.identifier}]`:"]"}function gD(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?o.jsxs(S.Fragment,{children:["[",No(e.children,n),e8(e)]},t):K7(r.url,No(e.children,{...n,inLink:!0}),t)}function vD(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?`![${e.alt??""}${e8(e)}`:J7(r.url,e.alt??"",t)}function bD(e,t,n){const r=e.identifier.toUpperCase(),a=n.footnoteCounts.get(r);return a===void 0&&n.footnoteOrder.push(r),n.footnoteCounts.set(r,(a??0)+1),o.jsx("sup",{children:String(n.footnoteOrder.indexOf(r)+1)},t)}function t8(e){const t=[];for(const n of e.footnoteOrder){const r=e.targets.footnotes.get(n);if(r===void 0)continue;const a=e.footnoteCounts.get(n)??0,l=[];for(let m=1;m<=a;m++)l.length>0&&l.push(" "),l.push("↩"),m>1&&l.push(o.jsx("sup",{children:String(m)},`re-${m}`));const i=Z7(r.children,e),u=i[i.length-1],d=i.map((m,v)=>"paragraph"in m?o.jsxs("p",{children:[m.paragraph,m===u&&o.jsxs(o.Fragment,{children:[" ",l]})]},`p-${v}`):m.element);(u===void 0||!("paragraph"in u))&&d.push(...l),t.push(o.jsx("li",{id:`user-content-fn-${k2(n.toLowerCase())}`,children:Z2(d,!0)},n))}return t.length===0?null:o.jsxs("section",{"data-footnotes":!0,className:"footnotes",children:[o.jsx("h2",{id:"footnote-label",className:"sr-only",children:"Footnotes"}),o.jsx("ol",{children:t})]},"footnotes")}function yD(e,t,n){const r=lD(e),a=Qf();Qp(r.children,a);const l={streaming:!1,codeLabels:t,fileMentions:n,targets:a,footnoteOrder:[],footnoteCounts:new Map},i=Z2(Xf(r.children.map((d,m)=>({node:d,key:m})),l),!1),u=t8(l);return u===null?i:[...i,`
|
|
459
|
+
`,u]}var xD=class{constructor(e){se(this,"codeLabels");se(this,"parser",new GE(iD));se(this,"generation",-1);se(this,"frozenCount",0);se(this,"frozenElements",[]);se(this,"frozenTargets",Qf());se(this,"frozenFootnoteOrder",[]);se(this,"frozenFootnoteCounts",new Map);se(this,"lastText",null);se(this,"lastRendered",[]);this.codeLabels=e}render(e){if(e===this.lastText)return this.lastRendered;const{frozen:t,tail:n,generation:r}=this.parser.update(e);r!==this.generation&&(this.generation=r,this.frozenCount=0,this.frozenElements=[],this.frozenTargets=Qf(),this.frozenFootnoteOrder=[],this.frozenFootnoteCounts=new Map);const a=t.slice(this.frozenCount);Qp(a.map(m=>m.node),this.frozenTargets);const l={definitions:new Map(this.frozenTargets.definitions),footnotes:new Map(this.frozenTargets.footnotes)};if(Qp(n.map(m=>m.node),l),a.length>0){const m={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:l,footnoteOrder:this.frozenFootnoteOrder,footnoteCounts:this.frozenFootnoteCounts},v=[...this.frozenElements];for(const f of Xf(a,m))v.length>0&&v.push(`
|
|
460
|
+
`),v.push(f);this.frozenElements=v,this.frozenCount=t.length}const i={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:l,footnoteOrder:[...this.frozenFootnoteOrder],footnoteCounts:new Map(this.frozenFootnoteCounts)},u=[...this.frozenElements];for(const m of Xf(n,i))u.length>0&&u.push(`
|
|
461
|
+
`),u.push(m);const d=t8(i);return d!==null&&u.push(`
|
|
462
|
+
`,d),this.lastText=e,this.lastRendered=u,this.lastRendered}};const Ul=S.memo(function({text:t,streaming:n=!1,codeLabels:r,fileMentions:a}){const l=S.useRef(null),i=S.useRef(r),u=S.useMemo(()=>n?((l.current===null||i.current!==r)&&(l.current=new xD(r),i.current=r),l.current.render(t)):(l.current=null,yD(t,r,a)),[t,n,r,a]);return o.jsx("div",{className:D0.markdown,children:u})});function Vl(e){if(!e.includes("$"))return e;const t=e.split(`
|
|
463
|
+
`);let n;return t.map(r=>{const a=/^\s*(`{3,}|~{3,})/.exec(r);return n!==void 0?(a!=null&&a[1][0]===n[0]&&a[1].length>=n.length&&(n=void 0),r):a!==null?(n=a[1],r):_D(r)}).join(`
|
|
464
|
+
`)}function _D(e){let t="",n=0;for(;n<e.length;){if(e[n]==="`"){let r=0;for(;e[n+r]==="`";)r++;const a="`".repeat(r),l=e.indexOf(a,n+r);if(l>=0){t+=e.slice(n,l+r),n=l+r;continue}t+=a,n+=r;continue}if(e[n]==="\\"&&n+1<e.length){t+=e.slice(n,n+2),n+=2;continue}t+=e[n]==="$"?"\\$":e[n],n++}return t}const Gl={copyLabel:"Copiar",copiedLabel:"Copiado"},wD="_planes_id60q_4",jD="_aviso_id60q_14",CD="_elegir_id60q_21",kD="_pastilla_id60q_29 _secundario_1l1rx_39",ND="_boton_id60q_30 _secundario_1l1rx_39",SD="_cabecera_id60q_39",$D="_titulo_id60q_52",AD="_ruta_id60q_58",ED="_nota_id60q_68",DD="_tareas_id60q_74",zD="_tarea_id60q_74",TD="_fila_id60q_84",MD="_numero_id60q_99",LD="_tituloDeTarea_id60q_105",ID="_estado_id60q_112",RD="_criterios_id60q_120",PD="_bloqueo_id60q_125",qD="_prosa_id60q_131",FD="_ficha_id60q_135",OD="_markdown_id60q_139",BD="_resumen_id60q_160",HD="_progreso_id60q_170",UD="_barra_id60q_201",VD="_pista_id60q_208",GD="_relleno_id60q_216",WD="_porcentaje_id60q_223",Tt={planes:wD,aviso:jD,elegir:CD,pastilla:kD,boton:ND,cabecera:SD,titulo:$D,ruta:AD,nota:ED,tareas:DD,tarea:zD,fila:TD,numero:MD,tituloDeTarea:LD,estado:ID,criterios:RD,bloqueo:PD,prosa:qD,ficha:FD,markdown:OD,resumen:BD,progreso:HD,barra:UD,pista:VD,relleno:GD,porcentaje:WD};function ZD({planes:e,error:t}){var h,b;const[n,r]=S.useState(void 0),[a,l]=S.useState(void 0),[i,u]=S.useState(!1);if(S.useEffect(()=>{l(void 0),u(!1)},[n]),e===void 0)return o.jsx("p",{className:Tt.aviso,children:t===void 0?"Leyendo los planes…":`No se han podido leer los planes: ${t}`});if(e.length===0)return o.jsx("p",{className:Tt.aviso,children:"Este proyecto no tiene ningún plan."});const d=e.find(y=>y.nombre===n)??e[0],m=((h=d.tareas)==null?void 0:h.tareas)??[],v=m.filter(y=>y.criterios.total>0&&y.criterios.hechos===y.criterios.total).length,f=m.length>0&&m.every(y=>y.progreso!==void 0);return o.jsxs("div",{className:Tt.planes,children:[e.length>1?o.jsx("div",{className:Tt.elegir,role:"group","aria-label":"Planes del proyecto",children:e.map(y=>o.jsx("button",{type:"button",className:Tt.pastilla,"aria-pressed":y.nombre===d.nombre,onClick:()=>r(y.nombre),children:y.nombre},y.nombre))}):null,o.jsxs("div",{className:Tt.cabecera,children:[o.jsx("h2",{className:Tt.titulo,children:((b=d.tareas)==null?void 0:b.titulo)??d.nombre}),o.jsx("span",{className:Tt.ruta,children:`/planes/${d.nombre}/`}),d.plan===void 0?null:o.jsx("button",{type:"button",className:Tt.boton,"aria-pressed":i,onClick:()=>u(y=>!y),children:i?"Ver las tareas":"Ver PLAN.md"})]}),i&&d.plan!==void 0?o.jsxs("div",{className:`${Tt.markdown} md-cuerpo`,children:[d.plan.recortado?o.jsx("p",{className:Tt.nota,children:"Recortado: el `PLAN.md` entero está en la carpeta del plan."}):null,o.jsx(Ul,{text:Vl(d.plan.texto),codeLabels:Gl})]}):d.tareas===void 0?o.jsx("p",{className:Tt.aviso,children:`Este plan todavía no tiene tareas: tiene ${d.ficheros.length===0?"la carpeta vacía":d.ficheros.join(", ")}, y el TASKS.md es el que las descompone.`}):m.length===0?o.jsx("p",{className:Tt.aviso,children:"El TASKS.md no tiene ninguna sección con forma de tarea («### 01 — Título»)."}):o.jsxs(o.Fragment,{children:[f?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Tt.resumen,"aria-label":"Por dónde va el plan",children:n8(m)}),o.jsx(r8,{tareas:m})]}):o.jsx("p",{className:Tt.nota,children:`Según el plan: ${v} de ${m.length} ${m.length===1?"tarea":"tareas"} con todos sus criterios marcados. El estado y las casillas los marca el agente; nadie los ha medido.`}),o.jsx("ol",{className:Tt.tareas,children:m.map(y=>o.jsx(XD,{tarea:y,abierta:a===y.numero,alPulsar:()=>l(j=>j===y.numero?void 0:y.numero)},y.numero))})]})]})}const Qv={pendiente:"pendiente","en-curso":"en curso",implementada:"implementada, sin comprobar",finalizada:"finalizada: todos sus criterios comprobados"};function n8(e){const t=r=>e.filter(a=>a.progreso===r).length,n=[`${t("finalizada")} de ${e.length} finalizadas`];return t("implementada")>0&&n.push(`${t("implementada")} implementadas sin comprobar`),t("en-curso")>0&&n.push(`${t("en-curso")} en curso`),t("pendiente")>0&&n.push(`${t("pendiente")} pendientes`),`Según el plan: ${n.join(" · ")}.`}function QD(e){const t=e.reduce((r,a)=>r+a.criterios.total,0);if(t===0)return;const n=e.reduce((r,a)=>r+a.criterios.hechos,0);return{hechos:n,total:t,porcentaje:Math.round(n/t*100)}}function r8({tareas:e}){const t=QD(e);if(t===void 0)return null;const n=`${t.hechos} de ${t.total} criterios comprobados`;return o.jsxs("div",{className:Tt.barra,children:[o.jsx("div",{className:Tt.pista,role:"progressbar","aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.porcentaje,title:n,children:o.jsx("div",{className:Tt.relleno,style:{width:`${t.porcentaje}%`}})}),o.jsx("span",{className:Tt.porcentaje,children:`${t.porcentaje} %`})]})}function XD({tarea:e,abierta:t,alPulsar:n}){const r=e.bloqueadaPorTexto===void 0||/^[\dT\s,–—\-ay]+$/.test(e.bloqueadaPorTexto)||/^(ninguna|nada)\b[\s—–-]*(puede empezar ya)?\.?$/i.test(e.bloqueadaPorTexto);return o.jsxs("li",{className:Tt.tarea,"data-progreso":e.progreso,children:[o.jsxs("button",{type:"button",className:Tt.fila,"aria-expanded":t,onClick:n,children:[e.progreso===void 0?null:o.jsx("span",{className:Tt.progreso,"data-progreso":e.progreso,role:"img","aria-label":Qv[e.progreso],title:Qv[e.progreso]}),o.jsx("span",{className:Tt.numero,children:e.numero}),o.jsx("span",{className:Tt.tituloDeTarea,children:e.titulo}),e.estado===void 0?null:o.jsx("span",{className:Tt.estado,children:e.estado}),e.criterios.total===0?null:o.jsx("span",{className:Tt.criterios,children:`${e.criterios.hechos} de ${e.criterios.total}`})]}),e.bloqueadaPor.length===0&&r?null:o.jsxs("p",{className:Tt.bloqueo,children:[e.bloqueadaPor.length===0?"":`bloqueada por ${e.bloqueadaPor.join(", ")}`,r?null:o.jsx("span",{className:Tt.prosa,children:`${e.bloqueadaPor.length===0?"":" · "}${e.bloqueadaPorTexto}`})]}),t?o.jsx("div",{className:`${Tt.ficha} md-cuerpo`,children:o.jsx(Ul,{text:Vl(e.cuerpo),codeLabels:Gl})}):null]})}const YD="_caja_8ybgr_7",KD="_colecciones_8ybgr_5",JD="_detalle_8ybgr_21",ez="_lista_8ybgr_27",tz="_aviso_8ybgr_52",nz="_vacio_8ybgr_59",rz="_filtro_8ybgr_66",az="_fila_8ybgr_77",oz="_nombre_8ybgr_101",sz="_marca_8ybgr_108",iz="_cuerpo_8ybgr_117",lz="_cabecera_8ybgr_124",cz="_titulo_8ybgr_137",uz="_ruta_8ybgr_143",dz="_codigo_8ybgr_144",pz="_recargar_8ybgr_157 _secundario_1l1rx_39",mz="_seccion_8ybgr_162",hz="_seccionTitulo_8ybgr_166",fz="_lineas_8ybgr_173",gz="_campos_8ybgr_174",vz="_tipo_8ybgr_196",bz="_grupo_8ybgr_202",yz="_subtitulo_8ybgr_212",xz="_nota_8ybgr_218",_z="_por_8ybgr_224",wz="_desdeDonde_8ybgr_229",jz="_enlace_8ybgr_236",Ye={caja:YD,colecciones:KD,detalle:JD,lista:ez,aviso:tz,vacio:nz,filtro:rz,fila:az,nombre:oz,marca:sz,cuerpo:iz,cabecera:lz,titulo:cz,ruta:uz,codigo:dz,recargar:pz,seccion:mz,seccionTitulo:hz,lineas:fz,campos:gz,tipo:vz,grupo:bz,subtitulo:yz,nota:xz,por:_z,desdeDonde:wz,enlace:jz};function Cz({foto:e,error:t,conectado:n,alPedir:r,alAbrirFichero:a}){const l=e!==void 0||t!==void 0;S.useEffect(()=>{n===!1||l||r()},[l,n,r]);const[i,u]=S.useState(void 0),[d,m]=S.useState("");if(!l)return o.jsx("p",{className:Ye.aviso,children:"Leyendo el modelo del proyecto…"});if(e===void 0)return o.jsxs("p",{className:Ye.aviso,children:["No se ha podido leer el modelo del proyecto: ",t]});if(e.total===0)return o.jsxs("div",{className:Ye.vacio,children:[o.jsx("p",{className:Ye.aviso,children:"El índice no encuentra ninguna colección en este proyecto."}),o.jsx("button",{type:"button",className:Ye.recargar,onClick:r,children:"Volver a leer"})]});const v=new Map(e.colecciones.map(C=>[C.nombre.toLowerCase(),C])),f=C=>v.has(C.toLowerCase()),h=i===void 0?void 0:v.get(i.toLowerCase()),b=e.colecciones.filter(C=>C.nombre.toLowerCase().includes(d.trim().toLowerCase())),y=new Set(e.entrada.map(C=>C.toLowerCase())),j=new Set(e.login.map(C=>C.toLowerCase()));return o.jsx("div",{className:Ye.caja,children:o.jsxs("div",{className:Ye.colecciones,children:[o.jsx("div",{className:Ye.detalle,children:h===void 0?o.jsx(kz,{foto:e,existe:f,alElegir:u,alPedir:r}):o.jsx(Nz,{coleccion:h,existe:f,alElegir:u,...a===void 0?{}:{alAbrirFichero:a}})}),o.jsxs("nav",{className:Ye.lista,"aria-label":"Colecciones del proyecto",children:[o.jsx("input",{className:Ye.filtro,type:"search",placeholder:"Filtrar colecciones","aria-label":"Filtrar colecciones",value:d,onChange:C=>m(C.target.value)}),o.jsx("button",{type:"button",className:Ye.fila,"aria-current":h===void 0?"true":void 0,onClick:()=>u(void 0),children:"Resumen del proyecto"}),b.map(C=>o.jsxs("button",{type:"button",className:Ye.fila,"aria-current":(h==null?void 0:h.nombre)===C.nombre?"true":void 0,onClick:()=>u(C.nombre),children:[o.jsx("span",{className:Ye.nombre,children:C.nombre}),y.has(C.nombre.toLowerCase())?o.jsx("span",{className:Ye.marca,children:"entrada"}):null,j.has(C.nombre.toLowerCase())?o.jsx("span",{className:Ye.marca,children:"login"}):null]},`${C.nombre}:${C.fichero}`)),e.total>e.colecciones.length?o.jsx("p",{className:Ye.nota,children:`Y ${e.total-e.colecciones.length} más que no caben en esta vista.`}):null]})]})})}function kz({foto:e,existe:t,alElegir:n,alPedir:r}){return o.jsxs("div",{className:Ye.cuerpo,children:[o.jsxs("div",{className:Ye.cabecera,children:[o.jsx("h2",{className:Ye.titulo,children:`${e.total} ${e.total===1?"colección":"colecciones"}`}),o.jsx("button",{type:"button",className:Ye.recargar,onClick:r,children:"Volver a leer"})]}),o.jsx(Oc,{titulo:"Por dónde arranca",children:e.entrada.length===0&&e.login.length===0?o.jsx("p",{className:Ye.nota,children:"El `app.xml` no declara colecciones de entrada ni de login que el índice vea."}):o.jsxs("ul",{className:Ye.lineas,children:[e.entrada.map(a=>o.jsxs("li",{children:["entrada · ",o.jsx(Xp,{nombre:a,existe:t,alElegir:n})]},`e:${a}`)),e.login.map(a=>o.jsxs("li",{children:["login · ",o.jsx(Xp,{nombre:a,existe:t,alElegir:n})]},`l:${a}`))]})}),o.jsx(Oc,{titulo:"Referencias a colecciones que no existen",children:e.rotas.length===0?o.jsx("p",{className:Ye.nota,children:"Ninguna que el índice vea."}):o.jsx("ul",{className:Ye.lineas,children:e.rotas.map((a,l)=>o.jsxs("li",{children:[o.jsx(o8,{referencia:a,existe:t,alElegir:n}),` → ${a.hacia} `,o.jsx("span",{className:Ye.por,children:a.por})]},l))})})]})}function Nz({coleccion:e,existe:t,alElegir:n,alAbrirFichero:r}){return o.jsxs("div",{className:Ye.cuerpo,children:[o.jsxs("div",{className:Ye.cabecera,children:[o.jsx("h2",{className:Ye.titulo,children:e.nombre}),o.jsx("span",{className:Ye.ruta,children:e.fichero}),r===void 0?null:o.jsx("button",{type:"button",className:Ye.recargar,onClick:()=>r(e.fichero.replace(/^\//,"")),children:"Abrir"})]}),o.jsx(Oc,{titulo:`Campos · ${e.campos.length}`,children:e.campos.length===0?o.jsx("p",{className:Ye.nota,children:"Sin campos declarados."}):o.jsx("ul",{className:Ye.campos,children:e.campos.map(a=>o.jsxs("li",{children:[o.jsx("span",{className:Ye.codigo,children:a.nombre}),a.tipo===void 0?null:o.jsx("span",{className:Ye.tipo,children:a.tipo})]},a.nombre))})}),e.eventos.length+e.nodos.length+e.conexiones.length===0?null:o.jsx(Oc,{titulo:"Eventos, nodos y conexiones",children:o.jsxs("ul",{className:Ye.lineas,children:[e.eventos.map(a=>o.jsxs("li",{children:["evento · ",o.jsx("span",{className:Ye.codigo,children:a})]},`ev:${a}`)),e.nodos.map(a=>o.jsxs("li",{children:["nodo · ",o.jsx("span",{className:Ye.codigo,children:a})]},`no:${a}`)),e.conexiones.map(a=>o.jsxs("li",{children:["conexión · ",o.jsx("span",{className:Ye.codigo,children:a})]},`co:${a}`))]})}),o.jsx(Oc,{titulo:"Apunta a",children:e.apuntaA.length===0?o.jsx("p",{className:Ye.nota,children:"A nada que el índice vea."}):o.jsx(Xv,{referencias:e.apuntaA,lado:"hacia",existe:t,alElegir:n})}),o.jsx(Oc,{titulo:"Le apuntan",children:e.leApuntan.length===0?o.jsxs("p",{className:Ye.nota,children:["Nada que el índice vea. No concluyas que no se usa: el índice no ve un"," ",o.jsx("span",{className:Ye.codigo,children:"getCollection(variable)"})," ni un nombre compuesto al ejecutar."]}):o.jsx(Xv,{referencias:e.leApuntan,lado:"desde",existe:t,alElegir:n})})]})}const Sz=[{confianza:"resuelta",titulo:"Por atributo"},{confianza:"script",titulo:"Por script"},{confianza:"mencion",titulo:"Menciones",nota:"Señal floja: un texto que coincide con el nombre de una colección, no una llamada resuelta."}];function Xv({referencias:e,lado:t,existe:n,alElegir:r}){return o.jsx(o.Fragment,{children:Sz.map(({confianza:a,titulo:l,nota:i})=>{const u=e.filter(d=>fy(d)===a);return u.length===0?null:o.jsxs("div",{className:Ye.grupo,"data-confianza":a,children:[o.jsx("p",{className:Ye.subtitulo,children:`${l} · ${u.length}`}),i===void 0?null:o.jsx("p",{className:Ye.nota,children:i}),o.jsx("ul",{className:Ye.lineas,children:u.map((d,m)=>o.jsxs("li",{children:[t==="hacia"?o.jsxs(o.Fragment,{children:[o.jsx(Xp,{nombre:a8(d.hacia),existe:n,alElegir:r}),d.hacia.includes(".")?o.jsx("span",{className:Ye.codigo,children:d.hacia.slice(d.hacia.indexOf("."))}):null,o.jsx("span",{className:Ye.desdeDonde,children:` desde ${d.desde}`})]}):o.jsx(o8,{referencia:d,existe:n,alElegir:r})," ",o.jsx("span",{className:Ye.por,children:d.por})]},m))})]},a)})})}function a8(e){return e.split(/[.:]/)[0]}function Xp({nombre:e,existe:t,alElegir:n}){return t(e)?o.jsx("button",{type:"button",className:Ye.enlace,onClick:()=>n(e),children:e}):o.jsx("span",{className:Ye.codigo,children:e})}function o8({referencia:e,existe:t,alElegir:n}){if(e.desde.startsWith("/"))return o.jsx("span",{className:Ye.codigo,children:e.desde});const r=a8(e.desde);return o.jsxs(o.Fragment,{children:[o.jsx(Xp,{nombre:r,existe:t,alElegir:n}),e.desde.length>r.length?o.jsx("span",{className:Ye.codigo,children:e.desde.slice(r.length)}):null]})}function Oc({titulo:e,children:t}){return o.jsxs("section",{className:Ye.seccion,children:[o.jsx("h3",{className:Ye.seccionTitulo,children:e}),t]})}const $z="_frame_1s1wd_10",Az="_sidebarCol_1s1wd_39",Ez="_centerCol_1s1wd_46",Dz="_detailsCol_1s1wd_53",zz="_handle_1s1wd_68",h0={frame:$z,sidebarCol:Az,centerCol:Ez,detailsCol:Dz,handle:zz},Tz="_root_6hsqj_6",Mz="_header_6hsqj_8",Lz="_titleRow_6hsqj_8",Iz="_titleCluster_6hsqj_9",Rz="_crumbs_6hsqj_9",Pz="_crumbSeg_6hsqj_122",qz="_crumb_6hsqj_9",Fz="_crumbCurrent_6hsqj_160",Oz="_headerActions_6hsqj_9",Bz="_headerUtilities_6hsqj_9",Hz="_tabs_6hsqj_10",Uz="_tab_6hsqj_10",Vz="_tabActive_6hsqj_10",Gz="_viewArea_6hsqj_10",Wz="_body_6hsqj_10",vn={root:Tz,header:Mz,titleRow:Lz,titleCluster:Iz,crumbs:Rz,crumbSeg:Pz,crumb:qz,crumbCurrent:Fz,headerActions:Oz,headerUtilities:Bz,tabs:Hz,tab:Uz,tabActive:Vz,viewArea:Gz,body:Wz},Yf=560,Yp=360,Kp=480,Kf=1400;function Zz({anchoVentana:e,anchoBarra:t,anchoPanel:n,barraPlegadaPorElUsuario:r,panelAbierto:a}){const l=Number.isFinite(e)&&e>0?e:Number.POSITIVE_INFINITY,i=Math.max(n,Yp);return a?!r&&l>=t+Yf+i?{barra:"abierta",panel:"columna"}:l>=Yf+i?{barra:"plegada",panel:"columna"}:{barra:r?"plegada":"abierta",panel:"centro"}:{barra:r?"plegada":"abierta",panel:"cerrado"}}function Jf(e,t){if(!Number.isFinite(e))return Kp;const n=t===void 0||!Number.isFinite(t)?Kf:Math.max(Yp,Math.min(Kf,Math.round(t-Yf)));return Math.round(Math.min(Math.max(e,Yp),n))}const Qz="_alto_1583r_9",Xz="_cabecera_1583r_16",Yz="_tirador_1583r_36",Kz="_tiradorEnFila_1583r_67",Jz="_tiradorDelPanel_1583r_79",eT="_tiradorDelPanelEnFila_1583r_92",Lc={alto:Qz,cabecera:Xz,tirador:Yz,tiradorEnFila:Kz,tiradorDelPanel:Jz,tiradorDelPanelEnFila:eT},Jp=320,e2=220,t2=560,s8=.6,Yv=16;function Kv(e,t){if(!Number.isFinite(e))return Jp;const n=t===void 0?t2:Math.max(e2,Math.min(t2,Math.round(t*s8)));return Math.round(Math.min(Math.max(e,e2),n))}function tT({centro:e,barra:t,panel:n,cabecera:r,barraContraida:a=!1,anchoBarra:l,anchoPanel:i,alRedimensionarBarra:u,alRedimensionarPanel:d}){const m=S.useRef(null),v=S.useRef(null),[f,h]=S.useState(0),[b,y]=S.useState(!1),j=Kv(l??Jp),C=Jf(i??Kp),N=u!==void 0&&!a,z=d!==void 0&&n!==void 0,E=a?"0px":`min(${j}px, ${Math.round(s8*100)}vw)`,P=n===void 0?"0px":`${C}px`;return S.useEffect(()=>{const M=m.current;if(M===null||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{const U=M.getBoundingClientRect().width;U>0&&h(U)});return L.observe(M),()=>L.disconnect()},[]),o.jsxs("div",{ref:v,className:tt(h0.frame,Lc.alto),...b?{"data-dragging":"true"}:{},...n===void 0?{"data-details-collapsed":"true"}:{},style:{gridTemplateColumns:`${E} minmax(0, 1fr) ${P}`,...r===void 0?{}:{gridTemplateRows:"auto minmax(0, 1fr)"}},children:[r===void 0?null:o.jsx("div",{className:Lc.cabecera,children:r}),o.jsx("div",{className:h0.sidebarCol,children:a?null:t}),N?o.jsx(Jv,{lado:"sidebar",etiqueta:"Ancho de la barra lateral",ancho:j,minimo:e2,maximo:t2,porOmision:Jp,izquierda:E,clase:Lc.tirador,...r===void 0?{}:{claseDeFila:Lc.tiradorEnFila},marcoNodo:v,medir:(M,L)=>M-L.left,acotar:Kv,alPedir:u,alArrastrar:y}):null,o.jsx("div",{ref:m,className:tt(h0.centerCol,vn.root),style:f===0?void 0:{"--dsh-conversation-column-width":`${f}px`},children:e}),o.jsx("div",{className:tt(h0.detailsCol,vn.root),children:n}),z?o.jsx(Jv,{lado:"details",etiqueta:"Ancho del panel",ancho:C,minimo:Yp,maximo:Kf,porOmision:Kp,izquierda:`calc(100% - ${C}px)`,clase:Lc.tiradorDelPanel,...r===void 0?{}:{claseDeFila:Lc.tiradorDelPanelEnFila},marcoNodo:v,medir:(M,L)=>L.right-M,acotar:Jf,alPedir:d,alArrastrar:y}):null]})}function Jv({lado:e,etiqueta:t,ancho:n,minimo:r,maximo:a,porOmision:l,izquierda:i,clase:u,claseDeFila:d,marcoNodo:m,medir:v,acotar:f,alPedir:h,alArrastrar:b}){const[y,j]=S.useState(!1),C=E=>{j(E),b(E)},N=(E,P)=>{h(f(E,typeof window>"u"?void 0:window.innerWidth),P)},z=(E,P)=>{const M=m.current;M!==null&&N(v(E,M.getBoundingClientRect()),P)};return o.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":t,"aria-valuenow":n,"aria-valuemin":r,"aria-valuemax":a,tabIndex:0,className:tt(h0.handle,u,d),"data-side":e,...y?{"data-dragging":"true"}:{},style:{left:i},onPointerDown:E=>{var P,M;if(!(E.button>0)){E.preventDefault(),C(!0);try{(M=(P=E.currentTarget).setPointerCapture)==null||M.call(P,E.pointerId)}catch{}}},onPointerMove:E=>{y&&z(E.clientX,!1)},onPointerUp:E=>{y&&(C(!1),z(E.clientX,!0))},onPointerCancel:()=>{y&&(C(!1),N(n,!0))},onLostPointerCapture:()=>{y&&(C(!1),N(n,!0))},onKeyDown:E=>{const P=e==="details"?-1:1,M=E.key==="ArrowLeft"?n-Yv*P:E.key==="ArrowRight"?n+Yv*P:E.key==="Home"?r:E.key==="End"?a:void 0;M!==void 0&&(E.preventDefault(),N(M,!0))},onDoubleClick:()=>N(l,!0)})}const nT="_root_1tziz_20",rT="_regionArea_1tziz_79",aT="_footArea_1tziz_83",oT="_settingsArea_1tziz_338",vp={root:nT,regionArea:rT,footArea:aT,settingsArea:oT},sT="_root_1cpu6_7",iT="_sectionHeader_1cpu6_8",lT="_listArea_1cpu6_9",cT="_treeBody_1cpu6_9",uT="_fade_1cpu6_10",dT="_list_1cpu6_9",pT="_groupSection_1cpu6_10",mT="_empty_1cpu6_11",Ur={root:sT,sectionHeader:iT,listArea:lT,treeBody:cT,fade:uT,list:dT,groupSection:pT,empty:mT},hT="_projectRow_592sx_5",fT="_sessionRow_592sx_5",gT="_title_592sx_7",vT="_slot_592sx_6",bT="_chevron_592sx_6",yT="_folder_592sx_6",xT="_arrow_592sx_92",_T="_arrowOpen_592sx_96",wT="_projectText_592sx_7",jT="_meta_592sx_7",CT="_iconButton_592sx_8",Ar={projectRow:hT,sessionRow:fT,title:gT,slot:vT,chevron:bT,folder:yT,arrow:xT,arrowOpen:_T,projectText:wT,meta:jT,iconButton:CT},kT="_triggerRow_kwik8_13",NT="_trigger_kwik8_13",ST="_triggerLabel_kwik8_69",Uh={triggerRow:kT,trigger:NT,triggerLabel:ST};function Mm(e,t,n){S.useEffect(()=>{if(!e)return;const r=l=>{const i=t.current;i!==null&&l.target instanceof Node&&!i.contains(l.target)&&n()},a=l=>{l.key==="Escape"&&n()};return document.addEventListener("mousedown",r),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",a)}},[e,t,n])}const $T="_ancla_1klgz_8",AT="_menu_1klgz_18",ET="_opcion_1klgz_35",DT="_destructiva_1klgz_57",a0={ancla:$T,menu:AT,opcion:ET,destructiva:DT};function zT({titulo:e,className:t,alRenombrar:n,alBorrar:r}){const a=S.useRef(null),[l,i]=S.useState(!1),u=S.useCallback(()=>i(!1),[]);Mm(l,a,u);const d=m=>()=>{i(!1),m()};return o.jsxs("span",{className:tt(a0.ancla,t),"data-abierto":l?"":void 0,ref:a,children:[o.jsx("button",{type:"button",className:Ar.iconButton,"aria-label":`opciones de «${e}»`,"aria-haspopup":"menu","aria-expanded":l,onClick:()=>i(m=>!m),children:o.jsx(gE,{size:16})}),l?o.jsxs("div",{className:a0.menu,role:"menu",children:[o.jsxs("button",{type:"button",role:"menuitem",className:a0.opcion,onClick:d(n),children:[o.jsx(G2,{size:16}),"Renombrar"]}),o.jsxs("button",{type:"button",role:"menuitem",className:tt(a0.opcion,a0.destructiva),onClick:d(r),children:[o.jsx(W2,{size:16}),"Eliminar"]})]}):null]})}const TT=14;function ru({children:e,lado:t=TT}){return o.jsx("svg",{"aria-hidden":"true",focusable:"false",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e})}function Lm(){return o.jsx(ru,{lado:12,children:o.jsx("path",{d:"M19 9l-7 7-7-7"})})}function MT(){return o.jsxs(ru,{children:[o.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),o.jsx("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"})]})}function LT(){return o.jsx(ru,{children:o.jsx("path",{d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}function IT(){return o.jsx(ru,{children:o.jsx("path",{d:"M13 10V3L4 14h7v7l9-11h-7z"})})}function RT(){return o.jsx(ru,{lado:16,children:o.jsx("path",{d:"M5 10l7-7m0 0l7 7m-7-7v18"})})}function PT(){return o.jsx(ru,{children:o.jsx("path",{d:"M12 5v14M5 12h14"})})}const qT="_caja_h7izr_4",FT="_select_h7izr_15",OT="_aspecto_h7izr_28",BT="_flecha_h7izr_49",HT="_girando_h7izr_67 _girando_jnvvl_174",o0={caja:qT,select:FT,aspecto:OT,flecha:BT,girando:HT};function us({className:e,children:t,cargando:n,...r}){return o.jsxs("span",{className:o0.caja,children:[o.jsx("select",{...r,...n===!0?{"aria-busy":"true"}:{},className:tt(e??o0.aspecto,o0.select),children:t}),o.jsx("span",{className:o0.flecha,"aria-hidden":"true",children:n===!0?o.jsx("span",{className:o0.girando}):o.jsx(Lm,{})})]})}const e5="/imagen-del-proyecto",UT="/icono-del-proyecto";function VT(e){return`${UT}?id=${encodeURIComponent(e)}`}function GT(e,t){return e.split(`](${e5}?`).join(`](${t}${e5}?`)}function em({children:e,lado:t,relleno:n,className:r,icono:a}){return o.jsx("svg",{...r===void 0?{}:{className:r},...a===void 0?{}:{"data-icono":a},"aria-hidden":"true",focusable:"false",width:t,height:t,viewBox:"0 0 24 24",fill:n===!0?"currentColor":"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e})}function X2({size:e=14}){return o.jsxs(em,{lado:e,children:[o.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),o.jsx("circle",{cx:"9",cy:"7",r:"4"}),o.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),o.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}function WT({fijado:e,size:t=14}){return o.jsxs(em,{lado:t,relleno:e,children:[o.jsx("path",{d:"M12 17v5"}),o.jsx("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"})]})}function i8({id:e,lado:t,respaldo:n=null,className:r}){const[a,l]=S.useState(void 0);return a===e?o.jsx(o.Fragment,{children:n}):o.jsx("img",{...r===void 0?{}:{className:r},src:VT(e),alt:"","aria-hidden":"true",width:t,height:t,draggable:!1,"data-icono-de-app":"",onError:()=>l(e)})}const ZT={webstudio:o.jsxs(o.Fragment,{children:[o.jsxs("g",{children:[o.jsx("path",{fill:"#4cabd5",d:"M110.34,31.68Q94.47,14.54,71.66,14.54T33,31.45a63.27,63.27,0,0,0-4.76,5.72L39.8,52.94a41.25,41.25,0,0,1,6.09-8.65Q56.51,32.72,71.74,32.72T97.5,44.44A39.87,39.87,0,0,1,108,72,39.72,39.72,0,0,1,97.42,99.47Q86.8,111.2,71.74,111.2T46,99.64a41.92,41.92,0,0,1-4.77-6.23L29.87,108.89c1,1.22,2,2.42,3.1,3.59q15.89,16.9,39,16.9a50.11,50.11,0,0,0,20.89-4.54,51.51,51.51,0,0,0,17.23-12.52,56.29,56.29,0,0,0,16.11-40.2A57.61,57.61,0,0,0,110.34,31.68Z"}),o.jsx("path",{fill:"#a4c9dd",d:"M24.76,89.06,35.45,74.22,24.76,59.55l-4.61-6.28A60.24,60.24,0,0,0,17.25,72a59.41,59.41,0,0,0,4,21.91l.23-.33Z"}),o.jsx("path",{fill:"#a4c9dd",d:"M86.22,90.19H57.08A12,12,0,0,1,52,67.35c0-.38-.06-.78-.06-1.16A13.72,13.72,0,0,1,78.34,61a6.63,6.63,0,0,1,4.45-1.66,6.87,6.87,0,0,1,6.85,6.85,6.78,6.78,0,0,1-1.09,3.7,10.28,10.28,0,0,1-2.33,20.3Z"}),o.jsx("path",{fill:"#fff",d:"M60.78,76.55a1.6,1.6,0,1,1,1.6-1.6A1.59,1.59,0,0,1,60.78,76.55Zm2.57-5.82a2,2,0,1,1,2-2A2,2,0,0,1,63.35,70.73Zm0,12a1.6,1.6,0,0,1,0-3.2,1.6,1.6,0,0,1,0,3.2Zm6.23-14.23a2.4,2.4,0,1,1,2.4-2.4A2.39,2.39,0,0,1,69.58,68.55Zm0,16.8a1.6,1.6,0,1,1,1.6-1.6A1.59,1.59,0,0,1,69.58,85.35ZM75.8,71.53a2.8,2.8,0,1,1,2.8-2.8A2.8,2.8,0,0,1,75.8,71.53Zm0,11.25a1.6,1.6,0,1,1,1.6-1.6A1.61,1.61,0,0,1,75.8,82.78Zm2.58-6.23A1.6,1.6,0,1,1,80,75,1.59,1.59,0,0,1,78.38,76.55Z"})]}),o.jsx("g",{children:o.jsx("rect",{fill:"none",width:"144",height:"144"})})]}),cloudstudio:o.jsxs(o.Fragment,{children:[o.jsxs("g",{children:[o.jsx("path",{fill:"#4cabd5",d:"M110.34,31.68Q94.47,14.54,71.66,14.54T33,31.45a63.27,63.27,0,0,0-4.76,5.72L39.8,53a41,41,0,0,1,6.09-8.66Q56.51,32.72,71.74,32.72T97.5,44.44A39.87,39.87,0,0,1,108,72,39.72,39.72,0,0,1,97.42,99.47Q86.8,111.2,71.74,111.2T46,99.64a41.48,41.48,0,0,1-4.77-6.24L29.87,108.89c1,1.22,2,2.42,3.1,3.59q15.89,16.9,39,16.9a50.11,50.11,0,0,0,20.89-4.54,51.51,51.51,0,0,0,17.23-12.52,56.29,56.29,0,0,0,16.11-40.2A57.61,57.61,0,0,0,110.34,31.68Z"}),o.jsx("path",{fill:"#cd8040",d:"M24.76,89.06,35.45,74.22,24.76,59.55l-4.61-6.28A60.28,60.28,0,0,0,17.25,72a59.41,59.41,0,0,0,4,21.91l.23-.33Z"}),o.jsx("path",{fill:"#cd8040",d:"M87.15,88.05H58a12,12,0,0,1-5.09-22.84c0-.4-.05-.78-.05-1.15a13.72,13.72,0,0,1,26.41-5.2,6.77,6.77,0,0,1,4.44-1.66,6.87,6.87,0,0,1,6.86,6.86,6.73,6.73,0,0,1-1.1,3.69,10.28,10.28,0,0,1-2.33,20.3Zm-7.1-18.61L70.63,60a.88.88,0,0,0-.62-.24.91.91,0,0,0-.62.24L60,69.41a1,1,0,0,0-.26.65.84.84,0,0,0,.85.85h6v9.43a.88.88,0,0,0,.86.86h5.14a.88.88,0,0,0,.86-.86V70.91h6a.86.86,0,0,0,.85-.85A.89.89,0,0,0,80.05,69.44Z"})]}),o.jsx("g",{children:o.jsx("rect",{fill:"none",width:"144",height:"144"})})]})},QT=o.jsxs(o.Fragment,{children:[o.jsxs("g",{children:[o.jsx("path",{fill:"#4cabd5",d:"M120,21.62Q100.15.18,71.64.18T23.29,21.32a78,78,0,0,0-6,7.16L31.82,48.19a50.81,50.81,0,0,1,7.62-10.82Q52.7,22.91,71.74,22.91t32.2,14.66A49.81,49.81,0,0,1,117.1,72a49.65,49.65,0,0,1-13.26,34.39Q90.58,121,71.74,121T39.55,106.56a51.56,51.56,0,0,1-6-7.79L19.41,118.12c1.22,1.52,2.5,3,3.88,4.49Q43.14,143.74,72,143.74a62.81,62.81,0,0,0,26.12-5.68,64.34,64.34,0,0,0,21.54-15.65q20.13-21.14,20.13-50.25A72,72,0,0,0,120,21.62Z"}),o.jsx("path",{fill:"#1f3c6e",d:"M13,93.33,26.38,74.79,13,56.44,7.25,48.6A75.47,75.47,0,0,0,3.63,72a74.23,74.23,0,0,0,5,27.38l.29-.4Z"})]}),o.jsx("g",{children:o.jsx("rect",{fill:"none",width:"144",height:"144"})})]});function Y2({entorno:e,size:t=20,className:n}){return o.jsx("svg",{viewBox:"0 0 144 144",width:t,height:t,className:n,"aria-hidden":"true",focusable:"false",children:ZT[e]??QT})}function Qc(e,t=new Date){const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=new Intl.DateTimeFormat("es",{day:"numeric",month:"short",...n.getFullYear()===t.getFullYear()?{}:{year:"numeric"}}).format(n),a=new Intl.DateTimeFormat("es",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(n);return`${r} ${a}`}function XT(e,t=new Date){const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=(u,d)=>u.getFullYear()===d.getFullYear()&&u.getMonth()===d.getMonth()&&u.getDate()===d.getDate(),a=new Intl.DateTimeFormat("es",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(n);if(r(n,t))return`hoy a las ${a}`;const l=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return r(n,l)?`ayer a las ${a}`:`${new Intl.DateTimeFormat("es",{day:"numeric",month:"short",...n.getFullYear()===t.getFullYear()?{}:{year:"numeric"}}).format(n)} a las ${a}`}function YT(e){const t=new Date(e);if(!Number.isNaN(t.getTime()))return new Intl.DateTimeFormat("es",{dateStyle:"long",timeStyle:"medium"}).format(t)}const KT="_reseteoDeBoton_1wco0_16",JT="_filaConAccion_1wco0_28",eM="_filaAbierta_1wco0_44",tM="_sesionAbierta_1wco0_44",nM="_tituloActivo_1wco0_72",rM="_plegador_1wco0_85",aM="_glifoDeChevron_1wco0_102",oM="_glifoDeCarpeta_1wco0_106",sM="_iconoDeApp_1wco0_112",iM="_cuerpoDeFila_1wco0_118",lM="_entorno_1wco0_131",cM="_sinSesiones_1wco0_147",uM="_avisoOcultos_1wco0_157",dM="_textoDeAviso_1wco0_165",pM="_enlaceDeAviso_1wco0_174",mM="_historica_1wco0_195",hM="_rellenoDeSeccion_1wco0_254",fM="_accionesDeFila_1wco0_276",gM="_accionFija_1wco0_294",vM="_fijar_1wco0_305",bM="_compartido_1wco0_318",yM="_estadoLocal_1wco0_317",xM="_rotulo_1wco0_347",_M="_filaDeEntorno_1wco0_366",wM="_iconoDeEntorno_1wco0_381",jM="_marcaDeTarea_1wco0_394",CM="_fichaDeSesion_1wco0_395",kM="_selloDeFecha_1wco0_396",NM="_actividad_1wco0_435",SM="_separadorDePie_1wco0_464",$M="_version_1wco0_470",AM="_filaConRama_1wco0_485",EM="_ramaDeProyecto_1wco0_495",dt={reseteoDeBoton:KT,filaConAccion:JT,filaAbierta:eM,sesionAbierta:tM,tituloActivo:nM,plegador:rM,glifoDeChevron:aM,glifoDeCarpeta:oM,iconoDeApp:sM,cuerpoDeFila:iM,entorno:lM,sinSesiones:cM,avisoOcultos:uM,textoDeAviso:dM,enlaceDeAviso:pM,historica:mM,rellenoDeSeccion:hM,accionesDeFila:fM,accionFija:gM,fijar:vM,compartido:bM,estadoLocal:yM,rotulo:xM,filaDeEntorno:_M,iconoDeEntorno:wM,marcaDeTarea:jM,fichaDeSesion:CM,selloDeFecha:kM,actividad:NM,separadorDePie:SM,version:$M,filaConRama:AM,ramaDeProyecto:EM},DM=e=>e===void 0?void 0:Qc(e);function l8(e){const t=e.filter(r=>r.ultimoTurno!==void 0),n=e.filter(r=>r.ultimoTurno===void 0).reverse();return t.sort((r,a)=>(a.ultimoTurno??"").localeCompare(r.ultimoTurno??"")),[...t,...n]}function zM({sesion:e,abriendo:t}){if(t)return o.jsx("span",{className:dt.actividad,title:"Abriendo…",children:"abriendo…"});if(e.trabajando===!0)return o.jsx("span",{className:dt.actividad,title:"El agente está trabajando…",children:"trabajando…"});const n=DM(e.ultimoTurno);return n===void 0?null:o.jsx("span",{className:dt.fichaDeSesion,children:o.jsx("span",{className:dt.selloDeFecha,children:n})})}function t5({p:e,desplegado:t,alPlegar:n,fijado:r,proyectoActivo:a,proyectoEnResumen:l,sesionActiva:i,abriendo:u,apagado:d,abriendoAlgo:m,alFijar:v,alAbrirProyecto:f,alNuevaSesion:h,alAbrirSesion:b,alAccionDeSesion:y}){const j=P=>u!==void 0&&u.proyecto===P&&u.sesion===void 0,C=P=>u!==void 0&&u.sesion===P,N=e.id===(l??a),z=e.id===t?o.jsx(CE,{size:16}):o.jsx(kE,{size:16}),E=l===void 0?i:void 0;return o.jsxs("div",{className:Ur.groupSection,children:[o.jsxs("div",{className:tt(Ar.projectRow,dt.filaConAccion,N&&dt.filaAbierta,e.rama!==void 0&&dt.filaConRama),...N?{"aria-current":"true"}:{},...j(e.id)?{"aria-busy":"true"}:{},children:[o.jsx("button",{type:"button",className:tt(dt.reseteoDeBoton,Ar.iconButton,dt.fijar),"data-fijado":r?"":void 0,"aria-pressed":r,"aria-label":`${r?"dejar de fijar":"fijar"} ${e.nombre}`,title:r?"Dejar de fijar":"Fijar arriba",disabled:d,onClick:()=>v(e.id,!r),children:o.jsx(WT,{fijado:r,size:14})}),o.jsxs("button",{type:"button",className:tt(dt.reseteoDeBoton,dt.plegador),"aria-expanded":e.id===t,"aria-label":`${e.id===t?"plegar":"desplegar"} las sesiones de ${e.nombre}`,onClick:n,children:[o.jsx("span",{className:tt(Ar.slot,Ar.folder,dt.glifoDeCarpeta),"aria-hidden":"true",children:e.icono===!0?o.jsx(i8,{id:e.id,lado:16,className:dt.iconoDeApp,respaldo:z}):z}),o.jsx("span",{className:tt(Ar.slot,Ar.chevron,dt.glifoDeChevron),"aria-hidden":"true",children:o.jsx(bE,{size:14,className:tt(Ar.arrow,e.id===t&&Ar.arrowOpen)})})]}),o.jsxs("button",{type:"button",className:tt(dt.reseteoDeBoton,dt.cuerpoDeFila),disabled:d||m,onClick:()=>f(e.id),children:[o.jsxs("span",{className:Ar.projectText,children:[o.jsx("span",{className:tt(Ar.title,N&&dt.tituloActivo),children:e.nombre}),e.rama===void 0?null:o.jsx("span",{className:tt(Ar.meta,dt.ramaDeProyecto),title:`Rama de origen: ${e.rama}`,"aria-hidden":"true",children:e.rama})]}),j(e.id)?o.jsx("span",{className:dt.actividad,title:(u==null?void 0:u.descargando)===!0?"Descargando el proyecto…":"Abriendo…",children:(u==null?void 0:u.descargando)===!0?"descargando…":"abriendo…"}):e.trabajando===!0||e.id!==t&&e.sesiones.some(P=>P.trabajando===!0)?o.jsx("span",{className:dt.actividad,title:"El agente está trabajando en este proyecto…",children:"trabajando…"}):null,e.compartido===!0?o.jsx("span",{className:dt.compartido,title:"Compartido contigo","aria-hidden":"true",children:o.jsx(X2,{size:14})}):null,o.jsx("span",{className:dt.estadoLocal,"data-local":e.local===!0?"":void 0,title:e.local===!0?"Descargado en este equipo":"No descargado: se bajará al abrirlo","aria-hidden":"true",children:e.local===!0?o.jsx(V2,{size:14}):o.jsx(O7,{size:14})})]}),o.jsx("span",{className:dt.accionFija,children:o.jsx("button",{type:"button",className:Ar.iconButton,disabled:d||m||e.trabajando===!0,...e.trabajando===!0?{title:"este proyecto está trabajando: pulsa su nombre para ver qué hace, y abre otra cuando termine"}:{},onClick:()=>h(e.id),"aria-label":`nueva sesión en ${e.nombre}`,children:o.jsx(hE,{size:16})})})]}),e.id!==t?null:e.sesiones.length===0?o.jsx("p",{className:tt(Ur.empty,dt.sinSesiones),children:"Sin sesiones todavía."}):l8(e.sesiones).map(P=>o.jsxs("div",{className:tt(Ar.sessionRow,dt.filaConAccion,P.id===E&&dt.sesionAbierta,P.historica&&dt.historica),...P.id===E?{"aria-current":"true"}:{},...C(P.id)?{"aria-busy":"true"}:{},children:[o.jsxs("button",{type:"button",className:tt(dt.reseteoDeBoton,dt.cuerpoDeFila),disabled:d||m||e.trabajando===!0&&P.trabajando!==!0,...e.trabajando===!0&&P.trabajando!==!0?{title:"este proyecto está trabajando en otra conversación: pulsa su nombre para verla"}:{},onClick:()=>b(e.id,P.id),children:[o.jsx("span",{className:Ar.slot,"aria-hidden":"true"}),o.jsx("span",{className:Ar.title,children:P.titulo!==""?P.titulo:P.deTarea?"Tarea de fondo":"Sin título"}),P.deTarea?o.jsx("span",{className:dt.marcaDeTarea,children:"Tarea"}):null,o.jsx(zM,{sesion:P,abriendo:C(P.id)})]}),d?null:o.jsx(zT,{titulo:P.titulo,className:dt.accionesDeFila,alRenombrar:()=>y(e.id,P.id,P.titulo,"renombrar"),alBorrar:()=>y(e.id,P.id,P.titulo,"borrar")})]},P.id))]})}const tm=4;function TM({entornos:e,entornoActivo:t,proyectos:n,visibles:r,fijados:a,proyectoActivo:l,proyectoEnResumen:i,sesionActiva:u,abriendo:d,alElegirEntorno:m,alAbrirSesion:v,alAbrirProyecto:f,alNuevaSesion:h,alAccionDeSesion:b,alFijar:y,alAbrirAjustes:j,alAbrirAjustesEnEntornos:C,conectado:N,version:z}){const E=N===!1,P=d!==void 0,M=d==null?void 0:d.entorno,L=M??t,U=n.filter(ne=>(a==null?void 0:a.includes(ne.id))===!0),W=n.filter(ne=>!U.includes(ne)),q=(r===void 0?n.slice(0,tm):n.filter(ne=>r.includes(ne.id))).filter(ne=>!U.includes(ne)),F=W.length-q.length,[K,le]=S.useState(l);S.useEffect(()=>le(l),[l]);const me=ne=>({p:ne,desplegado:K,alPlegar:()=>le(ne.id===K?void 0:ne.id),proyectoActivo:l,proyectoEnResumen:i,sesionActiva:u,abriendo:d,apagado:E,abriendoAlgo:P,alFijar:y,alAbrirProyecto:f,alNuevaSesion:h,alAbrirSesion:v,alAccionDeSesion:b});return o.jsxs("nav",{className:vp.root,children:[o.jsx("div",{className:vp.regionArea,children:o.jsxs("div",{className:Ur.root,children:[o.jsxs("div",{className:Ur.sectionHeader,children:[o.jsx("span",{className:tt(Ur.sectionLabel,dt.rotulo),children:"Entorno"}),o.jsx("span",{className:dt.rellenoDeSeccion}),M===void 0?null:o.jsx("span",{className:dt.actividad,title:"Cambiando de entorno…",children:"cambiando…"})]}),e.length===0?o.jsx("p",{className:Ur.empty,children:"Sin entorno que enseñar aquí todavía."}):o.jsxs("div",{className:dt.filaDeEntorno,...M===void 0?{}:{"aria-busy":"true"},children:[o.jsx(Y2,{entorno:L,size:20,className:dt.iconoDeEntorno}),o.jsx(us,{className:dt.entorno,disabled:E||P,value:L,onChange:ne=>m(ne.target.value),children:e.map(ne=>o.jsx("option",{value:ne.id,children:ne.nombre},ne.id))})]}),o.jsx("div",{className:Ur.listArea,children:o.jsxs("div",{className:Ur.treeBody,children:[o.jsxs("div",{className:Ur.list,children:[U.length===0?null:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Ur.sectionHeader,children:[o.jsx("span",{className:tt(Ur.sectionLabel,dt.rotulo),children:"Proyectos fijados"}),o.jsx("span",{className:dt.rellenoDeSeccion})]}),U.map(ne=>o.jsx(t5,{...me(ne),fijado:!0},ne.id))]}),o.jsxs("div",{className:Ur.sectionHeader,children:[o.jsx("span",{className:tt(Ur.sectionLabel,dt.rotulo),children:"Proyectos"}),o.jsx("span",{className:dt.rellenoDeSeccion})]}),q.length===0?o.jsx("p",{className:Ur.empty,children:n.length===0?"Sin proyectos que enseñar aquí todavía.":U.length>0&&F===0?"Todos los elegidos están fijados arriba.":"Ninguno elegido para esta barra; elígelos en Ajustes."}):q.map(ne=>o.jsx(t5,{...me(ne),fijado:!1},ne.id)),F>0?o.jsx("div",{className:dt.avisoOcultos,children:o.jsxs("p",{className:dt.textoDeAviso,children:[F===1?"1 proyecto más sin enseñar":`${F} proyectos más sin enseñar`," · elígelos en"," ",o.jsx("button",{type:"button",className:dt.enlaceDeAviso,onClick:C??j,"aria-label":"Ajustes, pestaña Entornos",children:"Ajustes"})]})}):null]}),o.jsx("div",{className:Ur.fade,"aria-hidden":"true"})]})})]})}),o.jsxs("div",{className:vp.footArea,children:[o.jsx("div",{className:dt.separadorDePie,"aria-hidden":"true"}),o.jsx("div",{className:vp.settingsArea,children:o.jsx("div",{className:Uh.triggerRow,children:o.jsxs("button",{type:"button",className:Uh.trigger,onClick:j,children:[o.jsx(E0,{size:16}),o.jsx("span",{className:Uh.triggerLabel,children:"Ajustes"})]})})}),z===void 0?null:o.jsx("p",{className:dt.version,children:z})]})]})}const MM="_label_io14u_7",LM="_icon_io14u_34",n5={label:MM,icon:LM},IM="_barraSuperior_co005_21",RM="_estado_co005_61",PM="_punto_co005_70",qM="_conectado_co005_76",FM="_desconectado_co005_83",OM="_plegar_co005_93",BM="_temaGrupo_co005_114",HM="_temaBoton_co005_128",UM="_ajustes_co005_152",VM="_marca_co005_173",GM="_separador_co005_184",WM="_marcaEnlace_co005_196",ZM="_simbolo_co005_224",vr={barraSuperior:IM,estado:RM,punto:PM,conectado:qM,desconectado:FM,plegar:OM,temaGrupo:BM,temaBoton:HM,ajustes:UM,marca:VM,separador:GM,marcaEnlace:WM,simbolo:ZM},QM=[{id:"sistema",etiqueta:"Como el sistema",Icono:$E},{id:"claro",etiqueta:"Claro",Icono:NE},{id:"oscuro",etiqueta:"Oscuro",Icono:SE}];function Vh({titulo:e,proyecto:t,modo:n,conectado:r,barraContraida:a,alAlternarBarra:l,panelAbierto:i,alAlternarPanel:u,alAbrirAjustes:d,apariencia:m,alCambiarApariencia:v,alIrAlEscritorio:f}){return o.jsx("header",{className:tt(vn.header,vr.barraSuperior),children:o.jsxs("div",{className:vn.titleRow,children:[o.jsxs("div",{className:vn.titleCluster,children:[l===void 0?null:o.jsx("button",{type:"button",className:vr.plegar,onClick:l,"aria-expanded":a!==!0,"aria-label":a===!0?"Mostrar la barra lateral":"Ocultar la barra lateral",title:a===!0?"Mostrar la barra lateral":"Ocultar la barra lateral",children:a===!0?"»":"«"}),f===void 0?o.jsxs("span",{className:vr.marca,children:[o.jsx("img",{className:vr.simbolo,src:"/iconos/xonecode.png",alt:"",width:22,height:22}),"XOneCode"]}):o.jsxs("button",{type:"button",className:tt(vr.marca,vr.marcaEnlace),onClick:f,title:"Volver al escritorio",children:[o.jsx("img",{className:vr.simbolo,src:"/iconos/xonecode.png",alt:"",width:22,height:22}),"XOneCode"]}),o.jsx("span",{className:vr.separador,"aria-hidden":"true",children:"/"}),o.jsxs("nav",{className:vn.crumbs,"aria-label":"dónde estás",children:[t===void 0||t===e?null:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:vn.crumbSeg,children:o.jsx("button",{type:"button",className:vn.crumb,disabled:!0,children:t})}),o.jsx("span",{className:vr.separador,"aria-hidden":"true",children:"/"})]}),o.jsx("span",{className:vn.crumbSeg,children:o.jsx("button",{type:"button",className:tt(vn.crumb,vn.crumbCurrent),disabled:!0,children:e})})]}),o.jsx("div",{className:vn.headerActions,children:n===void 0?null:o.jsxs("span",{className:n5.label,children:[o.jsx(vE,{className:n5.icon,size:16}),n==="cloud"?"modo cloud":"modo offline"]})})]}),o.jsxs("div",{className:vn.headerUtilities,children:[m===void 0||v===void 0?null:o.jsx("div",{className:vr.temaGrupo,role:"group","aria-label":"apariencia",children:QM.map(({id:h,etiqueta:b,Icono:y})=>o.jsx("button",{type:"button",className:vr.temaBoton,"aria-pressed":h===m,"data-puesto":h===m?"":void 0,title:b,"aria-label":b,onClick:()=>{h!==m&&v(h)},children:o.jsx(y,{size:16})},h))}),u===void 0?null:o.jsx("button",{type:"button",className:vr.ajustes,onClick:u,"aria-expanded":i===!0,"aria-label":i===!0?"Ocultar el panel":"Mostrar el panel",title:i===!0?"Ocultar el panel":"Mostrar el panel",children:o.jsx(XM,{abierto:i===!0})}),d===void 0?null:o.jsx("button",{type:"button",className:vr.ajustes,onClick:d,"aria-label":"Ajustes",title:"Ajustes",children:o.jsx(E0,{size:16})}),o.jsxs("span",{className:tt(vr.estado,r?vr.conectado:vr.desconectado),children:[o.jsx("span",{className:vr.punto,"aria-hidden":"true"}),r?"conectado":"sin conexión"]})]})]})})}function XM({abierto:e}){return o.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[o.jsx("rect",{x:1.75,y:2.75,width:12.5,height:10.5,rx:2,stroke:"currentColor",strokeWidth:1.3}),o.jsx("path",{d:"M10 3v10",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round"}),e?o.jsx("rect",{x:10,y:3,width:4.25,height:10,rx:1,fill:"currentColor",opacity:.55}):null]})}const YM="_cabecera_14uq7_17",KM="_tira_14uq7_37",JM="_pestana_14uq7_51",eL="_cerrar_14uq7_70",Il={cabecera:YM,tira:KM,pestana:JM,cerrar:eL};function tL({pestana:e,alElegirPestana:t,alCerrar:n,hayArtefactos:r,hayPlanes:a}){const l=[{id:"ejecutar",etiqueta:"Ejecutar"},{id:"ficheros",etiqueta:"Ficheros"},{id:"revision",etiqueta:"Revisión"},{id:"colecciones",etiqueta:"Colecciones"},...a===!0?[{id:"planes",etiqueta:"Planes"}]:[],...r===!0?[{id:"artefactos",etiqueta:"Artefactos"}]:[],{id:"trazas",etiqueta:"Trazas"}];return o.jsxs("div",{className:Il.cabecera,children:[o.jsx("button",{type:"button",className:Il.cerrar,onClick:n,"aria-label":"Cerrar el panel",title:"Cerrar el panel",children:o.jsx("span",{"aria-hidden":"true",children:"×"})}),o.jsx("div",{className:tt(vn.tabs,Il.tira),role:"tablist",children:l.map(i=>o.jsx("button",{type:"button",role:"tab","aria-selected":e===i.id,className:tt(vn.tab,Il.pestana,e===i.id&&vn.tabActive),onClick:()=>t(i.id),children:i.etiqueta},i.id))})]})}function K2(e){if(e.fichero!==void 0)return e.linea===void 0?e.fichero:`${e.fichero}:${e.linea}`}function c8(e){return e.severidad==="error"?"✗":e.severidad==="warning"?"△":"·"}function J2(e){const t=[e.verde?"✓ verificación en verde":`✗ verificación: ${e.errores} error(es), ${e.avisos} aviso(s)`];for(const n of e.hallazgos??[]){const r=K2(n);t.push(` ${c8(n)} ${n.code}${r===void 0?"":` ${r}`} — ${n.mensaje}`)}return e.preexistentes!==void 0&&e.preexistentes>0&&t.push(` (y ${e.preexistentes} hallazgo(s) más en ficheros que este turno no tocó)`),t}function nm(e){return e>=1e3?`${(e/1e3).toFixed(1)} s`:`${e} ms`}const nL="_trazas_7bpvr_14",rL="_barra_7bpvr_25",aL="_buscador_7bpvr_34",oL="_cuenta_7bpvr_46",sL="_accion_7bpvr_51 _secundario_1l1rx_39",iL="_cuerpo_7bpvr_60",lL="_tabla_7bpvr_66",cL="_grupo_7bpvr_73",uL="_cabeceraDeGrupo_7bpvr_79",dL="_flecha_7bpvr_98",pL="_cuentaDeGrupo_7bpvr_103",mL="_fila_7bpvr_112",hL="_indice_7bpvr_150",fL="_etiquetaHueco_7bpvr_160",gL="_etiqueta_7bpvr_160",vL="_texto_7bpvr_246",bL="_tiempo_7bpvr_254",yL="_panel_7bpvr_263",xL="_cabeceraDePanel_7bpvr_273",_L="_situacion_7bpvr_281",wL="_cerrar_7bpvr_285",jL="_pestanasDePanel_7bpvr_301",CL="_pestanaDePanel_7bpvr_314",kL="_pestanaActiva_7bpvr_326",NL="_fallo_7bpvr_333",SL="_completo_7bpvr_343",$L="_tiempos_7bpvr_355",AL="_dato_7bpvr_359",EL="_cifra_7bpvr_364",DL="_nota_7bpvr_370",zL="_vacio_7bpvr_371",wt={trazas:nL,barra:rL,buscador:aL,cuenta:oL,accion:sL,cuerpo:iL,tabla:lL,grupo:cL,cabeceraDeGrupo:uL,flecha:dL,cuentaDeGrupo:pL,fila:mL,indice:hL,etiquetaHueco:fL,etiqueta:gL,texto:vL,tiempo:bL,panel:yL,cabeceraDePanel:xL,situacion:_L,cerrar:wL,pestanasDePanel:jL,pestanaDePanel:CL,pestanaActiva:kL,fallo:NL,completo:SL,tiempos:$L,dato:AL,cifra:EL,nota:DL,vacio:zL},r5=200;function TL(e){const t=e.replace(/\s+/g," ").trim();return t.length>r5?t.slice(0,r5):t}function ca(e,t,n,r={}){return{tipo:e,etiqueta:t,texto:TL(n),completo:n,...r}}function ML(e){switch(e.tipo){case"usuario":return[ca("usuario","USUARIO",e.texto)];case"asistente":return[ca("asistente","ASISTENTE",e.texto)];case"razonamiento":return[ca("razonamiento","PIENSA",e.texto)];case"herramientas":return e.lineas.map((t,n)=>{var a;const r=(a=e.detalles)==null?void 0:a[n];return r===void 0?ca("tool","TOOL",t):r.nombre===void 0?ca("paso","PASO",t):ca(r.error===void 0?"tool":"toolError",r.nombre,t,{nombre:r.nombre,...r.error===void 0?{}:{error:r.error}})});case"sistema":return[ca("sistema","SISTEMA",e.texto)];case"sincronizacion":return e.lineas.map(t=>ca("sistema",e.accion.toUpperCase(),t));case"artefacto":return[ca("artefacto","ARTEFACTO",`${e.nombre} · ${e.bytes} B · ${e.ruta}`)];case"fase":return[ca("fase",e.fase===void 0?"FASE":e.fase.toUpperCase(),e.texto,{ms:e.ms,...e.fase===void 0?{}:{fase:e.fase}})];case"fin":return[ca("fin","FIN",e.modelo!==void 0?`fin del turno · ${e.modelo}`:"fin del turno",{ms:e.ms})];case"error":return[ca("error","ERROR",e.texto)];case"consulta":return[ca("sistema","CONSULTA",`${e.pregunta} · ${e.opciones.join(" · ")}`)];case"verificacion":return J2(e).map(t=>ca("paso","PASO",t));default:return e}}function LL(e){let t=0,n=0;return e.flatMap(r=>(r.tipo==="usuario"&&(t+=1),ML(r).map(a=>(n+=1,{...a,indice:n,turno:t}))))}function IL(e){const t=[];for(const n of e){let r=t.at(-1);(r===void 0||r.turno!==n.turno)&&(r={turno:n.turno,filas:[]},t.push(r)),r.filas.push(n),n.tipo==="fin"&&(r.ms=n.ms)}return t}function a5(e){return e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function RL({actos:e}){const[t,n]=S.useState(""),[r,a]=S.useState([]),[l,i]=S.useState(void 0),[u,d]=S.useState("resumen"),m=S.useMemo(()=>LL(e),[e]),v=S.useMemo(()=>{const b=a5(t.trim());return b===""?m:m.filter(y=>[y.completo,y.etiqueta,y.nombre??"",y.error??""].some(j=>a5(j).includes(b)))},[m,t]),f=S.useMemo(()=>IL(v),[v]),h=m.find(b=>b.indice===l);return m.length===0?o.jsx("p",{className:wt.vacio,children:"Todavía no hay trazas: esta sesión no ha hecho nada."}):o.jsxs("div",{className:wt.trazas,children:[o.jsxs("div",{className:wt.barra,role:"toolbar","aria-label":"Herramientas de las trazas",children:[o.jsx("input",{type:"search",className:wt.buscador,placeholder:"Buscar en las trazas…","aria-label":"Buscar en las trazas",value:t,onChange:b=>n(b.target.value)}),o.jsx("span",{className:wt.cuenta,children:v.length===m.length?`${m.length} filas`:`${v.length} de ${m.length} filas`}),o.jsx("button",{type:"button",className:wt.accion,onClick:()=>a(r.length>0?[]:f.map(b=>b.turno)),children:r.length>0?"Desplegar turnos":"Plegar turnos"})]}),o.jsxs("div",{className:wt.cuerpo,children:[o.jsx("div",{className:wt.tabla,children:v.length===0?o.jsxs("p",{className:wt.vacio,children:["Ninguna fila contiene «",t.trim(),"»."]}):f.map(b=>{const y=r.includes(b.turno);return o.jsxs("section",{className:wt.grupo,children:[o.jsxs("button",{type:"button",className:wt.cabeceraDeGrupo,"aria-expanded":!y,onClick:()=>a(y?r.filter(j=>j!==b.turno):[...r,b.turno]),children:[o.jsx("span",{className:wt.flecha,"aria-hidden":"true",children:y?"▸":"▾"}),o.jsx("span",{children:b.turno===0?"Antes del primer turno":`Turno ${b.turno}`}),o.jsxs("span",{className:wt.cuentaDeGrupo,children:[b.filas.length," ",b.filas.length===1?"fila":"filas",b.ms===void 0?"":` · ${nm(b.ms)}`]})]}),y?null:b.filas.map(j=>o.jsxs("button",{type:"button",className:wt.fila,"data-tipo":j.tipo,"data-elegida":j.indice===l?"":void 0,"aria-pressed":j.indice===l,onClick:()=>i(j.indice===l?void 0:j.indice),children:[o.jsxs("span",{className:wt.indice,children:["#",j.indice]}),o.jsx("span",{className:wt.etiquetaHueco,children:o.jsx("span",{className:wt.etiqueta,"data-tipo":j.tipo,children:j.etiqueta})}),o.jsx("span",{className:wt.texto,children:j.texto}),o.jsx("span",{className:wt.tiempo,children:j.ms===void 0?"":nm(j.ms)})]},j.indice))]},b.turno)})}),h===void 0?null:o.jsxs("aside",{className:wt.panel,"aria-label":"Detalle de la fila",children:[o.jsxs("header",{className:wt.cabeceraDePanel,children:[o.jsx("span",{className:wt.etiqueta,"data-tipo":h.tipo,children:h.etiqueta}),o.jsxs("span",{className:wt.situacion,children:["#",h.indice," ·"," ",h.turno===0?"antes del primer turno":`turno ${h.turno}`]}),o.jsx("button",{type:"button",className:wt.cerrar,"aria-label":"Cerrar el detalle",onClick:()=>i(void 0),children:"✕"})]}),o.jsxs("div",{className:wt.pestanasDePanel,role:"tablist","aria-label":"Detalle",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":u==="resumen",className:tt(wt.pestanaDePanel,u==="resumen"&&wt.pestanaActiva),onClick:()=>d("resumen"),children:"Resumen"}),o.jsx("button",{type:"button",role:"tab","aria-selected":u==="tiempos",className:tt(wt.pestanaDePanel,u==="tiempos"&&wt.pestanaActiva),onClick:()=>d("tiempos"),children:"Tiempos"})]}),u==="resumen"?h.error===void 0?o.jsx("pre",{className:wt.completo,children:h.completo}):o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:wt.fallo,role:"alert",children:[h.nombre," falló: ",h.error]}),o.jsx("pre",{className:wt.completo,children:h.completo})]}):o.jsx("div",{className:wt.tiempos,children:h.ms===void 0?o.jsx("p",{className:wt.nota,children:"Esta fila no lleva tiempo. Solo lo traen las fases y el fin del turno: el resto de actos no viaja con marca de tiempo, y ponerle una calculada aquí sería inventarla."}):o.jsxs("p",{className:wt.dato,children:[o.jsx("span",{className:wt.cifra,children:h.ms})," ms"]})})]})]})]})}function PL({pestana:e,alElegirPestana:t,alCerrar:n,hayArtefactos:r,hayPlanes:a,actos:l,ficheros:i,revision:u,colecciones:d,planes:m,artefactos:v,ejecutar:f}){return o.jsxs("section",{className:vn.body,"aria-label":"Panel",children:[o.jsx(tL,{pestana:e,alElegirPestana:t,alCerrar:n,...r===void 0?{}:{hayArtefactos:r},...a===void 0?{}:{hayPlanes:a}}),o.jsx("div",{className:vn.viewArea,children:e==="trazas"?o.jsx(RL,{actos:l}):e==="revision"?u:e==="colecciones"?d:e==="planes"?m:e==="artefactos"?v:e==="ejecutar"?f:i})]})}const o5=120;function u8(e){const n=(e.split(/[\\/]+/).at(-1)??"").replace(/[^A-Za-z0-9._-]/g,"_");if(!(n===""||n==="."||n===".."))return qL(n)}function qL(e){if(e.length<=o5)return e;const t=e.lastIndexOf("."),n=t>0&&e.length-t<=12?e.slice(t):"";return e.slice(0,o5-n.length)+n}function FL(){return o.jsx("path",{d:"M9.5 14.5l5-5M8 11L6 13a3.536 3.536 0 005 5l2-2M16 13l2-2a3.536 3.536 0 00-5-5l-2 2",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}const OL={openai:"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z",anthropic:"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z",gemini:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",ollama:"M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z",nvidia:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z",groq:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z",xai:"M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"},BL={"ollama-cloud":"ollama"};function n2({proveedor:e,size:t=20,...n}){const r=OL[BL[e]??e];return o.jsx("svg",{viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",focusable:"false",...n,children:r===void 0?o.jsx(FL,{}):o.jsx("path",{d:r})})}const HL="_envoltura_1u23z_5",UL="_conjunto_1u23z_34",VL="_pastilla_1u23z_52",GL="_rotulo_1u23z_70",WL="_menu_1u23z_104",ZL="_grupo_1u23z_24",QL="_proveedor_1u23z_141",XL="_punto_1u23z_162",YL="_modelos_1u23z_125",KL="_titulo_1u23z_203",JL="_modelo_1u23z_125",eI="_espera_1u23z_238",tI="_error_1u23z_239",nI="_filtro_1u23z_253",rI="_logo_1u23z_269",aI="_fuera_1u23z_284",oI="_vacio_1u23z_285",sI="_volverAMedir_1u23z_312",iI="_puntoDeDispositivo_1u23z_330",mt={envoltura:HL,conjunto:UL,pastilla:VL,rotulo:GL,menu:WL,grupo:ZL,proveedor:QL,punto:XL,modelos:YL,titulo:KL,modelo:JL,espera:eI,error:tI,filtro:nI,logo:rI,fuera:aI,vacio:oI,volverAMedir:sI,puntoDeDispositivo:iI},lI=8;function d8({actual:e,proveedores:t,alPedirCatalogo:n,alElegir:r,alAbrirAjustes:a,titulo:l="Modelo de trabajo",enLinea:i=!1}){const[u,d]=S.useState(!1),m=S.useRef(null),v=S.useCallback(()=>d(!1),[]),[f,h]=S.useState(void 0),[b,y]=S.useState([]),[j,C]=S.useState("");Mm(u,m,v);const N=M=>{if(C(""),f===M){h(void 0);return}h(M);const L=t.find(U=>U.id===M);(L==null?void 0:L.modelos)===void 0&&(L==null?void 0:L.error)===void 0&&!b.includes(M)&&(y(U=>[...U,M]),n(M))},z=M=>e!==void 0&&e.startsWith(`${M}/`),E=t.filter(M=>M.credencial==="puesta"||M.modelos!==void 0||z(M.id)),P=t.length-E.length;return o.jsxs("div",{className:mt.envoltura,ref:m,children:[o.jsxs("button",{type:"button",className:mt.pastilla,"aria-expanded":u,"aria-haspopup":"menu",onClick:()=>d(M=>!M),children:[e===void 0?null:o.jsx(n2,{proveedor:e.split("/")[0]??"",size:14,className:mt.logo}),e??"Elige modelo",o.jsx(Lm,{})]}),u?o.jsxs("div",{className:mt.menu,"data-en-linea":i?"":void 0,role:"menu","aria-label":l,children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:l}),E.map(M=>{const L=e!==void 0&&e.startsWith(`${M.id}/`),U=M.modelos===void 0&&M.error===void 0&&b.includes(M.id),W=M.credencial!=="nativa"?M.credencial:M.error!==void 0?"sin-conexion":M.modelos!==void 0?"conecta":void 0;return o.jsxs("div",{className:mt.grupo,children:[o.jsxs("button",{type:"button",role:"menuitem",className:mt.proveedor,"aria-expanded":f===M.id,"data-actual":L?"":void 0,...L?{"aria-current":"true"}:{},onClick:()=>N(M.id),children:[W===void 0?null:o.jsx("span",{className:mt.punto,"data-credencial":W,"aria-hidden":"true",title:{puesta:"con credencial",falta:"sin credencial",conecta:"conectado","sin-conexion":"sin conexión"}[W]}),o.jsx(n2,{proveedor:M.id,size:16,className:mt.logo}),o.jsx("span",{children:M.nombre})]}),f===M.id?o.jsx("div",{className:mt.modelos,children:M.error!==void 0?o.jsx("p",{className:mt.error,role:"alert",children:M.error}):M.modelos===void 0?o.jsx("p",{className:mt.espera,children:U?"consultando…":"sin consultar"}):M.modelos.length===0?o.jsx("p",{className:mt.espera,children:"no ofrece ningún modelo de conversación"}):o.jsxs(o.Fragment,{children:[M.modelos.length>lI?o.jsx("input",{type:"search",className:mt.filtro,value:j,onChange:O=>C(O.target.value),placeholder:"filtrar…","aria-label":`filtrar los modelos de ${M.nombre}`}):null,M.modelos.filter(O=>{const q=j.trim().toLowerCase();return q===""||O.id.toLowerCase().includes(q)||(O.nombre??"").toLowerCase().includes(q)}).map(O=>{const q=`${M.id}/${O.id}`;return o.jsx("button",{type:"button",role:"menuitemradio","aria-checked":q===e,className:mt.modelo,"data-actual":q===e?"":void 0,onClick:()=>{d(!1),r(q)},children:O.nombre??O.id},O.id)})]})}):null]},M.id)}),E.length===0?o.jsx("p",{className:mt.vacio,children:"Ninguno comprobado todavía: pon una clave, o levanta Ollama."}):null,P===0?null:a===void 0?o.jsxs("p",{className:mt.fuera,children:[P," ",P===1?"proveedor más":"proveedores más"," sin comprobar."]}):o.jsxs("button",{type:"button",className:mt.fuera,onClick:a,children:[P," ",P===1?"proveedor más":"proveedores más"," sin comprobar · configúralos en Ajustes"]})]}):null]})}function cI({niveles:e,actual:t,conectado:n=!0,nota:r,alElegir:a}){const[l,i]=S.useState(!1),u=S.useRef(null),d=S.useCallback(()=>i(!1),[]);if(Mm(l,u,d),e===void 0||e.length===0)return null;const m=v=>{i(!1),a(v)};return o.jsxs("div",{className:mt.envoltura,ref:u,children:[o.jsxs("button",{type:"button",className:mt.pastilla,"aria-expanded":l,"aria-haspopup":"menu",disabled:!n,title:"Cuánto razona el modelo antes de contestar",onClick:()=>i(v=>!v),children:[t===void 0?"esfuerzo":o.jsxs(o.Fragment,{children:[o.jsx("span",{className:mt.rotulo,children:"pensar:"}),t]}),o.jsx(Lm,{})]}),l?o.jsxs("div",{className:mt.menu,role:"menu","aria-label":"esfuerzo de razonamiento",children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:"Esfuerzo de razonamiento"}),o.jsxs("div",{className:mt.modelos,children:[o.jsx("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":t===void 0?"":void 0,...t===void 0?{"aria-current":"true"}:{},onClick:()=>m(void 0),children:"Sin fijar"}),e.map(v=>o.jsx("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":v===t?"":void 0,...v===t?{"aria-current":"true"}:{},onClick:()=>m(v),children:v},v))]}),o.jsx("p",{className:mt.espera,children:r??"Se guarda con la sesión. Sin fijar, decide el modelo."})]}):null]})}const s5={conectado:"conectado",arrancado:"arrancado",apagado:"apagado","sin-autorizar":"sin autorizar",offline:"offline","no-disponible":"no disponible"};function Rl(e){return e.estado==="conectado"&&e.clase!=="fisico"?s5.arrancado:s5[e.estado]}function Fi(e){return e.estado==="conectado"||e.estado==="arrancado"}function p8(e){const t=e.dispositivos.filter(u=>u.clase==="fisico"),n=e.dispositivos.filter(u=>u.clase!=="fisico"),r=new Set(n.map(u=>u.avd).filter(u=>u!==void 0)),a=e.avds.filter(u=>!r.has(u)).map(u=>({id:`avd:${u}`,nombre:u,plataforma:"android",clase:"emulador",estado:"apagado",soloDefinicion:!0})),l=u=>(Fi(u)?0:2)+(u.plataforma==="android"?0:1),i=[...n,...a].sort((u,d)=>l(u)-l(d));return{fisicos:t,virtuales:i}}function uI({elegido:e,informe:t,conectado:n=!0,alElegir:r,alMedir:a,enUso:l,proyectoActual:i}){const[u,d]=S.useState(!1),m=S.useRef(null),v=S.useCallback(()=>d(!1),[]);Mm(u,m,v);const{fisicos:f,virtuales:h}=t===void 0?{fisicos:[],virtuales:[]}:p8(t),b=[...f,...h],y=W=>W.plataforma==="android"?0:1,j=b.filter(W=>Fi(W)).sort((W,O)=>y(W)-y(O)),C=f.filter(W=>!Fi(W)),N=h.filter(W=>!Fi(W)),z=t===void 0||b.some(W=>W.id===(e==null?void 0:e.id)),E=(l??[]).filter(W=>W.proyecto!==i),P=W=>{var O;return(O=E.find(q=>q.id===W))==null?void 0:O.proyecto},M=e===void 0?void 0:P(e.id),L=W=>{d(!1),r(W)},U=(W,O)=>O.length===0?null:o.jsxs("div",{className:mt.grupo,children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:W}),O.map(q=>o.jsxs("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":q.id===(e==null?void 0:e.id)?"":void 0,...q.id===(e==null?void 0:e.id)?{"aria-current":"true"}:{},disabled:q.soloDefinicion===!0,...q.soloDefinicion===!0?{title:"apagado — arráncalo para poder elegirlo"}:{},onClick:()=>L(q.id),children:[o.jsx("span",{className:mt.puntoDeDispositivo,"data-vivo":Fi(q)?"":void 0,"aria-hidden":"true"}),q.plataforma==="android"?`${q.nombre} · Android`:q.nombre," · ",Rl(q),P(q.id)===void 0?null:o.jsx("span",{className:mt.espera,children:`en uso en ${P(q.id)}`})]},q.id))]});return o.jsxs("div",{className:mt.envoltura,ref:m,children:[o.jsxs("button",{type:"button",className:mt.pastilla,"aria-expanded":u,"aria-haspopup":"menu",disabled:!n,title:e===void 0?"Elige el dispositivo de esta sesión":`${z?e.nombre:`${e.nombre} — no está en la última medida`}${M===void 0?"":` — también lo usa ${M}`}`,onClick:()=>d(W=>!W),children:[o.jsx(MT,{}),o.jsxs("span",{children:[e===void 0?"Sin dispositivo":e.nombre,e!==void 0&&!z?" ·":null,M===void 0?null:o.jsx("span",{role:"img","aria-label":`también lo usa ${M}`,children:" ⚠"})]}),o.jsx(Lm,{})]}),u?o.jsxs("div",{className:mt.menu,role:"menu","aria-label":"dispositivo de la sesión",children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:"Dispositivo de esta sesión"}),o.jsxs("div",{className:mt.modelos,children:[o.jsx("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":e===void 0?"":void 0,onClick:()=>L(void 0),children:"Ninguno"}),e!==void 0&&!z?o.jsxs("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":"",onClick:()=>L(e.id),children:[e.nombre," · no está en la última medida"]}):null,U("Disponibles ahora",j),U("Teléfonos y tablets",C),U("Simuladores y emuladores",N),t===void 0?o.jsx("p",{className:mt.espera,children:"Todavía no ha llegado ninguna medida de este equipo."}):b.length===0?o.jsx("p",{className:mt.espera,children:"No se ha encontrado ningún dispositivo. Los requisitos se instalan en Ajustes."}):null]}),a===void 0?null:o.jsxs("div",{className:mt.espera,children:[t===void 0?null:`Medido a las ${dI(t.medido)}. `,o.jsx("button",{type:"button",className:mt.volverAMedir,disabled:!n,onClick:()=>a(),children:"Volver a medir"})]}),o.jsx("p",{className:mt.espera,children:"Se guarda con la sesión. La usan la pestaña Ejecutar para lanzar la app y el agente cuando prueba en un aparato; sin elegir ninguno, prefiere un emulador."})]}):null]})}function dI(e){const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}const pI="_pista_tczu2_13",mI="_mitad_tczu2_29",i5={pista:pI,mitad:mI};function m8({actual:e,conectado:t=!0,rotulo:n="modo de escritura",alElegir:r}){const a=S.useRef(void 0);if(e===void 0)return null;const l=e,i=()=>a.current!==void 0&&a.current.desde===l?a.current.modo:l,u=[{modo:"supervisado",etiqueta:"Supervisado",que:"Cada escritura para y te enseña su diff antes de aplicarse",icono:LT},{modo:"autonomo",etiqueta:"Autónomo",que:"Las escrituras se aplican solas; cada turno dirá qué ficheros tocó. Subir a CloudStudio sigue pidiéndote permiso",icono:IT}];return o.jsx("div",{className:i5.pista,role:"group","aria-label":n,children:u.map(({modo:d,etiqueta:m,que:v,icono:f})=>o.jsxs("button",{type:"button",className:i5.mitad,"aria-pressed":d===e,"data-puesto":d===e?"":void 0,disabled:!t,title:v,onClick:()=>{d!==i()&&(a.current={modo:d,desde:l},r(d))},children:[o.jsx(f,{}),o.jsx("span",{children:m})]},d))})}function Mt(e){if(!Number.isFinite(e)||e<0)return"0";if(e<1e3)return String(Math.round(e));const[t,n]=e<1e6?[e/1e3,"k"]:[e/1e6,"M"];return`${t.toFixed(1).replace(".",",").replace(/,0$/,"")}${n}`}function r2(e,t){const n=Math.max(0,e.entrada-e.cache)+t.entrada,r=e.cache+t.cache;return{nueva:n,cache:r,salida:e.salida+t.salida,entradaTotal:n+r}}function hI(e){const t=[];for(const[r,a]of Object.entries(e)){const l=a.cuenta==="modelo"?Math.max(0,a.entrada-a.cache):a.entrada;l===0&&a.cache===0&&a.salida===0||t.push({id:r,cuenta:a.cuenta,nueva:l,cache:a.cache,salida:a.salida,sinDesglose:r.startsWith(yy)})}const n=r=>r.nueva+r.cache+r.salida;return t.sort((r,a)=>Number(r.sinDesglose)-Number(a.sinDesglose)||n(a)-n(r))}const fI="_capa_1iva6_24",gI="_velo_1iva6_18",vI="_pregunta_1iva6_62",bI="_envoltorio_1iva6_85",yI="_enunciado_1iva6_91",xI="_titulo_1iva6_100",_I="_fila_1iva6_108",wI="_plan_1iva6_39",jI="_decisiones_1iva6_160",CI="_cancelar_1iva6_168 _secundario_1l1rx_39 _grande_1l1rx_26",kI="_fallo_1iva6_217",NI="_accion_1iva6_4 _primario_1l1rx_67 _grande_1l1rx_26",SI="_herramientas_1iva6_257",$I="_cuenta_1iva6_263",AI="_enlace_1iva6_270",EI="_arbol_1iva6_289",DI="_clase_1iva6_301",zI="_girando_1iva6_332 _girando_xl444_17",TI="_fin_1iva6_350",MI="_marcaDeFin_1iva6_361",LI="_detalle_1iva6_379",ot={capa:fI,velo:gI,pregunta:vI,envoltorio:bI,enunciado:yI,titulo:xI,fila:_I,plan:wI,decisiones:jI,cancelar:CI,fallo:kI,accion:NI,herramientas:SI,cuenta:$I,enlace:AI,arbol:EI,clase:DI,girando:zI,fin:TI,marcaDeFin:MI,detalle:LI},II="_tarjeta_1ib8n_6",RI="_cabecera_1ib8n_19",PI="_titulo_1ib8n_25",qI="_subtitulo_1ib8n_32",FI="_tabla_1ib8n_38",OI="_modelo_1ib8n_72",BI="_total_1ib8n_86",HI="_marca_1ib8n_102",UI="_nota_1ib8n_111",VI="_acciones_1ib8n_117",Co={tarjeta:II,cabecera:RI,titulo:PI,subtitulo:qI,tabla:FI,modelo:OI,total:BI,marca:HI,nota:UI,acciones:VI};function GI({porModelo:e,alCerrar:t}){const n=hI(e),r=S.useRef(null);S.useEffect(()=>{var u;return(u=r.current)==null?void 0:u.focus()},[]);const a=n.reduce((u,d)=>({nueva:u.nueva+d.nueva,cache:u.cache+d.cache,salida:u.salida+d.salida}),{nueva:0,cache:0,salida:0}),l=n.some(u=>u.cuenta==="externo"),i=n.some(u=>u.sinDesglose);return o.jsx(lr,{open:!0,onClose:t,title:"Tokens por modelo",headless:!0,className:ot.capa,children:o.jsx("div",{className:ot.velo,onClick:u=>{u.target===u.currentTarget&&t()},children:o.jsxs("div",{className:Co.tarjeta,children:[o.jsxs("header",{className:Co.cabecera,children:[o.jsx("p",{className:Co.titulo,children:"Tokens por modelo"}),o.jsx("p",{className:Co.subtitulo,children:"Lo que lleva gastado esta conversación, modelo a modelo."})]}),o.jsxs("table",{className:Co.tabla,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"Modelo"}),o.jsx("th",{scope:"col",children:"Nueva"}),o.jsx("th",{scope:"col",children:"Caché"}),o.jsx("th",{scope:"col",children:"Salida"})]})}),o.jsx("tbody",{children:n.map(u=>o.jsxs("tr",{"data-sin-desglose":u.sinDesglose?"":void 0,children:[o.jsxs("th",{scope:"row",className:Co.modelo,children:[u.id,u.cuenta==="externo"&&!u.sinDesglose?o.jsx("span",{className:Co.marca,children:"externo"}):null]}),o.jsx("td",{title:String(u.nueva),children:Mt(u.nueva)}),o.jsx("td",{title:String(u.cache),children:Mt(u.cache)}),o.jsx("td",{title:String(u.salida),children:Mt(u.salida)})]},u.id))}),o.jsx("tfoot",{children:o.jsxs("tr",{className:Co.total,children:[o.jsx("th",{scope:"row",children:"Total"}),o.jsx("td",{title:String(a.nueva),children:Mt(a.nueva)}),o.jsx("td",{title:String(a.cache),children:Mt(a.cache)}),o.jsx("td",{title:String(a.salida),children:Mt(a.salida)})]})})]}),i?o.jsx("p",{className:Co.nota,children:"«Sin desglose» es lo gastado en turnos de antes de medir por modelo."}):null,l?o.jsx("p",{className:Co.nota,children:"Un agente externo va contra su propia suscripción: se suman tokens, no coste."}):null,o.jsx("div",{className:Co.acciones,children:o.jsx("button",{ref:r,type:"button",className:ot.accion,onClick:t,children:"Cerrar"})})]})})})}const WI="_contador_pgufs_21",ZI="_separador_pgufs_37",QI="_cifra_pgufs_43",XI="_rotulo_pgufs_52",YI="_boton_pgufs_70",ko={contador:WI,separador:ZI,cifra:QI,rotulo:XI,boton:YI};function KI({consumo:e}){const[t,n]=S.useState(!1);if(e===void 0)return null;const{nueva:r,cache:a,salida:l,entradaTotal:i}=r2(e.modelo,e.externo);if(i===0&&l===0)return null;const u=e.externo.entrada>0||e.externo.salida>0,d=["Tokens de esta conversación",`· entrada total: ${i} — ${r} nueva + ${a} de caché`,`· modelo: ${e.modelo.entrada} entrada (caché INCLUIDA) / ${e.modelo.salida} salida`,...u?[`· agentes externos: ${e.externo.entrada} entrada (caché aparte) / ${e.externo.salida} salida`]:[],...u?["Las dos cuentas son de proveedores distintos: se suman TOKENS, no coste."]:[],"Se cuentan los turnos anteriores a este, así que sobreviven a cerrar y reabrir la sesión."].join(`
|
|
465
|
+
`),m=o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"↑"}),o.jsx("span",{className:ko.cifra,children:Mt(r)}),o.jsx("span",{className:ko.rotulo,children:"nueva"}),o.jsx("span",{"aria-hidden":"true",className:ko.separador,children:"·"}),o.jsx("span",{"aria-hidden":"true",children:"⟳"}),o.jsx("span",{className:ko.cifra,children:Mt(a)}),o.jsx("span",{className:ko.rotulo,children:"caché"}),o.jsx("span",{"aria-hidden":"true",className:ko.separador,children:"·"}),o.jsx("span",{"aria-hidden":"true",children:"↓"}),o.jsx("span",{className:ko.cifra,children:Mt(l)}),o.jsx("span",{className:ko.rotulo,children:"salida"})]}),v=e.porModelo;return v===void 0||Object.keys(v).length===0?o.jsx("span",{className:ko.contador,title:d,children:m}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:`${ko.contador} ${ko.boton}`,title:`${d}
|
|
466
|
+
Pulsa para verlo por modelo.`,"aria-haspopup":"dialog",onClick:()=>n(!0),children:m}),t?o.jsx(GI,{porModelo:v,alCerrar:()=>n(!1)}):null]})}const JI="_envoltura_yc651_15",eR="_compositor_yc651_42",tR="_motor_yc651_97",nR="_dispositivo_yc651_116",rR="_entrada_yc651_152",aR="_controles_yc651_226",oR="_acciones_yc651_218",sR="_gasto_yc651_266",iR="_enviar_yc651_290",lR="_parar_yc651_362",cR="_anexar_yc651_491 _secundario_1l1rx_39",uR="_fichas_yc651_512",dR="_ficha_yc651_512",pR="_nombreDeFicha_yc651_528",mR="_estadoDeFicha_yc651_537",hR="_quitarFicha_yc651_547",br={envoltura:JI,compositor:eR,motor:tR,dispositivo:nR,entrada:rR,controles:aR,acciones:oR,gasto:sR,enviar:iR,parar:lR,anexar:cR,fichas:uR,ficha:dR,nombreDeFicha:pR,estadoDeFicha:mR,quitarFicha:hR};function fR(e,t){if(!t.has(e))return e;const n=e.lastIndexOf("."),r=n>0?e.slice(0,n):e,a=n>0?e.slice(n):"";let l=2;for(;t.has(`${r}-${l}${a}`);)l+=1;return`${r}-${l}${a}`}function gR(e){var n;const t=(n=e.split("/")[1])==null?void 0:n.split("+")[0];return t===void 0||t===""?"bin":t}function vR({conectado:e,turnoEnVuelo:t=!1,hayPendiente:n=!1,consumo:r,oculto:a=!1,alParar:l,modelos:i,alPedirCatalogo:u,alElegirModelo:d,alElegirEsfuerzo:m,alAbrirAjustes:v,dispositivo:f,dispositivos:h,modoDeEscritura:b,alElegirModoDeEscritura:y,alElegirDispositivo:j,dispositivosEnUso:C,proyectoActual:N,alMedirDispositivos:z,alSubirAdjunto:E,alEnviar:P,borrador:M}){var ge,Oe;const[L,U]=S.useState(""),W=S.useRef(null),O=S.useRef(null),[q,F]=S.useState([]),K=S.useRef(0),[le,me]=S.useState(!1),ne=E!==void 0&&e,ce=async be=>{if(E===void 0)return;const Te=new Set(q.map(Ee=>Ee.nombre));for(const Ee of be){const rt=K.current;K.current+=1;const Nt=u8(Ee.name);if(Nt===void 0){F(en=>[...en,{id:rt,nombre:Ee.name,estado:"falló",motivo:"no se puede usar ese nombre aquí"}]);continue}const Jt=fR(Nt,Te);Te.add(Jt),F(en=>[...en,{id:rt,nombre:Jt,estado:"subiendo"}]);const Dn=await E(Ee,Jt);F(en=>en.map(Ut=>Ut.id===rt?Dn.ok?{...Ut,estado:"listo",nombre:Dn.nombre??Ut.nombre}:{...Ut,estado:"falló",...Dn.motivo===void 0?{}:{motivo:Dn.motivo}}:Ut))}},Ae=be=>F(Te=>Te.filter(Ee=>Ee.id!==be)),de=be=>{ne&&(be.preventDefault(),me(!1),ce(Array.from(be.dataTransfer.files)))},te=be=>{var rt;if(!ne)return;const Te=Array.from(((rt=be.clipboardData)==null?void 0:rt.files)??[]);if(Te.length===0)return;be.preventDefault();const Ee=Te.map((Nt,Jt)=>new File([Nt],`pegado-${Jt+1}.${gR(Nt.type)}`,{type:Nt.type}));ce(Ee)};S.useEffect(()=>{var be;M!==void 0&&(U(Te=>Te.trim()===""?M.texto:`${Te.replace(/\s+$/,"")}
|
|
467
|
+
${M.texto}`),(be=W.current)==null||be.focus())},[M==null?void 0:M.id]);const I=S.useRef(!1);S.useEffect(()=>{var Te;const be=I.current&&!n;I.current=n,be&&!a&&e&&((Te=W.current)==null||Te.focus())},[n,a,e]);const V=q.some(be=>be.estado==="subiendo"),ie=q.some(be=>be.estado==="falló"),T=()=>{if(n||V||ie)return;const be=L.trim(),Te=q.filter(Ee=>Ee.estado==="listo").map(Ee=>Ee.nombre);be===""&&Te.length===0||(P(be,Te),U(""),F([]))},Se=be=>{be.key==="Enter"&&!be.shiftKey&&(be.preventDefault(),T())};return o.jsx("div",{className:br.envoltura,hidden:a,children:o.jsxs("div",{className:br.compositor,"data-trabajando":t?"":void 0,"data-con-texto":L===""?void 0:"","data-arrastrando":le?"":void 0,onDragOver:be=>{ne&&(be.preventDefault(),me(!0))},onDragLeave:()=>me(!1),onDrop:de,children:[o.jsxs("div",{className:br.motor,children:[o.jsx("div",{className:br.gasto,children:o.jsx(KI,{...r===void 0?{}:{consumo:r}})}),j===void 0?null:o.jsx("div",{className:br.dispositivo,children:o.jsx(uI,{...f===void 0?{}:{elegido:f},...h===void 0?{}:{informe:h},conectado:e,alElegir:j,...z===void 0?{}:{alMedir:z},...C===void 0?{}:{enUso:C},...N===void 0?{}:{proyectoActual:N}})})]}),o.jsx("textarea",{ref:W,className:br.entrada,value:L,disabled:!e||n,placeholder:e?n?"responde arriba antes de seguir":`Pregunta sobre XOne, o /comando…
|
|
468
|
+
Enter envía · Shift+Enter salta de línea`:"sin conexión con XOneCode",title:"Pregunta sobre la plataforma, pide un cambio en una colección o en un script, o escribe /comando",onChange:be=>U(be.target.value),onKeyDown:Se,onPaste:te}),q.length===0?null:o.jsx("ul",{className:br.fichas,children:q.map(be=>o.jsxs("li",{className:br.ficha,"data-estado":be.estado,children:[o.jsx("span",{className:br.nombreDeFicha,children:be.nombre}),o.jsx("span",{className:br.estadoDeFicha,...be.estado==="falló"?{title:be.motivo??"no se pudo subir"}:{},children:be.estado==="subiendo"?"subiendo…":be.estado==="listo"?"listo":"falló"}),o.jsx("button",{type:"button",className:br.quitarFicha,"aria-label":`Quitar ${be.nombre}`,onClick:()=>Ae(be.id),children:"Quitar"})]},be.id))}),o.jsxs("div",{className:br.controles,children:[E===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:br.anexar,disabled:!e,"aria-label":"Anexar ficheros",title:"Anexar ficheros (también puedes soltarlos o pegarlos)",onClick:()=>{var be;return(be=O.current)==null?void 0:be.click()},children:o.jsx(PT,{})}),o.jsx("input",{ref:O,hidden:!0,type:"file",multiple:!0,onChange:be=>{ce(Array.from(be.target.files??[])),be.target.value=""}})]}),y===void 0?null:o.jsx(m8,{...b===void 0?{}:{actual:b},conectado:e,alElegir:y}),o.jsxs("div",{className:br.acciones,children:[o.jsxs("div",{className:mt.conjunto,children:[i!==void 0?o.jsx(d8,{...i.actual===void 0?{}:{actual:i.actual},proveedores:i.proveedores,alPedirCatalogo:be=>u==null?void 0:u(be),alElegir:be=>d==null?void 0:d(be),...v===void 0?{}:{alAbrirAjustes:v}}):null,m===void 0?null:o.jsx(cI,{...(i==null?void 0:i.esfuerzo)===void 0?{}:{niveles:i.esfuerzo.niveles},...((ge=i==null?void 0:i.esfuerzo)==null?void 0:ge.actual)===void 0?{}:{actual:i.esfuerzo.actual},...((Oe=i==null?void 0:i.esfuerzo)==null?void 0:Oe.nota)===void 0?{}:{nota:i.esfuerzo.nota},conectado:e,alElegir:m})]}),t?o.jsx("button",{type:"button",className:`${br.enviar} ${br.parar}`,disabled:!e||l===void 0,"aria-label":"Parar",title:"Parar el turno",onClick:()=>l==null?void 0:l(),children:"■"}):o.jsx("button",{type:"button",className:br.enviar,disabled:!e||V||ie,"aria-label":"Enviar",...V?{title:"espera a que termine de subir el adjunto"}:ie?{title:"quita el adjunto que falló antes de enviar"}:{},onClick:T,children:o.jsx(RT,{})})]})]})]})})}const bR=48;function h8(e){const t=S.useRef(null),n=S.useRef(!0);return S.useEffect(()=>{const r=t.current;r===null||!n.current||(r.scrollTop=r.scrollHeight)},[e]),{nodo:t,alDesplazar:()=>{const r=t.current;r!==null&&(n.current=r.scrollHeight-r.scrollTop-r.clientHeight<=bR)}}}function e4(e){if(e!==void 0)return e.rol==="orquestador"?"orquestador":e.nombre??"especialista"}function yR(e,t,n){const r=[];let a=n,l;return e.forEach((i,u)=>{var m,v;const d=e4((m=t==null?void 0:t[u])==null?void 0:m.origen);(l===void 0||d!==a)&&(l={...d===void 0||d===a?{}:{rotulo:d},lineas:[]},r.push(l),a=d),((v=t==null?void 0:t[u])==null?void 0:v.error)!==void 0&&(l.fallidas??(l.fallidas=[])).push(l.lineas.length),l.lineas.push(i)}),{trozos:r,ultimo:a}}function xR(e){let t=0;for(const n of e)if(n.tipo==="herramientas")for(const r of n.detalles??[])(r==null?void 0:r.error)!==void 0&&t++;return t}function f8(e,t){const[n,r]=S.useState(void 0);return S.useEffect(()=>{if(!e){r(void 0);return}const a=Date.now();r(0);const l=setInterval(()=>r(Math.floor((Date.now()-a)/1e3)),1e3);return()=>clearInterval(l)},[e,t]),n}const _R="_boton_13o2m_10",wR={boton:_R};function z0({texto:e,etiqueta:t="Copiar"}){const[n,r]=S.useState("quieto"),a=S.useRef(void 0);S.useEffect(()=>()=>clearTimeout(a.current),[]);const l=async()=>{clearTimeout(a.current);try{await navigator.clipboard.writeText(e),r("copiado")}catch{r("fallo")}a.current=setTimeout(()=>r("quieto"),2e3)},i=n==="copiado"?"Copiado":n==="fallo"?"No se pudo copiar":t;return o.jsx("button",{type:"button",className:wR.boton,"data-estado":n,title:i,"aria-label":i,onClick:()=>void l(),children:n==="copiado"?o.jsx(V2,{size:14}):o.jsx(xE,{size:14})})}const jR="_coste_g2gtu_11",CR="_cifra_g2gtu_22",kR="_cache_g2gtu_28",s0={coste:jR,cifra:CR,cache:kR};function g8(e){return e.modelo.entrada+e.modelo.salida+e.externo.entrada+e.externo.salida>0}function NR({consumo:e,ambito:t="turno"}){const n=e.modelo.entrada+e.externo.entrada,r=e.modelo.salida+e.externo.salida,a=e.modelo.cache+e.externo.cache;if(!g8(e))return null;const l=t==="sesion",i=e.externo.entrada>0||e.externo.salida>0,u=[l?`Gastado en esta sesión: ${n+r} tokens en total`:"Trabajo de este turno",`· modelo: ${e.modelo.entrada} entrada / ${e.modelo.salida} salida`,...i?[`· agentes externos: ${e.externo.entrada} entrada / ${e.externo.salida} salida`]:[],...a>0?[`· caché leída: ${a} (no va sumada a la entrada)`]:[],...i?["Las dos cuentas son de proveedores distintos: se suman TOKENS, no coste."]:[]].join(`
|
|
469
|
+
`);return o.jsxs("span",{className:s0.coste,title:u,"aria-label":l?`Esta sesión: ${n+r} tokens en total, ${n} de entrada y ${r} de salida${a>0?`, con ${a} de caché`:""}`:`${n} de entrada, ${r} de salida${a>0?`, ${a} de caché`:""}`,children:[l?o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"Σ"}),o.jsx("span",{className:s0.cifra,children:Mt(n+r)})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"↑"}),o.jsx("span",{className:s0.cifra,children:Mt(n)}),o.jsx("span",{"aria-hidden":"true",children:" "}),o.jsx("span",{"aria-hidden":"true",children:"↓"}),o.jsx("span",{className:s0.cifra,children:Mt(r)})]}),a>0&&!l&&o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:s0.cache,children:[Mt(a)," caché"]})]})]})}function v8({ms:e,consumo:t}){const n=e===void 0?null:`${Math.round(e/100)/10}s`,r=t===void 0?null:o.jsx(NR,{consumo:t});return n===null&&r===null?null:o.jsxs(o.Fragment,{children:[n,n!==null&&r!==null?" · ":null,r]})}const SR=14;function no({children:e,lado:t=SR}){return o.jsx("svg",{"aria-hidden":"true",focusable:"false",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e})}function $R(){return o.jsxs(no,{children:[o.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function AR(){return o.jsxs(no,{children:[o.jsx("path",{d:"m16 18 6-6-6-6"}),o.jsx("path",{d:"m8 6-6 6 6 6"})]})}function ER(){return o.jsxs(no,{children:[o.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),o.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),o.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),o.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function DR(){return o.jsxs(no,{children:[o.jsx("path",{d:"M12 15V3"}),o.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),o.jsx("path",{d:"m7 10 5 5 5-5"})]})}const Gh="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",Wh="M14 2v5a1 1 0 0 0 1 1h5";function zR({forma:e}){switch(e){case"pagina":return o.jsxs(no,{lado:18,children:[o.jsx("path",{d:Gh}),o.jsx("path",{d:Wh}),o.jsx("path",{d:"M10 12.5 8 15l2 2.5"}),o.jsx("path",{d:"m14 12.5 2 2.5-2 2.5"})]});case"panel":return o.jsxs(no,{lado:18,children:[o.jsx("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),o.jsx("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),o.jsx("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),o.jsx("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]});case"texto":return o.jsxs(no,{lado:18,children:[o.jsx("path",{d:Gh}),o.jsx("path",{d:Wh}),o.jsx("path",{d:"M10 9H8"}),o.jsx("path",{d:"M16 13H8"}),o.jsx("path",{d:"M16 17H8"})]});case"imagen":return o.jsxs(no,{lado:18,children:[o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),o.jsx("circle",{cx:"9",cy:"9",r:"2"}),o.jsx("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]});case"fichero":return o.jsxs(no,{lado:18,children:[o.jsx("path",{d:Gh}),o.jsx("path",{d:Wh})]})}}function TR(){return o.jsxs(no,{children:[o.jsx("path",{d:"M5 12h14"}),o.jsx("path",{d:"m12 5 7 7-7 7"})]})}function MR({lado:e=12}){return o.jsxs(no,{lado:e,children:[o.jsx("path",{d:"M15 3h6v6"}),o.jsx("path",{d:"M10 14 21 3"}),o.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})}function LR(){return o.jsxs(no,{children:[o.jsx("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),o.jsx("path",{d:"M21 3v5h-5"})]})}const IR=new Map([["xne","xml"],["xml","xml"],["js","javascript"],["css","css"],["ini","ini"],["json","json"],["md","markdown"],["html","html"],["svg","xml"]]);function rm(e){const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");if(!(n<=0))return IR.get(t.slice(n+1).toLowerCase())}const RR="_imagen_1uv9z_5",PR="_nota_1uv9z_32",l5={imagen:RR,nota:PR};function am({mime:e,base64:t,alt:n,bytes:r}){return o.jsxs("div",{className:l5.imagen,children:[o.jsx("img",{src:`data:${e};base64,${t}`,alt:n}),o.jsxs("p",{className:l5.nota,children:[So(r)," KB"]})]})}function So(e){return Math.max(1,Math.round(e/1024))}function qR(e,t,n=3){const r=e.replace(/\r\n/g,`
|
|
470
|
+
`).split(`
|
|
471
|
+
`);if(r.length>1&&r[r.length-1]===""&&r.pop(),!Number.isInteger(t)||t<1||t>r.length)return;const a=Math.max(1,t-n),l=Math.min(r.length,t+n),i=[];for(let u=a;u<=l;u++)i.push({numero:u,texto:r[u-1],marcada:u===t});return{desde:a,lineas:i}}const FR="_visor_1gka3_4",OR="_bloque_1gka3_13",BR="_extracto_1gka3_51",HR="_lineaDelExtracto_1gka3_62",UR="_numero_1gka3_70",VR="_aviso_1gka3_79",Ic={visor:FR,bloque:OR,extracto:BR,lineaDelExtracto:HR,numero:UR,aviso:VR};function b8({texto:e,lenguaje:t,linea:n}){const r=S.useRef(null),a=n===void 0?void 0:qR(e,n);return S.useEffect(()=>{const l=r.current;if(l===null||n===void 0||a===void 0)return;let i=!1;const u=()=>{const v=l.querySelectorAll(".line")[n-1];for(const f of l.querySelectorAll(".line[data-marcada]"))f!==v&&delete f.dataset.marcada;v!==void 0&&(v.dataset.marcada="",!i&&typeof v.scrollIntoView=="function"&&(v.scrollIntoView({block:"center"}),i=!0))};if(u(),typeof MutationObserver>"u")return;const d=new MutationObserver(u);return d.observe(l,{childList:!0,subtree:!0}),()=>d.disconnect()},[e,n]),o.jsxs("div",{className:Ic.visor,ref:r,children:[n===void 0?null:a===void 0?o.jsx("p",{className:Ic.aviso,children:`El fichero ya no tiene línea ${n}: ha cambiado desde el hallazgo.`}):o.jsx("div",{className:Ic.extracto,"aria-label":`Línea ${n}`,children:a.lineas.map(l=>o.jsxs("div",{className:Ic.lineaDelExtracto,"data-marcada":l.marcada?"":void 0,children:[o.jsx("span",{className:Ic.numero,children:l.numero}),o.jsx("span",{children:l.texto})]},l.numero))}),o.jsx(V7,{code:e,lang:t,copyLabel:"Copiar",copiedLabel:"Copiado",className:Ic.bloque})]})}const GR="_caja_1c0hw_10",WR="_artefactos_1c0hw_6",ZR="_visor_1c0hw_24",QR="_lista_1c0hw_32",XR="_cabecera_1c0hw_58",YR="_nombre_1c0hw_73",KR="_mandos_1c0hw_79",JR="_caras_1c0hw_86",eP="_cara_1c0hw_86",tP="_descargar_1c0hw_120",nP="_marco_1c0hw_141",rP="_iframe_1c0hw_154",aP="_markdown_1c0hw_164",oP="_aviso_1c0hw_171",sP="_nota_1c0hw_179",iP="_rotulo_1c0hw_186",lP="_fila_1c0hw_196",cP="_filaNombre_1c0hw_225",uP="_filaPeso_1c0hw_231",It={caja:GR,artefactos:WR,visor:ZR,lista:QR,cabecera:XR,nombre:YR,mandos:KR,caras:JR,cara:eP,descargar:tP,marco:nP,iframe:rP,markdown:aP,aviso:oP,nota:sP,rotulo:iP,fila:lP,filaNombre:cP,filaPeso:uP},c5="/artefactos/",y8=e=>e.startsWith(c5)?e.slice(c5.length):e;function Uc(e,t=!1,n){return`/artefacto?n=${encodeURIComponent(y8(e))}${t?"&descargar=1":""}${n===void 0?"":`&tema=${n}`}`}function dP(){const e=()=>document.body.hasAttribute("data-ds-dark-theme")?"oscuro":"claro",[t,n]=S.useState(e);return S.useEffect(()=>{const r=new MutationObserver(()=>n(e()));return r.observe(document.body,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),()=>r.disconnect()},[]),t}function pP({lista:e,contenidos:t,elegido:n,alElegir:r,alPedir:a,conectado:l}){var q;const[i,u]=S.useState("vista"),d=e.find(F=>F.ruta===n);S.useEffect(()=>{if(e.length!==0){if(n===void 0){r(e[e.length-1].ruta);return}e.some(F=>F.ruta===n)||r(void 0)}},[e,n,r]);const m=S.useRef(null),v=dP(),f=typeof document<"u"&&document.fullscreenEnabled===!0,h=d==null?void 0:d.mime,b=h==="text/html",y=h==="text/x-openui",j=b||y,C=h!==void 0&&h.startsWith("image/"),N=h==="text/markdown",E=j||C||N||(h==="text/plain"||h==="application/json"||h==="text/csv"),P=n===void 0?void 0:t[n],M=E&&!(j&&i==="vista");S.useEffect(()=>{l===!1||n===void 0||!M||t[n]===void 0&&a(y8(n))},[l,n,M,t,a]);const L=(P==null?void 0:P.mime)!==void 0&&P.base64!==void 0,U=L&&(P==null?void 0:P.mime)==="image/svg+xml"&&P.texto!==void 0,W=L&&!U,O=j||N&&(P==null?void 0:P.error)===void 0;return e.length===0?o.jsx("p",{className:It.aviso,children:"Esta sesión no ha dejado ningún artefacto todavía. Los dibuja el agente cuando le pides un diagrama, un panel o un informe."}):o.jsx("div",{className:It.caja,children:o.jsxs("div",{className:It.artefactos,children:[o.jsx("div",{className:It.visor,children:d===void 0?o.jsx("p",{className:It.aviso,children:"Elige un artefacto de la lista."}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:It.cabecera,children:[o.jsx("span",{className:It.nombre,children:d.nombre}),o.jsxs("div",{className:It.mandos,children:[O?o.jsx("div",{className:It.caras,role:"group","aria-label":"Cómo se enseña el artefacto",children:["vista","fuente"].map(F=>o.jsx("button",{type:"button",className:It.cara,"aria-pressed":i===F,"data-activa":i===F?"":void 0,onClick:()=>u(F),"aria-label":F==="vista"?"Vista":"Fuente",title:F==="vista"?"Ver el artefacto como se pinta":"Ver el texto del artefacto",children:F==="vista"?o.jsx($R,{}):o.jsx(AR,{})},F))}):null,j&&i==="vista"&&f?o.jsx("button",{type:"button",className:It.descargar,"aria-label":"Pantalla completa",title:"Ver el artefacto a pantalla completa (Esc para salir)",onClick:()=>{var F,K;return void((K=(F=m.current)==null?void 0:F.requestFullscreen)==null?void 0:K.call(F).catch(()=>{}))},children:o.jsx(ER,{})}):null,o.jsx("a",{className:It.descargar,href:Uc(d.ruta,!0),download:d.nombre,"aria-label":"Descargar",title:`Descargar ${d.nombre}`,children:o.jsx(DR,{})})]})]}),j&&i==="vista"?o.jsxs("div",{className:It.marco,ref:m,children:[o.jsx("iframe",{className:It.iframe,src:y?Uc(d.ruta,!1,v):Uc(d.ruta),title:d.nombre,sandbox:"allow-scripts"}),y?o.jsxs("p",{className:It.nota,children:["Un programa de OpenUI, pintado con su librería de componentes. Corre aislado y"," ",o.jsx("strong",{children:"sin red"}),": no habla con la consola ni carga nada de fuera, así que se ve igual sin conexión."]}):o.jsxs("p",{className:It.nota,children:["Corre aislado: no puede hablar con la consola ni leer tus datos. Las skills que lo escriben cargan tipografías y diagramas de un CDN, así que"," ",o.jsx("strong",{children:"sin conexión no se ve entero"}),"."]})]}):E?P===void 0?o.jsxs("p",{className:It.aviso,children:["Trayendo ",d.nombre,"…"]}):P.error!==void 0?o.jsxs("p",{className:It.aviso,children:["No se puede enseñar este artefacto: ",P.error,"."]}):W?o.jsx(am,{mime:P.mime,base64:P.base64,alt:d.nombre,bytes:P.bytes}):P.mime!==void 0&&P.base64===void 0&&P.binario?o.jsxs("p",{className:It.aviso,children:["Es una imagen de ",So(P.bytes)," KB: pesa más de lo que se trae por el cable. Descárgala para verla."]}):P.binario?o.jsxs("p",{className:It.aviso,children:["Son ",So(P.bytes)," KB de datos binarios. No se enseña su contenido."]}):o.jsxs(o.Fragment,{children:[U?o.jsxs(o.Fragment,{children:[o.jsx(am,{mime:P.mime,base64:P.base64,alt:d.nombre,bytes:P.bytes}),o.jsx("p",{className:It.rotulo,children:"Código"})]}):null,P.recortado?o.jsxs("p",{className:It.nota,children:["Recortado a ",So(((q=P.texto)==null?void 0:q.length)??0)," KB de ",So(P.bytes)," KB: descárgalo para verlo entero."]}):null,N&&i==="vista"?o.jsx("div",{className:`${It.markdown} md-cuerpo`,children:o.jsx(Ul,{text:Vl(P.texto??""),codeLabels:Gl})}):o.jsx(b8,{texto:P.texto??"",...rm(d.nombre)===void 0?{}:{lenguaje:rm(d.nombre)}})]}):o.jsxs("p",{className:It.aviso,children:["No se sabe enseñar este artefacto aquí (",So(d.bytes)," KB): no reconocemos su tipo, y adivinarlo sería peor que decirlo. Descárgalo para abrirlo con tu editor."]})]})}),o.jsxs("aside",{className:It.lista,"aria-label":"Artefactos de la sesión",children:[e.map(F=>o.jsxs("button",{type:"button",className:It.fila,"aria-current":F.ruta===n||void 0,"data-elegido":F.ruta===n?"":void 0,onClick:()=>r(F.ruta),children:[o.jsx("span",{className:It.filaNombre,children:F.nombre}),o.jsxs("span",{className:It.filaPeso,children:[So(F.bytes)," KB"]})]},F.ruta)),o.jsx("p",{className:It.nota,children:"Viven con esta sesión: no entran en git ni suben a CloudStudio, y se van si la borras."})]})]})})}function mP(e){const t=e.lastIndexOf("."),n=t>0?e.slice(t+1).toLowerCase():"";switch(n){case"html":case"htm":return{etiqueta:"HTML",forma:"pagina"};case"openui":return{etiqueta:"OpenUI",forma:"panel"};case"md":return{etiqueta:"Markdown",forma:"texto"};case"txt":return{etiqueta:"Texto",forma:"texto"};case"json":case"csv":return{etiqueta:n.toUpperCase(),forma:"texto"};case"svg":return{etiqueta:"SVG",forma:"imagen"};case"png":case"jpg":case"jpeg":case"gif":case"webp":return{etiqueta:"Imagen",forma:"imagen"};case"":return{etiqueta:"Fichero",forma:"fichero"};default:return{etiqueta:n.toUpperCase(),forma:"fichero"}}}function hP(e,t){if(!t)for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.tipo==="usuario")return;if(r.tipo!=="consulta")continue;const a=Array.isArray(r.opciones)?r.opciones.filter(l=>typeof l=="string"&&l.trim()!==""):[];return a.length===0||typeof r.pregunta!="string"?void 0:{indice:n,pregunta:r.pregunta,opciones:a}}}function fP(e,t){return[`
|
|
472
|
+
|
|
473
|
+
`+e.trim(),...t.length===0?[]:["",...t.map((n,r)=>`${r+1}. ${n}`),"","Contesta con el número o con tus palabras."]].join(`
|
|
474
|
+
`)}function gP(e,t,n){const r=fP(t,n);return e.endsWith(r)?e.slice(0,e.length-r.length).trimEnd():e}const vP="_tarjeta_1xjze_5",bP="_registro_1xjze_22",yP="_respuestaPropia_1xjze_43",xP="_cabecera_1xjze_48",_P="_marca_1xjze_59",wP="_enunciado_1xjze_71",jP="_opciones_1xjze_80",CP="_opcion_1xjze_80",kP="_radio_1xjze_110",NP="_otra_1xjze_116",SP="_campo_1xjze_122",$P="_decisiones_1xjze_137",or={tarjeta:vP,registro:bP,respuestaPropia:yP,cabecera:xP,marca:_P,enunciado:wP,opciones:jP,opcion:CP,radio:kP,otra:NP,campo:SP,decisiones:$P};function AP({pregunta:e,opciones:t,alElegir:n,respondida:r}){const[a,l]=S.useState(void 0),[i,u]=S.useState(""),[d,m]=S.useState(!1),[v,f]=S.useState(!1),h=S.useRef(!1),b=S.useRef(!0);S.useEffect(()=>(b.current=!0,()=>{b.current=!1}),[]);const y=S.useId();if(n===void 0){const N=r===void 0?-1:t.indexOf(r.trim());return o.jsxs("section",{className:or.tarjeta,"aria-label":`Pregunta del agente: ${e}`,children:[o.jsxs("p",{className:or.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:or.marca,children:"?"}),r===void 0?"Pregunta del agente":"Pregunta del agente · contestada"]}),o.jsx("p",{className:or.enunciado,children:e}),o.jsx("ul",{className:or.registro,children:t.map((z,E)=>o.jsx("li",{"data-elegida":E===N?"":void 0,children:z},E))}),r!==void 0&&N===-1?o.jsx("p",{className:or.respuestaPropia,children:`Contestaste: ${r}`}):null]})}const j=a==="otra"?i.trim():a===void 0?"":t[a]??"",C=()=>{h.current||j===""||(h.current=!0,m(!0),f(!1),Promise.resolve(n(j)).catch(()=>{h.current=!1,b.current&&(m(!1),f(!0))}))};return o.jsxs("section",{className:or.tarjeta,"aria-label":e,children:[o.jsxs("p",{className:or.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:or.marca,children:"?"}),"El agente necesita una respuesta"]}),o.jsx("p",{className:or.enunciado,children:e}),o.jsxs("div",{role:"radiogroup","aria-label":e,className:or.opciones,children:[t.map((N,z)=>o.jsxs("label",{className:or.opcion,"data-elegida":a===z?"":void 0,children:[o.jsx("input",{type:"radio",name:y,className:or.radio,checked:a===z,disabled:d,onChange:()=>l(z)}),o.jsx("span",{children:N})]},z)),o.jsxs("label",{className:`${or.opcion} ${or.otra}`,"data-elegida":a==="otra"?"":void 0,children:[o.jsx("input",{type:"radio",name:y,className:or.radio,checked:a==="otra",disabled:d,onChange:()=>l("otra"),"aria-label":"Otra respuesta"}),o.jsx("textarea",{className:or.campo,rows:2,placeholder:"O contesta con tus palabras…","aria-label":"Tu respuesta",value:i,disabled:d,onChange:N=>{u(N.target.value),l("otra")}})]})]}),o.jsx("div",{className:or.decisiones,children:o.jsx(Le,{type:"button",className:ot.accion,disabled:d||j==="",onClick:C,children:d?"Enviando…":"Responder"})}),v?o.jsx("p",{className:ot.fallo,role:"alert",children:"La respuesta no llegó a xonecode: el envío falló. Vuelve a pulsar «Responder» cuando la conexión se recupere."}):null]})}const EP="_visor_1wkto_3",DP="_imagen_1wkto_19",zP="_pie_1wkto_30",TP="_nombre_1wkto_38",MP="_acciones_1wkto_49",LP="_enlace_1wkto_55",Rc={visor:EP,imagen:DP,pie:zP,nombre:TP,acciones:MP,enlace:LP};function IP({ruta:e,nombre:t,alCerrar:n,alAbrirEnArtefactos:r}){const a=S.useRef(null);return S.useEffect(()=>{var i;const l=document.activeElement;return(i=a.current)==null||i.focus(),()=>{var u;return(u=l==null?void 0:l.focus)==null?void 0:u.call(l)}},[]),o.jsx(lr,{open:!0,onClose:n,title:t,headless:!0,className:ot.capa,children:o.jsx("div",{className:ot.velo,onClick:l=>{l.target===l.currentTarget&&n()},children:o.jsxs("figure",{className:Rc.visor,children:[o.jsx("img",{className:Rc.imagen,src:Uc(e),alt:t}),o.jsxs("figcaption",{className:Rc.pie,children:[o.jsx("span",{className:Rc.nombre,children:t}),o.jsxs("span",{className:Rc.acciones,children:[r===void 0?null:o.jsx(Le,{type:"button",variant:"outline",className:ot.cancelar,onClick:r,children:"Abrir en Artefactos"}),o.jsx("a",{className:`${ot.cancelar} ${Rc.enlace}`,href:Uc(e,!0),download:t,children:"Descargar"}),o.jsx("button",{ref:a,type:"button",className:ot.accion,onClick:n,children:"Cerrar"})]})]})]})})})}const RP="_root_t3u4o_5",PP="_scroll_t3u4o_5",qP="_column_t3u4o_6",FP="_flowItem_t3u4o_9",xr={root:RP,scroll:PP,column:qP,flowItem:FP},OP="_flujo_jvovd_20",BP="_inicioDeTurno_jvovd_26",HP="_globo_jvovd_45",UP="_usuario_jvovd_56",VP="_error_jvovd_57",GP="_adjuntosDelMensaje_jvovd_95",WP="_adjuntoDelMensaje_jvovd_111",ZP="_asistente_jvovd_125",QP="_textoTenue_jvovd_159",XP="_trabajo_jvovd_166",YP="_paso_jvovd_177",KP="_resumenFallos_jvovd_202",JP="_giro_jvovd_208",eq="_trozoDeTrabajo_jvovd_240",tq="_memoriaDelTurno_jvovd_247",nq="_quienTrabaja_jvovd_256",rq="_fase_jvovd_264",aq="_pensando_jvovd_270",oq="_resumen_jvovd_202",sq="_cierre_jvovd_286",iq="_detalleDePulso_jvovd_311",lq="_pensado_jvovd_321",cq="_acciones_jvovd_329",uq="_hora_jvovd_338",dq="_accionesDelUsuario_jvovd_348",pq="_relectura_jvovd_360",mq="_trabajoAlAbrir_jvovd_374",hq="_sistema_jvovd_397",fq="_sinAprobacion_jvovd_371",gq="_textoDelAviso_jvovd_425",vq="_cerrarAviso_jvovd_431",bq="_bienvenida_jvovd_445",yq="_bienvenidaTitulo_jvovd_456",xq="_artefactosDelTramo_jvovd_474",_q="_capturas_jvovd_498",wq="_captura_jvovd_498",jq="_capturaSola_jvovd_527",Cq="_capturaAbrir_jvovd_532",kq="_artefacto_jvovd_474",Nq="_artefactoCuerpo_jvovd_564",Sq="_artefactoIcono_jvovd_574",$q="_artefactoTexto_jvovd_580",Aq="_artefactoNombre_jvovd_587",Eq="_artefactoMeta_jvovd_596",Dq="_artefactoPeso_jvovd_603",zq="_artefactoAbrir_jvovd_610",Tq="_artefactoIr_jvovd_624",Mq="_pasoActual_jvovd_638",Lq="_pensandoAhora_jvovd_650",Iq="_lineaEnVuelo_jvovd_674",Rq="_enVuelo_jvovd_681",Pq="_veredictoEnRojo_jvovd_692",qq="_veredictoCabecera_jvovd_707",Fq="_hallazgos_jvovd_712",Oq="_hallazgo_jvovd_712",Bq="_hallazgoTexto_jvovd_729",Hq="_hallazgoDonde_jvovd_736",Uq="_hallazgoAcciones_jvovd_741",Vq="_hallazgoBoton_jvovd_747 _secundario_1l1rx_39",Gq="_veredictoNota_jvovd_751",Me={flujo:OP,inicioDeTurno:BP,globo:HP,usuario:UP,error:VP,adjuntosDelMensaje:GP,adjuntoDelMensaje:WP,asistente:ZP,textoTenue:QP,trabajo:XP,paso:YP,resumenFallos:KP,giro:JP,trozoDeTrabajo:eq,memoriaDelTurno:tq,quienTrabaja:nq,fase:rq,pensando:aq,resumen:oq,cierre:sq,detalleDePulso:iq,pensado:lq,acciones:cq,hora:uq,accionesDelUsuario:dq,relectura:pq,trabajoAlAbrir:mq,sistema:hq,sinAprobacion:fq,textoDelAviso:gq,cerrarAviso:vq,bienvenida:bq,bienvenidaTitulo:yq,artefactosDelTramo:xq,capturas:_q,captura:wq,capturaSola:jq,capturaAbrir:Cq,artefacto:kq,artefactoCuerpo:Nq,artefactoIcono:Sq,artefactoTexto:$q,artefactoNombre:Aq,artefactoMeta:Eq,artefactoPeso:Dq,artefactoAbrir:zq,artefactoIr:Tq,pasoActual:Mq,pensandoAhora:Lq,lineaEnVuelo:Iq,enVuelo:Rq,veredictoEnRojo:Pq,veredictoCabecera:qq,hallazgos:Fq,hallazgo:Oq,hallazgoTexto:Bq,hallazgoDonde:Hq,hallazgoAcciones:Uq,hallazgoBoton:Vq,veredictoNota:Gq};function u5(e){return typeof e.pregunta=="string"&&Array.isArray(e.opciones)&&e.opciones.length>0&&e.opciones.every(t=>typeof t=="string"&&t.trim()!=="")}const a2="Pensando…";function Wq({tramo:e,pasos:t,segundosEnVuelo:n,pasoActual:r,segundosDelPaso:a}){const{nodo:l,alDesplazar:i}=h8(e.actos.length),u=xR(e.actos);return o.jsxs("details",{className:`${xr.flowItem} ${Me.pensando}`,onToggle:d=>{!d.currentTarget.open||l.current===null||(l.current.scrollTop=l.current.scrollHeight)},children:[o.jsx("summary",{className:Me.resumen,children:e.terminado?o.jsxs(o.Fragment,{children:[`Trabajo del agente · ${t} ${t===1?"paso":"pasos"}`,u===0?null:o.jsx("span",{className:Me.resumenFallos,children:` · ${u} ${u===1?"falló":"fallaron"}`}),e.ms===void 0&&e.consumo===void 0?null:o.jsxs(o.Fragment,{children:[" · ",o.jsx(v8,{ms:e.ms,consumo:e.consumo})]})]}):o.jsxs("span",{className:Me.lineaEnVuelo,children:[o.jsx("span",{"aria-hidden":"true",className:Me.giro}),o.jsx("span",{className:Me.enVuelo,children:n===void 0?"Trabajando…":`Trabajando… · ${n} s`}),r===void 0?null:o.jsxs("span",{className:Me.pasoActual,children:[" · ",r===a2?o.jsx("span",{className:Me.pensandoAhora,children:a2}):r,a===void 0?"":` · ${a} s`]})]})}),o.jsxs("div",{className:Me.detalleDePulso,ref:l,onScroll:i,children:[e.memoria===void 0?null:o.jsx("p",{className:Me.memoriaDelTurno,children:e.memoria.por.length===0?"Memoria del proyecto · pedida":`Memoria del proyecto · pedida por ${e.memoria.por.map(d=>e4(d)).join(", ")}`}),Zq(e.actos).map(({acto:d,trozos:m},v)=>{var f;if(d.tipo==="razonamiento"){const h=(f=m==null?void 0:m[0])==null?void 0:f.rotulo;return o.jsxs(S.Fragment,{children:[h===void 0?null:o.jsx("p",{className:Me.quienTrabaja,children:h}),o.jsx("p",{className:`${Me.textoTenue} ${Me.pensado}`,children:d.texto})]},v)}return d.tipo==="herramientas"?(m??[]).map((h,b)=>o.jsxs("div",{className:Me.trozoDeTrabajo,children:[h.rotulo===void 0?null:o.jsx("p",{className:Me.quienTrabaja,children:h.rotulo}),o.jsx("ul",{className:Me.trabajo,children:h.lineas.map((y,j)=>{var C;return o.jsx("li",{className:`${Me.textoTenue} ${Me.paso}`,"data-fallo":(C=h.fallidas)!=null&&C.includes(j)?"":void 0,children:y},j)})})]},`${v}-${b}`)):d.tipo==="verificacion"?o.jsx("ul",{className:Me.trabajo,children:J2(d).map((h,b)=>o.jsx("li",{className:Me.textoTenue,children:h},b))},v):d.tipo==="fase"?o.jsxs("p",{className:`${Me.textoTenue} ${Me.fase}`,children:[d.texto," · ",Math.round(d.ms/100)/10,"s"]},v):null})]})]})}function Zq(e){let t;return e.map(n=>{if(n.tipo==="razonamiento"&&n.origen!==void 0){const l=e4(n.origen),i=l===t?[]:[{...l===void 0?{}:{rotulo:l},lineas:[]}];return t=l,{acto:n,trozos:i}}if(n.tipo!=="herramientas")return{acto:n};const{trozos:r,ultimo:a}=yR(n.lineas,n.detalles,t);return t=a,{acto:n,trozos:r}})}function Qq(e){const t=K2(e);return`Corrige ${e.code}${t===void 0?"":` en ${t}`}: ${e.mensaje}`}function Xq({veredicto:e,alAbrirFichero:t,alPedirCorreccion:n}){return o.jsxs("section",{className:`${xr.flowItem} ${Me.veredictoEnRojo}`,"aria-label":"Verificación en rojo",children:[o.jsx("p",{className:Me.veredictoCabecera,children:`✗ La verificación sigue en rojo · ${e.errores} ${e.errores===1?"error":"errores"}, ${e.avisos} ${e.avisos===1?"aviso":"avisos"}`}),(e.hallazgos??[]).length===0?null:o.jsx("ul",{className:Me.hallazgos,children:(e.hallazgos??[]).map((r,a)=>{const l=K2(r);return o.jsxs("li",{className:Me.hallazgo,children:[o.jsxs("span",{className:Me.hallazgoTexto,children:[`${c8(r)} `,l===void 0?null:o.jsx("code",{className:Me.hallazgoDonde,children:l}),` ${r.code} — ${r.mensaje}`]}),r.fichero===void 0?null:o.jsxs("span",{className:Me.hallazgoAcciones,children:[t===void 0?null:o.jsx("button",{type:"button",className:Me.hallazgoBoton,onClick:()=>t(r.fichero,r.linea),children:"Abrir"}),n===void 0?null:o.jsx("button",{type:"button",className:Me.hallazgoBoton,title:"Deja la petición escrita en el compositor; no se envía sola",onClick:()=>n(Qq(r)),children:"Pedir corrección"})]})]},a)})}),e.preexistentes===void 0||e.preexistentes===0?null:o.jsx("p",{className:Me.veredictoNota,children:`Y ${e.preexistentes} ${e.preexistentes===1?"hallazgo":"hallazgos"} más en ficheros que este turno no tocó.`})]})}const d5=e=>e.mime!==void 0&&e.mime.startsWith("image/");function Yq({actos:e,alAbrir:t}){const[n,r]=S.useState(void 0),a=e.length===1;return o.jsxs("div",{className:Me.capturas,children:[e.map((l,i)=>o.jsx("button",{type:"button",className:Me.capturaAbrir,onClick:()=>r(l),"aria-label":`Ampliar ${l.nombre}`,title:`${l.nombre} · ${Math.max(1,Math.round(l.bytes/1024))} KB`,children:o.jsx("img",{className:`${Me.captura} ${a?Me.capturaSola:""}`,src:Uc(l.ruta),alt:l.nombre})},i)),n===void 0?null:o.jsx(IP,{ruta:n.ruta,nombre:n.nombre,alCerrar:()=>r(void 0),...t===void 0?{}:{alAbrirEnArtefactos:()=>{r(void 0),t(n.ruta)}}})]})}function Kq({acto:e,sesion:t,alAbrir:n}){const r=t===void 0?e.ruta:`.xonecode/sesiones/${t}/artefactos/${e.ruta.slice(12)}`,a=mP(e.nombre),l=`${Math.max(1,Math.round(e.bytes/1024))} KB`,i=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Me.artefactoIcono,children:o.jsx(zR,{forma:a.forma})}),o.jsxs("span",{className:Me.artefactoTexto,children:[o.jsx("span",{className:Me.artefactoNombre,children:e.nombre}),o.jsxs("span",{className:Me.artefactoMeta,children:[a.etiqueta," · ",o.jsx("span",{className:Me.artefactoPeso,children:l})]})]})]});return o.jsxs("div",{className:Me.artefacto,title:"No es un fichero del proyecto: vive con esta sesión, no entra en git y no sube a CloudStudio.",children:[n===void 0?o.jsx("div",{className:Me.artefactoCuerpo,children:i}):o.jsxs("button",{type:"button",className:`${Me.artefactoCuerpo} ${Me.artefactoAbrir}`,"aria-label":`Abrir ${e.nombre}`,onClick:()=>n(e.ruta),children:[i,o.jsxs("span",{"aria-hidden":"true",className:Me.artefactoIr,children:["Abrir ",o.jsx(TR,{})]})]}),o.jsx(z0,{texto:r,etiqueta:"Copiar la ruta del artefacto"})]})}const Jq=new Set(["razonamiento","herramientas","fase","artefacto","verificacion"]),p5={aviso:{titulo:"Verificaciones",uno:"aviso",varios:"avisos",markdown:!1},permiso:{titulo:"Permisos",uno:"escritura",varios:"escrituras",markdown:!1},resumen:{titulo:"Resumen del contexto",uno:"resumen",varios:"resúmenes",markdown:!0}},eF=2e4;function tF(){const[e,t]=S.useState(!0);return S.useEffect(()=>{const n=setTimeout(()=>t(!1),eF);return()=>clearTimeout(n)},[]),e?o.jsxs("div",{role:"note",className:`${xr.flowItem} ${Me.sinAprobacion}`,onClick:()=>t(!1),children:[o.jsxs("p",{className:Me.textoDelAviso,children:["Esta sesión va en ",o.jsx("strong",{children:"modo autónomo"}),": los cambios se aplican solos y cada turno te dirá qué ficheros tocó. Subir a CloudStudio sigue pidiéndote permiso. Vuelve a ",o.jsx("strong",{children:"supervisado"})," en la pastilla de la caja."]}),o.jsx("button",{type:"button",className:Me.cerrarAviso,"aria-label":"Cerrar el aviso",title:"Cerrar el aviso",children:"×"})]}):null}function nF({actos:e,turnoEnVuelo:t=!1,historica:n=!1,sinAprobacion:r=!1,trabajoAlAbrir:a,segundosEnVuelo:l,proyecto:i,modelo:u,sesion:d,alAbrirArtefacto:m,alAbrirFichero:v,alPedirCorreccion:f,alResponderConsulta:h}){const b=hP(e,t),y=new Map,j=new Map;for(const[q,F]of e.entries())if(!(F.tipo!=="consulta"||!u5(F))){for(let K=q-1;K>=0;K--){const le=e[K];if(le.tipo==="usuario")break;if(le.tipo==="asistente"){y.set(K,{pregunta:F.pregunta,opciones:F.opciones});break}}for(let K=q+1;K<e.length;K++){const le=e[K];if(le.tipo==="usuario"){j.set(q,le.texto);break}}}const C=e.map(q=>q.tipo).lastIndexOf("asistente"),N=(()=>{for(let q=e.length-1;q>=0;q-=1){const F=e[q];if(F.tipo==="usuario"||F.tipo==="asistente")return;if(F.tipo==="razonamiento")return a2;if(F.tipo==="herramientas"&&F.lineas.length>0)return F.lineas[F.lineas.length-1]}})(),z=f8(t===!0&&N!==void 0,N),E=[];let P,M,L=[];const U=new Map;for(const[q,F]of e.entries())F.tipo==="artefacto"&&U.set(F.ruta,q);for(const[q,F]of e.entries())if(F.tipo!=="sincronizacion"&&!(F.tipo==="consulta"&&!u5(F))&&!(F.tipo==="artefacto"&&U.get(F.ruta)!==q)){if(F.tipo==="sistema"&&F.clase!==void 0&&F.clase in p5){const K=F.clase;(M===void 0||M.clase!==K)&&(M={desde:q,clase:K,actos:[]},E.push({tipo:"harness",tramo:M})),M.actos.push(F);continue}if(M=void 0,Jq.has(F.tipo)){if(P===void 0){const K=L[L.length-1];K!==void 0&&(K.terminado=!0),P={desde:q,actos:[],terminado:!1},E.push({tipo:"pulso",tramo:P}),L.push(P)}P.actos.push(F);continue}if(F.tipo==="usuario"){for(const K of L)K.terminado=!0;L=[]}if(P=void 0,F.tipo==="fin"){const K=L[L.length-1];F.memoria!==void 0&&L[0]!==void 0&&(L[0].memoria=F.memoria);for(let le=L.length-1;le>=0;le--){const me=L[le],ne=[...me.actos].reverse().find(ce=>ce.tipo==="verificacion");if(ne!==void 0){ne.tipo==="verificacion"&&!ne.verde&&(me.rojoFinal=ne);break}}for(const le of L)le.terminado=!0;L=[],K!==void 0?(K.ms=F.ms,F.consumo!==void 0&&(K.consumo=F.consumo)):F.consumo!==void 0&&g8(F.consumo)&&E.push({tipo:"cierre",desde:q,ms:F.ms,consumo:F.consumo});continue}E.push({tipo:"acto",acto:F,indice:q})}const{nodo:W,alDesplazar:O}=h8(e);return o.jsx("div",{className:xr.root,children:o.jsx("div",{className:xr.scroll,ref:W,onScroll:O,children:o.jsxs("div",{className:`${xr.column} ${Me.flujo}`,children:[e.length===0&&!n?o.jsxs("section",{className:`${xr.flowItem} ${Me.bienvenida}`,"aria-label":"sesión nueva",children:[o.jsx("h2",{className:Me.bienvenidaTitulo,children:i===void 0?"Sesión nueva":`Sesión nueva en ${i}`}),o.jsxs("p",{children:["Pide algo en la caja de abajo: una pantalla nueva, un cambio en un ",o.jsx("code",{children:".xne"}),", una duda de XOne. El agente lee el proyecto, propone los cambios y"," ",o.jsx("strong",{children:"te pide aprobación antes de escribir"})," ningún fichero."]}),u===void 0?null:o.jsxs("p",{children:["Trabajará con ",o.jsx("code",{children:u}),"; se cambia en la pastilla de la caja."]})]}):null,r?o.jsx(tF,{}):null,a===void 0?null:o.jsxs("div",{role:"note",className:`${xr.flowItem} ${Me.trabajoAlAbrir}`,children:["Cuando abriste esta sesión, el proyecto ya tenía"," ",o.jsxs("strong",{children:[a.total," ",a.total===1?"fichero":"ficheros"," sin commitear"]}),". No los ha escrito esta conversación: pueden ser de otra sesión, de una tarea de fondo o tuyos de antes.",o.jsx("ul",{children:a.ficheros.map(q=>o.jsx("li",{children:q},q))}),a.total>a.ficheros.length?o.jsxs(o.Fragment,{children:["y ",a.total-a.ficheros.length," más"]}):null]}),n?o.jsx("p",{role:"note",className:`${xr.flowItem} ${Me.relectura}`,children:"Conversación reabierta: el agente no la recuerda. Lo que escribas empieza un hilo nuevo sobre este proyecto, con esta conversación a la vista pero no en su memoria."}):null,E.map(q=>{if(q.tipo==="cierre")return o.jsx("p",{className:`${xr.flowItem} ${Me.pensando} ${Me.cierre}`,children:o.jsx(v8,{ms:q.ms,consumo:q.consumo})},`cierre-${q.desde}`);if(q.tipo==="harness"){const{tramo:le}=q,{titulo:me,uno:ne,varios:ce,markdown:Ae}=p5[le.clase],de=le.actos.length;return o.jsxs("details",{className:`${xr.flowItem} ${Me.pensando}`,children:[o.jsx("summary",{className:Me.resumen,children:`${me} · ${de} ${de===1?ne:ce}`}),o.jsx("div",{className:Me.detalleDePulso,children:le.actos.map((te,I)=>Ae?o.jsx("div",{role:"note",className:"md-cuerpo",children:o.jsx(Ul,{text:Vl(te.texto),codeLabels:Gl})},I):o.jsx("p",{role:"note",className:Me.sistema,children:te.texto},I))})]},`harness-${le.desde}`)}if(q.tipo==="pulso"){const{tramo:le}=q,me=le.actos.reduce((I,V)=>I+(V.tipo==="artefacto"?0:V.tipo==="herramientas"?V.lineas.length:1),0),ne=le.actos.filter(I=>I.tipo==="artefacto"),ce=ne.filter(d5),Ae=ne.filter(I=>!d5(I)),de=o.jsx(Wq,{tramo:le,pasos:me,...l===void 0?{}:{segundosEnVuelo:l},...N===void 0?{}:{pasoActual:N},...z===void 0?{}:{segundosDelPaso:z}},`pulso-${le.desde}`),te=le.rojoFinal===void 0?null:o.jsx(Xq,{veredicto:le.rojoFinal,...v===void 0?{}:{alAbrirFichero:v},...f===void 0?{}:{alPedirCorreccion:f}});return ne.length===0?te===null?de:o.jsxs(S.Fragment,{children:[de,te]},`pulso-${le.desde}`):o.jsxs(S.Fragment,{children:[de,te,o.jsxs("div",{className:`${xr.flowItem} ${Me.artefactosDelTramo}`,children:[ce.length===0?null:o.jsx(Yq,{actos:ce,alAbrir:m}),Ae.map((I,V)=>o.jsx(Kq,{acto:I,sesion:d,alAbrir:m},`${le.desde}-${V}`))]})]},`pulso-${le.desde}`)}const{acto:F,indice:K}=q;if(F.tipo==="usuario")return o.jsxs("div",{className:`${xr.flowItem} ${Me.globo} ${Me.usuario} ${Me.inicioDeTurno}`,children:[F.texto===""?null:F.texto,F.adjuntos===void 0||F.adjuntos.length===0?null:o.jsx("ul",{className:Me.adjuntosDelMensaje,children:F.adjuntos.map((le,me)=>o.jsx("li",{className:Me.adjuntoDelMensaje,children:le},`${K}-${me}`))}),o.jsxs("div",{className:`${Me.acciones} ${Me.accionesDelUsuario}`,children:[o.jsx(m5,{cuando:F.cuando,clase:Me.hora}),F.texto===""?null:o.jsx(z0,{texto:F.texto,etiqueta:"Copiar el mensaje"})]})]},K);if(F.tipo==="consulta"){const le=(b==null?void 0:b.indice)===K&&h!==void 0,me=j.get(K);return o.jsx("div",{className:xr.flowItem,children:o.jsx(AP,{pregunta:F.pregunta,opciones:F.opciones,...le?{alElegir:h}:{},...me===void 0?{}:{respondida:me}})},K)}if(F.tipo==="asistente"){const le=y.get(K),me=le===void 0?F.texto:gP(F.texto,le.pregunta,le.opciones);return me===""?null:o.jsxs("div",{className:`${xr.flowItem} ${Me.globo} ${Me.asistente} md-cuerpo`,children:[o.jsx(Ul,{text:Vl(me),streaming:t&&K===C,codeLabels:Gl}),o.jsxs("div",{className:Me.acciones,children:[o.jsx(m5,{cuando:F.cuando,clase:Me.hora}),o.jsx(z0,{texto:F.texto,etiqueta:"Copiar la respuesta"})]})]},K)}return F.tipo==="sistema"?o.jsx("p",{role:"note",className:`${xr.flowItem} ${Me.sistema}`,children:F.texto},K):F.tipo==="error"?o.jsx("p",{className:`${xr.flowItem} ${Me.globo} ${Me.error}`,children:F.texto},K):null})]})})})}function m5({cuando:e,clase:t}){if(e===void 0)return null;const n=XT(e);if(n===void 0)return null;const r=YT(e);return o.jsx("time",{className:t,dateTime:e,...r===void 0?{}:{title:r},children:n})}function rF({actos:e,turnoEnVuelo:t,historica:n,sinAprobacion:r,trabajoAlAbrir:a,segundosEnVuelo:l,proyecto:i,modelo:u,sesion:d,alAbrirArtefacto:m,alAbrirFichero:v,alPedirCorreccion:f,alResponderConsulta:h}){return o.jsx("div",{className:vn.body,children:o.jsx("div",{className:vn.viewArea,children:o.jsx(nF,{actos:e,turnoEnVuelo:t===!0,historica:n===!0,sinAprobacion:r===!0,...a===void 0?{}:{trabajoAlAbrir:a},...l===void 0?{}:{segundosEnVuelo:l},...i===void 0?{}:{proyecto:i},...u===void 0?{}:{modelo:u},...d===void 0?{}:{sesion:d},...m===void 0?{}:{alAbrirArtefacto:m},...v===void 0?{}:{alAbrirFichero:v},...f===void 0?{}:{alPedirCorreccion:f},...h===void 0?{}:{alResponderConsulta:h}})})})}const aF="_barra_65uy2_4",oF="_pieza_65uy2_16",sF="_separador_65uy2_20",as={barra:aF,pieza:oF,separador:sF};function iF(e,t){if(e===void 0||e<=0)return"";const n=t!==void 0?` (${Math.round(e/t*100)}%)`:"",r=t!==void 0?`/${Mt(t)}`:"";return`ctx ${Mt(e)}${r}${n}`}function lF({turnos:e,pasos:t,ms:n,contexto:r,tope:a,segundosEnVuelo:l}){const i=iF(r,a);return o.jsxs("footer",{className:as.barra,children:[o.jsxs("span",{className:as.pieza,children:[e," turno",e===1?"":"s"]}),o.jsx("span",{className:as.separador,"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:as.pieza,children:[t," paso",t===1?"":"s"]}),l!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:as.separador,"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:as.pieza,children:["trabajando · ",l," s"]})]}):n!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:as.separador,"aria-hidden":"true",children:"·"}),o.jsx("span",{className:as.pieza,children:nm(n)})]}):null,i!==""&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:as.separador,"aria-hidden":"true",children:"·"}),o.jsx("span",{className:as.pieza,children:i})]})]})}const cF="_avisoDeConexion_i8cof_17",uF={avisoDeConexion:cF};function i0({conectado:e}){return o.jsx("div",{className:uF.avisoDeConexion,children:o.jsx(ME,{reconnecting:!e,label:"sin conexión con XOneCode — reintentando…"})})}function t4(e){const t=[];for(const n of e){const r=n.split("/");let a=t,l="";r.forEach((i,u)=>{l=l===""?i:`${l}/${i}`;const d=u===r.length-1;let m=a.find(v=>v.nombre===i&&v.hijos!==void 0==!d);m===void 0&&(m=d?{nombre:i,ruta:l}:{nombre:i,ruta:l,hijos:[]},a.push(m)),d||(a=m.hijos)})}return t}function Im(e){return e.hijos===void 0?[e.ruta]:e.hijos.flatMap(Im)}function x8(e,t){const n=Im(e),r=n.filter(a=>t.has(a)).length;return r===0?"ninguna":r===n.length?"todas":"algunas"}function h5(e,t){const n=new Set(t),r=x8(e,t)!=="todas";for(const a of Im(e))r?n.add(a):n.delete(a);return n}function om(e){return e!==void 0&&e.error===void 0&&typeof e.texto=="string"&&typeof e.huella=="string"&&!e.recortado&&!e.binario&&(e.codificacion===void 0||e.codificacion==="utf-8")&&e.mime===void 0}function o2(e){const t=(e.match(/\r\n/g)??[]).length,n=(e.match(/\n/g)??[]).length-t;return t>n?`\r
|
|
475
|
+
`:`
|
|
476
|
+
`}function f5(e){return e.replace(/\r\n?/g,`
|
|
477
|
+
`)}function dF(e,t){return t===`
|
|
478
|
+
`?e:e.replace(/\n/g,`\r
|
|
479
|
+
`)}const pF=1e6;function mF(e){return new TextEncoder().encode(JSON.stringify(e)).length<=pF}const hF=new Map([["xne","xne"],["js","js"],["css","css"],["xml","xml"],["ini","config"],["json","config"],["png","imagen"],["jpg","imagen"],["jpeg","imagen"],["gif","imagen"],["webp","imagen"],["svg","imagen"],["db","bd"],["sqlite","bd"],["md","markdown"],["ttf","fuente"],["otf","fuente"],["woff","fuente"],["woff2","fuente"]]);function _8(e){const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");return n<=0?void 0:t.slice(n+1).toLowerCase()}function w8(e){const t=_8(e);return(t===void 0?void 0:hF.get(t))??"otro"}const fF=new Map([["xne","XML de XOne"],["xml","XML"],["svg","XML"],["js","JavaScript"],["css","CSS"],["md","Markdown"],["json","JSON"],["ini","INI"],["html","HTML"]]);function gF(e){if(e==="")return 0;const t=(e.match(/\n/g)??[]).length;return e.endsWith(`
|
|
480
|
+
`)?t:t+1}function Zh(e,t,n){if(t===void 0||t.error!==void 0)return[];if(t.texto===void 0)return[];const r=_8(e),a=[(r===void 0?void 0:fF.get(r))??"Texto"];if(!t.recortado){const i=gF(t.texto);a.push(`${i} ${i===1?"línea":"líneas"}`)}t.codificacion!==void 0&&a.push(t.codificacion==="utf-8"?"UTF-8":"Latin-1");const l=t.texto.includes(`
|
|
481
|
+
`)?n??o2(t.texto):void 0;return l!==void 0&&a.push(l===`\r
|
|
482
|
+
`?"CRLF":"LF"),a}const vF="_icono_y2rpu_6",bF="_xne_y2rpu_11",yF="_js_y2rpu_15",xF="_css_y2rpu_1",_F="_xml_y2rpu_23",wF="_config_y2rpu_26",jF="_otro_y2rpu_27",CF="_imagen_y2rpu_31",kF="_bd_y2rpu_35",NF="_markdown_y2rpu_39",SF="_fuente_y2rpu_40",$F="_carpeta_y2rpu_44",bp={icono:vF,xne:bF,js:yF,css:xF,xml:_F,config:wF,otro:jF,imagen:CF,bd:kF,markdown:NF,fuente:SF,carpeta:$F};function sm({ruta:e,carpeta:t=!1,abierta:n=!1,tamano:r=16}){if(t)return o.jsx(em,{lado:r,className:`${bp.icono} ${bp.carpeta}`,icono:n?"carpeta-abierta":"carpeta",children:n?o.jsx("path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}):o.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})});const a=w8(e);return o.jsxs(em,{lado:r,className:`${bp.icono} ${bp[a]??""}`,icono:a,children:[o.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),o.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),AF[a]]})}const AF={xne:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"m10 13-2 2 2 2"}),o.jsx("path",{d:"m14 17 2-2-2-2"})]}),xml:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"m9.5 13-2 2 2 2"}),o.jsx("path",{d:"m14.5 17 2-2-2-2"}),o.jsx("path",{d:"m12.8 12.5-1.6 5"})]}),js:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"}),o.jsx("path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"})]}),css:o.jsx("path",{d:"m10.5 12-1 6M14.5 12l-1 6M8.5 14h7M8 16.5h7"}),config:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"M8 13h.5M11.5 13H16M8 17h4.5M15.5 17H16"}),o.jsx("circle",{cx:"10",cy:"13",r:"1.5"}),o.jsx("circle",{cx:"14",cy:"17",r:"1.5"})]}),imagen:o.jsxs(o.Fragment,{children:[o.jsx("circle",{cx:"10",cy:"12",r:"2"}),o.jsx("path",{d:"m20 17-1.3-1.3a2.4 2.4 0 0 0-3.4 0L9 22"})]}),bd:o.jsxs(o.Fragment,{children:[o.jsx("ellipse",{cx:"12",cy:"12.3",rx:"3.5",ry:"1.3"}),o.jsx("path",{d:"M8.5 12.3v4.4c0 .7 1.6 1.3 3.5 1.3s3.5-.6 3.5-1.3v-4.4"})]}),markdown:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"M7.5 18v-6l2 2.5 2-2.5v6"}),o.jsx("path",{d:"M15.5 12v6M13.8 16.3l1.7 1.7 1.7-1.7"})]}),fuente:o.jsx("path",{d:"m9 18 3-7 3 7M10.1 15.5h3.8"}),otro:null},EF="_nivel_18ce8_5",DF="_hoja_18ce8_14",zF="_carpeta_18ce8_15",TF="_nombre_18ce8_48",MF="_flecha_18ce8_63",LF="_insignia_18ce8_72",IF="_guia_18ce8_81",RF="_fila_18ce8_104",PF="_casilla_18ce8_117",qF="_alFinal_18ce8_132",FF="_cuenta_18ce8_137",da={nivel:EF,hoja:DF,carpeta:zF,nombre:TF,flecha:MF,insignia:LF,guia:IF,fila:RF,casilla:PF,alFinal:qF,cuenta:FF};function OF(e){return`arbol-grupo-${e.replace(/[^A-Za-z0-9_-]/g,"_")}`}const s2=e=>8+e*14;function Qh(e){return Array.from({length:e},(t,n)=>o.jsx("span",{className:da.guia,style:{left:s2(n)+5},"data-guia":"","aria-hidden":"true"},n))}function n4({nodos:e,elegida:t,alElegir:n,filtro:r="",insignia:a,abiertas:l="primer-nivel",seleccion:i,variante:u="plano"}){const d=u==="explorador",[m,v]=S.useState(new Set),f=r.trim().toLowerCase(),h=S.useId(),b=L=>`${h}${OF(L)}`,y=L=>L.hijos===void 0?L.ruta.toLowerCase().includes(f):L.hijos.some(y),j=(L,U)=>{if(f!=="")return!0;const W=l==="todas"||l==="primer-nivel"&&U===0;return m.has(L.ruta)?!W:W},C=L=>v(U=>{const W=new Set(U);return W.has(L)?W.delete(L):W.add(L),W}),N=L=>{if(i===void 0)return null;const U=x8(L,i.marcadas);return o.jsx("input",{type:"checkbox",className:da.casilla,"aria-label":`Subir ${L.ruta}`,checked:U==="todas",disabled:i.bloqueada===!0,ref:W=>{W!==null&&(W.indeterminate=U==="algunas")},onChange:()=>i.alCambiar(h5(L,i.marcadas))})},z=(L,U,W)=>i===void 0?W:o.jsxs("div",{className:da.fila,style:{paddingLeft:s2(U)},children:[Qh(U),N(L),W]}),E=L=>i===void 0?s2(L):4,P=L=>{if(!d||i===void 0)return null;const U=Im(L),W=U.filter(O=>i.marcadas.has(O)).length;return o.jsxs("span",{className:da.cuenta,"aria-hidden":"true",children:[W,"/",U.length]})},M=(L,U,W)=>o.jsx("ul",{id:W,className:da.nivel,role:U===0?"tree":"group","data-explorador":d?"":void 0,children:L.filter(y).map(O=>O.hijos===void 0?o.jsx("li",{role:"none",children:z(O,U,o.jsxs("button",{type:"button",role:"treeitem",className:da.hoja,style:{paddingLeft:E(U)},"aria-level":U+1,"data-fichero":w8(O.ruta),...O.ruta===t?{"aria-current":"true"}:{},"data-elegida":O.ruta===t?"":void 0,onClick:()=>i===void 0?n(O.ruta):i.bloqueada===!0?void 0:i.alCambiar(h5(O,i.marcadas)),children:[i===void 0?Qh(U):null,o.jsx("span",{className:da.flecha,"aria-hidden":"true"}),o.jsx(sm,{ruta:O.ruta}),a===void 0||d?null:o.jsx("span",{className:da.insignia,children:a(O.ruta)}),o.jsx("span",{className:da.nombre,children:O.nombre}),a===void 0||!d?null:o.jsx("span",{className:`${da.insignia} ${da.alFinal}`,children:a(O.ruta)})]}))},O.ruta):o.jsxs("li",{role:"none",children:[z(O,U,o.jsxs("button",{type:"button",role:"treeitem",className:da.carpeta,style:{paddingLeft:E(U)},"aria-expanded":j(O,U),"aria-level":U+1,"aria-label":O.nombre,"aria-owns":j(O,U)?b(O.ruta):void 0,onClick:()=>C(O.ruta),children:[i===void 0?Qh(U):null,o.jsx("span",{className:da.flecha,"aria-hidden":"true",children:j(O,U)?"▾":"▸"}),o.jsx(sm,{ruta:O.ruta,carpeta:!0,abierta:j(O,U)}),o.jsx("span",{className:da.nombre,children:O.nombre}),P(O)]})),j(O,U)?M(O.hijos,U+1,b(O.ruta)):null]},O.ruta))});return M(e,0)}const j8="s",C8="n",T0=()=>{};function Tl({texto:e,oculta:t=!1,alResponder:n,anidado:r=!1,decision:a,progreso:l,alCerrar:i}){const[u,d]=S.useState(""),[m,v]=S.useState(!1),[f,h]=S.useState(!1),b=S.useRef(!0);S.useEffect(()=>(b.current=!0,()=>{b.current=!1}),[]);const y=(N,z)=>{m||(v(!0),h(!1),Promise.resolve(z===void 0?n(N):n(N,z)).catch(()=>{b.current&&(v(!1),h(!0))}))},j=f?o.jsx("p",{className:ot.fallo,role:"alert",children:"La respuesta no llegó a xonecode: el envío falló. Vuelve a enviarla cuando la conexión se recupere."}):null;if(a!==void 0&&a.seleccionable===!0)return o.jsx(BF,{texto:e,decision:a,enviando:m,fallo:j,alResponder:y,...l===void 0?{}:{progreso:l},...i===void 0?{}:{alCerrar:i}});if(a!==void 0&&(l==null?void 0:l.fase)==="terminada")return o.jsx(k8,{texto:e,progreso:l,alCerrar:i??T0});if(a!==void 0){const N=(l==null?void 0:l.fase)==="trabajando";return o.jsx(lr,{open:!0,onClose:T0,title:e,headless:!0,className:ot.capa,children:o.jsx("div",{className:ot.velo,children:o.jsxs("div",{className:ot.pregunta,children:[o.jsx("p",{className:ot.titulo,children:e}),o.jsx("pre",{className:ot.plan,children:a.lineas.map((z,E)=>o.jsxs(S.Fragment,{children:[E>0?`
|
|
483
|
+
`:null,o.jsx("span",{"data-cambio":z.cambio,children:z.texto})]},E))}),o.jsxs("div",{className:ot.decisiones,children:[o.jsxs(Le,{type:"button",variant:"primary",className:ot.accion,disabled:m||N,"aria-busy":N,onClick:()=>y(j8),children:[N?o.jsx("span",{className:ot.girando,"aria-hidden":"true"}):null,N?l.operacion==="bajar"?"Actualizando…":"Subiendo…":"Aceptar"]}),o.jsx(Le,{type:"button",variant:"outline",className:ot.cancelar,disabled:m||N,onClick:()=>y(C8),children:"Cancelar"})]}),j]})})})}const C=t?"pregunta-secreto":"pregunta-respuesta";return o.jsxs("form",{className:ot.pregunta,"data-anidado":r?"":void 0,onSubmit:N=>{N.preventDefault(),y(u)},children:[o.jsx("label",{className:ot.enunciado,htmlFor:C,children:e}),o.jsxs("div",{className:ot.fila,children:[o.jsx(Ta,{id:C,className:ot.envoltorio,autoFocus:!0,type:t?"password":"text",autoComplete:t?"off":void 0,value:u,onChange:N=>d(N.target.value)}),o.jsx(Le,{type:"submit",variant:r?"outline":"primary",className:ot.accion,disabled:m,children:"Aceptar"})]}),j]})}function BF({texto:e,decision:t,enviando:n,fallo:r,alResponder:a,progreso:l,alCerrar:i}){const u=(l==null?void 0:l.fase)==="trabajando",d=S.useMemo(()=>t.lineas.flatMap(C=>C.ruta===void 0?[]:[{ruta:C.ruta,cambio:C.cambio??"modificado"}]),[t]),m=S.useMemo(()=>t4(d.map(C=>C.ruta)),[d]),v=S.useMemo(()=>new Map(d.map(C=>[C.ruta,C.cambio])),[d]),[f,h]=S.useState(()=>new Set(d.map(C=>C.ruta))),b=d.length,y=d.filter(C=>f.has(C.ruta)).length,j=n||u;return(l==null?void 0:l.fase)==="terminada"?o.jsx(k8,{texto:e,progreso:l,alCerrar:i??T0}):o.jsx(lr,{open:!0,onClose:T0,title:e,headless:!0,className:ot.capa,children:o.jsx("div",{className:ot.velo,children:o.jsxs("div",{className:ot.pregunta,"data-seleccionable":"",children:[o.jsx("p",{className:ot.titulo,children:e}),o.jsxs("div",{className:ot.herramientas,children:[o.jsxs("span",{className:ot.cuenta,"aria-live":"polite",children:[y," de ",b," ",b===1?"fichero":"ficheros"]}),o.jsx("button",{type:"button",className:ot.enlace,disabled:j||y===b,onClick:()=>h(new Set(d.map(C=>C.ruta))),children:"Seleccionar todo"}),o.jsx("button",{type:"button",className:ot.enlace,disabled:j||y===0,onClick:()=>h(new Set),children:"Deseleccionar todo"})]}),o.jsx("div",{className:ot.arbol,children:o.jsx(n4,{nodos:m,alElegir:()=>{},abiertas:"todas",variante:"explorador",seleccion:{marcadas:f,alCambiar:h,bloqueada:j},insignia:C=>{const N=v.get(C)??"modificado";return o.jsx("span",{className:ot.clase,"data-clase":N,"aria-label":N,children:N==="nuevo"?"A":N==="borrado"?"D":"M"})}})}),o.jsxs("div",{className:ot.decisiones,children:[o.jsxs(Le,{type:"button",variant:"primary",className:ot.accion,disabled:j||y===0,"aria-busy":u,onClick:()=>a(j8,d.filter(C=>f.has(C.ruta)).map(C=>C.ruta)),children:[u?o.jsx("span",{className:ot.girando,"aria-hidden":"true"}):null,u?"Subiendo…":"Aceptar"]}),o.jsx(Le,{type:"button",variant:"outline",className:ot.cancelar,disabled:j,onClick:()=>a(C8),children:"Cancelar"})]}),r]})})})}function k8({texto:e,progreso:t,alCerrar:n}){const{resultado:r,bajados:a,error:l,operacion:i}=t,u=i==="subir",d=l===void 0&&(u?r!==void 0&&r.fallidos===0&&r.subidos>0:a!==void 0);let m,v;l!==void 0?(m=u?"No se ha podido subir":"No se ha podido actualizar el repo local",v=l):u?d&&r!==void 0?(m="Todo subido correctamente",v=`${r.subidos} ${r.subidos===1?"fichero subido":"ficheros subidos"} a CloudStudio.`):r===void 0?(m="La subida no ha terminado bien",v=t.motivo??"No consta cómo terminó. Esto es lo que contó la operación:"):r.subidos===0&&r.fallidos===0?(m="No se ha subido nada",v=`Subidos ${r.subidos}, fallaron ${r.fallidos}. Lo que falló sigue pendiente y se reintenta en la próxima subida.`):(m="La subida ha terminado con fallos",v=`Subidos ${r.subidos}, fallaron ${r.fallidos}. Lo que falló sigue pendiente y se reintenta en la próxima subida.`):(m=d?"Repo local actualizado":"La actualización no ha terminado bien",v=a!==void 0?`${a} ${a===1?"fichero bajado":"ficheros bajados"} de la rama.`:t.motivo??"No consta cómo terminó. Esto es lo que contó la operación:");const f=d?[]:t.lineas.slice(-12);return o.jsx(lr,{open:!0,onClose:T0,title:e,headless:!0,className:ot.capa,children:o.jsx("div",{className:ot.velo,children:o.jsxs("div",{className:ot.pregunta,"data-seleccionable":"",children:[o.jsxs("div",{className:ot.fin,"data-bien":d?"":void 0,role:"status",children:[o.jsx("span",{className:ot.marcaDeFin,"aria-hidden":"true",children:d?"✓":"!"}),o.jsx("p",{className:ot.titulo,children:m}),o.jsx("p",{className:ot.detalle,children:v})]}),f.length===0?null:o.jsx("pre",{className:ot.plan,children:f.join(`
|
|
484
|
+
`)}),o.jsx("div",{className:ot.decisiones,children:o.jsx(Le,{type:"button",variant:"primary",className:ot.accion,autoFocus:!0,onClick:n,children:"Aceptar"})})]})})})}const HF="_capa_1xucd_11",UF="_velo_1xucd_9",VF="_tarjeta_1xucd_25",GF="_titulo_1xucd_65",WF="_cuerpo_1xucd_17",ZF="_pendiente_1xucd_86",QF="_descripcion_1xucd_92",XF="_ruta_1xucd_97",YF="_origen_1xucd_103",KF="_diff_1xucd_33",JF="_linea_1xucd_118",eO="_signo_1xucd_126",tO="_plegado_1xucd_143",nO="_anadido_1xucd_175",rO="_quitado_1xucd_180",aO="_igual_1xucd_185",oO="_fallo_1xucd_173",sO="_acciones_1xucd_197",iO="_accion_1xucd_197 _secundario_1l1rx_39 _grande_1l1rx_26",sr={capa:HF,velo:UF,tarjeta:VF,titulo:GF,cuerpo:WF,pendiente:ZF,descripcion:QF,ruta:XF,origen:YF,diff:KF,linea:JF,signo:eO,plegado:tO,anadido:nO,quitado:rO,igual:aO,fallo:oO,acciones:sO,accion:iO},lO=3,cO=3,g5=e=>e.tipo==="igual";function uO(e,t=lO){const n=[];let r=[];const a=()=>{r.length>0&&n.push({clase:"lineas",lineas:r}),r=[]};let l=0;for(;l<e.length;){const i=e[l];if(!g5(i)){r.push(i),l+=1;continue}let u=l;for(;u<e.length&&g5(e[u]);)u+=1;const d=e.slice(l,u),m=u<e.length,f=l>0?Math.min(t,d.length):0,h=m?Math.min(t,d.length-f):0,b=d.length-f-h;b<cO?r.push(...d):(r.push(...d.slice(0,f)),a(),n.push({clase:"plegado",lineas:d.slice(f,f+b)}),r.push(...d.slice(f+b))),l=u}return a(),n}const dO="approve",yp="reject",pO={igual:!0,anadido:!0,quitado:!0};function mO(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.descripcion=="string"}function hO(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.texto=="string"&&typeof t.tipo=="string"&&Object.prototype.hasOwnProperty.call(pO,t.tipo)}const fO={anadido:"+",quitado:"-",igual:" "};function v5({linea:e}){return o.jsxs("div",{className:tt(sr.linea,sr[e.tipo]),children:[o.jsx("span",{className:sr.signo,"aria-hidden":"true",children:fO[e.tipo]}),o.jsx("span",{children:e.texto})]})}function gO({lineas:e}){const t=S.useMemo(()=>uO(e),[e]),[n,r]=S.useState([]);return o.jsx(o.Fragment,{children:t.map((a,l)=>a.clase==="lineas"?a.lineas.map((i,u)=>o.jsx(v5,{linea:i},`${l}-${u}`)):n.includes(l)?a.lineas.map((i,u)=>o.jsx(v5,{linea:i},`${l}-${u}`)):o.jsx("button",{type:"button",className:sr.plegado,onClick:()=>r(i=>[...i,l]),children:a.lineas.length===1?"… 1 línea sin cambios":`… ${a.lineas.length} líneas sin cambios`},l))})}function vO({pendientes:e,ficheros:t,diffs:n,alDecidir:r}){const a=S.useMemo(()=>e.filter(mO),[e]),l=S.useRef(!1),i=S.useRef(!0),u=S.useRef(null),[d,m]=S.useState(!1),v=S.useCallback(h=>{if(l.current)return;l.current=!0,m(!1);const b=r(Object.fromEntries(a.map(y=>[y.id,h])));Promise.resolve(b).catch(()=>{l.current=!1,i.current&&m(!0)})},[r,a]),f=S.useRef(v);return f.current=v,S.useEffect(()=>{const h=u.current;return i.current=!0,()=>{(h==null?void 0:h.isConnected)!==!0&&(i.current=!1,f.current(yp))}},[]),o.jsx(lr,{open:!0,onClose:()=>v(yp),title:"Aprobación de escrituras",headless:!0,className:sr.capa,children:o.jsx("div",{className:sr.velo,onClick:h=>{h.target===h.currentTarget&&v(yp)},children:o.jsxs("div",{className:sr.tarjeta,ref:u,children:[o.jsx("h2",{className:sr.titulo,children:a.length===1?"1 escritura pide aprobación":`${a.length} escrituras piden aprobación`}),o.jsx("div",{className:sr.cuerpo,children:a.map(h=>{const b=t[h.id],y=(n[h.id]??[]).filter(hO);return o.jsxs("section",{className:sr.pendiente,children:[o.jsx("p",{className:sr.descripcion,children:h.descripcion}),typeof b=="string"&&b!==""?o.jsx("p",{className:sr.ruta,children:b}):null,o.jsxs("p",{className:sr.origen,children:["quién: ",h.origen]}),o.jsx("div",{className:sr.diff,children:o.jsx(gO,{lineas:y})})]},h.id)})}),d?o.jsx("p",{className:sr.fallo,role:"alert",children:"La decisión no llegó a xonecode: el envío falló. Nada se ha aplicado; vuelve a pulsar cuando la conexión se recupere."}):null,o.jsxs("div",{className:sr.acciones,children:[o.jsx(Le,{variant:"outline",className:sr.accion,onClick:()=>v(yp),children:"Rechazar"}),o.jsx(Le,{variant:"primary",className:sr.accion,onClick:()=>v(dO),children:"Aprobar"})]})]})})})}const bO="_selector_w6qhg_14",yO="_opcion_w6qhg_29",xO="_titulo_w6qhg_53",_O="_opciones_w6qhg_58",wO="_etiqueta_w6qhg_101",jO="_detalle_w6qhg_105",CO="_acciones_w6qhg_111",kO="_cancelar_w6qhg_32",NO="_fallo_w6qhg_136",SO="_aviso_w6qhg_142",os={selector:bO,opcion:yO,titulo:xO,opciones:_O,etiqueta:wO,detalle:jO,acciones:CO,cancelar:kO,fallo:NO,aviso:SO};function b5({titulo:e,opciones:t,aviso:n,alElegir:r,anidado:a=!1}){const[l,i]=S.useState(!1),[u,d]=S.useState(!1),m=S.useRef(!0),v=S.useRef(()=>{});S.useEffect(()=>(m.current=!0,()=>{m.current=!1}),[]);const f=h=>{l||(i(!0),d(!1),Promise.resolve(r(h)).catch(()=>{m.current&&(i(!1),d(!0))}))};return S.useEffect(()=>{const h=b=>{b.key==="Escape"&&v.current()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[]),v.current=()=>f(void 0),o.jsxs("div",{className:os.selector,"data-anidado":a?"":void 0,role:"group","aria-label":e,children:[o.jsx("p",{className:os.titulo,children:e}),n!==void 0&&n!==""?o.jsx("p",{className:os.aviso,role:"alert",children:n}):null,o.jsx("ul",{className:os.opciones,children:t.map(h=>o.jsx("li",{children:o.jsxs(Le,{variant:"outline",className:os.opcion,disabled:l,onClick:()=>f(h.id),children:[o.jsx("span",{className:os.etiqueta,children:h.etiqueta}),h.detalle!==void 0&&h.detalle!==""?o.jsx("span",{className:os.detalle,children:h.detalle}):null]})},h.id))}),o.jsx("div",{className:os.acciones,children:o.jsx(Le,{variant:"outline",className:os.cancelar,disabled:l,onClick:()=>f(void 0),children:"Cancelar"})}),u?o.jsx("p",{className:os.fallo,role:"alert",children:"La elección no llegó a xonecode: el envío falló. Vuelve a elegir cuando la conexión se recupere."}):null]})}const $O="_wizard_ava2x_10",AO="_etiqueta_ava2x_16",EO="_envoltorio_ava2x_24",DO="_campo_ava2x_28",zO="_nota_ava2x_41",TO="_aviso_ava2x_48",MO="_estado_ava2x_53",LO="_acciones_ava2x_58",IO="_accion_ava2x_3 _primario_1l1rx_67 _grande_1l1rx_26",yr={wizard:$O,etiqueta:AO,envoltorio:EO,campo:DO,nota:zO,aviso:TO,estado:MO,acciones:LO,accion:IO},RO=new Set(["127.0.0.1","localhost","::1","[::1]"]),r4="La URL del MCP debe ser https:// — solo se admite http:// en 127.0.0.1 o localhost, para un on-premise en desarrollo.";function im(e){let t;try{t=new URL(e)}catch{return!1}return t.username!==""||t.password!==""?!1:t.protocol==="https:"?!0:t.protocol==="http:"&&RO.has(t.hostname)}function PO({pasos:e,proveedores:t,entornos:n,rutaDeCredencial:r,aviso:a,alGuardarCredencial:l,alRegistrarEntorno:i}){var U,W;const[u,d]=S.useState(0),[m,v]=S.useState(((U=t[0])==null?void 0:U.id)??""),[f,h]=S.useState(""),[b,y]=S.useState(!1),[j,C]=S.useState(((W=n[0])==null?void 0:W.url)??""),[N,z]=S.useState(void 0),E=e[u];if(E===void 0)return null;const P=a===void 0?null:o.jsx("p",{className:yr.aviso,role:"alert",children:a}),M=()=>d(O=>O+1),L=u+1<e.length;if(E==="cuenta"){const O=q=>{q.preventDefault(),l(m,f),h(""),y(!0)};return o.jsxs("form",{className:yr.wizard,onSubmit:O,children:[o.jsx("label",{className:yr.etiqueta,htmlFor:"wizard-proveedor",children:"Proveedor"}),o.jsx("select",{id:"wizard-proveedor",className:yr.campo,value:m,onChange:q=>v(q.target.value),children:t.map(q=>o.jsx("option",{value:q.id,children:q.nombre},q.id))}),o.jsx("label",{className:yr.etiqueta,htmlFor:"wizard-clave",children:"Clave de API"}),o.jsx(Ta,{id:"wizard-clave",className:yr.envoltorio,type:"password",autoComplete:"off",value:f,onChange:q=>h(q.target.value)}),o.jsx("p",{className:yr.nota,children:"La clave no se guarda en el navegador: viaja a XOneCode y se escribe en el fichero de credenciales, con permisos 0600."}),P,b?o.jsx("p",{className:yr.estado,role:"status",children:r!==void 0?`Credencial guardada en ${r}. Queda escrita aunque canceles lo que viene después.`:"Credencial enviada a XOneCode; el servidor dirá dónde queda escrita."}):null,o.jsxs("div",{className:yr.acciones,children:[b?null:o.jsx(Le,{type:"submit",variant:"primary",className:yr.accion,children:"Guardar"}),b&&L?o.jsx(Le,{type:"button",variant:"primary",className:yr.accion,onClick:M,children:"Continuar"}):null]})]})}if(E==="entorno"){const O=q=>{if(q.preventDefault(),!im(j)){z(r4);return}z(void 0),i({id:"",nombre:"",url:j})};return o.jsxs("form",{className:yr.wizard,onSubmit:O,children:[o.jsx("label",{className:yr.etiqueta,htmlFor:"wizard-url",children:"URL del MCP"}),o.jsx(Ta,{id:"wizard-url",className:yr.envoltorio,value:j,placeholder:"https://mcp.ejemplo.com/mcp",onChange:q=>C(q.target.value)}),N!==void 0?o.jsx("p",{className:yr.aviso,role:"alert",children:N}):null,P,o.jsx("div",{className:yr.acciones,children:o.jsx(Le,{type:"submit",variant:"primary",className:yr.accion,children:"Registrar"})})]})}return null}const qO="_splash_xvqmu_13",FO={splash:qO};function OO(){return o.jsx("div",{className:FO.splash})}const BO="_marca_pm4iz_10",HO="_fila_pm4iz_22",UO="_placa_pm4iz_33",VO="_simbolo_pm4iz_45",GO="_trazoCian_pm4iz_50",WO="_trazoCielo_pm4iz_54",ZO="_puntoNaranja_pm4iz_58",QO="_textoDeMarca_pm4iz_62",XO="_xone_pm4iz_68",YO="_code_pm4iz_72",KO="_eslogan_pm4iz_76",JO="_grande_pm4iz_91",Ya={marca:BO,fila:HO,placa:UO,simbolo:VO,trazoCian:GO,trazoCielo:WO,puntoNaranja:ZO,textoDeMarca:QO,xone:XO,code:YO,eslogan:KO,grande:JO};function y5({grande:e}){return o.jsxs("div",{className:`${Ya.marca}${e===!0?` ${Ya.grande}`:""}`,children:[o.jsxs("div",{className:Ya.fila,children:[o.jsx("div",{className:Ya.placa,children:o.jsxs("svg",{className:Ya.simbolo,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("path",{d:"M28 26C34 20 44 20 50 26L74 50C80 56 80 66 74 72C68 78 58 78 52 72L28 48C22 42 22 32 28 26Z",className:Ya.trazoCian,strokeWidth:"8",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M72 26C66 20 56 20 50 26L26 50C20 56 20 66 26 72C32 78 42 78 48 72L72 48C78 42 78 32 72 26Z",className:Ya.trazoCielo,strokeWidth:"8",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("circle",{cx:"50",cy:"49",r:"6",className:Ya.puntoNaranja})]})}),o.jsxs("span",{className:Ya.textoDeMarca,children:[o.jsx("span",{className:Ya.xone,children:"XOne"}),o.jsx("span",{className:Ya.code,children:"Code"})]})]}),o.jsx("p",{className:Ya.eslogan,children:"Entorno de desarrollo con IA para aplicaciones nativas y en la nube"})]})}const eB="_envoltura_5qajg_14",tB="_contenido_5qajg_3",Xh={envoltura:eB,contenido:tB};function nB({children:e,centrada:t}){return o.jsxs("div",{className:Xh.envoltura,children:[o.jsx(OO,{}),t===!0?o.jsxs("div",{className:Xh.contenido,children:[o.jsx(y5,{grande:!0}),e]}):o.jsxs(o.Fragment,{children:[o.jsx(y5,{}),o.jsx("div",{className:Xh.contenido,children:e})]})]})}const rB="_bienvenida_1pv9l_7",aB="_saludo_1pv9l_13",oB="_texto_1pv9l_19",Yh={bienvenida:rB,saludo:aB,texto:oB};function sB({nombre:e}){return o.jsxs("div",{className:Yh.bienvenida,children:[o.jsx("p",{className:Yh.saludo,children:e===void 0?"Hola":`Hola, ${e}`}),o.jsx("p",{className:Yh.texto,children:"Esto es XOneCode. Antes de empezar hace falta el modelo con el que vas a trabajar y el entorno de CloudStudio de tu proyecto — solo hace falta una vez."})]})}const iB="_pasos_1284o_5",lB="_paso_1284o_5",cB="_marcador_1284o_44",uB="_etiqueta_1284o_77",dB="_volver_1284o_100",Al={pasos:iB,paso:lB,marcador:cB,etiqueta:uB,volver:dB};function pB({pasos:e,alVolver:t}){return o.jsx("ol",{className:Al.pasos,"aria-label":"Pasos del alta",children:e.map((n,r)=>{const a=r>0&&e[r-1].estado==="hecho";return o.jsx("li",{className:Al.paso,"data-estado":n.estado,"data-conector":r>0?a?"hecho":"pendiente":void 0,"aria-current":n.estado==="actual"?"step":void 0,children:n.estado==="hecho"&&t!==void 0?o.jsxs("button",{type:"button",className:Al.volver,onClick:()=>t(n.id),title:`Volver a ${n.etiqueta.toLowerCase()}`,children:[o.jsx("span",{className:Al.marcador,"data-estado":n.estado,"aria-hidden":"true",children:"✓"}),o.jsx("span",{className:Al.etiqueta,"data-estado":n.estado,children:n.etiqueta})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Al.marcador,"data-estado":n.estado,"aria-hidden":"true",children:n.estado==="hecho"?"✓":null}),o.jsx("span",{className:Al.etiqueta,"data-estado":n.estado,children:n.etiqueta})]})},n.id)})})}const mB="_tarjeta_1sdjm_7",hB={tarjeta:mB};function fB({nombre:e,pasos:t,alVolverAPaso:n,children:r}){return o.jsxs("div",{className:hB.tarjeta,children:[o.jsx(sB,{nombre:e}),o.jsx(pB,{pasos:t,...n===void 0?{}:{alVolver:n}}),r]})}const gB="_fase_1vb0v_5",vB="_punto_1vb0v_22",x5={fase:gB,punto:vB};function bB({texto:e}){return o.jsxs("p",{className:x5.fase,role:"status","aria-live":"polite",children:[o.jsx("span",{className:x5.punto,"aria-hidden":"true"}),e]})}const yB="_escritorio_2bfx7_7",xB="_contenido_2bfx7_15",_B="_portada_2bfx7_20",wB="_saludo_2bfx7_24",jB="_subtitulo_2bfx7_32",CB="_entorno_2bfx7_41",kB="_entornoNombre_2bfx7_55",NB="_punto_2bfx7_64",SB="_empezar_2bfx7_78 _primario_1l1rx_67",$B="_empezarTarea_2bfx7_79 _secundario_1l1rx_39",AB="_entornoUrl_2bfx7_93",EB="_vacio_2bfx7_99",DB="_enlace_2bfx7_104",zB="_rejilla_2bfx7_116",TB="_tarjeta_2bfx7_125",MB="_cabeceraDeTarjeta_2bfx7_158",LB="_resto_2bfx7_173",IB="_nombreDeProyecto_2bfx7_184",RB="_compartido_2bfx7_204",PB="_marca_2bfx7_212",qB="_accionesDeTarjeta_2bfx7_244",FB="_pie_2bfx7_266",OB="_modelo_2bfx7_272",BB="_iconoDeEntorno_2bfx7_279",Yt={escritorio:yB,contenido:xB,portada:_B,saludo:wB,subtitulo:jB,entorno:CB,entornoNombre:kB,punto:NB,empezar:SB,empezarTarea:$B,entornoUrl:AB,vacio:EB,enlace:DB,rejilla:zB,tarjeta:TB,cabeceraDeTarjeta:MB,resto:LB,nombreDeProyecto:IB,compartido:RB,marca:PB,accionesDeTarjeta:qB,pie:FB,modelo:OB,iconoDeEntorno:BB},HB="_envoltura_2m29n_4",UB="_boton_2m29n_24 _secundario_1l1rx_39",VB="_exito_2m29n_41",GB="_resultado_2m29n_54",WB="_hora_2m29n_67",ZB="_desfase_2m29n_75",$o={envoltura:HB,boton:UB,exito:VB,resultado:GB,hora:WB,desfase:ZB};function i2({dispositivo:e,conectado:t,medidoDeLaFoto:n,alVerificar:r}){var v;const[a,l]=S.useState(!1),i=(v=e.verificado)==null?void 0:v.medido;S.useEffect(()=>l(!1),[i]),S.useEffect(()=>{t||l(!1)},[t]);const u=e.verificado,d=e.estado==="conectado"||e.estado==="arrancado",m=u!==void 0&&n!==void 0&&u.ok!==d&&u.medido>n;return o.jsxs("span",{className:$o.envoltura,children:[u===void 0?null:o.jsxs("span",{className:$o.resultado,"data-ok":u.ok?"":void 0,children:[o.jsx("span",{"aria-hidden":"true",children:u.ok?"✓":"✕"}),o.jsx("span",{children:u.detalle}),o.jsx("span",{className:$o.hora,children:_5(u.medido)}),m?o.jsxs("span",{className:$o.desfase,children:["la lista es de las ",_5(n)]}):null]}),r===void 0||e.soloDefinicion===!0?null:o.jsx("button",{type:"button",className:tt($o.boton,$o.exito),disabled:!t||a,title:`Habla con ${e.nombre} y espera respuesta`,onClick:()=>{l(!0),r(e.id)},children:a?"Verificando…":"Verificar"})]})}function _5(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const QB="_giro_zx45q_4",XB="_icono_zx45q_23",YB="_girando_zx45q_29",x0={giro:QB,icono:XB,girando:YB};function Wi({className:e}){return o.jsx("span",{className:e===void 0?x0.giro:`${x0.giro} ${e}`,"aria-hidden":"true"})}const KB="_equipo_tqt2p_8",JB="_cabecera_tqt2p_16",eH="_titulo_tqt2p_22",tH="_sistema_tqt2p_30",nH="_actualizar_tqt2p_38 _secundario_1l1rx_39",rH="_bloques_tqt2p_43",aH="_bloque_tqt2p_43",oH="_plataforma_tqt2p_54",sH="_resumen_tqt2p_61",iH="_cuenta_tqt2p_62",lH="_nota_tqt2p_63",cH="_fallo_tqt2p_69",uH="_filas_tqt2p_75",dH="_fila_tqt2p_75",pH="_punto_tqt2p_90",mH="_nombre_tqt2p_111",hH="_etiqueta_tqt2p_121",fH="_detalle_tqt2p_128",Vn={equipo:KB,cabecera:JB,titulo:eH,sistema:tH,actualizar:nH,bloques:rH,bloque:aH,plataforma:oH,resumen:sH,cuenta:iH,nota:lH,fallo:cH,filas:uH,fila:dH,punto:pH,nombre:mH,etiqueta:hH,detalle:fH},N8="Vuelve a mirar qué dispositivos y simuladores hay en este equipo";function gH({informe:e,conectado:t,alActualizar:n,alVerificar:r}){const[a,l]=S.useState(!1),i=e==null?void 0:e.medido;S.useEffect(()=>l(!1),[i]),S.useEffect(()=>{t||l(!1)},[t]);const u=e===void 0?void 0:yH(e),d=e===void 0?void 0:xH(e);return o.jsxs("section",{className:Vn.equipo,"aria-label":"tu equipo",children:[o.jsxs("div",{className:Vn.cabecera,children:[o.jsx("h2",{className:Vn.titulo,children:"Tu equipo"}),e===void 0?null:o.jsx("span",{className:Vn.sistema,children:vH[e.sistema]}),n===void 0?null:o.jsxs("button",{type:"button",className:Vn.actualizar,title:N8,disabled:!t||a||e===void 0,"aria-busy":a,onClick:()=>{l(!0),n()},children:[a?o.jsx(Wi,{}):null,a?"Refrescando…":"Refrescar"]})]}),e===void 0?o.jsx("p",{className:Vn.nota,children:"Consultando qué dispositivos y simuladores hay en este equipo…"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Vn.bloques,children:[o.jsx(w5,{titulo:"Android",...u,conectado:t,medido:e.medido,...r===void 0?{}:{alVerificar:r}}),o.jsx(w5,{titulo:"iOS",...d,conectado:t,medido:e.medido,...r===void 0?{}:{alVerificar:r}})]}),o.jsxs("p",{className:Vn.nota,children:["Medido a las ",_H(e.medido),".",e.herramientas.some(m=>m.nombre==="adb"&&m.estado==="ok")?" Medir arranca el demonio de adb si no estaba corriendo, y esta medida ya lo hizo.":""]})]})]})}const vH={mac:"macOS",windows:"Windows",linux:"Linux",otro:"sistema desconocido"},bH={emulador:"emulador",simulador:"simulador",fisico:"dispositivo"};function w5({titulo:e,resumen:t,filas:n,cuentas:r,fallos:a,conectado:l,medido:i,alVerificar:u}){return o.jsxs("div",{className:Vn.bloque,children:[o.jsx("h3",{className:Vn.plataforma,children:e}),t===void 0?null:o.jsx("p",{className:Vn.resumen,children:t}),n.length===0?null:o.jsx("ul",{className:Vn.filas,children:n.map(d=>o.jsxs("li",{className:Vn.fila,"data-estado":d.estado,children:[o.jsx("span",{className:Vn.punto,"aria-hidden":"true"}),o.jsx("span",{className:Vn.nombre,children:d.nombre}),o.jsxs("span",{className:Vn.etiqueta,children:[bH[d.clase]," · ",Rl(d)]}),d.detalle===void 0?null:o.jsx("span",{className:Vn.detalle,children:d.detalle}),o.jsx(i2,{dispositivo:d,conectado:l,medidoDeLaFoto:i,...u===void 0?{}:{alVerificar:u}})]},d.id))}),r.map(d=>o.jsx("p",{className:Vn.cuenta,children:d},d)),a.map(d=>o.jsx("p",{className:Vn.fallo,children:d},d))]})}function S8(e){return{filas:e.filter(t=>t.estado!=="apagado"),apagados:e.filter(t=>t.estado==="apagado")}}function lm(e,t){return e.herramientas.find(n=>n.nombre===t)}function l2(e,t,n){return`${e} ${e===1?t:n}`}function yH(e){const t=lm(e,"adb"),n=lm(e,"emulator"),{filas:r}=S8(e.dispositivos.filter(i=>i.plataforma==="android")),a=[],l=[];if((t==null?void 0:t.estado)==="desactivada"&&(n==null?void 0:n.estado)==="desactivada")return{resumen:"Android no se mira: está desactivado en Ajustes.",filas:[],cuentas:a,fallos:l};if((t==null?void 0:t.estado)==="no-encontrada"&&(n==null?void 0:n.estado)==="no-encontrada")return{resumen:"Sin SDK de Android: no hay adb ni emulator en el PATH ni en ANDROID_HOME.",filas:[],cuentas:a,fallos:l};for(const i of[t,n])(i==null?void 0:i.estado)==="fallo"&&l.push(`${i.nombre} falló: ${i.detalle??"sin motivo"}`),(i==null?void 0:i.estado)==="no-encontrada"&&a.push(`${i.nombre} no está instalado.`),(i==null?void 0:i.estado)==="desactivada"&&a.push(`${i.nombre} no se ha mirado: desactivado en Ajustes.`);return(t==null?void 0:t.estado)==="ok"&&r.length===0&&a.push("adb no ve ningún dispositivo ni emulador."),(n==null?void 0:n.estado)==="ok"&&a.push(e.avds.length===0?"Ningún AVD definido para el emulador.":`${l2(e.avds.length,"AVD definido","AVD definidos")}: ${e.avds.join(", ")}.`),{filas:r,cuentas:a,fallos:l}}function xH(e){const t=lm(e,"xcrun"),n=lm(e,"devicectl"),r=[],a=[];if((t==null?void 0:t.estado)==="desactivada"&&(n==null?void 0:n.estado)==="desactivada")return{resumen:"iOS no se mira: está desactivado en Ajustes.",filas:[],cuentas:r,fallos:a};if((t==null?void 0:t.estado)==="no-aplica")return{resumen:"Los simuladores y dispositivos iOS solo se detectan en macOS.",filas:[],cuentas:r,fallos:a};if((t==null?void 0:t.estado)==="no-encontrada")return{resumen:`Sin herramientas de desarrollo de Xcode${t.detalle===void 0?"":` (${t.detalle})`}.`,filas:[],cuentas:r,fallos:a};const{filas:l,apagados:i}=S8(e.dispositivos.filter(u=>u.plataforma==="ios"));if((t==null?void 0:t.estado)==="fallo"&&a.push(`simctl falló: ${t.detalle??"sin motivo"}`),(n==null?void 0:n.estado)==="fallo"&&a.push(`devicectl falló: ${n.detalle??"sin motivo"}`),(t==null?void 0:t.estado)==="desactivada"&&r.push("Los simuladores no se miran: desactivados en Ajustes."),(n==null?void 0:n.estado)==="desactivada"&&r.push("Los iPhone y iPad no se miran: desactivados en Ajustes."),(t==null?void 0:t.estado)==="ok"){const u=l.filter(d=>d.clase==="simulador").length;i.length>0?r.push(u===0?`${l2(i.length,"simulador disponible","simuladores disponibles")}, ninguno arrancado.`:`${l2(i.length,"simulador más","simuladores más")}, apagados.`):u===0&&r.push("Ningún simulador iOS disponible.")}return(n==null?void 0:n.estado)==="ok"&&!l.some(u=>u.clase==="fisico")&&r.push("Ningún iPhone o iPad conectado."),{filas:l,cuentas:r,fallos:a}}function _H(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function $8(e){return e.sesion!==void 0&&e.estado!=="en-proceso"}const wH="_acciones_ok0yz_12",jH="_avisoConexion_ok0yz_22",CH="_boton_ok0yz_29",kH="_destructiva_ok0yz_54",NH="_feedback_ok0yz_62",SH="_etiquetaFeedback_ok0yz_69",$H="_campoFeedback_ok0yz_74",AH="_botonFeedback_ok0yz_89",EH="_pista_ok0yz_110",Ao={acciones:wH,avisoConexion:jH,boton:CH,destructiva:kH,feedback:NH,etiquetaFeedback:SH,campoFeedback:$H,botonFeedback:AH,pista:EH},DH="_capa_a0o87_6",zH="_velo_a0o87_12",TH="_ventana_a0o87_24",MH="_titulo_a0o87_35",LH="_nota_a0o87_41",IH="_etiqueta_a0o87_48",RH="_campo_a0o87_55",PH="_acciones_a0o87_68",qH="_accion_a0o87_68 _secundario_1l1rx_39 _grande_1l1rx_26",FH="_principal_a0o87_89",OH="_fallo_a0o87_107",BH="_carga_a0o87_116",HH="_girando_a0o87_125 _girando_jnvvl_174",ye={capa:DH,velo:zH,ventana:TH,titulo:MH,nota:LH,etiqueta:IH,campo:RH,acciones:PH,accion:qH,principal:FH,fallo:OH,carga:BH,girando:HH};function a4({tarea:e,conectado:t,alReintentar:n,alDescartar:r,alTerminar:a,alEnviarFeedback:l}){const[i,u]=S.useState(!1),d=t===!1,m=wy[e.estado],v=e.estado==="requiere-atencion",f=v&&m.includes("nuevo")&&n!==void 0,h=v&&m.includes("terminada")&&a!==void 0,b=v&&m.includes("nuevo")&&l!==void 0,y=v&&m.includes("nuevo")&&l===void 0,j=r!==void 0;return!f&&!h&&!b&&!y&&!j?null:o.jsxs("div",{className:Ao.acciones,role:"group","aria-label":"Acciones de la tarea",children:[d?o.jsx("p",{className:Ao.avisoConexion,children:"Sin conexión: no se puede mandar nada hasta reconectar."}):null,f?o.jsx("button",{type:"button",className:Ao.boton,disabled:d,onClick:()=>n(e.id),children:"Reintentar"}):null,h?o.jsx("button",{type:"button",className:Ao.boton,disabled:d,onClick:()=>a(e.id),children:"Dar por bueno"}):null,j?o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Ao.boton,disabled:d,onClick:()=>u(!0),children:"Descartar"}),i?o.jsx(UH,{tarea:e,onCancelar:()=>u(!1),onConfirmar:()=>{r(e.id),u(!1)}}):null]}):null,b?o.jsx(VH,{id:e.id,apagado:d,alEnviar:l}):y?o.jsx("p",{className:Ao.pista,children:"Se resuelve editando la tarea para añadir tu feedback: sigue desde ahí."}):null]})}function UH({tarea:e,onCancelar:t,onConfirmar:n}){return o.jsx(lr,{open:!0,onClose:t,title:"Descartar tarea",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:ye.ventana,children:[o.jsx("h2",{className:ye.titulo,children:"Descartar tarea"}),o.jsxs("p",{className:ye.nota,children:["Se para el turno de «",e.titulo,"» si está en marcha, y se borra todo: el encargo y sus adjuntos. No hay papelera."]}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,onClick:t,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${ye.accion} ${ye.principal} ${Ao.destructiva}`,onClick:n,children:"Sí, descartar"})]})]})})})}function VH({id:e,apagado:t,alEnviar:n}){const[r,a]=S.useState(""),l=r.trim();return o.jsxs("form",{className:Ao.feedback,onSubmit:i=>{i.preventDefault(),!(l===""||t)&&(n(e,l),a(""))},children:[o.jsx("label",{className:Ao.etiquetaFeedback,htmlFor:`feedback-${e}`,children:"Tu feedback"}),o.jsx("textarea",{id:`feedback-${e}`,className:Ao.campoFeedback,rows:2,value:r,disabled:t,onChange:i=>a(i.target.value),placeholder:"Se manda al agente en el mismo hilo…"}),o.jsx("button",{type:"submit",className:Ao.botonFeedback,disabled:l===""||t,children:"Enviar feedback"})]})}const GH="_entrega_168bg_5",WH="_frase_168bg_12",ZH="_detalle_168bg_21",QH="_salvedad_168bg_30",XH="_hallazgos_168bg_39",Bs={entrega:GH,frase:WH,detalle:ZH,salvedad:QH,hallazgos:XH};function Rm({tarea:e}){const t=e.veredicto,n=e.estado==="terminada";if(!n&&t===void 0)return null;const r=e.terminadaAMano===!0,a=(t==null?void 0:t.hallazgos)??[],l=t!==void 0&&e.motivo!==void 0&&e.motivo.includes(t.resumen);return o.jsxs("div",{className:Bs.entrega,children:[n?r?o.jsx("p",{className:Bs.frase,"data-via":"persona",children:"La dio por buena una persona, sin verificador y sin juez."}):t===void 0?o.jsx("p",{className:Bs.frase,"data-via":"sin-constancia",children:"No consta ningún veredicto de esta entrega."}):t.veredicto==="verde"?o.jsxs("p",{className:Bs.frase,"data-via":"juez",children:["El juez de QA la aprobó: ",t.resumen]}):o.jsxs("p",{className:Bs.frase,"data-via":"raro",children:["Terminada, pero el juez de QA había dicho «",t.veredicto,"»: ",t.resumen]}):l?null:o.jsxs("p",{className:Bs.frase,"data-via":"juez-pendiente",children:["El juez de QA dijo «",t.veredicto,"»: ",t.resumen]}),n&&r&&t!==void 0?o.jsxs("p",{className:Bs.detalle,children:["El juez de QA había dicho «",t.veredicto,"»: ",t.resumen]}):null,!n||(t==null?void 0:t.salvedad)===void 0?null:o.jsxs("p",{className:Bs.salvedad,children:["Se entregó con una condición menos: ",t.salvedad]}),a.length===0?null:o.jsx("ul",{className:Bs.hallazgos,children:a.map(i=>o.jsx("li",{children:i},i))})]})}const YH="_envoltura_xtc5o_7",KH="_boton_xtc5o_16",JH="_panel_xtc5o_33",eU="_nota_xtc5o_42",tU="_motivo_xtc5o_49",nU="_ficheros_xtc5o_55",rU="_listaDeFicheros_xtc5o_65",aU="_transcript_xtc5o_80",oU="_usuario_xtc5o_91",sU="_asistente_xtc5o_92",iU="_pulso_xtc5o_107",lU="_sistema_xtc5o_108",cU="_razonamiento_xtc5o_121",uU="_razonamientoTexto_xtc5o_130",dU="_error_xtc5o_136",pU="_artefacto_xtc5o_143",mU="_vacio_xtc5o_149",Nn={envoltura:YH,boton:KH,panel:JH,nota:eU,motivo:tU,ficheros:nU,listaDeFicheros:rU,transcript:aU,usuario:oU,asistente:sU,pulso:iU,sistema:lU,razonamiento:cU,razonamientoTexto:uU,error:dU,artefacto:pU,vacio:mU};function o4({tarea:e,corriendoAqui:t,conectado:n,mirando:r,mirada:a,alMirar:l,alDejarDeMirar:i}){const u=r===e.id,d=l!==void 0&&i!==void 0&&e.estado==="en-proceso"&&t===!0&&n!==!1;return!u&&!d?null:o.jsxs("div",{className:Nn.envoltura,children:[o.jsx("button",{type:"button",className:Nn.boton,"aria-expanded":u,onClick:()=>u?i(e.id):l(e.id),children:u?"Dejar de ver lo que hace":"Ver lo que hace"}),u?o.jsx(hU,{tarea:e,corriendoAqui:t,mirada:a}):null]})}function hU({tarea:e,corriendoAqui:t,mirada:n}){const r=(n==null?void 0:n.tarea)===e.id?n.actos:[],a=e.estado==="en-proceso"&&t===!0;return o.jsxs("div",{className:Nn.panel,"aria-label":`Lo que hace: ${e.titulo}`,children:[o.jsxs("p",{className:Nn.nota,children:["Es ",o.jsx("strong",{children:"su conversación"}),", la misma que se lee al abrir la sesión cuando acabe — no un registro aparte. De ",o.jsx("strong",{children:"solo lectura"}),": para intervenir, contéstale con el feedback de su tarjeta cuando la tarea lo pida."]}),e.motivo===void 0?null:o.jsx("p",{className:Nn.motivo,children:e.motivo}),e.autorizadas===void 0?null:e.autorizadas.length===0?o.jsx("p",{className:Nn.ficheros,children:"No autorizó ninguna escritura sin aprobación."}):o.jsxs("div",{className:Nn.ficheros,children:[o.jsxs("p",{children:["Autorizó escribir sin aprobación (",e.autorizadas.length,"):"]}),o.jsx("ul",{className:Nn.listaDeFicheros,children:e.autorizadas.map(l=>o.jsx("li",{children:o.jsx("code",{children:l})},l))})]}),o.jsx(Rm,{tarea:e}),r.length===0?o.jsx("p",{className:Nn.vacio,children:a?"Todavía no ha pintado nada. En cuanto empiece, aparecerá aquí.":"Esta tarea ya no corre aquí. Lo que hizo está en su conversación: pulsa su título en la tarjeta para abrirla."}):o.jsx("ul",{className:Nn.transcript,children:r.map((l,i)=>o.jsx("li",{children:o.jsx(fU,{acto:l})},i))})]})}function fU({acto:e}){switch(e.tipo){case"usuario":return o.jsx("p",{className:Nn.usuario,children:e.texto});case"asistente":return o.jsx("p",{className:Nn.asistente,children:e.texto});case"razonamiento":return o.jsxs("details",{className:Nn.razonamiento,children:[o.jsx("summary",{children:"Razonamiento"}),o.jsx("p",{className:Nn.razonamientoTexto,children:e.texto})]});case"herramientas":return o.jsx("p",{className:Nn.pulso,children:e.lineas.join(`
|
|
485
|
+
`)});case"fase":return o.jsx("p",{className:Nn.pulso,children:e.texto});case"sistema":return o.jsx("p",{className:Nn.sistema,children:e.texto});case"sincronizacion":return o.jsx("p",{className:Nn.sistema,children:e.lineas.join(`
|
|
486
|
+
`)});case"error":return o.jsx("p",{className:Nn.error,children:e.texto});case"artefacto":return o.jsxs("p",{className:Nn.artefacto,children:["Artefacto: ",e.nombre," (",e.bytes," B)"]});case"fin":return null;case"consulta":return o.jsx("p",{className:Nn.sistema,children:`Opciones: ${e.opciones.join(" · ")}`});case"verificacion":return o.jsx("p",{className:Nn.pulso,children:J2(e).join(`
|
|
487
|
+
`)});default:return e}}const gU="_aviso_qbdl5_5",vU={aviso:gU};function A8({corriendoAqui:e,ejecutaOtroProceso:t,donde:n}){return e?null:o.jsx("p",{className:vU.aviso,role:"note",children:t===!0?o.jsxs(o.Fragment,{children:["Las tareas las ejecuta otro proceso: aquí se ven, pero ",n," no avanza — ábrelo desde el proceso que las corre para verlas moverse. Y una tarea que crees desde aquí se queda en «Nuevo» hasta que ese proceso vuelva a mirar la cola por su cuenta —al acabar otra tarea, o al reiniciarlo—: no se le avisa."]}):t===!1?o.jsx(o.Fragment,{children:"Ahora mismo no las ejecuta nadie en esta máquina: aquí falló el arranque de las tareas de fondo, y no hay ningún otro proceso con la cola. Una tarea que crees desde aquí se queda en «Nuevo» y no va a arrancar hasta que una consola tome el relevo — reinicia esta."}):o.jsx(o.Fragment,{children:"Aquí no se ejecutan las tareas, y no se ha podido saber si las ejecuta otro proceso: una que crees desde aquí puede quedarse en «Nuevo» sin que nadie la coja."})})}const bU="_kanban_1i05m_6",yU="_titulo_1i05m_17",xU="_vacio_1i05m_24",_U="_columnas_1i05m_30",wU="_columna_1i05m_30",jU="_encabezado_1i05m_47",CU="_cuenta_1i05m_60",kU="_tarjetas_1i05m_65",NU="_tarjeta_1i05m_65",SU="_proyecto_1i05m_95",$U="_tituloDeTarea_1i05m_100",AU="_tituloBoton_1i05m_109",EU="_cuando_1i05m_126",DU="_bloqueada_1i05m_134",zU="_motivo_1i05m_139",TU="_ficheros_1i05m_149",MU="_listaDeFicheros_1i05m_159",LU="_enlaceRevision_1i05m_171",Kt={kanban:bU,titulo:yU,vacio:xU,columnas:_U,columna:wU,encabezado:jU,cuenta:CU,tarjetas:kU,tarjeta:NU,proyecto:SU,tituloDeTarea:$U,tituloBoton:AU,cuando:EU,bloqueada:DU,motivo:zU,ficheros:TU,listaDeFicheros:MU,enlaceRevision:LU},IU=[{estado:"nuevo",etiqueta:"Nuevo"},{estado:"en-proceso",etiqueta:"En proceso"},{estado:"requiere-atencion",etiqueta:"Esperando feedback"},{estado:"terminada",etiqueta:"Terminada"}];function E8(e){const t=e.empezada??e.creada,n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function RU({cola:e,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,alMirar:u,alDejarDeMirar:d,mirando:m,mirada:v,proyectoActivo:f,conectado:h}){return e.lista.length===0?o.jsxs("section",{className:Kt.kanban,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:Kt.titulo,children:"Tareas"}),o.jsx("p",{className:Kt.vacio,children:"Ninguna tarea todavía. Se crean desde un proyecto, y se ejecutan solas."})]}):o.jsxs("section",{className:Kt.kanban,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:Kt.titulo,children:"Tareas"}),o.jsx(A8,{corriendoAqui:e.corriendoAqui,...e.ejecutaOtroProceso===void 0?{}:{ejecutaOtroProceso:e.ejecutaOtroProceso},donde:"este kanban"}),o.jsx("div",{className:Kt.columnas,children:IU.map(b=>{const y=e.lista.filter(j=>j.estado===b.estado);return o.jsxs("div",{className:Kt.columna,children:[o.jsxs("h3",{className:Kt.encabezado,children:[b.etiqueta," ",o.jsx("span",{className:Kt.cuenta,children:y.length})]}),o.jsx("ul",{className:Kt.tarjetas,children:y.map(j=>b.estado==="requiere-atencion"?o.jsx(qU,{tarea:j,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,conectado:h,corriendoAqui:e.corriendoAqui,...u===void 0?{}:{alMirar:u},...d===void 0?{}:{alDejarDeMirar:d},...m===void 0?{}:{mirando:m},...v===void 0?{}:{mirada:v}},j.id):o.jsx(PU,{tarea:j,alAbrirSesion:t,alDescartar:a,conectado:h,corriendoAqui:e.corriendoAqui,...u===void 0?{}:{alMirar:u},...d===void 0?{}:{alDejarDeMirar:d},...m===void 0?{}:{mirando:m},...v===void 0?{}:{mirada:v},bloqueadaPorProyectoAbierto:e.corriendoAqui&&j.estado==="nuevo"&&f!==void 0&&j.proyecto===f},j.id))})]},b.estado)})})]})}function PU({tarea:e,alAbrirSesion:t,alDescartar:n,conectado:r,corriendoAqui:a,alMirar:l,alDejarDeMirar:i,mirando:u,mirada:d,bloqueadaPorProyectoAbierto:m}){return o.jsx("li",{children:o.jsxs("div",{className:Kt.tarjeta,children:[o.jsx("span",{className:Kt.proyecto,children:e.proyectoNombre}),$8(e)&&t!==void 0?o.jsx("button",{type:"button",className:Kt.tituloBoton,onClick:()=>t(e.proyecto,e.sesion),children:e.titulo}):o.jsx("span",{className:Kt.tituloDeTarea,children:e.titulo}),o.jsx("span",{className:Kt.cuando,children:E8(e)}),u===e.id?null:o.jsx(Rm,{tarea:e}),m===!0?o.jsx("span",{className:Kt.bloqueada,children:"Esperando a que se cierre el proyecto: mientras alguien lo tenga abierto, gana la persona."}):null,o.jsx(o4,{tarea:e,conectado:r,corriendoAqui:a,...l===void 0?{}:{alMirar:l},...i===void 0?{}:{alDejarDeMirar:i},...u===void 0?{}:{mirando:u},...d===void 0?{}:{mirada:d}}),o.jsx(a4,{tarea:e,conectado:r,alDescartar:n})]})})}function qU({tarea:e,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,conectado:u,corriendoAqui:d,alMirar:m,alDejarDeMirar:v,mirando:f,mirada:h}){return o.jsx("li",{children:o.jsxs("div",{className:Kt.tarjeta,"data-atencion":"",children:[o.jsx("span",{className:Kt.proyecto,children:e.proyectoNombre}),$8(e)&&t!==void 0?o.jsx("button",{type:"button",className:Kt.tituloBoton,onClick:()=>t(e.proyecto,e.sesion),children:e.titulo}):o.jsx("span",{className:Kt.tituloDeTarea,children:e.titulo}),o.jsx("span",{className:Kt.cuando,children:E8(e)}),f===e.id?null:o.jsxs(o.Fragment,{children:[e.motivo===void 0?null:o.jsx("p",{className:Kt.motivo,children:e.motivo}),o.jsx(Rm,{tarea:e}),e.autorizadas===void 0?null:e.autorizadas.length===0?o.jsx("p",{className:Kt.ficheros,children:"No autorizó ninguna escritura sin aprobación."}):o.jsxs("div",{className:Kt.ficheros,children:[o.jsxs("p",{children:["Autorizó escribir sin aprobación (",e.autorizadas.length,"):"]}),o.jsx("ul",{className:Kt.listaDeFicheros,children:e.autorizadas.map(b=>o.jsx("li",{children:o.jsx("code",{children:b})},b))})]})]}),o.jsx(a4,{tarea:e,conectado:u,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i}),o.jsx(o4,{tarea:e,conectado:u,corriendoAqui:d,...m===void 0?{}:{alMirar:m},...v===void 0?{}:{alDejarDeMirar:v},...f===void 0?{}:{mirando:f},...h===void 0?{}:{mirada:h}}),e.sesion!==void 0&&n!==void 0?o.jsx("button",{type:"button",className:Kt.enlaceRevision,onClick:()=>n(e.proyecto,e.sesion),children:"Ver qué cambió, en Revisión"}):null]})})}function FU({nombre:e,entorno:t,proyectos:n,modelo:r,alNuevaSesion:a,alAbrirAjustes:l,conectado:i,visibles:u,fijados:d,dispositivos:m,alActualizarDispositivos:v,alVerificarDispositivo:f,alNuevaTarea:h,tareas:b,alAbrirSesionDeTarea:y,alAbrirRevisionDeTarea:j,alReintentarTarea:C,alDescartarTarea:N,alTerminarTarea:z,alEnviarFeedback:E,alMirarTarea:P,alDejarDeMirarTarea:M,mirandoTarea:L,mirada:U,proyectoActivo:W}){const O=i===!1,q=n.filter(me=>(d==null?void 0:d.includes(me.id))===!0),F=u===void 0?n.slice(0,tm):n.filter(me=>u.includes(me.id)),K=[...q,...F.filter(me=>!q.includes(me))],le=n.filter(me=>!K.includes(me));return o.jsx("div",{className:Yt.escritorio,children:o.jsxs("div",{className:Yt.contenido,children:[o.jsxs("header",{className:Yt.portada,children:[o.jsx("h1",{className:Yt.saludo,children:e===void 0?"Hola":`Hola, ${e}`}),o.jsx("p",{className:Yt.subtitulo,children:"Elige un proyecto para empezar a trabajar, o sigue una conversación de antes."}),t===void 0?null:o.jsxs("p",{className:Yt.entorno,children:[o.jsx(Y2,{entorno:t.id,size:20,className:Yt.iconoDeEntorno}),o.jsx("span",{className:Yt.punto,"data-sin-conexion":O?"":void 0,"aria-hidden":"true"}),o.jsx("span",{className:Yt.entornoNombre,children:t.nombre}),o.jsx("span",{className:Yt.entornoUrl,children:t.url})]})]}),n.length===0?o.jsxs("p",{className:Yt.vacio,children:[t===void 0?"No hay ningún entorno registrado todavía. Se registra en Ajustes, con su URL.":"Este entorno no ha devuelto ningún proyecto."," ",o.jsx("button",{type:"button",className:Yt.enlace,onClick:l,children:"Abrir Ajustes"})]}):o.jsxs(o.Fragment,{children:[o.jsx("section",{"aria-label":"proyectos elegidos",children:o.jsx("ul",{className:Yt.rejilla,children:K.map(me=>o.jsxs("li",{className:Yt.tarjeta,"data-local":me.local===!0?"":void 0,children:[o.jsxs("div",{className:Yt.cabeceraDeTarjeta,children:[o.jsx("h2",{className:Yt.nombreDeProyecto,children:me.nombre}),me.compartido===!0?o.jsx("span",{className:Yt.compartido,role:"img","aria-label":"compartido contigo",title:"Compartido contigo",children:o.jsx(X2,{size:16})}):null,o.jsx("span",{className:Yt.marca,"data-local":me.local===!0?"":void 0,children:me.local===!0?"en tu equipo":"sin descargar"})]}),o.jsxs("div",{className:Yt.accionesDeTarjeta,children:[o.jsx("button",{type:"button",className:Yt.empezar,disabled:O,onClick:()=>a(me.id),children:"Nueva sesión"}),h===void 0?null:o.jsx("button",{type:"button",className:Yt.empezarTarea,disabled:O,onClick:()=>h(me.id),children:"Nueva tarea"})]})]},me.id))})}),le.length===0?null:o.jsxs("p",{className:Yt.resto,children:[le.length===1?"Otro proyecto del entorno":`Otros ${le.length} proyectos del entorno`," sin enseñar"," ",o.jsx("button",{type:"button",className:Yt.enlace,onClick:l,children:"Elígelos en Ajustes"})]})]}),b===void 0?o.jsx("p",{className:Yt.vacio,children:"Todavía no ha llegado la cola de tareas en background."}):o.jsx(RU,{cola:b,...y===void 0?{}:{alAbrirSesion:y},...j===void 0?{}:{alAbrirRevision:j},...C===void 0?{}:{alReintentar:C},...N===void 0?{}:{alDescartar:N},...z===void 0?{}:{alTerminar:z},...E===void 0?{}:{alEnviarFeedback:E},...P===void 0?{}:{alMirar:P},...M===void 0?{}:{alDejarDeMirar:M},...L===void 0?{}:{mirando:L},...U===void 0?{}:{mirada:U},...W===void 0?{}:{proyectoActivo:W},conectado:i}),o.jsx(gH,{...m===void 0?{}:{informe:m},conectado:!O,...v===void 0?{}:{alActualizar:v},...f===void 0?{}:{alVerificar:f}}),r===void 0?null:o.jsxs("p",{className:Yt.pie,children:["Trabajará con ",o.jsx("span",{className:Yt.modelo,children:r}),". Se cambia en Ajustes o desde la pastilla del compositor."]})]})})}function OU({proyecto:e,local:t,ramas:n,aviso:r,descargando:a,alEmpezar:l,alCerrar:i}){const[u,d]=S.useState(void 0),m=u!==void 0&&n.includes(u)?u:n[0],v=a===!0,f=!t&&n.length===0&&r===void 0;return o.jsx(lr,{open:!0,onClose:()=>{},title:"Nueva sesión",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,children:o.jsxs("div",{className:ye.ventana,...v||f?{"aria-busy":"true"}:{},children:[o.jsxs("h2",{className:ye.titulo,children:["Nueva sesión en ",e.nombre]}),t?o.jsx("p",{className:ye.nota,children:"La copia local ya está en tu equipo: se abre y ya."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:ye.nota,children:"Este proyecto todavía no está en tu equipo. Al empezar se descarga entero desde CloudStudio, y eso puede tardar."}),o.jsx("label",{className:ye.etiqueta,htmlFor:"nueva-sesion-rama",children:"Rama de origen"}),o.jsx(us,{id:"nueva-sesion-rama",className:ye.campo,value:m??"",disabled:n.length===0||v,cargando:f,onChange:h=>d(h.target.value),children:n.length===0?o.jsx("option",{value:"",children:f?"cargando las ramas…":"sin ramas que elegir"}):n.map(h=>o.jsx("option",{value:h,children:h},h))}),v?o.jsxs("p",{className:ye.carga,role:"status",children:[o.jsx("span",{className:ye.girando,"aria-hidden":"true"}),"Descargando proyecto…"]}):r!==void 0?o.jsxs("p",{className:ye.fallo,role:"alert",children:[n.length===0?"No se pudieron consultar las ramas":"No se pudo descargar el proyecto",": ",r]}):null]}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,onClick:i,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${ye.accion} ${ye.principal}`,disabled:v||!t&&m===void 0,onClick:()=>l(t?void 0:m),children:"Empezar"})]})]})})})}const BU=3e4;function B0(e,t,n=BU){const[r,a]=S.useState(!1),l=S.useRef(e);S.useEffect(()=>{l.current!==e&&(l.current=e,a(!1))},[e]),S.useEffect(()=>{t===!1&&a(!1)},[t]),S.useEffect(()=>{if(!r)return;const u=setTimeout(()=>a(!1),n);return()=>clearTimeout(u)},[r,n]);const i=S.useCallback(()=>a(!0),[]);return{esperando:r,empezar:i}}const HU="_capa_15nix_8",UU="_velo_15nix_14",VU="_ventana_15nix_29",GU="_titulo_15nix_50",WU="_autorizacion_15nix_62",ZU="_nota_15nix_73",QU="_etiqueta_15nix_80",XU="_filaDeEncargo_15nix_87",YU="_campo_15nix_95",KU="_adjuntos_15nix_115",JU="_adjunto_15nix_115",eV="_nombreDeAdjunto_15nix_130",tV="_peso_15nix_139",nV="_estado_15nix_140",rV="_acciones_15nix_151",aV="_accion_15nix_151 _secundario_1l1rx_39 _grande_1l1rx_26",oV="_principal_15nix_169",sV="_fallo_15nix_186",$t={capa:HU,velo:UU,ventana:VU,titulo:GU,autorizacion:WU,nota:ZU,etiqueta:QU,filaDeEncargo:XU,campo:YU,adjuntos:KU,adjunto:JU,nombreDeAdjunto:eV,peso:tV,estado:nV,acciones:rV,accion:aV,principal:oV,fallo:sV},iV=()=>{},lV=18e4;function cV({proyecto:e,local:t,alAbrirProyecto:n,puedeAugmentar:r=!0,encargoPropuesto:a,alAugmentar:l,alSubirAdjunto:i,alEncolar:u,alCerrar:d}){const[m,v]=S.useState(""),[f,h]=S.useState(void 0),b=S.useRef(null),[y,j]=S.useState([]),C=f??(a==null?void 0:a.encargo)??"",N=B0(a,!0,lV),z=y.some(L=>L.estado==="subiendo"),E=y.some(L=>L.estado==="falló"),P=m.trim()!==""&&!z&&!E,M=async L=>{const U=new Set(y.map(W=>W.nombre));for(const W of Array.from(L??[])){const O=u8(W.name);if(O===void 0){j(K=>[...K,{nombre:W.name,bytes:W.size,estado:"falló",motivo:"no se puede usar ese nombre aquí"}]);continue}const q=U.has(O);if(U.add(O),j(K=>[...K,q?{nombre:O,bytes:W.size,estado:"falló",motivo:"ya hay un adjunto con ese nombre"}:{nombre:O,bytes:W.size,estado:"subiendo"}]),q)continue;const F=await i(W,O);j(K=>K.map(le=>le.nombre===O&&le.estado==="subiendo"?{...le,estado:F.ok?"listo":"falló",...F.ok||F.motivo===void 0?{}:{motivo:F.motivo}}:le))}};return o.jsx(lr,{open:!0,onClose:iV,title:"Nueva tarea",headless:!0,className:$t.capa,children:o.jsx("div",{className:$t.velo,children:o.jsxs("div",{className:$t.ventana,children:[o.jsxs("h2",{className:$t.titulo,children:["Nueva tarea en ",e.nombre]}),t?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:$t.fallo,role:"alert",children:["Este proyecto todavía no está en tu equipo, así que ",o.jsx("strong",{children:"no se puede crear una tarea"})," para él: al cogerla se aparcaría diciendo que el proyecto no está, y ahí se quedaría."]}),o.jsx("p",{className:$t.nota,children:"Ábrelo una vez para traértelo —desde ahí se descarga— y luego vuelve a esta ventana."}),o.jsxs("div",{className:$t.acciones,children:[o.jsx(Le,{variant:"outline",className:$t.accion,onClick:d,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${$t.accion} ${$t.principal}`,onClick:n,children:"Abrir el proyecto"})]})]}),t?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:$t.autorizacion,children:["Esta tarea trabaja sola: ",o.jsx("strong",{children:"escribe en el proyecto sin pedirte permiso"})," fichero por fichero. Crearla es autorizarlo. Después se puede revisar lo que tocó, en la pestaña Revisión de su sesión."]}),o.jsx("label",{className:$t.etiqueta,htmlFor:"nueva-tarea-peticion",children:"Qué hay que hacer"}),o.jsx("textarea",{id:"nueva-tarea-peticion",className:$t.campo,rows:3,value:m,onChange:L=>v(L.target.value),placeholder:"Que la lista de clientes se pueda buscar por NIF"}),o.jsxs("div",{className:$t.filaDeEncargo,children:[o.jsx("label",{className:$t.etiqueta,htmlFor:"nueva-tarea-encargo",children:"Encargo (lo que se le manda al agente)"}),r?o.jsxs(Le,{variant:"outline",className:$t.accion,disabled:m.trim()===""||N.esperando,"aria-busy":N.esperando,onClick:()=>{N.empezar(),l(m)},children:[N.esperando?o.jsx(Wi,{}):null,"Preparar el encargo"]}):null]}),r?null:o.jsx("p",{className:$t.nota,children:"En esta consola no hay con qué preparar el encargo, así que se manda tu texto tal cual."}),(a==null?void 0:a.error)===void 0?null:o.jsxs("p",{className:$t.fallo,role:"alert",children:["No se pudo preparar el encargo (",a.error,"). Puedes encolarla con tu texto tal cual."]}),o.jsx("textarea",{id:"nueva-tarea-encargo",className:$t.campo,rows:8,value:C,onChange:L=>h(L.target.value),placeholder:"Se rellena con «Preparar el encargo», y se puede editar. Vacío, se manda tu texto tal cual."}),o.jsxs("div",{className:$t.filaDeEncargo,children:[o.jsx("span",{className:$t.etiqueta,children:"Adjuntar ficheros"}),o.jsx(Le,{variant:"outline",className:$t.accion,onClick:()=>{var L;return(L=b.current)==null?void 0:L.click()},children:"Elegir ficheros…"})]}),o.jsx("input",{ref:b,hidden:!0,type:"file",multiple:!0,onChange:L=>{M(L.target.files),L.target.value=""}}),o.jsxs("p",{className:$t.nota,children:["El agente puede ",o.jsx("strong",{children:"leer"})," estos ficheros en «/adjuntos/», de solo lectura; una imagen ",o.jsx("strong",{children:"no la ve"})," todavía. Si el trabajo depende de mirar una captura, descríbela por escrito."]}),y.length===0?null:o.jsx("ul",{className:$t.adjuntos,children:y.map((L,U)=>o.jsxs("li",{className:$t.adjunto,"data-estado":L.estado,children:[o.jsx("span",{className:$t.nombreDeAdjunto,children:L.nombre}),o.jsx("span",{className:$t.peso,children:uV(L.bytes)}),o.jsx("span",{className:$t.estado,children:L.estado==="subiendo"?"subiendo…":L.estado==="listo"?"listo":L.motivo??"no se pudo subir"})]},`${L.nombre}-${U}`))}),o.jsxs("div",{className:$t.acciones,children:[o.jsx(Le,{variant:"outline",className:$t.accion,onClick:d,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${$t.accion} ${$t.principal}`,disabled:!P,onClick:()=>{P&&u({peticion:m.trim(),encargo:C.trim()===""?m.trim():C})},children:"Encolar"})]})]}):null]})})})}function uV(e){return e<1e3?`${e} B`:e<1e6?`${Math.round(e/1e3)} KB`:`${(e/1e6).toFixed(1)} MB`}const dV="_destructiva_bd4l4_13",Pm={destructiva:dV};function pV({pendiente:e,esLaAbierta:t,alConfirmar:n,alCerrar:r}){const[a,l]=S.useState(e.titulo),i=e.accion==="borrar",u=i||a.trim()!=="";return o.jsx(lr,{open:!0,onClose:r,title:i?"Eliminar sesión":"Renombrar sesión",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:d=>{d.target===d.currentTarget&&r()},children:o.jsxs("div",{className:ye.ventana,children:[o.jsx("h2",{className:ye.titulo,children:i?"Eliminar sesión":"Renombrar sesión"}),i?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ye.nota,children:["Se borra «",e.titulo,"» entera: la conversación guardada y la lista de ficheros que tocó. No hay papelera."]}),t?o.jsx("p",{className:ye.nota,children:"Es la que estás mirando ahora, así que la consola se cerrará y volverás al escritorio."}):null]}):o.jsxs(o.Fragment,{children:[o.jsx("label",{className:ye.etiqueta,htmlFor:"accion-sesion-titulo",children:"Nombre"}),o.jsx("input",{id:"accion-sesion-titulo",className:ye.campo,value:a,autoFocus:!0,onChange:d=>l(d.target.value),onKeyDown:d=>{d.key==="Enter"&&u&&n(a)}})]}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,onClick:r,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:tt(ye.accion,ye.principal,i&&Pm.destructiva),disabled:!u,onClick:()=>n(i?void 0:a),children:i?"Eliminar":"Guardar"})]})]})})})}const j5=["fondo","capa1","capa2","capa3","texto","texto2","texto3","borde","acento","sobreAcento","peligro","exito","aviso","negocio","sombra","cambio","palabraClave","cadena","funcion","comentario","constante","parametro","puntuacion","enlace","expresionDeCadena"],D8=[{id:"xonecode-oscuro",nombre:"XOneCode",modo:"oscuro",muestra:{fondo:"#151517",texto:"#cfd3d6",acento:"#00a3e0"}},{id:"github-oscuro",nombre:"GitHub Dark",modo:"oscuro",semillas:{fondo:"#0d1117",capa1:"#161b22",capa2:"#21262d",capa3:"#30363d",texto:"#e6edf3",texto2:"#9198a1",texto3:"#7d8590",borde:"#30363d",acento:"#1f6feb",sobreAcento:"#ffffff",peligro:"#f85149",exito:"#3fb950",aviso:"#d29922",negocio:"#a371f7",sombra:"#010409",cambio:"#1f6feb",palabraClave:"#ff7b72",cadena:"#a5d6ff",funcion:"#d2a8ff",comentario:"#8b949e",constante:"#79c0ff",parametro:"#ffa657",puntuacion:"#c9d1d9",enlace:"#58a6ff",expresionDeCadena:"#a5d6ff"}},{id:"one-oscuro",nombre:"One Dark",modo:"oscuro",semillas:{fondo:"#282c34",capa1:"#21252b",capa2:"#2c313a",capa3:"#333842",texto:"#abb2bf",texto2:"#9da5b4",texto3:"#7f848e",borde:"#3e4451",acento:"#61afef",sobreAcento:"#282c34",peligro:"#e06c75",exito:"#98c379",aviso:"#e5c07b",negocio:"#c678dd",sombra:"#181a1f",cambio:"#61afef",palabraClave:"#c678dd",cadena:"#98c379",funcion:"#61afef",comentario:"#7f848e",constante:"#d19a66",parametro:"#e06c75",puntuacion:"#abb2bf",enlace:"#56b6c2",expresionDeCadena:"#98c379"}},{id:"dracula",nombre:"Dracula",modo:"oscuro",semillas:{fondo:"#282a36",capa1:"#21222c",capa2:"#343746",capa3:"#44475a",texto:"#f8f8f2",texto2:"#c9c9d1",texto3:"#8c94b8",borde:"#44475a",acento:"#bd93f9",sobreAcento:"#282a36",peligro:"#ff5555",exito:"#50fa7b",aviso:"#f1fa8c",negocio:"#ff79c6",sombra:"#191a21",cambio:"#8be9fd",palabraClave:"#ff79c6",cadena:"#f1fa8c",funcion:"#50fa7b",comentario:"#6272a4",constante:"#bd93f9",parametro:"#ffb86c",puntuacion:"#f8f8f2",enlace:"#8be9fd",expresionDeCadena:"#f1fa8c"}},{id:"xonecode-claro",nombre:"XOneCode",modo:"claro",muestra:{fondo:"#ffffff",texto:"#61666b",acento:"#00a3e0"}},{id:"github-claro",nombre:"GitHub Light",modo:"claro",semillas:{fondo:"#ffffff",capa1:"#f6f8fa",capa2:"#ffffff",capa3:"#eaeef2",texto:"#1f2328",texto2:"#59636e",texto3:"#6e7781",borde:"#d0d7de",acento:"#0969da",sobreAcento:"#ffffff",peligro:"#d1242f",exito:"#1a7f37",aviso:"#9a6700",negocio:"#8250df",sombra:"#1f2328",cambio:"#0969da",palabraClave:"#cf222e",cadena:"#0a3069",funcion:"#8250df",comentario:"#6e7781",constante:"#0550ae",parametro:"#953800",puntuacion:"#1f2328",enlace:"#0969da",expresionDeCadena:"#0a3069"}},{id:"one-claro",nombre:"One Light",modo:"claro",semillas:{fondo:"#fafafa",capa1:"#f0f0f1",capa2:"#ffffff",capa3:"#e5e5e6",texto:"#383a42",texto2:"#50525c",texto3:"#696c77",borde:"#dbdbdc",acento:"#3a6fe0",sobreAcento:"#ffffff",peligro:"#e45649",exito:"#50a14f",aviso:"#c18401",negocio:"#a626a4",sombra:"#383a42",cambio:"#4078f2",palabraClave:"#a626a4",cadena:"#50a14f",funcion:"#4078f2",comentario:"#a0a1a7",constante:"#986801",parametro:"#e45649",puntuacion:"#383a42",enlace:"#0184bc",expresionDeCadena:"#50a14f"}},{id:"ayu-claro",nombre:"Ayu Light",modo:"claro",semillas:{fondo:"#fcfcfc",capa1:"#f3f4f5",capa2:"#ffffff",capa3:"#e7eaed",texto:"#5c6166",texto2:"#646a71",texto3:"#828a92",borde:"#d8dce0",acento:"#ffaa33",sobreAcento:"#1f2328",peligro:"#e65050",exito:"#4c9a2a",aviso:"#c27c10",negocio:"#a37acc",sombra:"#3d424d",cambio:"#399ee6",palabraClave:"#fa8d3e",cadena:"#86b300",funcion:"#f2ae49",comentario:"#787b80",constante:"#a37acc",parametro:"#f07171",puntuacion:"#5c6166",enlace:"#399ee6",expresionDeCadena:"#4cbf99"}}];function z8(e){return D8.filter(t=>t.modo===e)}function T8(e,t){return D8.find(n=>n.id===e&&n.modo===t)??z8(t)[0]}const mV="_fila_1dzlz_5",hV="_rotulo_1dzlz_11",fV="_opciones_1dzlz_17",gV="_opcion_1dzlz_17",vV="_muestra_1dzlz_44",bV="_linea_1dzlz_56",yV="_pastilla_1dzlz_63",xV="_nombre_1dzlz_70",_V="_nota_1dzlz_75",Hs={fila:mV,rotulo:hV,opciones:fV,opcion:gV,muestra:vV,linea:bV,pastilla:yV,nombre:xV,nota:_V};function wV({modo:e,elegido:t,enVigor:n,rotulo:r,alElegir:a}){return o.jsxs("div",{className:Hs.fila,children:[o.jsx("span",{className:Hs.rotulo,children:r}),o.jsx("div",{role:"group","aria-label":r,className:Hs.opciones,children:z8(e).map(l=>{const i=l.semillas,u=i!==void 0?{fondo:i.fondo,texto:i.texto2,acento:i.acento}:l.muestra,d=u===void 0?void 0:{"--muestra-fondo":u.fondo,"--muestra-texto":u.texto,"--muestra-acento":u.acento},m=l.id===t;return o.jsxs("button",{type:"button","aria-label":l.nombre,"aria-pressed":m,className:Hs.opcion,onClick:()=>{m||a(l.id)},children:[o.jsxs("span",{"data-muestra":!0,className:Hs.muestra,style:d,children:[o.jsx("span",{className:Hs.linea}),o.jsx("span",{className:Hs.pastilla})]}),o.jsx("span",{className:Hs.nombre,children:l.nombre})]},l.id)})}),n?null:o.jsxs("p",{className:Hs.nota,children:["Elegirlo pone la consola en ",e,"."]})]})}function jV({avd:e,conectado:t,alArrancar:n,resultado:r}){const[a,l]=S.useState(!1);return S.useEffect(()=>{r!==void 0&&r.avd===e&&l(!1)},[r,e]),o.jsxs("span",{className:$o.envoltura,children:[r===void 0||a?null:o.jsxs("span",{className:$o.resultado,"data-ok":r.ok?"":void 0,children:[o.jsx("span",{"aria-hidden":"true",children:r.ok?"✓":"✕"}),o.jsx("span",{children:r.detalle})]}),o.jsx("button",{type:"button",className:$o.boton,disabled:t!==!0||a,title:`Arranca ${e} y espera a que el aparato aparezca`,onClick:()=>{l(!0),n(e)},children:a?"Arrancando…":"Arrancar"})]})}const CV="_envoltura_mq7nr_5",kV="_celdaDePuerto_mq7nr_9",NV="_celdaDeCasilla_mq7nr_10",SV="_campo_mq7nr_20",$V="_campoDePuerto_mq7nr_28 _campoDeNombreConBoton_1byta_924",AV="_puerto_mq7nr_33",EV="_motivo_mq7nr_39",El={envoltura:CV,celdaDePuerto:kV,celdaDeCasilla:NV,campo:SV,campoDePuerto:$V,puerto:AV,motivo:EV};function DV({avd:e,ajuste:t,conPuerto:n,conectado:r,ajustes:a,alCambiar:l}){const[i,u]=S.useState(String((t==null?void 0:t.puerto)??"")),[d,m]=S.useState(void 0),v=S.useRef(void 0);S.useEffect(()=>{v.current=void 0,u(String((t==null?void 0:t.puerto)??"")),m(void 0)},[t==null?void 0:t.puerto]);const f=()=>{const h=i.trim()===""?Number.NaN:Number(i);if(Number.isInteger(h)&&h===(t==null?void 0:t.puerto)){m(void 0);return}const b=gy(h,e,a);m(b),!(b!==void 0||v.current===h)&&(v.current=h,l({puerto:h}))};return o.jsxs("span",{className:El.envoltura,children:[o.jsx("span",{className:El.celdaDePuerto,children:n?o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:El.campoDePuerto,children:["Puerto",o.jsx("input",{type:"number",inputMode:"numeric",className:El.puerto,"aria-invalid":d===void 0?void 0:!0,value:i,disabled:r!==!0,"aria-label":`Puerto del túnel de ${e}`,title:"El puerto de este Mac que lleva al 8443 del aparato. Cada emulador, el suyo.",onChange:h=>{v.current=void 0,u(h.target.value)},onKeyDown:h=>{h.key==="Enter"&&f()},onBlur:f})]}),d===void 0?null:o.jsx("span",{className:El.motivo,role:"alert",children:d})]}):null}),o.jsx("span",{className:El.celdaDeCasilla,children:o.jsxs("label",{className:El.campo,children:[o.jsx("input",{type:"checkbox",checked:(t==null?void 0:t.sinVentana)===!0,disabled:r!==!0,"aria-label":`Arrancar ${e} sin ventana`,onChange:h=>l({sinVentana:h.target.checked})}),"Sin ventana"]})})]})}const zV="_envoltura_6fxfv_1",TV="_titulo_6fxfv_9 _subsubencabezado_1byta_511",MV="_fila_6fxfv_14 _campoDeNombreConBoton_1byta_924",LV="_campo_6fxfv_19",IV="_boton_6fxfv_28 _boton_2m29n_24 _secundario_1l1rx_39",RV="_motivo_6fxfv_32",PV="_estado_6fxfv_37",qV="_log_6fxfv_52",ss={envoltura:zV,titulo:TV,fila:MV,campo:LV,boton:IV,motivo:RV,estado:PV,log:qV},C5={corriendo:"En curso",ok:"Creado",fallo:"Falló",cancelada:"Cancelado",colgada:"Sin respuesta"},FV="El emulador nuevo sale de este: la imagen del sistema, el modelo de teléfono, la RAM y el disco.";function OV(e,t){const n="Marcada: clona el emulador entero —el framework de XOne, las apps, sus datos y su estado—, así que el nuevo queda listo para desplegar. Sin marcar: el nuevo arranca vacío, con la misma configuración.";return t?`${n}
|
|
488
|
+
|
|
489
|
+
Ahora no se puede: ${e} está encendido y, mientras corre, sus discos están bloqueados. Páralo para clonarlo.`:n}function BV({avds:e,conectado:t,alCrear:n,progreso:r,enMarcha:a=[]}){const[l,i]=S.useState(""),[u,d]=S.useState(void 0),[m,v]=S.useState(!1),f=u!==void 0&&e.includes(u)?u:e[0],h=f!==void 0&&a.includes(f),b=m&&!h,y=r,j=(y==null?void 0:y.estado)==="ok",C=S.useRef(void 0);S.useEffect(()=>{if(f===void 0){j&&i("");return}const P=by(f,e);i(M=>!j&&M!==""&&M!==C.current?M:(C.current=P,P))},[f,j]);const N=(y==null?void 0:y.estado)==="corriendo",z=o6(l.trim(),e),E=l.trim()===""?void 0:z;return o.jsxs("div",{className:ss.envoltura,children:[o.jsx("h4",{className:ss.titulo,children:"Nuevo emulador"}),f===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:ss.campo,title:FV,children:[o.jsx("span",{children:"Copia de:"}),o.jsx(us,{value:f,"aria-label":"Emulador del que copiar",disabled:t!==!0||N,onChange:P=>d(P.target.value),children:e.map(P=>o.jsx("option",{value:P,children:P},P))})]}),o.jsxs("label",{className:ss.campo,title:OV(f,h),children:[o.jsx("input",{type:"checkbox",checked:b,disabled:t!==!0||N||h,onChange:P=>v(P.target.checked)}),o.jsx("span",{children:"Copiar también lo instalado (framework y apps)"}),h?o.jsxs("span",{className:ss.motivo,children:[f," está encendido: pulsa «Parar» en su fila para poder clonarlo"]}):null]})]}),o.jsxs("div",{className:ss.fila,children:[o.jsx("input",{type:"text",value:l,placeholder:"Nombre del emulador","aria-label":"Nombre del emulador nuevo","aria-invalid":E===void 0?void 0:!0,disabled:t!==!0||N,onChange:P=>i(P.target.value)}),o.jsx("button",{type:"button",className:ss.boton,disabled:t!==!0||N||z!==void 0,title:"Crea un emulador de Android nuevo",onClick:()=>f===void 0?n(l.trim()):n(l.trim(),{base:f,conDatos:b}),children:N?"Creando…":"Crear emulador"})]}),E===void 0?null:o.jsx("span",{className:ss.motivo,children:E}),y===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ss.estado,"data-estado":y.estado,children:[y.titulo===""?C5[y.estado]:`${y.titulo} · ${C5[y.estado]}`,y.motivo===void 0?null:`: ${y.motivo}`]}),y.lineas.length===0?null:o.jsx("pre",{className:ss.log,children:y.lineas.slice(-5).join(`
|
|
490
|
+
`)})]})]})}const HV="_log_fjsyo_2 _log_6fxfv_52",UV={log:HV},VV=1e4;function GV({avd:e,alConfirmar:t,alCerrar:n,progreso:r}){const[a,l]=S.useState(""),[i,u]=S.useState(!1),[d,m]=S.useState(!1),v=S.useRef(r),f=i&&r!==v.current?r:void 0,h=i&&(f===void 0||f.estado==="corriendo"),b=(f==null?void 0:f.estado)==="corriendo",y=a.trim()===e;S.useEffect(()=>{(f==null?void 0:f.estado)==="ok"&&n()},[f==null?void 0:f.estado]),S.useEffect(()=>{if(!i||f!==void 0)return;const C=setTimeout(()=>{u(!1),m(!0)},VV);return()=>clearTimeout(C)},[i,f]);const j=()=>{v.current=r,m(!1),u(!0),t()};return o.jsx(lr,{open:!0,onClose:()=>b?void 0:n(),title:"Eliminar emulador",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:C=>{C.target===C.currentTarget&&!b&&n()},children:o.jsxs("div",{className:ye.ventana,role:"alertdialog","aria-label":`Eliminar el emulador ${e}`,children:[o.jsx("h2",{className:ye.titulo,children:"Eliminar emulador"}),o.jsxs("p",{className:ye.nota,children:["Se elimina «",e,"» de este equipo: ",o.jsx("strong",{children:"el emulador y todo lo instalado en él"})," —apps, datos y su estado guardado—. No hay papelera."]}),o.jsx("p",{className:ye.nota,children:"No se toca la imagen del sistema ni los demás emuladores, y los nuevos se podrán seguir creando."}),o.jsxs("label",{className:ye.etiqueta,htmlFor:"eliminar-emulador-nombre",children:["Escribe «",e,"» para confirmar"]}),o.jsx("input",{id:"eliminar-emulador-nombre",className:ye.campo,value:a,autoFocus:!0,autoComplete:"off",spellCheck:!1,disabled:h,onChange:C=>l(C.target.value),onKeyDown:C=>{C.key==="Enter"&&y&&!h&&j()}}),d?o.jsx("p",{className:ye.fallo,role:"alert",children:"El servidor no empezó a eliminarlo: puede que haya otro trabajo en marcha o que el emulador se haya encendido. Vuelve a intentarlo."}):null,f===void 0||f.estado==="corriendo"?null:o.jsxs("p",{className:ye.fallo,role:"alert",children:["No se ha eliminado: ",f.motivo??"el gestor de emuladores no pudo"]}),f===void 0||f.lineas.length===0?null:o.jsx("pre",{className:UV.log,children:f.lineas.slice(-5).join(`
|
|
491
|
+
`)}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,disabled:b,onClick:n,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:tt(ye.accion,ye.principal,Pm.destructiva),disabled:!y||h,onClick:j,children:h?"Eliminando…":"Eliminar"})]})]})})})}const WV=1500;function M8(e,t){const n=S.useRef(t);n.current=t;const r=t!==void 0;S.useEffect(()=>{if(!e||!r)return;let a=0;const l=()=>{var u;if(document.visibilityState!=="visible")return;const i=Date.now();i-a<WV||(a=i,(u=n.current)==null||u.call(n))};return l(),window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[e,r])}const ZV="_nota_e0xu9_10",QV="_vacio_e0xu9_11",XV="_pista_e0xu9_12",YV="_problemas_e0xu9_38",KV="_filas_e0xu9_48",JV="_fila_e0xu9_48",eG="_cabeceraDeFila_e0xu9_64",tG="_nombre_e0xu9_70",nG="_relleno_e0xu9_75",rG="_motor_e0xu9_82",aG="_origen_e0xu9_83",oG="_lectura_e0xu9_84",sG="_ejecucion_e0xu9_85",iG="_descripcion_e0xu9_123 _instrucciones_e0xu9_267",lG="_confirmar_e0xu9_132",cG="_accion_e0xu9_151 _secundario_1l1rx_39",uG="_icono_e0xu9_168",dG="_iconoDestructivo_e0xu9_190",pG="_destructiva_e0xu9_198",mG="_formulario_e0xu9_205",hG="_campo_e0xu9_215",fG="_rotulo_e0xu9_251",gG="_casilla_e0xu9_257",vG="_instrucciones_e0xu9_267",bG="_botones_e0xu9_294",yG="_aviso_e0xu9_304",xG="_principal_e0xu9_323 _primario_1l1rx_67",_G="_restaurar_e0xu9_353",wG="_accionDeFila_e0xu9_370",jG="_pestanas_e0xu9_395",CG="_pestana_e0xu9_395",kG="_cuenta_e0xu9_429",NG="_panelDePestana_e0xu9_440",SG="_nuevo_e0xu9_457",$G="_listaDeSkills_e0xu9_469",AG="_casillaDeSkill_e0xu9_485",EG="_textoDeSkill_e0xu9_519",DG="_nombreDeSkill_e0xu9_527",zG="_costeDeSkill_e0xu9_533",TG="_descripcionDeSkill_e0xu9_549",MG="_skillHuerfana_e0xu9_568",ze={nota:ZV,vacio:QV,pista:XV,problemas:YV,filas:KV,fila:JV,cabeceraDeFila:eG,nombre:tG,relleno:nG,motor:rG,origen:aG,lectura:oG,ejecucion:sG,descripcion:iG,confirmar:lG,accion:cG,icono:uG,iconoDestructivo:dG,destructiva:pG,formulario:mG,campo:hG,rotulo:fG,casilla:gG,instrucciones:vG,botones:bG,aviso:yG,principal:xG,restaurar:_G,accionDeFila:wG,pestanas:jG,pestana:CG,cuenta:kG,panelDePestana:NG,nuevo:SG,listaDeSkills:$G,casillaDeSkill:AG,textoDeSkill:EG,nombreDeSkill:DG,costeDeSkill:zG,descripcionDeSkill:TG,skillHuerfana:MG};function c2(e){return e==="modelo"||e==="claude-code"}const LG=[{id:"modelo",etiqueta:"Un modelo",detalle:"corre dentro de XOneCode, con las tools del proyecto"},{id:"claude-code",etiqueta:"Claude Code",detalle:"lanza un Claude Code sobre el proyecto; si escribe, apruebas cada cambio"},{id:"codex",etiqueta:"Codex",detalle:"lanza el `codex` que tengas instalado; si escribe, apruebas cada cambio"},{id:"opencode",etiqueta:"OpenCode",detalle:"lanza el `opencode` que tengas instalado; si escribe, apruebas cada cambio"}],IG="Un agente externo corre fuera de XOneCode, con su propia cuenta y su propia configuración. Si le dejas escribir, cada escritura te llega con su diff para que la apruebes, y las guardas del proyecto siguen puestas: no ESCRIBE en .env, .git, .xonecode, una vista aplanada ni fuera de la carpeta. Borrar y renombrar no se le conceden.",RG={"claude-code":"Leer también está guardado: no puede leer .env, .git, .xonecode, una vista aplanada ni nada de fuera del proyecto.",codex:"OJO: leer NO está guardado. Su sandbox solo le impide ESCRIBIR, así que puede leer .env, .git, .xonecode y ficheros de fuera del proyecto. No lo uses en un proyecto cuyos secretos no quieras que salgan de tu máquina.",opencode:"Leer está guardado por reglas de su configuración: no puede leer .env, .git, .xonecode, una vista aplanada ni nada de fuera del proyecto."};function PG(){return{nombre:"",descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}const qG={modelo:"El del papel que le toque","claude-code":"El que use Claude Code",codex:"El que use Codex",opencode:"El que use OpenCode"},FG={modelo:"— de tus proveedores comprobados","claude-code":"— los alias de Claude Code",codex:"— los que ofrece tu Codex",opencode:"— los que ofrece tu OpenCode"};function k5({alPulsar:e}){return o.jsx(Le,{variant:"outline",className:tt(ze.principal,ze.nuevo),onClick:e,children:"Nuevo subagente"})}const L8=/^[a-z0-9]+(-[a-z0-9]+)*$/;function OG(e){if(e.trim()!==""){if(e!==e.trim())return"no puede empezar ni acabar con espacios";if(e!==e.toLowerCase())return"no puede llevar mayúsculas: va todo en minúsculas";if(!L8.test(e))return"solo vale minúsculas, dígitos y guiones sencillos (ni espacios, ni acentos, ni guion al principio o al final)"}}function BG(e){const t=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t!==""&&L8.test(t)?t:void 0}const N5=[{clave:"serie",titulo:"De XOneCode",vacio:"No tienes en disco ninguno de los que trae XOneCode."},{clave:"propios",titulo:"Tuyos",vacio:"No has creado ninguno. «Nuevo subagente» escribe el primero."}],S5=e=>e==="claude-code"||e==="codex"||e==="opencode";function HG({agentes:e,problemas:t,hayProyecto:n,proveedores:r,modelosDeMotor:a,alPedirModelosDeMotor:l,alPedirCatalogo:i,catalogoDeSkills:u,alGuardar:d,alBorrar:m,alRestaurar:v}){var V,ie;const[f,h]=S.useState(void 0),[b,y]=S.useState(!1),[j,C]=S.useState("global"),[N,z]=S.useState(void 0),[E,P]=S.useState("serie"),[M,L]=S.useState(void 0),U=(r??[]).filter(T=>T.credencial==="puesta"||T.modelos!==void 0),W=T=>{var Se;return T.motor==="modelo"?U.some(ge=>(ge.modelos??[]).some(Oe=>`${ge.id}/${Oe.id}`===T.modelo)):(((Se=a==null?void 0:a[T.motor])==null?void 0:Se.modelos)??[]).some(ge=>ge.id===T.modelo)},O=f==null?void 0:f.motor;S.useEffect(()=>{O===void 0||!S5(O)||(a==null?void 0:a[O])===void 0&&(l==null||l(O))},[O,a,l]);const q=U.filter(T=>T.modelos===void 0&&T.error===void 0),F=(()=>{var be,Te,Ee;const T=f==null?void 0:f.modelo;if(T===void 0||(f==null?void 0:f.motor)!=="modelo")return[];const Se=T.indexOf("/");if(Se<=0)return[];const ge=T.slice(0,Se),Oe=T.slice(Se+1);return((Ee=(Te=(be=(r??[]).find(rt=>rt.id===ge))==null?void 0:be.modelos)==null?void 0:Te.find(rt=>rt.id===Oe))==null?void 0:Ee.esfuerzos)??[]})(),K=q.map(T=>T.id).join(",");S.useEffect(()=>{if(!(O!=="modelo"||K===""))for(const T of K.split(","))i==null||i(T)},[O,K,i]);const le={serie:(e??[]).filter(T=>T.semilla!==void 0),propios:(e??[]).filter(T=>T.semilla===void 0)},me=f!==void 0&&f.nombre.trim()!==""&&f.nombre!==M&&(e??[]).some(T=>T.nombre===f.nombre.trim()),ne=f===void 0?void 0:OG(f.nombre),ce=f===void 0?void 0:BG(f.nombre),Ae=f===void 0?void 0:me?`Ya hay un subagente que se llama «${f.nombre.trim()}». Elige otro nombre, o borra ese primero.`:ne===void 0?void 0:`El nombre ${ne}.${ce===void 0?"":` Prueba con «${ce}».`}`,de=()=>{z(void 0),L(void 0),h(PG()),y(!0),C(n?"proyecto":"global")},te=()=>{h(void 0),y(!1)},I=()=>{if(f===void 0)return;const T=M!==void 0&&M!==f.nombre?M:void 0;d(f,j,T),te()};return e===void 0?o.jsx("p",{className:ze.nota,children:"Consultando los subagentes…"}):o.jsxs(o.Fragment,{children:[f!==void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ze.nota,children:["Cada subagente es un fichero ",o.jsx("code",{children:".md"})," en ",o.jsx("code",{children:".xonecode/agentes/"}),". Los globales valen en todos los proyectos; los de un proyecto solo en ese, y pisan al global del mismo nombre."]}),t!==void 0&&t.length>0?o.jsx("ul",{className:ze.problemas,role:"alert",children:t.map(T=>o.jsx("li",{children:T},T))}):null,e.length===0?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:ze.vacio,children:"No hay ningún subagente. Sin ninguno, el orquestador no tiene en quién delegar."}),o.jsx(k5,{alPulsar:de})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:ze.pestanas,role:"tablist","aria-label":"Subagentes por origen",children:N5.map(T=>o.jsxs("button",{type:"button",role:"tab",className:ze.pestana,"aria-selected":T.clave===E,"data-actual":T.clave===E?"":void 0,onClick:()=>{P(T.clave),z(void 0)},children:[T.titulo,le[T.clave].length>0?o.jsx("span",{className:ze.cuenta,children:le[T.clave].length}):null]},T.clave))}),o.jsxs("div",{role:"tabpanel",className:ze.panelDePestana,children:[E==="propios"?o.jsx(k5,{alPulsar:de}):null,le[E].length===0?o.jsx("p",{className:ze.vacio,children:N5.find(T=>T.clave===E).vacio}):o.jsx("ul",{className:ze.filas,children:le[E].map(T=>o.jsx(UG,{agente:T,abierta:N,alAbrir:z,alEditar:()=>{z(void 0),C(T.origen==="proyecto"?"proyecto":"global"),L(T.nombre),h({...T}),y(!1)},alBorrar:()=>m(T.nombre,T.origen==="proyecto"?"proyecto":"global"),alRestaurar:()=>v(T.nombre)},T.nombre))})]})]})]}),f===void 0?null:o.jsxs("div",{className:ze.formulario,children:[o.jsxs("label",{className:ze.campo,children:[o.jsxs("span",{className:ze.rotulo,children:["Nombre",f.semilla===void 0?null:o.jsx("span",{className:ze.pista,children:" — no se cambia: lo trae XOneCode"})]}),o.jsx(Ta,{value:f.nombre,disabled:!b&&f.semilla!==void 0,onChange:T=>h({...f,nombre:T.target.value})})]}),o.jsxs("label",{className:ze.campo,children:[o.jsxs("span",{className:ze.rotulo,children:["Cuándo usarlo ",o.jsx("span",{className:ze.pista,children:"— lo lee el orquestador para elegirlo"})]}),o.jsx("textarea",{className:ze.descripcion,rows:4,value:f.descripcion,onChange:T=>h({...f,descripcion:T.target.value})})]}),o.jsxs("label",{className:ze.campo,children:[o.jsx("span",{className:ze.rotulo,children:"Motor"}),o.jsx(us,{value:f.motor,onChange:T=>h({...f,motor:T.target.value,modelo:void 0}),children:LG.map(T=>o.jsxs("option",{value:T.id,children:[T.etiqueta," — ",T.detalle]},T.id))})]}),o.jsxs("label",{className:ze.campo,children:[o.jsxs("span",{className:ze.rotulo,children:["Modelo ",o.jsx("span",{className:ze.pista,children:FG[f.motor]??""})]}),o.jsxs(us,{value:f.modelo??"",onChange:T=>h({...f,...T.target.value===""?{modelo:void 0}:{modelo:T.target.value}}),children:[o.jsx("option",{value:"",children:qG[f.motor]??"El que le toque"}),f.motor==="modelo"?U.filter(T=>(T.modelos??[]).length>0).map(T=>o.jsx("optgroup",{label:T.nombre,children:(T.modelos??[]).map(Se=>o.jsx("option",{value:`${T.id}/${Se.id}`,children:Se.nombre??Se.id},`${T.id}/${Se.id}`))},T.id)):(((V=a==null?void 0:a[f.motor])==null?void 0:V.modelos)??[]).map(T=>o.jsx("option",{value:T.id,children:T.nombre},T.id)),f.modelo!==void 0&&!W(f)?o.jsxs("option",{value:f.modelo,children:[f.modelo," — el que ya tenía"]}):null]}),f.motor==="modelo"&&q.length>0?o.jsxs("p",{className:ze.pista,children:["Consultando los modelos de ",q.map(T=>T.nombre).join(", "),"…"]}):null,S5(f.motor)&&((ie=a==null?void 0:a[f.motor])==null?void 0:ie.error)!==void 0?o.jsx("p",{className:ze.aviso,role:"alert",children:a[f.motor].error}):null]}),f.motor==="modelo"&&F.length>0?o.jsxs("label",{className:ze.campo,children:[o.jsxs("span",{className:ze.rotulo,children:["Esfuerzo"," ",o.jsx("span",{className:ze.pista,children:"— cuánto razona antes de contestar"})]}),o.jsxs(us,{value:f.esfuerzo??"",onChange:T=>h({...f,...T.target.value===""?{esfuerzo:void 0}:{esfuerzo:T.target.value}}),children:[o.jsx("option",{value:"",children:"Sin fijar — decide el modelo"}),F.map(T=>o.jsx("option",{value:T,children:T},T))]})]}):null,o.jsxs("label",{className:ze.casilla,children:[o.jsx("input",{type:"checkbox",checked:f.soloLectura,onChange:T=>h({...f,soloLectura:T.target.checked})}),o.jsxs("span",{children:["Solo lectura ",o.jsx("span",{className:ze.pista,children:"— si escribe, sus cambios pasan por tu aprobación"})]})]}),c2(f.motor)?o.jsxs("label",{className:ze.casilla,children:[o.jsx("input",{type:"checkbox",checked:f.ejecucion===!0,onChange:T=>h(T.target.checked?{...f,ejecucion:!0}:(({ejecucion:Se,...ge})=>ge)(f))}),o.jsxs("span",{children:["Ejecuta comandos"," ",o.jsx("span",{className:ze.pista,children:f.motor==="modelo"?"— alcanza tu máquina entera: no lo acotan ni los permisos de fichero ni la aprobación de escrituras":"— solo los scripts de sus skills, por su nombre: corren en tu máquina sin pasar por la aprobación"})]})]}):null,f.motor==="modelo"?null:o.jsxs("p",{className:ze.aviso,children:[IG," ",RG[f.motor]??"",f.ejecucion===!0&&!c2(f.motor)?" Y «ejecuta comandos» no se aplica con este motor: el hijo corre en otro proceso, con la shell cerrada.":"",f.esfuerzo!==void 0?" El «esfuerzo» tampoco se aplica: el modelo lo construye el hijo, con su propia configuración.":""]}),o.jsx(VG,{elegidas:f.skills,...u===void 0?{}:{catalogo:u},alCambiar:T=>h({...f,skills:T})}),o.jsxs("label",{className:ze.campo,children:[o.jsx("span",{className:ze.rotulo,children:"Instrucciones"}),o.jsx("textarea",{className:ze.instrucciones,rows:8,value:f.instrucciones,onChange:T=>h({...f,instrucciones:T.target.value})})]}),n?o.jsxs("label",{className:ze.campo,children:[o.jsx("span",{className:ze.rotulo,children:"Dónde se guarda"}),o.jsxs(us,{value:j,onChange:T=>C(T.target.value==="proyecto"?"proyecto":"global"),children:[o.jsx("option",{value:"proyecto",children:"En este proyecto"}),o.jsx("option",{value:"global",children:"Global — en todos"})]})]}):o.jsx("p",{className:ze.pista,children:"Se guarda como global: no hay ningún proyecto abierto."}),Ae===void 0?null:o.jsx("p",{className:ze.aviso,children:Ae}),o.jsxs("div",{className:ze.botones,children:[o.jsx(Le,{variant:"outline",className:ze.accion,onClick:te,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:ze.principal,disabled:Ae!==void 0||f.nombre.trim()===""||f.descripcion.trim()==="",onClick:I,children:"Guardar"})]})]})]})}function UG({agente:e,abierta:t,alAbrir:n,alEditar:r,alBorrar:a,alRestaurar:l}){const i=e,u=(t==null?void 0:t.nombre)===i.nombre?t.que:void 0,d=m=>n(u===m?void 0:{nombre:i.nombre,que:m});return o.jsxs("li",{className:ze.fila,children:[o.jsxs("div",{className:ze.cabeceraDeFila,children:[o.jsx("span",{className:ze.nombre,children:i.nombre}),o.jsx("span",{className:ze.motor,children:i.motor}),i.origen===void 0?null:o.jsx("span",{className:ze.origen,children:i.origen}),i.soloLectura?o.jsx("span",{className:ze.lectura,children:"solo lectura"}):null,i.ejecucion===!0&&c2(i.motor)?o.jsx("span",{className:ze.ejecucion,title:"Puede ejecutar comandos en esta máquina",children:"ejecuta"}):null,o.jsx("span",{className:ze.relleno}),o.jsx("button",{type:"button",className:ze.icono,"aria-label":`Editar ${i.nombre}`,title:"Editar",onClick:()=>{n(void 0),r()},children:o.jsx(G2,{size:18})}),i.semilla===void 0?o.jsx("button",{type:"button",className:tt(ze.icono,ze.iconoDestructivo),"aria-label":`Eliminar ${i.nombre}`,title:"Eliminar",onClick:()=>d("borrar"),children:o.jsx(W2,{size:18})}):null]}),o.jsx("p",{className:ze.descripcion,children:i.descripcion}),i.semilla==="modificada"&&u!=="restaurar"?o.jsxs("p",{className:ze.restaurar,children:["Lo has editado, así que las mejoras que publiquemos en él ya no te llegan."," ",o.jsx(Le,{variant:"outline",className:ze.accionDeFila,onClick:()=>d("restaurar"),children:"Restaurar el de serie"})]}):null,u==="borrar"?o.jsxs("p",{className:ze.confirmar,children:["Se borra el fichero de «",i.nombre,"». No hay papelera."," ",o.jsx(Le,{variant:"outline",className:ze.destructiva,onClick:()=>{a(),n(void 0)},children:"Eliminar"})]}):null,u==="restaurar"?o.jsxs("p",{className:ze.confirmar,children:["Se pisa tu versión de «",i.nombre,"» con la de XOneCode. Lo que hayas escrito no vuelve."," ",o.jsx(Le,{variant:"outline",className:ze.destructiva,onClick:()=>{l(),n(void 0)},children:"Restaurar"})]}):null]})}function VG({elegidas:e,catalogo:t,alCambiar:n}){if(t===void 0)return o.jsxs("label",{className:ze.campo,children:[o.jsxs("span",{className:ze.rotulo,children:["Skills ",o.jsx("span",{className:ze.pista,children:"— separadas por comas"})]}),o.jsx(Ta,{value:e.join(", "),onChange:i=>n(i.target.value.split(",").map(u=>u.trim()).filter(u=>u!==""))})]});const r=new Set(t.map(i=>i.nombre)),a=e.filter(i=>!r.has(i)),l=(i,u)=>{n(u?[...e,i]:e.filter(d=>d!==i))};return o.jsxs("div",{className:ze.campo,children:[o.jsxs("span",{className:ze.rotulo,children:["Skills ",o.jsx("span",{className:ze.pista,children:"— las que se le cargan bajo demanda"})]}),t.length===0&&a.length===0?o.jsx("p",{className:ze.pista,children:"No hay ninguna skill. Se escriben en la sección Skills."}):o.jsxs("ul",{className:ze.listaDeSkills,children:[t.map(i=>o.jsx("li",{children:o.jsxs("label",{className:ze.casillaDeSkill,children:[o.jsx("input",{type:"checkbox",checked:e.includes(i.nombre),onChange:u=>l(i.nombre,u.target.checked)}),o.jsxs("span",{className:ze.textoDeSkill,children:[o.jsx("span",{className:ze.nombreDeSkill,children:i.nombre}),o.jsxs("span",{className:ze.costeDeSkill,children:[Mt(i.tokens)," tok"]}),o.jsx("span",{className:ze.descripcionDeSkill,title:i.descripcion,children:i.descripcion})]})]})},i.nombre)),a.map(i=>o.jsx("li",{children:o.jsxs("label",{className:tt(ze.casillaDeSkill,ze.skillHuerfana),children:[o.jsx("input",{type:"checkbox",checked:!0,onChange:()=>l(i,!1)}),o.jsxs("span",{className:ze.textoDeSkill,children:[o.jsx("span",{className:ze.nombreDeSkill,children:i}),o.jsx("span",{className:ze.descripcionDeSkill,children:"Su `.md` la declara y no está en el catálogo: hoy este subagente se queda sin ella. Desmárcala para quitarla, o escríbela en la sección Skills."})]})]})},i))]})]})}const GG="_nota_1gwiq_17",WG="_vacio_1gwiq_18",ZG="_pista_1gwiq_19",QG="_problemas_1gwiq_45",XG="_filas_1gwiq_55",YG="_fila_1gwiq_55",KG="_cabeceraDeFila_1gwiq_71",JG="_nombre_1gwiq_77",eW="_relleno_1gwiq_82",tW="_origen_1gwiq_90",nW="_descripcion_1gwiq_119",rW="_confirmar_1gwiq_128",aW="_accion_1gwiq_147 _secundario_1l1rx_39",oW="_icono_1gwiq_164",sW="_iconoDestructivo_1gwiq_186",iW="_destructiva_1gwiq_194",lW="_formulario_1gwiq_201",cW="_campo_1gwiq_211",uW="_rotulo_1gwiq_247",dW="_instrucciones_1gwiq_263",pW="_botones_1gwiq_277",mW="_principal_1gwiq_304 _primario_1l1rx_67",hW="_accionDeFila_1gwiq_351",fW="_pestanas_1gwiq_376",gW="_pestana_1gwiq_376",vW="_cuenta_1gwiq_410",bW="_panelDePestana_1gwiq_421",yW="_nuevo_1gwiq_438",xW="_tokens_1gwiq_451",_W="_anexos_1gwiq_464",wW="_listaDeAnexos_1gwiq_471",jW="_cuerpo_1gwiq_482",CW="_texto_1gwiq_494",kW="_piePropio_1gwiq_508",NW="_rotuloDeBloque_1gwiq_521",SW="_frontmatter_1gwiq_537",$W="_acciones_1gwiq_555",AW="_elector_1gwiq_564",Xe={nota:GG,vacio:WG,pista:ZG,problemas:QG,filas:XG,fila:YG,cabeceraDeFila:KG,nombre:JG,relleno:eW,origen:tW,descripcion:nW,confirmar:rW,accion:aW,icono:oW,iconoDestructivo:sW,destructiva:iW,formulario:lW,campo:cW,rotulo:uW,instrucciones:dW,botones:pW,principal:mW,accionDeFila:hW,pestanas:fW,pestana:gW,cuenta:vW,panelDePestana:bW,nuevo:yW,tokens:xW,anexos:_W,listaDeAnexos:wW,cuerpo:jW,texto:CW,piePropio:kW,rotuloDeBloque:NW,frontmatter:SW,acciones:$W,elector:AW},$5=[{clave:"serie",titulo:"De XOneCode",vacio:"No se encontró el catálogo que trae XOneCode."},{clave:"propias",titulo:"Tuyas",vacio:"No has escrito ninguna. «Nueva skill» escribe la primera, o copia una de XOneCode."}],Kh=6,EW={serie:"XOneCode",global:"global",proyecto:"proyecto"};function DW({skills:e,problemas:t,cuerpos:n,hayProyecto:r,alPedirCuerpo:a,alGuardar:l,alBorrar:i,alInstalar:u}){const[d,m]=S.useState("serie"),[v,f]=S.useState(void 0),[h,b]=S.useState("global"),[y,j]=S.useState(void 0),[C,N]=S.useState(void 0),[z,E]=S.useState({trabajando:!1}),P=S.useRef(null);if(e===void 0)return o.jsx("p",{className:Xe.nota,children:"Consultando las skills…"});const M={serie:e.filter(F=>F.origen==="serie"),propias:e.filter(F=>F.origen!=="serie")},L=F=>{if(y===F.nombre){j(void 0);return}j(F.nombre),F.cuerpo===void 0&&!(n!==void 0&&F.nombre in n)&&a(F.nombre)},U=r?"proyecto":"global",W=()=>{f({nombre:"",descripcion:"",cuerpo:""}),b(U),N(void 0)},O=F=>{f({nombre:F.nombre,descripcion:F.descripcion,cuerpo:F.cuerpo??"",...F.frontmatter===void 0?{}:{frontmatter:F.frontmatter},renombrandoDe:F.nombre}),b(F.origen==="proyecto"?"proyecto":"global"),N(void 0)},q=(F,K)=>{f({nombre:"",descripcion:F.descripcion,cuerpo:K,...F.frontmatter===void 0?{}:{frontmatter:F.frontmatter}}),b(r?"proyecto":"global"),j(void 0)};if(v!==void 0){const F=v.nombre.trim()===""||v.descripcion.trim()==="";return o.jsxs("div",{className:Xe.formulario,children:[o.jsxs("label",{className:Xe.campo,children:[o.jsxs("span",{className:Xe.rotulo,children:["Nombre ",o.jsx("span",{className:Xe.pista,children:"— es la carpeta: minúsculas, dígitos y guiones"})]}),o.jsx(Ta,{value:v.nombre,onChange:K=>f({...v,nombre:K.target.value})})]}),o.jsxs("label",{className:Xe.campo,children:[o.jsxs("span",{className:Xe.rotulo,children:["Descripción ",o.jsx("span",{className:Xe.pista,children:"— cuándo cargarla; la lee el modelo"})]}),o.jsx(Ta,{value:v.descripcion,onChange:K=>f({...v,descripcion:K.target.value})})]}),o.jsxs("label",{className:Xe.campo,children:[o.jsxs("span",{className:Xe.rotulo,children:["Instrucciones ",o.jsx("span",{className:Xe.pista,children:"— el cuerpo del SKILL.md"})]}),o.jsx("textarea",{className:Xe.instrucciones,rows:14,value:v.cuerpo,onChange:K=>f({...v,cuerpo:K.target.value})})]}),r?o.jsxs("label",{className:Xe.campo,children:[o.jsx("span",{className:Xe.rotulo,children:"Dónde se guarda"}),o.jsxs(us,{value:h,onChange:K=>b(K.target.value==="proyecto"?"proyecto":"global"),children:[o.jsx("option",{value:"proyecto",children:"En este proyecto"}),o.jsx("option",{value:"global",children:"Para todos tus proyectos"})]})]}):null,o.jsxs("div",{className:Xe.botones,children:[o.jsx(Le,{className:Xe.accion,variant:"outline",onClick:()=>f(void 0),children:"Cancelar"}),o.jsx(Le,{className:Xe.principal,disabled:F,onClick:()=>{l({nombre:v.nombre.trim(),descripcion:v.descripcion.trim(),origen:h,tokens:0,ficheros:[],cuerpo:v.cuerpo,...v.frontmatter===void 0?{}:{frontmatter:v.frontmatter}},h,v.renombrandoDe),f(void 0)},children:"Guardar"})]})]})}return o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Xe.nota,children:["Una skill es una carpeta con un ",o.jsx("code",{children:"SKILL.md"})," dentro: instrucciones que el modelo carga ",o.jsx("strong",{children:"solo cuando su descripción le dice que le sirven"}),". Las tuyas viven en"," ",o.jsx("code",{children:".xonecode/skills/"}),"; las de un proyecto solo valen ahí, y pisan a la global del mismo nombre."]}),t!==void 0&&t.length>0?o.jsx("ul",{className:Xe.problemas,role:"alert",children:t.map(F=>o.jsx("li",{children:F},F))}):null,o.jsx("div",{className:Xe.pestanas,role:"tablist","aria-label":"Skills por origen",children:$5.map(F=>o.jsxs("button",{type:"button",role:"tab",className:Xe.pestana,"aria-selected":F.clave===d,"data-actual":F.clave===d?"":void 0,onClick:()=>{m(F.clave),j(void 0),N(void 0)},children:[F.titulo,M[F.clave].length>0?o.jsx("span",{className:Xe.cuenta,children:M[F.clave].length}):null]},F.clave))}),o.jsxs("div",{role:"tabpanel",className:Xe.panelDePestana,children:[d==="propias"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Xe.acciones,children:[o.jsx(Le,{className:tt(Xe.principal,Xe.nuevo),variant:"outline",onClick:W,children:"Nueva skill"}),u===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx(Le,{className:tt(Xe.accion,Xe.nuevo),variant:"outline",disabled:z.trabajando,onClick:()=>{var F;return(F=P.current)==null?void 0:F.click()},children:z.trabajando?"Instalando…":"Instalar un .zip"}),o.jsx("input",{ref:P,type:"file",accept:".zip,application/zip",className:Xe.elector,onChange:F=>{var le;const K=(le=F.target.files)==null?void 0:le[0];F.target.value="",K!==void 0&&(E({trabajando:!0}),u(K.name,U,K).then(me=>E({trabajando:!1,...me.ok?{}:{error:me.motivo??"no se pudo instalar"}})))}})]})]}),z.error!==void 0?o.jsx("p",{className:Xe.problemas,role:"alert",children:z.error}):null]}):null,M[d].length===0?o.jsx("p",{className:Xe.vacio,children:$5.find(F=>F.clave===d).vacio}):o.jsx("ul",{className:Xe.filas,children:M[d].map(F=>o.jsx(zW,{skill:F,abierta:y===F.nombre,cuerpoPedido:n!==void 0&&F.nombre in n?n[F.nombre]:void 0,sePidio:n!==void 0&&F.nombre in n,borrando:C===F.nombre,alAbrir:()=>L(F),alEditar:()=>O(F),alCopiar:K=>q(F,K),alArmarBorrado:()=>N(C===F.nombre?void 0:F.nombre),alBorrar:()=>{i(F,F.origen==="proyecto"?"proyecto":"global"),N(void 0)}},F.nombre))})]})]})}function zW({skill:e,abierta:t,cuerpoPedido:n,sePidio:r,borrando:a,alAbrir:l,alEditar:i,alCopiar:u,alArmarBorrado:d,alBorrar:m}){const v=e.origen==="serie",f=e.cuerpo??n;return o.jsxs("li",{className:Xe.fila,children:[o.jsxs("div",{className:Xe.cabeceraDeFila,children:[o.jsx("span",{className:Xe.nombre,children:e.nombre}),o.jsx("span",{className:Xe.origen,children:EW[e.origen]}),o.jsxs("span",{className:Xe.tokens,title:`${e.tokens} tokens si el modelo la carga`,children:[Mt(e.tokens)," tok"]}),o.jsx("span",{className:Xe.relleno}),o.jsx("button",{type:"button",className:Xe.accionDeFila,"aria-expanded":t,onClick:l,children:t?"Ocultar":"Ver"}),v?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Xe.icono,"aria-label":`Editar ${e.nombre}`,onClick:i,children:o.jsx(G2,{})}),o.jsx("button",{type:"button",className:tt(Xe.icono,Xe.iconoDestructivo),"aria-label":`Eliminar ${e.nombre}`,title:"Eliminar",onClick:d,children:o.jsx(W2,{})})]})]}),t?o.jsxs("div",{className:Xe.cuerpo,children:[e.frontmatter!==void 0&&e.frontmatter.trim()!==""?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Xe.rotuloDeBloque,children:"Frontmatter"}),o.jsx("pre",{className:Xe.frontmatter,children:e.frontmatter.trimEnd()})]}):o.jsx("p",{className:Xe.descripcion,children:e.descripcion}),e.ficheros.length>0?o.jsxs("p",{className:Xe.anexos,children:["Además del ",o.jsx("code",{children:"SKILL.md"})," lleva ",e.ficheros.length," ",e.ficheros.length===1?"fichero":"ficheros",":"," ",o.jsx("span",{className:Xe.listaDeAnexos,children:e.ficheros.slice(0,Kh).join(", ")}),e.ficheros.length>Kh?` y ${e.ficheros.length-Kh} más`:"",". Se quedan como están: aquí solo se edita el ",o.jsx("code",{children:"SKILL.md"}),"."]}):null,f!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Xe.rotuloDeBloque,children:"Instrucciones"}),o.jsx("pre",{className:Xe.texto,children:f}),v?o.jsxs("div",{className:Xe.piePropio,children:[o.jsxs("span",{children:["Esta la trae XOneCode y no se edita: el siguiente ",o.jsx("code",{children:"npm install"})," se llevaría el cambio."]}),o.jsx("button",{type:"button",className:Xe.accionDeFila,onClick:()=>u(f),children:"Copiar a las tuyas"})]}):null]}):r?o.jsx("p",{className:Xe.vacio,children:"No se pudo leer el SKILL.md de esta skill."}):o.jsx("p",{className:Xe.vacio,children:"Leyendo…"})]}):null,a?o.jsxs("div",{className:Xe.confirmar,children:[o.jsx("span",{children:"Se borra la carpeta entera, anexos incluidos. No hay papelera."}),o.jsx(Le,{className:tt(Xe.accion,Xe.destructiva),onClick:m,children:"Eliminar"})]}):null]})}const TW={deepwiki:"/iconos/conectores/deepwiki.png",jira:"/iconos/conectores/jira.png"},MW={notion:"M3.90973 3.74062C4.41327 4.14967 4.60227 4.11862 5.54862 4.05517L14.4687 3.51989C14.6577 3.51989 14.5005 3.33089 14.4377 3.29984L12.9554 2.22862C12.6719 2.00857 12.2932 1.75612 11.5683 1.8189L2.93165 2.44934C2.6171 2.48039 2.55365 2.63834 2.6792 2.76389L3.90973 3.74062ZM4.445 5.81961V15.2048C4.445 15.709 4.69677 15.898 5.26445 15.8663L15.0675 15.2993C15.6351 15.2682 15.6986 14.9213 15.6986 14.5116V5.18916C15.6986 4.78012 15.5413 4.55939 15.1937 4.59044L4.94922 5.18916C4.57122 5.22089 4.445 5.41056 4.445 5.81961ZM14.1225 6.32249C14.1852 6.60599 14.1225 6.88949 13.839 6.92189L13.3665 7.01639V13.9446C12.9561 14.1653 12.5781 14.2915 12.2628 14.2915C11.7579 14.2915 11.6317 14.1336 11.2537 13.6617L8.16424 8.81121V13.5038L9.14164 13.7252C9.14164 13.7252 9.14164 14.2922 8.35324 14.2922L6.1784 14.4177C6.11562 14.2922 6.1784 13.977 6.39912 13.9142L6.96612 13.7569V7.55166L6.17975 7.48821C6.1163 7.20471 6.27424 6.79566 6.71502 6.76394L9.04781 6.60666L12.2635 11.52V7.17299L11.4434 7.07916C11.3806 6.73221 11.6324 6.48044 11.9476 6.44939L14.1225 6.32249ZM2.2067 1.59885L11.1909 0.937348C12.2939 0.842848 12.5781 0.905623 13.2713 1.40985L16.1393 3.42539C16.6118 3.77167 16.7698 3.86617 16.7698 4.24417V15.2993C16.7698 15.9918 16.518 16.4022 15.6358 16.4643L5.20167 17.0948C4.54017 17.1265 4.22427 17.032 3.87732 16.5906L1.76525 13.8501C1.38726 13.3458 1.22998 12.9685 1.22998 12.5271V2.70044C1.22998 2.13412 1.48243 1.66095 2.2067 1.59885Z"};function qm({id:e,nombre:t,size:n=20,className:r}){const a=TW[e];if(a!==void 0)return o.jsx("img",{className:r,src:a,alt:"",width:n,height:n});const l=MW[e],i=t.trim().charAt(0).toUpperCase()||"?";return o.jsx("svg",{viewBox:l===void 0?"0 0 20 20":"0 0 18 18",width:n,height:n,fill:"none","aria-hidden":"true",focusable:"false",className:r,children:l===void 0?o.jsxs(o.Fragment,{children:[o.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"1.2"}),o.jsx("text",{x:"10",y:"14",textAnchor:"middle",fontSize:"10",fontWeight:"600",fill:"currentColor",children:i})]}):o.jsx("path",{d:l,fill:"currentColor"})})}const LW="_nota_ciziz_13",IW="_vacio_ciziz_14",RW="_problemas_ciziz_22",PW="_estado_ciziz_36",qW="_grupo_ciziz_49",FW="_filas_ciziz_58",OW="_fila_ciziz_58",BW="_cabeceraDeFila_ciziz_74",HW="_icono_ciziz_84",UW="_nombre_ciziz_89",VW="_autenticacion_ciziz_94",GW="_relleno_ciziz_107",WW="_pastilla_ciziz_118",ZW="_sinProbar_ciziz_127",QW="_conectado_ciziz_132",XW="_esperando_ciziz_137",YW="_faltaAutorizar_ciziz_138",KW="_noResponde_ciziz_143",JW="_motivo_ciziz_151",eZ="_descripcion_ciziz_158",tZ="_accionDeFila_ciziz_167",nZ="_exito_ciziz_190",rZ="_cuerpo_ciziz_200",aZ="_tools_ciziz_207",oZ="_tool_ciziz_207",sZ="_nombreDeTool_ciziz_223",iZ="_soloLectura_ciziz_232",lZ="_descripcionDeTool_ciziz_244",cZ="_formulario_ciziz_253",uZ="_etiqueta_ciziz_254",dZ="_campo_ciziz_274",pZ="_aviso_ciziz_254",mZ="_accion_ciziz_167 _secundario_1l1rx_39",hZ="_principal_ciziz_186 _primario_1l1rx_67",fZ="_botones_ciziz_254",Ge={nota:LW,vacio:IW,problemas:RW,estado:PW,grupo:qW,filas:FW,fila:OW,cabeceraDeFila:BW,icono:HW,nombre:UW,autenticacion:VW,relleno:GW,pastilla:WW,sinProbar:ZW,conectado:QW,esperando:XW,faltaAutorizar:YW,noResponde:KW,motivo:JW,descripcion:eZ,accionDeFila:tZ,exito:nZ,cuerpo:rZ,tools:aZ,tool:oZ,nombreDeTool:sZ,soloLectura:iZ,descripcionDeTool:lZ,formulario:cZ,etiqueta:uZ,campo:dZ,aviso:pZ,accion:mZ,principal:hZ,botones:fZ},I8={ninguna:"Sin autenticación","api-key":"Clave de API",oauth:"OAuth"},gZ=["ninguna","api-key","oauth"];function vZ({catalogo:e,conectores:t,desconocidos:n,ilegible:r,error:a,alAccion:l,alCrear:i,secreto:u,alResponderSecreto:d}){const[m,v]=S.useState(void 0),[f,h]=S.useState(!1),[b,y]=S.useState(!1),[j,C]=S.useState(void 0);S.useEffect(()=>{j!==void 0&&t.length>j&&(h(!1),C(void 0))},[j,t.length]);const N=new Map(e.map(M=>[M.id,M])),z=new Set(t.map(M=>M.id)),E=e.filter(M=>!z.has(M.id)),P=M=>{M==="api-key"&&y(!0)};return o.jsxs(o.Fragment,{children:[n.length>0?o.jsxs("p",{className:Ge.problemas,role:"alert",children:["En tu configuración hay conectores que esta versión no conoce: ",n.join(", "),"."]}):null,a!==void 0?o.jsx("p",{className:Ge.estado,role:"status",children:a}):null,r===!0?o.jsxs("p",{className:Ge.estado,role:"status",children:["No se pudo leer tu ",o.jsx("code",{children:"conectores.json"}),": no se ha tocado; revísalo o bórralo."]}):o.jsxs("section",{children:[o.jsxs("h3",{className:Ge.grupo,children:["Configurados · ",t.length]}),t.length===0?o.jsx("p",{className:Ge.vacio,children:"Ninguno todavía: añade uno de los disponibles."}):o.jsx("ul",{className:Ge.filas,children:t.map(M=>o.jsx(yZ,{conector:M,entrada:N.get(M.id),abierta:m===M.id,alAbrir:()=>v(L=>L===M.id?void 0:M.id),alAccion:L=>{var U;L==="autorizar"&&P((U=N.get(M.id))==null?void 0:U.autenticacion),l(L,M.id)}},M.id))})]}),b&&u!==void 0?o.jsx("div",{ref:R8,children:o.jsx(Tl,{texto:u,oculta:!0,anidado:!0,alResponder:async M=>{await d(M),y(!1)}})}):null,o.jsxs("section",{children:[o.jsxs("h3",{className:Ge.grupo,children:["Disponibles · ",E.length]}),f?o.jsx(xZ,{alCerrar:()=>{h(!1),C(void 0)},alCrear:M=>{C(t.length),P(M.autenticacion),i(M)}}):o.jsxs(o.Fragment,{children:[E.length===0?o.jsx("p",{className:Ge.vacio,children:"Ya has añadido todo el catálogo."}):o.jsx("ul",{className:Ge.filas,children:E.map(M=>o.jsxs("li",{className:Ge.fila,children:[o.jsxs("div",{className:Ge.cabeceraDeFila,children:[o.jsx(qm,{id:M.id,nombre:M.nombre,className:Ge.icono}),o.jsx("span",{className:Ge.nombre,children:M.nombre}),o.jsx("span",{className:Ge.autenticacion,children:I8[M.autenticacion]}),o.jsx("span",{className:Ge.relleno}),o.jsx("button",{type:"button",className:Ge.accionDeFila,onClick:()=>{l("anadir",M.id),M.autenticacion!=="ninguna"&&(P(M.autenticacion),l("autorizar",M.id))},children:"Añadir"})]}),o.jsx("p",{className:Ge.descripcion,children:M.descripcion})]},M.id))}),o.jsx("div",{className:Ge.botones,children:o.jsx(Le,{variant:"outline",className:Ge.accion,onClick:()=>h(!0),children:"Añadir servidor"})})]})]}),o.jsx("p",{className:Ge.nota,children:"Aquí se conectan y se prueban. Llegan al agente en los proyectos que los marcan en su panel (Conectores → «Conectores para el chat»), y lo que escriben en el servicio siempre pide aprobación."}),o.jsx("p",{className:Ge.nota,children:"La autorización se abre en el navegador de la máquina donde corre la consola; por un túnel no vuelve."})]})}function bZ(e){return e.prueba!==void 0&&e.prueba.ok?{texto:`Conectado · ${e.prueba.tools.length} tools`,clase:Ge.conectado}:e.autorizando===!0?{texto:"Esperando al navegador…",clase:Ge.esperando}:e.estado==="falta-autorizar"?{texto:"Falta autorizar",clase:Ge.faltaAutorizar}:e.prueba!==void 0&&!e.prueba.ok?{texto:"No responde",clase:Ge.noResponde,motivo:e.prueba.motivo}:{texto:"Sin probar",clase:Ge.sinProbar}}function yZ({conector:e,entrada:t,abierta:n,alAbrir:r,alAccion:a}){const l=(t==null?void 0:t.nombre)??e.id,i=bZ(e),u=(t==null?void 0:t.autenticacion)!=="ninguna";return o.jsxs("li",{className:Ge.fila,children:[o.jsxs("div",{className:Ge.cabeceraDeFila,children:[o.jsx(qm,{id:e.id,nombre:l,className:Ge.icono}),o.jsx("span",{className:Ge.nombre,children:l}),o.jsx("span",{className:tt(Ge.pastilla,i.clase),...i.motivo===void 0?{}:{title:i.motivo},children:i.texto}),o.jsx("span",{className:Ge.relleno}),o.jsx("button",{type:"button",className:Ge.accionDeFila,"aria-expanded":n,onClick:r,children:n?"Ocultar":"Ver"}),u&&e.estado!=="autorizado"?o.jsx("button",{type:"button",className:Ge.accionDeFila,onClick:()=>a("autorizar"),children:e.autorizando===!0?"Volver a abrir":"Conectar"}):null,o.jsx("button",{type:"button",className:tt(Ge.accionDeFila,Ge.exito),onClick:()=>a("probar"),children:"Probar"}),u&&e.estado==="autorizado"?o.jsx("button",{type:"button",className:Ge.accionDeFila,onClick:()=>a("desconectar"),children:"Desconectar"}):null,o.jsx("button",{type:"button",className:Ge.accionDeFila,onClick:()=>a("quitar"),children:"Quitar"})]}),t!==void 0?o.jsx("p",{className:Ge.descripcion,children:t.descripcion}):null,i.motivo!==void 0?o.jsx("p",{className:Ge.motivo,children:i.motivo}):null,n?o.jsx("div",{className:Ge.cuerpo,children:e.prueba!==void 0&&e.prueba.ok?e.prueba.tools.length===0?o.jsx("p",{className:Ge.vacio,children:"no expone ninguna tool"}):o.jsx("ul",{className:Ge.tools,children:e.prueba.tools.map(d=>o.jsxs("li",{className:Ge.tool,children:[o.jsx("span",{className:Ge.nombreDeTool,children:d.nombre}),d.soloLectura===!0?o.jsx("span",{className:Ge.soloLectura,children:"solo lectura"}):null,d.descripcion!==void 0?o.jsx("p",{className:Ge.descripcionDeTool,children:d.descripcion}):null]},d.nombre))}):o.jsx("p",{className:Ge.vacio,children:"Pruébalo para ver qué tools ofrece."})}):null]})}function R8(e){e!==null&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}function xZ({alCerrar:e,alCrear:t}){const[n,r]=S.useState(""),[a,l]=S.useState(""),[i,u]=S.useState(""),[d,m]=S.useState("ninguna"),[v,f]=S.useState(void 0),h=n.trim()===""||a.trim()===""||i.trim()==="",b=y=>{if(y.preventDefault(),!h){if(!im(i.trim())){f(r4);return}f(void 0),t({nombre:n.trim(),descripcion:a.trim(),url:i.trim(),autenticacion:d})}};return o.jsxs("form",{className:Ge.formulario,ref:R8,onSubmit:b,children:[o.jsx("p",{className:Ge.nota,children:"Apunta a un endpoint MCP remoto: después se comporta como cualquier otro conector."}),o.jsx("label",{className:Ge.etiqueta,htmlFor:"conector-nombre",children:"Nombre"}),o.jsx(Ta,{id:"conector-nombre",className:Ge.campo,value:n,placeholder:"Mi servidor MCP",onChange:y=>r(y.target.value)}),o.jsx("label",{className:Ge.etiqueta,htmlFor:"conector-descripcion",children:"Descripción"}),o.jsx(Ta,{id:"conector-descripcion",className:Ge.campo,value:a,placeholder:"Qué ofrece: es lo que se lee en la lista",onChange:y=>l(y.target.value)}),o.jsx("label",{className:Ge.etiqueta,htmlFor:"conector-url",children:"URL"}),o.jsx(Ta,{id:"conector-url",className:Ge.campo,value:i,placeholder:"https://mcp.ejemplo.com/mcp",onChange:y=>{u(y.target.value),f(void 0)}}),o.jsx("label",{className:Ge.etiqueta,htmlFor:"conector-autenticacion",children:"Autenticación"}),o.jsx(us,{id:"conector-autenticacion",value:d,onChange:y=>{const j=y.target.value;s6(j)&&m(j)},children:gZ.map(y=>o.jsx("option",{value:y,children:I8[y]},y))}),o.jsx("p",{className:Ge.nota,children:d==="api-key"?"La clave se pide después, al añadirlo: así viaja por el único mensaje que lleva credenciales.":"OAuth aquí es solo iniciar sesión: el cliente se registra solo. Todavía no se admite OAuth manual con client id y secret."}),v!==void 0?o.jsx("p",{className:Ge.aviso,role:"alert",children:v}):null,o.jsxs("div",{className:Ge.botones,children:[o.jsx(Le,{variant:"outline",className:Ge.accion,onClick:e,children:"Cancelar"}),o.jsx(Le,{type:"submit",variant:"primary",className:Ge.principal,disabled:h,children:"Añadir"})]})]})}const _Z="_receta_jnvvl_3",wZ="_titulo_jnvvl_11",jZ="_descripcion_jnvvl_18",CZ="_hecha_jnvvl_19",kZ="_despues_jnvvl_20",NZ="_aparte_jnvvl_36",SZ="_aparteTitulo_jnvvl_42",$Z="_pasos_jnvvl_49",AZ="_paso_jnvvl_49",EZ="_numero_jnvvl_65",DZ="_cuerpo_jnvvl_75",zZ="_pasoTitulo_jnvvl_80",TZ="_marca_jnvvl_95",MZ="_nota_jnvvl_112",LZ="_bloque_jnvvl_122",IZ="_comandos_jnvvl_127",RZ="_trabajo_jnvvl_148",PZ="_estado_jnvvl_155",qZ="_girando_jnvvl_174",FZ="_log_jnvvl_197",OZ="_ejecutar_jnvvl_214 _secundario_1l1rx_39",BZ="_cancelar_jnvvl_215 _secundario_1l1rx_39",HZ="_acepta_jnvvl_233",zt={receta:_Z,titulo:wZ,descripcion:jZ,hecha:CZ,despues:kZ,aparte:NZ,aparteTitulo:SZ,pasos:$Z,paso:AZ,numero:EZ,cuerpo:DZ,pasoTitulo:zZ,marca:TZ,nota:MZ,bloque:LZ,comandos:IZ,trabajo:RZ,estado:PZ,girando:qZ,log:FZ,ejecutar:OZ,cancelar:BZ,acepta:HZ};function UZ({receta:e,instalacion:t,alEjecutar:n,alCancelar:r}){const a=i=>t!==void 0&&t.receta===e.id&&t.paso===i?t:void 0,l=i=>i.hecho?i.repetir:void 0;return o.jsxs("section",{className:zt.receta,"aria-label":e.titulo,children:[o.jsx("h4",{className:zt.titulo,children:e.titulo}),e.completa?o.jsx("p",{className:zt.hecha,children:"Ya está: esta máquina lo tiene todo."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:zt.descripcion,children:e.descripcion}),o.jsx("ol",{className:zt.pasos,children:e.pasos.map((i,u)=>o.jsxs("li",{className:zt.paso,"data-hecho":i.hecho?"":void 0,children:[o.jsx("span",{className:zt.numero,"aria-hidden":!0,children:u+1}),o.jsxs("div",{className:zt.cuerpo,children:[o.jsxs("p",{className:zt.pasoTitulo,children:[o.jsx("span",{className:zt.marca,"data-hecho":i.hecho?"":void 0,"aria-label":i.hecho?"hecho":"pendiente",role:"img"}),i.titulo]}),i.nota===void 0?null:o.jsx("p",{className:zt.nota,children:i.nota}),o.jsxs("div",{className:zt.bloque,children:[o.jsx("pre",{className:zt.comandos,children:i.comandos.join(`
|
|
492
|
+
`)}),o.jsx(z0,{texto:i.comandos.join(`
|
|
493
|
+
`),etiqueta:`Copiar los comandos del paso ${u+1}`})]}),(()=>{var v;const d=a(u+1);return(d==null?void 0:d.estado)==="corriendo"?o.jsxs("div",{className:zt.trabajo,children:[o.jsxs("p",{className:zt.estado,children:[o.jsx("span",{className:zt.girando,"aria-hidden":!0}),d.titulo," · ",GZ(d.ms),r===void 0?null:o.jsx("button",{type:"button",className:zt.cancelar,onClick:r,children:"Cancelar"})]}),d.lineas.length===0?null:o.jsx("pre",{className:zt.log,children:d.lineas.join(`
|
|
494
|
+
`)})]}):o.jsxs("div",{className:zt.trabajo,children:[d===void 0?null:o.jsxs("p",{className:zt.estado,"data-estado":d.estado,children:[d.estado==="ok"&&!i.hecho?"Terminó sin error, pero la medida sigue sin encontrarlo":VZ[d.estado],d.motivo===void 0?null:`: ${d.motivo}`]}),i.ejecutable?n===void 0||i.hecho&&l(i)===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:zt.ejecutar,disabled:(t==null?void 0:t.estado)==="corriendo",onClick:()=>n(u+1),children:((v=l(i))==null?void 0:v.etiqueta)??"Ejecutar este paso"}),l(i)===void 0?null:o.jsxs("span",{className:zt.acepta,children:[l(i).porQue,"."]}),i.acepta===void 0?null:o.jsxs("span",{className:zt.acepta,children:["Al pulsar aceptas ",i.acepta,"."]})]}):i.porQueNo===void 0?null:o.jsx("p",{className:zt.nota,children:/^hace falta|^hazlo/i.test(i.porQueNo)?`No se puede lanzar todavía: ${i.porQueNo}.`:`No se lanza desde aquí: ${i.porQueNo}.`})]})})()]})]},i.titulo))})]}),e.aparte===void 0?null:o.jsxs("div",{className:zt.aparte,children:[o.jsx("p",{className:zt.aparteTitulo,children:e.aparte.titulo}),e.aparte.nota===void 0?null:o.jsx("p",{className:zt.nota,children:e.aparte.nota}),o.jsxs("div",{className:zt.bloque,children:[o.jsx("pre",{className:zt.comandos,children:e.aparte.comandos.join(`
|
|
495
|
+
`)}),o.jsx(z0,{texto:e.aparte.comandos.join(`
|
|
496
|
+
`),etiqueta:`Copiar «${e.aparte.titulo}»`})]})]}),o.jsx("p",{className:zt.despues,children:e.despues})]})}const VZ={corriendo:"En marcha",ok:"Hecho",fallo:"No salió bien",cancelada:"Cancelado por ti",colgada:"Se quedó sin decir nada y se paró"};function GZ(e){const t=Math.floor(e/1e3);return t<60?`${t} s`:`${Math.floor(t/60)} min ${t%60} s`}const WZ="_capa_1byta_9",ZZ="_velo_1byta_18",QZ="_ventana_1byta_40",XZ="_navegacion_1byta_52",YZ="_marcaDeAjustes_1byta_66",KZ="_placa_1byta_78",JZ="_titulo_1byta_90",eQ="_alcance_1byta_99",tQ="_seccion_1byta_108",nQ="_iconoDeSeccion_1byta_127",rQ="_panel_1byta_143",aQ="_encabezado_1byta_149",oQ="_nota_1byta_155",sQ="_vacio_1byta_156",iQ="_filas_1byta_162",lQ="_fila_1byta_162",cQ="_cabeceraDeFila_1byta_188",uQ="_nombre_1byta_194",dQ="_textoDeProyecto_1byta_201",pQ="_fechaDeProyecto_1byta_209",mQ="_logo_1byta_219",hQ="_identidad_1byta_226",fQ="_idDeProveedor_1byta_237",gQ="_estadoDeClave_1byta_248",vQ="_url_1byta_235",bQ="_detalle_1byta_255",yQ="_punto_1byta_287",xQ="_accion_1byta_311 _secundario_1l1rx_39",_Q="_principal_1byta_320 _primario_1l1rx_67",wQ="_peligro_1byta_327 _peligro_1l1rx_18",jQ="_destructiva_1byta_325",CQ="_confirmacion_1byta_346",kQ="_formulario_1byta_355",NQ="_etiqueta_1byta_362",SQ="_campo_1byta_373",$Q="_aviso_1byta_382",AQ="_cerrar_1byta_392",EQ="_subencabezado_1byta_409",DQ="_elegirModelo_1byta_420",zQ="_casilla_1byta_200",TQ="_botones_1byta_438",MQ="_enlace_1byta_449",LQ="_comando_1byta_495",IQ="_subsubencabezado_1byta_511",RQ="_iconoDeAjuste_1byta_523",PQ="_campoConBoton_1byta_552",qQ="_listaLarga_1byta_571",FQ="_casillaEnLinea_1byta_579",OQ="_filaBuscarEn_1byta_595",BQ="_separador_1byta_611",HQ="_subencabezadoPegado_1byta_608",UQ="_medidoAlPie_1byta_625",VQ="_filaDeConcurrencia_1byta_632",GQ="_filaDeWorkspace_1byta_661",WQ="_etiquetaDeWorkspace_1byta_671",ZQ="_accionesDeWorkspace_1byta_677",QQ="_pistaEnLinea_1byta_708",XQ="_pestanas_1byta_728",YQ="_pestana_1byta_542",KQ="_cuenta_1byta_208",JQ="_panelDePestana_1byta_795",eX="_cabeceraDeProyectos_1byta_813",tX="_recargar_1byta_821",nX="_columnasDeProyectos_1byta_843",rX="_columnaDeProyectos_1byta_850",aX="_encabezadoDeColumna_1byta_859",oX="_buscadorDeProyectos_1byta_881",sX="_lupa_1byta_886",iX="_filtroDeProyectos_1byta_895",lX="_filaDeNombre_1byta_910",cX="_etiquetaDeNombre_1byta_920",uX="_campoDeNombreConBoton_1byta_924",dX="_filaDeUrl_1byta_959",pX="_anchoEntero_1byta_972",mX="_quitar_1byta_982 _peligro_1l1rx_18",hX="_quitarLleno_1byta_994",fX="_confirmarQuitar_1byta_1012",gX="_tituloDeAviso_1byta_1030",vX="_textoDeAviso_1byta_1035",bX="_casillaDeAviso_1byta_1047",yX="_escribirNombre_1byta_1048",xX="_tablaDeAvd_1byta_1076",_X="_filaDeAvd_1byta_1084",wX="_identidadDeAvd_1byta_1091",jX="_detalleDeAvd_1byta_1099",CX="_celdaDeAccion_1byta_1106",kX="_enMarcha_1byta_1142",NX="_girando_1byta_1151",SX="_sinGuardar_1byta_1177",$X="_listaDeMudanza_1byta_1194",X={capa:WZ,velo:ZZ,ventana:QZ,navegacion:XZ,marcaDeAjustes:YZ,placa:KZ,titulo:JZ,alcance:eQ,seccion:tQ,iconoDeSeccion:nQ,panel:rQ,encabezado:aQ,nota:oQ,vacio:sQ,filas:iQ,fila:lQ,cabeceraDeFila:cQ,nombre:uQ,textoDeProyecto:dQ,fechaDeProyecto:pQ,logo:mQ,identidad:hQ,idDeProveedor:fQ,estadoDeClave:gQ,url:vQ,detalle:bQ,punto:yQ,accion:xQ,principal:_Q,peligro:wQ,destructiva:jQ,confirmacion:CQ,formulario:kQ,etiqueta:NQ,campo:SQ,aviso:$Q,cerrar:AQ,subencabezado:EQ,elegirModelo:DQ,casilla:zQ,botones:TQ,enlace:MQ,comando:LQ,subsubencabezado:IQ,iconoDeAjuste:RQ,campoConBoton:PQ,listaLarga:qQ,casillaEnLinea:FQ,filaBuscarEn:OQ,separador:BQ,subencabezadoPegado:HQ,medidoAlPie:UQ,filaDeConcurrencia:VQ,filaDeWorkspace:GQ,etiquetaDeWorkspace:WQ,accionesDeWorkspace:ZQ,pistaEnLinea:QQ,pestanas:XQ,pestana:YQ,cuenta:KQ,panelDePestana:JQ,cabeceraDeProyectos:eX,recargar:tX,columnasDeProyectos:nX,columnaDeProyectos:rX,encabezadoDeColumna:aX,buscadorDeProyectos:oX,lupa:sX,filtroDeProyectos:iX,filaDeNombre:lX,etiquetaDeNombre:cX,campoDeNombreConBoton:uX,filaDeUrl:dX,anchoEntero:pX,quitar:mX,quitarLleno:hX,confirmarQuitar:fX,tituloDeAviso:gX,textoDeAviso:vX,casillaDeAviso:bX,escribirNombre:yX,tablaDeAvd:xX,filaDeAvd:_X,identidadDeAvd:wX,detalleDeAvd:jX,celdaDeAccion:CX,enMarcha:kX,girando:NX,sinGuardar:SX,listaDeMudanza:$X};function A5(e){if(e===void 0)return;if("progreso"in e){const{fase:r,proyecto:a,indice:l,total:i}=e.progreso,u=a===void 0?"":` «${a}»${l!==void 0&&i!==void 0?` (${l} de ${i})`:""}`;return r==="comprobar"?"Comprobando la carpeta nueva…":r==="copiar"?`Copiando${u}…`:r==="verificar"?`Comprobando que la copia${u} es idéntica…`:`Borrando del sitio de antes${u}…`}const t=e.resultado;if(t.estado==="rechazado")return;const n=[t.mudadas===0?"Carpeta cambiada.":`Carpeta cambiada: ${t.mudadas===1?"1 proyecto movido":`${t.mudadas} proyectos movidos`} y comprobados.`];return t.restos.length>0&&n.push(`No se pudo borrar del sitio de antes: ${t.restos.join(", ")} —algún programa tenía ficheros abiertos—; la copia buena ya está en la carpeta nueva, y lo de antes se puede borrar a mano.`),n.push(...t.avisos),n.join(" ")}function AX(e){const t=e.trim();if(t==="")return"escribe una carpeta: en blanco no es una elección";if(!(t==="~"||t.startsWith("~/")||t.startsWith("~\\"))){if(/^[a-zA-Z]:[\\/]/.test(t)||t.startsWith("\\\\"))return/^[a-zA-Z]:[\\/]*$/.test(t)?"la raíz de la unidad no: ahí cada entorno sería una carpeta de primer nivel del disco":void 0;if(!t.startsWith("/"))return"tiene que ser una ruta absoluta: que empiece por «/», por «~/» o, en Windows, por la unidad («C:\\…»)";if(t.replace(/\/+$/,"")==="")return"la raíz del disco no: ahí cada entorno sería una carpeta de primer nivel del sistema"}}function EX(e){const t=e.trim();if(t==="")return"escribe un nombre: uno sin nombre desaparece de la lista al volver a arrancar";if(t.length>E5)return`no puede pasar de ${E5} caracteres, que es lo que cabe en su pestaña`}const E5=60,DX=()=>{},zX=[{id:"general",etiqueta:"General",Icono:E0},{id:"modelos",etiqueta:"Modelos",Icono:EE},{id:"entornos",etiqueta:"Entornos",Icono:AE},{id:"agentes",etiqueta:"Subagentes",Icono:jE},{id:"skills",etiqueta:"Skills",Icono:DE},{id:"conectores",etiqueta:"Conectores",Icono:_E},{id:"dispositivos",etiqueta:"Dispositivos",Icono:wE}],TX=[{id:"android",etiqueta:"Android",detalle:"teléfonos y tablets por USB o por red, con adb",herramientas:["adb"],plataforma:"android",clases:["fisico"]},{id:"androidEmulador",etiqueta:"Android Sim",detalle:"los AVD del emulador del SDK",herramientas:["emulator","adb"],plataforma:"android",clases:["emulador"]},{id:"ios",etiqueta:"iOS",detalle:"iPhone y iPad conectados, con devicectl (Xcode 15+)",herramientas:["devicectl"],plataforma:"ios",clases:["fisico"]},{id:"iosSimulador",etiqueta:"iOS Sim",detalle:"los simuladores de Xcode, con simctl",herramientas:["xcrun"],plataforma:"ios",clases:["simulador"]}],D5=[{nombre:"adb",etiqueta:"adb",para:"hablar con teléfonos, tablets y emuladores de Android"},{nombre:"emulator",etiqueta:"emulator",para:"listar y arrancar los AVD del SDK de Android"},{nombre:"xcrun",etiqueta:"Xcode command line tools",para:"los simuladores de iOS (simctl)"},{nombre:"devicectl",etiqueta:"devicectl",para:"los iPhone y iPad conectados (Xcode 15+)"}],z5={adb:"C:\\Users\\tú\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",emulator:"C:\\Users\\tú\\AppData\\Local\\Android\\Sdk\\emulator\\emulator.exe"},MX={mac:{adb:"~/Library/Android/sdk/platform-tools/adb",emulator:"~/Library/Android/sdk/emulator/emulator"},windows:z5,linux:{adb:"~/Android/Sdk/platform-tools/adb",emulator:"~/Android/Sdk/emulator/emulator"},otro:z5},LX=e=>MX[e??"windows"],IX=["android","ios"],l0={android:"Android",ios:"iOS"},T5="los simuladores y dispositivos iOS solo se detectan en macOS";function RX(e,t){const n=(r,a)=>((r==null?void 0:r.trim())??"")===((a==null?void 0:a.trim())??"");return i6.every(r=>$p(e,r)===$p(t,r))&&n(e.rutaAdb,t.rutaAdb)&&n(e.rutaEmulator,t.rutaEmulator)}function PX(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const M5={ok:"disponible","no-encontrada":"no está instalada",fallo:"falló","no-aplica":"no aplica en este sistema",desactivada:"no se ha mirado"};function qX({proveedores:e=[],entornos:t=[],proyectos:n=[],proyectosPorEntorno:r={},alPedirProyectosDeEntorno:a,alQuitarEntorno:l,alRenombrarEntorno:i,avisoDelAlta:u,entornoActivo:d,seccionInicial:m,secreto:v,dispositivos:f,ajustesDeDispositivos:h,alCambiarDispositivos:b,alActualizarDispositivos:y,alAbrirCarpetaDeHerramienta:j,alInstalarHerramienta:C,alVerificarDispositivo:N,alArrancarEmulador:z,arranqueDeEmulador:E,alAjustarAvd:P,alPararEmulador:M,alCrearEmulador:L,alEliminarEmulador:U,modelosDeMotor:W,alPedirModelosDeMotor:O,alPedirCatalogo:q,modeloPorDefecto:F,alElegirModelo:K,instalacion:le,alEjecutarPaso:me,alCancelarPaso:ne,conectado:ce=!0,agentes:Ae,hayProyecto:de,alGuardarAgente:te,alBorrarAgente:I,alRestaurarAgente:V,skills:ie,cuerposDeSkill:T,alPedirCuerpoDeSkill:Se,alGuardarSkill:ge,alBorrarSkill:Oe,alInstalarSkill:be,conectores:Te,alAccionDeConector:Ee,alCrearDeConector:rt,alPedirClave:Nt,alBorrarClave:Jt,alRegistrarEntorno:Dn,alAltaDeProveedor:en,alBajaDeProveedor:Ut,resultadoDeProveedor:Qn,alElegirProyectos:Xn,alResponderSecreto:ha,tareas:tn,alCambiarConcurrencia:yn,workspace:cr,alCambiarWorkspace:qn,alPlanearWorkspace:Yn,mudanzaDeWorkspace:Vt,depuracionActiva:Qr,alCambiarDepuracion:ue,modoPorDefecto:Ne,temas:Qe,modoEnVigor:at,alCambiarTema:ut,alCambiarModoPorDefecto:nn,alElegirCarpeta:Mr,carpetaElegida:sn,alCerrar:_r}){var Ql,js,li;const[Pt,xn]=S.useState(()=>m??"general"),[_n,Kn]=S.useState(void 0),[fs,Xr]=S.useState(void 0),zn=fs??h??{},fa=fs!==void 0&&!RX(fs,h??{}),[To,Mo]=S.useState(void 0),gs=()=>{if(Pt==="dispositivos"&&fa)return"Dispositivos";if(Pt==="general"&&ga)return"la carpeta donde se bajan los proyectos"},Xi=Q=>{Fo!=="en-curso"&&(gs()!==void 0&&Q!==Pt?Mo(()=>()=>xn(Q)):xn(Q))},Lr=()=>{Fo!=="en-curso"&&(gs()!==void 0?Mo(()=>_r):_r())},[Lo,so]=S.useState(void 0),qt=Lo??cr??"",Yr=AX(qt),ga=Lo!==void 0&&Lo.trim()!==(cr??""),[Ra,Io]=S.useState(()=>(sn==null?void 0:sn.n)??0),[Ir,va]=S.useState(!1);sn!==void 0&&sn.n!==Ra&&(Io(sn.n),va(!1),sn.ruta!==void 0&&so(sn.ruta));const[Ro,Yi]=S.useState(!1),[au,Po]=S.useState(void 0),[rn,qo]=S.useState(void 0),ei=Vt!==void 0&&"progreso"in Vt,Fo=rn===void 0?ei?"en-curso":void 0:rn.negativa!==void 0?"final":rn.aplicada===void 0?"confirmar":Vt!==rn.aplicada.antes&&Vt!==void 0&&"resultado"in Vt?"final":"en-curso",ba=Ro||ei||rn!==void 0,ti=async Q=>{const Fe=await(qn==null?void 0:qn(Q));if(typeof Fe=="string"){Po(Fe);return}so(void 0)},ya=async Q=>{if(Po(void 0),Yn===void 0){await ti(Q);return}Yi(!0);const Fe=await Yn(Q).catch(()=>{});Yi(!1),Fe===void 0?Po("no se pudo preguntar al servidor qué se movería: no se ha cambiado nada"):Fe.motivo!==void 0?Po(Fe.motivo):Fe.proyectos.length===0?await ti(Q):qo({ruta:Q,plan:Fe})},ni=async()=>{if(rn===void 0)return;qo({...rn,aplicada:{antes:Vt}});const Q=await(qn==null?void 0:qn(rn.ruta));typeof Q=="string"?qo(Fe=>Fe===void 0?Fe:{...Fe,negativa:Q}):so(void 0)},[ri,Ki]=S.useState(()=>Vt),an=Fo===void 0&&Vt!==void 0&&Vt!==ri&&"resultado"in Vt&&Vt.resultado.estado==="rechazado"?Vt.resultado.motivo:void 0,Oo=au??an,ai=()=>{Po(void 0),Ki(Vt)},vs=()=>{qo(void 0),Ki(Vt)},[ur,Bo]=S.useState(void 0),[Rr,Pa]=S.useState(!1),[Jn,bs]=S.useState(!1),[dr,Ho]=S.useState(""),[oi,io]=S.useState(""),Kr=Q=>{Q!==null&&typeof Q.scrollIntoView=="function"&&Q.scrollIntoView({block:"nearest",behavior:"smooth"})},[ys,er]=S.useState(void 0),[Uo,lo]=S.useState(""),[ou,co]=S.useState(()=>{var Q;return d??((Q=t[0])==null?void 0:Q.id)}),Ct=((Ql=t.find(Q=>Q.id===ou))==null?void 0:Ql.id)??d??((js=t[0])==null?void 0:js.id),qa=Q=>{if(Q===void 0)return{};const Fe=r[Q];return Fe!==void 0?Fe:Q===d&&n.length>0?{proyectos:n}:{}},[Vo,si]=S.useState({}),[xa,xt]=S.useState({}),[Jr,Go]=S.useState({}),xs=Q=>{var Xt;if(Q===void 0)return[];const Fe=Vo[Q];if(Fe!==void 0)return Fe;const _t=(Xt=t.find(ln=>ln.id===Q))==null?void 0:Xt.proyectos;return _t!==void 0?_t:(qa(Q).proyectos??[]).slice(0,tm).map(ln=>ln.id)},{proyectos:Wo,error:ea}=qa(Ct);S.useEffect(()=>{Pt!=="entornos"||Rr||Ct===void 0||a===void 0||Wo!==void 0||ea!==void 0||a(Ct)},[Pt,Rr,Ct,Wo,ea]),S.useEffect(()=>{Ct!==void 0&&xt(Q=>Q[Ct]===!0?{...Q,[Ct]:!1}:Q)},[Wo,ea]),M8(Pt==="dispositivos",y);const _s=B0(f==null?void 0:f.medido,ce),[uo,_a]=S.useState(void 0),[pr,Pr]=S.useState(void 0),Fa=Q=>{if(Q.preventDefault(),!im(Uo)){_a(r4);return}_a(void 0),Pr({entornos:t.length,...u===void 0?{}:{aviso:u}}),Dn(Uo),lo("")};S.useEffect(()=>{pr===void 0||t.length<=pr.entornos||(Pr(void 0),Pa(!1))},[pr,t.length]);const Zo=pr!==void 0&&u!==void 0&&u!==pr.aviso?u:void 0,ta=Jn?Qn==null?void 0:Qn.motivo:void 0;S.useEffect(()=>{!Jn||(Qn==null?void 0:Qn.hecho)!==!0||(bs(!1),Ho(""),io(""))},[Jn,Qn]);const wa=Q=>{Q.preventDefault(),im(oi)&&(en==null||en(dr,oi))},ii=e.filter(Q=>Q.personalizado!==!0),wr=e.filter(Q=>Q.personalizado===!0),ja=Q=>o.jsxs("li",{className:X.fila,"data-columna":"",children:[o.jsxs("div",{className:X.cabeceraDeFila,children:[o.jsx(n2,{proveedor:Q.id,size:22,className:X.logo}),o.jsxs("span",{className:X.identidad,children:[o.jsx("span",{className:X.nombre,children:Q.nombre}),o.jsx("span",{className:X.idDeProveedor,title:Q.baseUrl===void 0?Q.id:`${Q.id} · ${Q.baseUrl}`,children:Q.baseUrl===void 0?Q.id:`${Q.id} · ${Q.baseUrl}`})]}),o.jsxs("span",{className:X.estadoDeClave,children:[Q.credencial==="nativa"?null:o.jsx("span",{className:X.punto,"data-credencial":Q.credencial,"aria-label":Q.credencial==="puesta"?"con credencial":"sin credencial"}),o.jsx("span",{className:X.detalle,children:Q.credencial==="nativa"?"local, no necesita clave":Q.credencial==="puesta"?Q.enFichero===!0?"clave guardada":"clave de una variable de entorno":"sin clave"})]}),Q.credencial==="nativa"?null:o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>{er(void 0),Bo(Q.id),Nt(Q.id)},children:Q.credencial==="puesta"?"Cambiar clave":"Añadir clave"}),Q.enFichero===!0?o.jsx(Le,{variant:"outline",className:X.peligro,onClick:()=>{Bo(void 0),er(Q.id)},children:"Eliminar"}):null,Q.personalizado===!0&&Ut!==void 0?o.jsx(Le,{variant:"outline",className:X.accion,disabled:!ce,onClick:()=>{Bo(void 0),er(`baja:${Q.id}`)},children:"Dar de baja"}):null]}),ys===`baja:${Q.id}`?o.jsxs("p",{className:X.confirmacion,role:"alert",children:[o.jsxs("span",{children:["¿Dar de baja «",Q.nombre,"»? Se borra también su clave del fichero de credenciales."]}),o.jsxs(Le,{variant:"outline",className:X.accion,onClick:()=>{er(void 0),Ut==null||Ut(Q.id.replace(/^custom:/,""))},children:["Dar de baja «",Q.nombre,"»"]}),o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>er(void 0),children:"Cancelar"})]}):null,ur===Q.id&&v!==void 0?o.jsx("div",{ref:Kr,children:o.jsx(Tl,{texto:v,oculta:!0,anidado:!0,alResponder:async Fe=>{await ha(Fe),Bo(void 0)}})}):null,ys===Q.id?o.jsxs("p",{className:X.confirmacion,role:"alert",children:[o.jsxs("span",{children:["¿Borrar la clave de ",Q.id," del fichero de credenciales?"]}),o.jsxs(Le,{variant:"outline",className:X.accion,onClick:()=>{er(void 0),Jt(Q.id)},children:["Borrar la de ",Q.id]}),o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>er(void 0),children:"Cancelar"})]}):null]},Q.id),[na,Ji]=S.useState("android"),[ws,el]=S.useState(new Set),Qo=Q=>el(Fe=>{const _t=new Set(Fe);return _t.has(Q)?_t.delete(Q):_t.add(Q),_t}),Xo=Q=>Q==="adb"?"rutaAdb":"rutaEmulator",Ca=Q=>((f==null?void 0:f.herramientas)??[]).filter(Fe=>Fe.plataforma===Q),Yo=Q=>Ca(Q).filter(Fe=>Fe.estado==="no-encontrada"||Fe.estado==="fallo").length,po=f===void 0?[]:D5.filter(Q=>!f.herramientas.some(Fe=>Fe.nombre===Q.nombre));return o.jsxs(o.Fragment,{children:["// Un modal DE VERDAD: ni Escape ni el clic fuera lo cierran, solo su botón de cerrar // (que pasa por `alIntentarCerrar`: con un borrador sucio, cerrar decide si se pierde).",o.jsx(lr,{open:!0,onClose:DX,title:"Ajustes",headless:!0,className:X.capa,children:o.jsx("div",{className:X.velo,children:o.jsxs("div",{className:X.ventana,children:[o.jsxs("nav",{className:X.navegacion,"aria-label":"Secciones de ajustes",children:[o.jsxs("div",{className:X.marcaDeAjustes,children:[o.jsx("span",{className:X.placa,"aria-hidden":"true",children:o.jsx(E0,{size:16})}),o.jsxs("span",{children:[o.jsx("span",{className:X.titulo,children:"Ajustes"}),o.jsx("span",{className:X.alcance,children:"Configuración global"})]})]}),zX.filter(Q=>Q.id!=="conectores"||Te!==void 0).map(Q=>o.jsxs("button",{type:"button",className:X.seccion,"data-actual":Q.id===Pt?"":void 0,"aria-current":Q.id===Pt?"page":void 0,onClick:()=>Xi(Q.id),children:[o.jsx(Q.Icono,{size:16,className:X.iconoDeSeccion}),Q.etiqueta]},Q.id))]}),o.jsxs("div",{className:X.panel,children:[Pt==="dispositivos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Dispositivos"}),o.jsx("p",{className:X.nota,children:"Dónde se prueba la app. Se guarda con el equipo y no con el proyecto: el mismo Mac tiene los mismos simuladores para todos."}),o.jsx("div",{className:X.pestanas,role:"tablist","aria-label":"Plataformas",children:IX.map(Q=>{const Fe=Yo(Q),_t=Q==="ios"&&(f==null?void 0:f.sistema)!==void 0&&f.sistema!=="mac";return o.jsxs("button",{type:"button",role:"tab",className:X.pestana,"aria-selected":Q===na,"aria-disabled":_t?!0:void 0,disabled:_t,title:_t?T5:void 0,"aria-label":_t?`${l0[Q]}, ${T5}`:Fe===0?l0[Q]:`${l0[Q]}, ${Fe} por instalar`,"data-actual":Q===na?"":void 0,onClick:_t?void 0:()=>Ji(Q),children:[l0[Q],Fe===0?null:o.jsx("span",{className:X.cuenta,"aria-hidden":!0,children:Fe})]},Q)})}),o.jsxs("div",{role:"tabpanel",className:X.panelDePestana,"aria-label":l0[na],children:[o.jsx("h3",{className:X.subencabezado,children:"Requisitos"}),f===void 0?o.jsx("p",{className:X.vacio,children:"Todavía no ha llegado ninguna medida de este equipo."}):Ca(na).length===0?o.jsx("p",{className:X.vacio,children:"La medida de este equipo no nombra ninguna herramienta de esta plataforma."}):o.jsx("ul",{className:X.filas,children:Ca(na).map(Q=>{const Fe=D5.find(ln=>ln.nombre===Q.nombre),_t=Q.nombre==="adb"||Q.nombre==="emulator"?Q.nombre:void 0,Xt=_t!==void 0&&ws.has(_t);return o.jsxs(S.Fragment,{children:[o.jsxs("li",{className:X.fila,children:[o.jsx("span",{className:X.punto,"data-herramienta":Q.estado,"aria-label":M5[Q.estado]}),o.jsx("span",{className:X.nombre,children:(Fe==null?void 0:Fe.etiqueta)??Q.nombre}),o.jsxs("span",{className:X.detalle,children:[M5[Q.estado],Fe===void 0?"":` · ${Fe.para}`,Q.detalle===void 0||Q.estado==="ok"?null:` · ${Q.detalle}`]}),Q.instalar===void 0?null:Q.instalar.automatico?o.jsx(Le,{variant:"outline",className:X.accion,disabled:!ce||C===void 0,title:Q.instalar.comando,onClick:()=>C==null?void 0:C(Q.nombre),children:"Instalar"}):o.jsx("code",{className:X.comando,title:"cópialo en un terminal",children:Q.instalar.comando}),_t===void 0?null:o.jsx("button",{type:"button",className:X.iconoDeAjuste,"aria-label":`Ajustes de ruta de ${(Fe==null?void 0:Fe.etiqueta)??Q.nombre}`,"aria-expanded":Xt,onClick:()=>Qo(_t),children:o.jsx(E0,{size:16})})]}),_t===void 0||!Xt?null:o.jsxs("li",{className:X.fila,"data-columna":!0,children:[o.jsxs("label",{className:X.filaDeWorkspace,children:[o.jsx("span",{className:X.etiquetaDeWorkspace,children:"Ruta actual"}),o.jsxs("div",{className:X.campoConBoton,children:[o.jsx("input",{type:"text",value:Q.ruta??"",disabled:!0,placeholder:"no encontrada","aria-label":`Ruta actual de ${(Fe==null?void 0:Fe.etiqueta)??Q.nombre}`}),Q.ruta===void 0||j===void 0?null:o.jsx("button",{type:"button",className:X.accion,title:"Abre esa carpeta en el explorador del sistema donde corre la consola",disabled:!ce,onClick:()=>j(_t),children:"Abrir carpeta"})]})]}),b===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:X.filaDeWorkspace,children:[o.jsx("span",{className:X.etiquetaDeWorkspace,children:"Ruta personalizada"}),o.jsx("input",{type:"text",value:zn[Xo(_t)]??"",spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":`Ruta personalizada de ${(Fe==null?void 0:Fe.etiqueta)??Q.nombre}`,placeholder:LX(f==null?void 0:f.sistema)[_t],disabled:!ce,onChange:ln=>Xr({...zn,[Xo(_t)]:ln.target.value})})]}),o.jsx("p",{className:X.nota,children:"Vacío = se busca en el PATH y en el SDK, como hasta ahora."}),o.jsx("div",{className:X.accionesDeWorkspace,children:o.jsx("button",{type:"button",className:X.accion,disabled:!ce||!fa,onClick:()=>{b(zn),Xr(void 0)},children:"Guardar"})})]})]},`${Q.nombre}-ajustes`)]},Q.nombre)})}),((f==null?void 0:f.recetas)??[]).filter(Q=>Q.plataforma===na).map(Q=>o.jsx(UZ,{receta:Q,...le===void 0?{}:{instalacion:le},...ce&&me!==void 0?{alEjecutar:Fe=>me(Q.id,Fe)}:{},...ce&&ne!==void 0?{alCancelar:()=>ne(Q.id)}:{}},Q.id)),b===void 0?null:o.jsxs("div",{className:X.filaBuscarEn,children:[o.jsx("span",{children:"Buscar en:"}),TX.filter(Q=>Q.plataforma===na).map(Q=>o.jsxs("label",{className:X.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:$p(zn,Q.id),disabled:!ce,onChange:()=>Xr({...zn,[Q.id]:!$p(zn,Q.id)})}),Q.etiqueta]},Q.id))]}),o.jsx("hr",{className:X.separador}),o.jsx("h3",{className:`${X.subencabezado} ${X.subencabezadoPegado}`,children:"Dispositivos y emuladores"}),f===void 0?o.jsx("p",{className:X.vacio,children:"Todavía no ha llegado ninguna medida de este equipo."}):(()=>{const{fisicos:Q,virtuales:Fe}=p8(f),_t=st=>st.filter(Ft=>Ft.plataforma===na),Xt=_t(Q),ln=_t(Fe),Tn=f.dispositivos.flatMap(st=>st.avd!==void 0&&st.estado!=="apagado"&&st.estado!=="no-disponible"?[st.avd]:[]);return o.jsxs(o.Fragment,{children:[o.jsx("h4",{className:X.subsubencabezado,children:"Teléfonos y tablets"}),Xt.length===0?o.jsx("p",{className:X.vacio,children:"Ninguno conectado."}):o.jsx("ul",{className:X.filas,children:Xt.map(st=>o.jsxs("li",{className:X.fila,children:[o.jsx("span",{className:X.punto,"data-herramienta":Fi(st)?"ok":"otro","aria-label":Rl(st)}),o.jsx("span",{className:X.nombre,children:st.nombre}),o.jsxs("span",{className:X.detalle,children:[Rl(st),st.detalle===void 0?"":` · ${st.detalle}`]}),o.jsx(i2,{dispositivo:st,conectado:ce,medidoDeLaFoto:f.medido,...N===void 0?{}:{alVerificar:N}})]},st.id))}),o.jsx("h4",{className:X.subsubencabezado,children:"Simuladores y emuladores"}),ln.length===0?o.jsx("p",{className:X.vacio,children:"Ninguno disponible."}):o.jsx("ul",{className:`${X.filas} ${X.listaLarga} ${X.tablaDeAvd}`,children:ln.map(st=>{var tr,Ot,Fn;const Ft=st.soloDefinicion===!0?st.nombre:st.clase==="emulador"?st.avd:void 0,it=st.soloDefinicion!==!0&&st.clase==="emulador"&&(st.estado==="conectado"||st.estado==="arrancado");return o.jsxs("li",{className:`${X.fila} ${X.filaDeAvd}`,children:[o.jsx("span",{className:X.punto,"data-herramienta":Fi(st)?"ok":"otro","aria-label":Rl(st)}),o.jsxs("span",{className:X.identidadDeAvd,children:[o.jsx("span",{className:X.nombre,children:st.nombre}),o.jsx("span",{className:X.detalleDeAvd,children:Rl(st)}),Ft===void 0||((Ot=(tr=h==null?void 0:h.avds)==null?void 0:tr[Ft])==null?void 0:Ot.copiaDe)===void 0?null:o.jsxs("span",{className:X.detalleDeAvd,children:[h.avds[Ft].clon===!0?"clon de":"copia de"," ",h.avds[Ft].copiaDe]})]}),Ft===void 0||P===void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{}),o.jsx("span",{})]}):o.jsx(DV,{avd:Ft,ajuste:(Fn=h==null?void 0:h.avds)==null?void 0:Fn[Ft],conPuerto:f.avds.length>=2,conectado:ce,...h===void 0?{}:{ajustes:h},alCambiar:jr=>P(Ft,jr)}),o.jsx("span",{className:X.celdaDeAccion,children:st.soloDefinicion===!0&&z!==void 0?o.jsx(jV,{avd:st.nombre,conectado:ce,alArrancar:z,...(E==null?void 0:E.avd)===st.nombre?{resultado:E}:{}}):it&&Ft!==void 0&&M!==void 0?o.jsx("span",{className:$o.envoltura,children:o.jsx("button",{type:"button",className:$o.boton,disabled:ce!==!0,title:`Para ${Ft}`,onClick:()=>M(st.id),children:"Parar"})}):null}),o.jsx("span",{className:X.celdaDeAccion,children:o.jsx(i2,{dispositivo:st,conectado:ce,medidoDeLaFoto:f.medido,...N===void 0?{}:{alVerificar:N}})}),o.jsx("span",{className:X.celdaDeAccion,children:Ft===void 0||U===void 0?null:(()=>{const jr=vy(Ft,f.avds,Tn);return o.jsx("button",{type:"button",className:X.peligro,disabled:ce!==!0||jr!==void 0,title:jr===void 0?`Elimina el emulador ${Ft}`:jr,"aria-label":jr===void 0?`Eliminar ${Ft}`:`Eliminar ${Ft} (no se puede: ${jr})`,onClick:()=>Kn(Ft),children:"Eliminar"})})()})]},st.id)})}),na==="android"&&L!==void 0?o.jsx(BV,{avds:f.avds,conectado:ce,alCrear:L,enMarcha:f.dispositivos.flatMap(st=>st.avd!==void 0&&st.estado!=="apagado"&&st.estado!=="no-disponible"?[st.avd]:[]),...(le==null?void 0:le.receta)==="crear-avd"?{progreso:le}:{}}):null,_n!==void 0&&U!==void 0?o.jsx(GV,{avd:_n,alConfirmar:()=>U(_n),alCerrar:()=>Kn(void 0),...(le==null?void 0:le.receta)==="borrar-avd"?{progreso:le}:{}}):null]})})()]}),o.jsxs("p",{className:`${X.nota} ${X.medidoAlPie}`,children:[f===void 0?"Todavía no ha llegado ninguna medida de este equipo.":`Medido a las ${PX(f.medido)}. Lo que no se busca no se mide: adb arranca un demonio que se queda vivo, y xcrun tarda segundos.`," ",y===void 0?null:o.jsxs("button",{type:"button",className:X.enlace,title:N8,disabled:!ce||_s.esperando,"aria-busy":_s.esperando,onClick:()=>{_s.empezar(),y()},children:[_s.esperando?o.jsx(Wi,{}):null,"Refrescar"]})]}),po.length===0?null:o.jsxs("p",{className:X.nota,children:["La medida no nombra ",po.map(Q=>Q.etiqueta).join(", "),": no se puede decir si"," ",po.length===1?"está":"están","."]}),o.jsx("p",{className:X.nota,children:"XOneCode los DESCUBRE, instala lo que falta, arranca un emulador de Android y verifica la conexión con uno. Elegir con cuál trabaja el agente es una decisión de la sesión, no de esta ventana; conectar por red, arrancar un simulador de iOS o instalar la app no están cableados todavía."})]}):null,Pt==="general"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"General"}),o.jsx("p",{className:X.nota,children:"Lo que vale para toda la máquina y no para un proyecto. Se guarda con el equipo, como los dispositivos."}),cr===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Dónde se bajan los proyectos"}),o.jsxs("p",{className:X.nota,children:["Cada proyecto que bajas de CloudStudio se copia dentro, en"," ",o.jsx("code",{children:"<entorno>/<proyecto>"}),". El nivel del entorno no es decoración: el mismo proyecto puede existir en dos servidores a la vez."]}),o.jsxs("label",{className:X.filaDeWorkspace,children:[o.jsx("span",{className:X.etiquetaDeWorkspace,children:"Carpeta"}),o.jsx("input",{type:"text",value:qt,spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":"Carpeta donde se bajan los proyectos",title:qt,"aria-invalid":Yr===void 0?void 0:!0,disabled:!ce||qn===void 0||ba,onChange:Q=>{so(Q.target.value),Po(void 0)}})]}),ga&&!ba&&Yr===void 0?o.jsx("p",{className:X.sinGuardar,role:"status",children:"Sin guardar: la carpeta no cambia hasta que pulses «Guardar»."}):null,o.jsxs("div",{className:X.accionesDeWorkspace,children:[Mr===void 0?null:o.jsx("button",{type:"button",className:X.accion,title:"Abre el selector de carpetas del sistema, en la máquina donde corre la consola",disabled:!ce||Ir||ba,onClick:()=>{va(!0),Mr()},children:Ir?"Abriendo…":"Examinar…"}),o.jsx("button",{type:"button",className:X.accion,disabled:!ce||qn===void 0||!ga||Yr!==void 0||ba,onClick:()=>void ya(qt.trim()),children:Ro?"Comprobando…":"Guardar"})]}),Ir||Ro?o.jsxs("p",{className:X.enMarcha,role:"status",children:[o.jsx("span",{className:X.girando,"aria-hidden":"true"}),Ir?"Esperando la carpeta que elijas en la ventana del sistema…":"Comprobando qué se movería a la carpeta nueva…"]}):null,Yr===void 0?null:o.jsx("p",{className:X.nota,role:"alert",children:Yr}),o.jsx("p",{className:X.nota,children:"Cambiarla MUEVE lo que ya está bajado a la carpeta nueva: se copia, se comprueba que la copia es idéntica y se borra del sitio de antes. No se puede con un chat trabajando ni con tareas de fondo sin terminar."})]}),Qr===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Depurar"}),o.jsxs("label",{className:X.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:Qr,disabled:!ce||ue===void 0,onChange:()=>ue==null?void 0:ue(!Qr)}),"Dejar rastro de cuelgues y coste sin tener que pedirlo a mano"]}),o.jsxs("p",{className:X.nota,children:["Mientras dure esta etapa de pruebas, va encendida por omisión. Deja"," ",o.jsx("code",{children:"traza-errores.jsonl"})," (excepciones tragadas y cuánto tarda cada paso —la que sirve para un cuelgue) y ",o.jsx("code",{children:"traza-tools.jsonl"})," (coste de tokens) en la carpeta ",o.jsx("code",{children:".xonecode/"})," del proyecto: no suben a CloudStudio y el agente no puede leerlos. Solo afecta a las conversaciones que abras a partir de ahora, no a la que tengas abierta. Apágala si te sobra el ruido."]})]}),Qe===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Temas"}),o.jsx("p",{className:X.nota,children:"Un tema para el modo claro y otro para el oscuro. Elegir uno del otro modo pone la consola en ese modo; también lo cambias en la cabecera. Se recuerda en este navegador."}),["claro","oscuro"].map(Q=>o.jsx(wV,{modo:Q,elegido:Qe[Q],enVigor:at===void 0||at===Q,rotulo:Q==="claro"?"Tema claro":"Tema oscuro",alElegir:Fe=>ut==null?void 0:ut(Q,Fe)},Q))]}),Ne===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Conversaciones nuevas"}),o.jsx(m8,{actual:Ne,conectado:ce&&nn!==void 0,rotulo:"modo de escritura de las conversaciones nuevas",alElegir:Q=>nn==null?void 0:nn(Q)}),o.jsx("p",{className:X.nota,children:"El modo con el que empieza cada conversación nueva de esta consola web, en cualquier proyecto (el terminal sigue empezando en supervisado). Un proyecto puede tener el suyo (en su panel, pestaña Resumen), y entonces manda el del proyecto. No cambia las conversaciones que ya existen, ni las tareas de fondo; y en cada conversación se puede cambiar en la caja del chat."})]}),o.jsx("h3",{className:X.subencabezado,children:"Tareas"}),o.jsx("p",{className:X.nota,children:"Las tareas son los encargos que corren solos, sin nadie delante: la pestaña «Tareas» del proyecto abierto y el tablero del escritorio. El número de abajo decide cuántas corren a la vez en este Mac, no en un proyecto."}),o.jsxs("label",{className:X.filaDeConcurrencia,children:["Tareas a la vez",o.jsx("input",{type:"number",min:0,max:8,value:(tn==null?void 0:tn.concurrencia)??2,disabled:!ce||yn===void 0,onChange:Q=>yn==null?void 0:yn(Math.max(0,Math.min(8,Math.trunc(Number(Q.target.value)))))}),o.jsx("span",{className:X.pistaEnLinea,children:"— las del mismo proyecto van siempre en serie"})]}),((tn==null?void 0:tn.concurrencia)??2)===0?o.jsx("p",{className:X.nota,role:"alert",children:"Con 0 la cola queda PAUSADA: nada nuevo arranca."}):null]}):null,Pt==="modelos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Modelo por defecto"}),o.jsx("p",{className:X.nota,children:"El que usarán las sesiones nuevas. Se guarda para los tres papeles —rápido, trabajo y afilado— en el config global de tu cuenta, no en el proyecto, y cada sesión puede cambiarlo en caliente sin tocar esto."}),K===void 0||q===void 0?o.jsx("p",{className:X.vacio,children:"Esta ejecución no puede fijar el modelo por defecto."}):o.jsx("div",{className:X.elegirModelo,children:o.jsx(d8,{...F===void 0?{}:{actual:F},proveedores:e,alPedirCatalogo:q,alElegir:K,titulo:"Modelo por defecto",enLinea:!0})}),o.jsx("h3",{className:X.subencabezado,children:"Proveedores"}),o.jsx("p",{className:X.nota,children:"La clave se guarda con permisos 0600 en el fichero de credenciales de XOneCode, nunca en el navegador."}),e.length===0?o.jsx("p",{className:X.vacio,children:"Todavía no ha llegado el estado de modelos."}):Jn?o.jsxs("form",{className:X.formulario,ref:Kr,onSubmit:wa,children:[o.jsx("label",{className:X.etiqueta,htmlFor:"ajustes-proveedor-nombre",children:"Nombre"}),o.jsx(Ta,{id:"ajustes-proveedor-nombre",className:X.campo,value:dr,placeholder:"Mi LM Studio",onChange:Q=>Ho(Q.target.value)}),o.jsx("label",{className:X.etiqueta,htmlFor:"ajustes-proveedor-url",children:"URL base compatible con OpenAI"}),o.jsx(Ta,{id:"ajustes-proveedor-url",className:X.campo,value:oi,placeholder:"http://localhost:1234/v1",onChange:Q=>io(Q.target.value)}),o.jsxs("p",{className:X.nota,children:["Se le pedirá ",o.jsx("code",{children:"<URL base>/models"})," para listar sus modelos. La clave se añade después, en su fila: así viaja por el único mensaje que lleva credenciales. Debe ser https, salvo en 127.0.0.1 o localhost."]}),ta!==void 0?o.jsx("p",{className:X.aviso,role:"alert",children:ta}):null,o.jsxs("div",{className:X.botones,children:[o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>{bs(!1),Ho(""),io("")},children:"Cancelar"}),o.jsx(Le,{type:"submit",variant:"primary",className:X.principal,children:"Añadir"})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("ul",{className:X.filas,children:ii.map(ja)}),o.jsx("h3",{className:X.subencabezado,children:"Personalizados"}),o.jsx("p",{className:X.nota,children:"Cualquier servidor que hable la API de OpenAI: LM Studio, llama.cpp, vLLM o un endpoint de tu empresa. La URL y el nombre se guardan en el config global de tu cuenta, nunca en el del proyecto."}),en===void 0?o.jsx("p",{className:X.vacio,children:"Esta ejecución no puede dar de alta proveedores."}):o.jsx(Le,{variant:"outline",className:X.accion,disabled:!ce,onClick:()=>bs(!0),children:"Añadir un proveedor"}),wr.length===0?o.jsx("p",{className:X.vacio,children:"No hay ninguno todavía."}):o.jsx("ul",{className:X.filas,children:wr.map(ja)})]})]}):null,Pt==="entornos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Entornos de CloudStudio"}),o.jsx("p",{className:X.nota,children:"Un entorno es un servidor CloudStudio. Lo único que se teclea es su URL: el nombre lo dice el propio servidor al conectarse."}),Rr?null:o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>Pa(!0),children:"Registrar un entorno"}),Rr?o.jsxs("form",{className:X.formulario,ref:Kr,onSubmit:Fa,children:[o.jsx("label",{className:X.etiqueta,htmlFor:"ajustes-url",children:"URL del MCP"}),o.jsx(Ta,{id:"ajustes-url",className:X.campo,value:Uo,placeholder:"https://mcp.ejemplo.com/mcp",onChange:Q=>lo(Q.target.value)}),uo!==void 0?o.jsx("p",{className:X.aviso,role:"alert",children:uo}):null,Zo===void 0?null:o.jsx("p",{className:X.aviso,role:"alert",children:Zo}),o.jsxs("div",{className:X.botones,children:[o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>{Pa(!1),Pr(void 0),lo("")},children:"Cancelar"}),o.jsx(Le,{type:"submit",variant:"primary",className:X.principal,children:"Registrar"})]})]}):null,Rr?null:t.length===0?o.jsx("p",{className:X.vacio,children:"No hay ninguno registrado todavía."}):o.jsx("div",{className:X.pestanas,role:"tablist","aria-label":"Entornos registrados",children:t.map(Q=>o.jsxs("button",{type:"button",role:"tab",className:X.pestana,"aria-selected":Q.id===Ct,"data-actual":Q.id===Ct?"":void 0,onClick:()=>co(Q.id),children:[o.jsx(Y2,{entorno:Q.id,size:18,className:X.logo}),Q.nombre]},Q.id))}),!Rr&&Ct!==void 0?o.jsxs("div",{role:"tabpanel",className:X.panelDePestana,children:[i===void 0?null:o.jsx(HX,{entorno:t.find(Q=>Q.id===Ct),nombresDeOtros:t.filter(Q=>Q.id!==Ct).map(Q=>Q.nombre),conectado:ce,alRenombrar:i},Ct),o.jsxs("div",{className:X.filaDeUrl,children:[o.jsx("p",{className:X.url,children:(li=t.find(Q=>Q.id===Ct))==null?void 0:li.url}),l===void 0?null:o.jsx(UX,{entorno:t.find(Q=>Q.id===Ct),conectado:ce,alQuitar:l},Ct)]}),o.jsxs("div",{className:X.cabeceraDeProyectos,children:[o.jsx("h3",{className:X.subencabezado,children:"Proyectos en la barra"}),a===void 0?null:o.jsxs("button",{type:"button",className:X.recargar,title:"Vuelve a preguntar a CloudStudio por los proyectos propios y compartidos de este entorno",disabled:!ce||xa[Ct]===!0,"aria-busy":xa[Ct]===!0,onClick:()=>{xt(Q=>({...Q,[Ct]:!0})),a(Ct)},children:[xa[Ct]===!0?o.jsx(Wi,{}):null,xa[Ct]===!0?"Refrescando…":"Refrescar"]})]}),(()=>{const{proyectos:Q,error:Fe}=qa(Ct);if(Fe!==void 0)return o.jsxs("p",{className:X.aviso,role:"alert",children:["No se pudieron consultar sus proyectos: ",Fe]});if(Q===void 0)return o.jsx("p",{className:X.nota,children:"Consultando sus proyectos…"});if(Q.length===0)return o.jsx("p",{className:X.vacio,children:"Este entorno no devolvió ningún proyecto."});const _t=xs(Ct),Xt=it=>[...it].sort((tr,Ot)=>(Ot.ultimoAcceso??"").localeCompare(tr.ultimoAcceso??"")),ln=Jr[Ct]??{},Tn=(it,tr)=>{const Ot=(tr??"").trim().toLowerCase();return Ot===""?it:it.filter(Fn=>Fn.nombre.toLowerCase().includes(Ot))},st=[{id:"propios",titulo:"Propios",suyos:Q.filter(it=>it.compartido===!1),aguja:ln.propios},{id:"compartidos",titulo:"Compartidos contigo",suyos:Q.filter(it=>it.compartido===!0),aguja:ln.compartidos},{id:"sinAtribuir",titulo:"Sin decir de quién son",suyos:Q.filter(it=>it.compartido===void 0),aguja:void 0}].map(it=>({...it,suyos:Xt(it.suyos)})).filter(it=>it.suyos.length>0).map(it=>({...it,filtrados:Tn(it.suyos,it.aguja)})),Ft=it=>{const tr=it.ultimoAcceso===void 0?void 0:Qc(it.ultimoAcceso);return o.jsx("li",{className:X.fila,children:o.jsxs("label",{className:X.casilla,children:[o.jsx("input",{type:"checkbox",checked:_t.includes(it.id),onChange:Ot=>{const Fn=Ot.target.checked?[..._t,it.id]:_t.filter(jr=>jr!==it.id);si(jr=>({...jr,[Ct]:Fn})),Xn(Ct,Fn)}}),o.jsxs("span",{className:X.textoDeProyecto,children:[o.jsx("span",{className:X.nombre,children:it.nombre}),tr===void 0?null:o.jsx("span",{className:X.fechaDeProyecto,children:tr})]})]})},it.id)};return o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:X.nota,children:["Sin elegir ninguno se enseñan los ",tm," primeros. Lo que marques aquí manda sobre ese tope."]}),o.jsx("div",{className:X.columnasDeProyectos,children:st.map(it=>o.jsxs("section",{className:X.columnaDeProyectos,children:[o.jsxs("h4",{className:X.encabezadoDeColumna,children:[it.titulo," ",o.jsx("span",{className:X.cuenta,children:it.filtrados.length})]}),it.id==="sinAtribuir"?null:o.jsxs("span",{className:X.buscadorDeProyectos,children:[o.jsx(fE,{className:X.lupa,size:14}),o.jsx("input",{type:"search",className:X.filtroDeProyectos,value:it.aguja??"",onChange:tr=>{const Ot=tr.target.value;Go(Fn=>({...Fn,[Ct]:{...Fn[Ct],...it.id==="propios"?{propios:Ot}:{compartidos:Ot}}}))},placeholder:"filtrar por nombre…","aria-label":`filtrar ${it.titulo.toLowerCase()}`})]}),it.filtrados.length===0?o.jsxs("p",{className:X.vacio,children:["Ninguno coincide con «",it.aguja,"»."]}):o.jsx("ul",{className:X.filas,children:it.filtrados.map(Ft)})]},it.id))})]})})()]}):null]}):null,Pt==="agentes"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Subagentes"}),o.jsx(HG,{...Ae===void 0?{}:{agentes:Ae.lista,problemas:Ae.problemas},hayProyecto:de,...e===void 0?{}:{proveedores:e},...W===void 0?{}:{modelosDeMotor:W},...O===void 0?{}:{alPedirModelosDeMotor:O},...q===void 0?{}:{alPedirCatalogo:q},...ie===void 0?{}:{catalogoDeSkills:ie.lista},alGuardar:te,alBorrar:I,alRestaurar:V})]}):null,Pt==="skills"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Skills"}),o.jsx(DW,{...ie===void 0?{}:{skills:ie.lista,problemas:ie.problemas},...T===void 0?{}:{cuerpos:T},hayProyecto:de,alPedirCuerpo:Se,alGuardar:ge,alBorrar:Oe,...be===void 0?{}:{alInstalar:be}})]}):null,Pt==="conectores"&&Te!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Conectores"}),o.jsx(vZ,{catalogo:Te.catalogo,conectores:Te.conectores,desconocidos:Te.desconocidos,...Te.ilegible===void 0?{}:{ilegible:Te.ilegible},...Te.error===void 0?{}:{error:Te.error},...v===void 0?{}:{secreto:v},alAccion:Ee,alCrear:rt,alResponderSecreto:ha})]}):null]}),o.jsx("button",{type:"button",className:X.cerrar,"aria-label":"Cerrar ajustes",onClick:Lr,children:"✕"})]})})}),Fo===void 0?null:o.jsx(FX,{fase:Fo,...rn===void 0?{}:{ruta:rn.ruta,plan:rn.plan},...(rn==null?void 0:rn.negativa)===void 0?{}:{negativa:rn.negativa},...Vt===void 0?{}:{mudanza:Vt},onAceptar:()=>void ni(),onCancelar:()=>qo(void 0),onCerrar:vs}),Oo===void 0?null:o.jsx(OX,{titulo:"No se puede cambiar la carpeta",texto:Oo,onCerrar:ai}),To===void 0?null:o.jsx(BX,{donde:gs()??"esta sección",onCancelar:()=>Mo(void 0),onConfirmar:()=>{Xr(void 0),so(void 0),To(),Mo(void 0)}})]})}function FX({fase:e,ruta:t,plan:n,negativa:r,mudanza:a,onAceptar:l,onCancelar:i,onCerrar:u}){const d=e==="confirmar"?i:e==="final"?u:()=>{},m=r??(a!==void 0&&"resultado"in a&&a.resultado.estado==="rechazado"?a.resultado.motivo:void 0),v=e==="confirmar"?"¿Mover los proyectos a la carpeta nueva?":e==="en-curso"?"Moviendo los proyectos…":m!==void 0?"No se ha cambiado la carpeta":"Carpeta cambiada",f=(n==null?void 0:n.proyectos.length)??0;return o.jsx(lr,{open:!0,onClose:d,title:v,headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:h=>{h.target===h.currentTarget&&d()},children:o.jsxs("div",{className:ye.ventana,"aria-busy":e==="en-curso",children:[o.jsx("h2",{className:ye.titulo,children:v}),e==="confirmar"&&n!==void 0?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ye.nota,children:[`Se ${f===1?"moverá 1 proyecto":`moverán ${f} proyectos`}`,n.megas===void 0?"":` (${n.megas} MB)`," a ",o.jsx("code",{children:t}),". Se copian, se comprueba que cada copia es idéntica a su original fichero a fichero, y solo entonces se borran del sitio de antes. Cierra antes cualquier terminal o editor que tenga abierto alguno de estos proyectos."]}),o.jsx("ul",{className:X.listaDeMudanza,children:n.proyectos.map(h=>o.jsx("li",{children:`${h.proyecto} (${h.entorno})`},`${h.entorno}/${h.proyecto}`))})]}):null,e==="en-curso"?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:X.enMarcha,role:"status",children:[o.jsx("span",{className:X.girando,"aria-hidden":"true"}),A5(a!==void 0&&"progreso"in a?a:{progreso:{fase:"comprobar"}})]}),o.jsx("p",{className:ye.nota,children:"Cuando termine verás aquí cómo acabó. No cierres la consola mientras tanto."})]}):null,e==="final"?o.jsx("p",{className:ye.nota,role:"status",children:m!==void 0?`${m.charAt(0).toUpperCase()}${m.slice(1)}.`:A5(a)}):null,o.jsxs("div",{className:ye.acciones,children:[e==="confirmar"?o.jsxs(o.Fragment,{children:[o.jsx(Le,{variant:"outline",className:ye.accion,onClick:i,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${ye.accion} ${ye.principal}`,onClick:l,children:"Mover y cambiar"})]}):null,e==="final"?o.jsx(Le,{variant:"primary",className:`${ye.accion} ${ye.principal}`,onClick:u,children:"Cerrar"}):null]})]})})})}function OX({titulo:e,texto:t,onCerrar:n}){return o.jsx(lr,{open:!0,onClose:n,title:e,headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:ye.ventana,role:"alertdialog","aria-label":e,children:[o.jsx("h2",{className:ye.titulo,children:e}),o.jsxs("p",{className:ye.nota,children:[t.charAt(0).toUpperCase()+t.slice(1),"."]}),o.jsx("div",{className:ye.acciones,children:o.jsx(Le,{variant:"primary",className:`${ye.accion} ${ye.principal}`,onClick:n,children:"Entendido"})})]})})})}function BX({donde:e,onCancelar:t,onConfirmar:n}){return o.jsx(lr,{open:!0,onClose:t,title:"Cambios sin guardar",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:ye.ventana,children:[o.jsx("h2",{className:ye.titulo,children:"Cambios sin guardar"}),o.jsxs("p",{className:ye.nota,children:["Hay cambios sin guardar en ",e,". Si continúas, se pierden."]}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,onClick:t,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${ye.accion} ${ye.principal} ${X.destructiva}`,onClick:n,children:"Descartar y continuar"})]})]})})})}function HX({entorno:e,nombresDeOtros:t,conectado:n,alRenombrar:r}){const[a,l]=S.useState(void 0),[i,u]=S.useState(!1),[d,m]=S.useState(void 0),v=a??e.nombre,f=v.trim(),h=EX(v),b=a!==void 0&&f!==e.nombre,y=f!==""&&f!==e.nombre&&t.includes(f);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:X.filaDeNombre,children:[o.jsx("span",{className:X.etiquetaDeNombre,children:"Nombre"}),o.jsxs("div",{className:X.campoDeNombreConBoton,children:[o.jsx("input",{type:"text",value:v,spellCheck:!1,autoComplete:"off","aria-label":"Nombre del entorno","aria-invalid":h===void 0?void 0:!0,disabled:!n||i,onChange:C=>{l(C.target.value),m(void 0)},onKeyDown:C=>{C.key!=="Enter"||i||!b||h!==void 0||j()}}),o.jsx("button",{type:"button",className:X.accion,disabled:!n||i||!b||h!==void 0,onClick:()=>void j(),children:i?"Guardando…":"Guardar"})]})]}),h===void 0?null:o.jsx("p",{className:X.nota,role:"alert",children:h}),y?o.jsx("p",{className:X.nota,children:"Ya hay otro entorno que se llama así: en la barra del proyecto los dos saldrán igual. Se distingue por su URL, así que se permite — pero no habrá forma de saber cuál es cuál."}):null,d===void 0?null:o.jsxs("p",{className:X.nota,role:"alert",children:["No se ha cambiado: ",d]})]});async function j(){u(!0);const C=await r(e.id,f);u(!1),m(C),C===void 0&&l(void 0)}}function UX({entorno:e,conectado:t,alQuitar:n}){const[r,a]=S.useState(!1),[l,i]=S.useState(!1),[u,d]=S.useState(void 0),[m,v]=S.useState(!1),[f,h]=S.useState(""),b=f.trim()===e.nombre,y=e.copias??0;return r?o.jsxs("div",{className:X.confirmarQuitar,role:"alertdialog","aria-label":`Quitar ${e.nombre}`,children:[o.jsxs("p",{className:X.tituloDeAviso,children:[o.jsx("span",{"aria-hidden":"true",children:"⚠"})," Atención: vas a quitar ",o.jsx("strong",{children:e.nombre})]}),o.jsxs("p",{className:X.textoDeAviso,children:["Se borra de la lista y se ",o.jsx("strong",{children:"cierra su sesión de CloudStudio"}),": para volver a usarlo tendrás que registrarlo y entrar otra vez."," ",m?"Y se BORRAN sus copias locales: el trabajo que no hayas subido se pierde para siempre.":"Las copias ya bajadas se quedan en el disco."]}),y===0?null:o.jsxs("label",{className:X.casillaDeAviso,children:[o.jsx("input",{type:"checkbox",checked:m,onChange:j=>v(j.target.checked)}),"Borrar también las copias locales de este entorno (",y," ",y===1?"proyecto":"proyectos",")"]}),o.jsxs("label",{className:X.escribirNombre,children:["Escribe ",o.jsx("strong",{children:e.nombre})," para confirmar",o.jsx("input",{type:"text",value:f,autoFocus:!0,autoComplete:"off",spellCheck:!1,onChange:j=>h(j.target.value)})]}),o.jsx("button",{type:"button",className:X.quitarLleno,disabled:l||!b,onClick:async()=>{i(!0);const j=await n(e.id,{borrarCopias:m});i(!1),a(!1),d(j)},children:l?"Quitando…":"Quitar"}),o.jsx("button",{type:"button",className:X.recargar,disabled:l,onClick:()=>a(!1),children:"Cancelar"})]}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:X.quitar,disabled:!t,onClick:()=>{d(void 0),v(!1),h(""),a(!0)},children:"Quitar entorno"}),u===void 0?null:o.jsxs("p",{role:"alert",className:`${X.aviso} ${X.anchoEntero}`,children:["No se ha quitado: ",u]})]})}const L5=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/;function VX(e){const t=e.split(`
|
|
497
|
+
`);t.at(-1)===""&&t.pop();const n=t.findIndex(i=>L5.test(i));if(n===-1)return t.map(i=>({tipo:"contexto",texto:i}));let r=0,a=0;const l=[];for(const i of t.slice(n)){const u=L5.exec(i);u!==null?(r=Number(u[1]),a=Number(u[2]),l.push({tipo:"tramo",texto:i})):i.startsWith("\\")?l.push({tipo:"nota",texto:i.slice(2)}):i.startsWith("+")?l.push({tipo:"mas",nuevo:a++,texto:i.slice(1)}):i.startsWith("-")?l.push({tipo:"menos",viejo:r++,texto:i.slice(1)}):l.push({tipo:"contexto",viejo:r++,nuevo:a++,texto:i.slice(1)})}return l}const GX="_aviso_dcwau_5",WX="_recargar_dcwau_15 _secundario_1l1rx_39",ZX="_clase_dcwau_21",QX="_ruta_dcwau_53",XX="_carpeta_dcwau_64",YX="_hoja_dcwau_71",KX="_cuenta_dcwau_75",JX="_binario_dcwau_76",eY="_mas_dcwau_86",tY="_menos_dcwau_90",nY="_tab_dcwau_98",rY="_banda_dcwau_108",aY="_seccion_dcwau_118",oY="_tituloDeSeccion_dcwau_122",sY="_tituloDeCambios_dcwau_133",iY="_revision_dcwau_97",lY="_pila_dcwau_154",cY="_indice_dcwau_160",uY="_cabecera_dcwau_176",dY="_alcance_dcwau_186",pY="_total_dcwau_191",mY="_binarios_dcwau_197",hY="_bloque_dcwau_201",fY="_filaDeBloque_dcwau_209",gY="_cabeceraDeBloque_dcwau_220",vY="_editar_dcwau_241 _secundario_1l1rx_39",bY="_parche_dcwau_249",yY="_linea_dcwau_255",xY="_numero_dcwau_266",_Y="_texto_dcwau_272",wY="_nota_dcwau_301",jY="_pendiente_dcwau_314",CY="_modelo_dcwau_327",kY="_modeloTitulo_dcwau_336",NY="_modeloColeccion_dcwau_342",SY="_modeloNombre_dcwau_346",$Y="_modeloEstado_dcwau_354",AY="_modeloLineas_dcwau_363",EY="_modeloNota_dcwau_388",We={aviso:GX,recargar:WX,clase:ZX,ruta:QX,carpeta:XX,hoja:YX,cuenta:KX,binario:JX,mas:eY,menos:tY,tab:nY,banda:rY,seccion:aY,tituloDeSeccion:oY,tituloDeCambios:sY,revision:iY,pila:lY,indice:cY,cabecera:uY,alcance:dY,total:pY,binarios:mY,bloque:hY,filaDeBloque:fY,cabeceraDeBloque:gY,editar:vY,parche:bY,linea:yY,numero:xY,texto:_Y,nota:wY,pendiente:jY,modelo:CY,modeloTitulo:kY,modeloColeccion:NY,modeloNombre:SY,modeloEstado:$Y,modeloLineas:AY,modeloNota:EY};function I5({via:e,mezclados:t,ficheros:n,parches:r,modelosDelCambio:a,desplegados:l,alDesplegar:i,alPlegar:u,alRecargar:d,historica:m,conectado:v,cloudstudio:f,alEditar:h,rutasDelProyecto:b,registro:y,modo:j="sesion",error:C}){const N=j==="pendientes",z=!N&&n.some(W=>W.pendiente!==void 0),E=n,P=z?E.filter(W=>W.pendiente===!0):E;S.useEffect(()=>{v===!1||e!==void 0||d()},[e,v,d]);const M=B0(n,v),L=S.useRef(new Map);let U;if(N&&C!==void 0?U=o.jsx("p",{className:We.aviso,children:`No se puede enseñar lo pendiente de subir: ${C}.`}):e===void 0?U=o.jsx("p",{className:We.aviso,children:N?"Consultando lo pendiente de subir…":"Consultando los ficheros de la sesión…"}):N&&P.length===0?U=o.jsx("p",{className:We.aviso,children:"No hay nada pendiente de subir: la copia está igual que la rama en CloudStudio."}):N?U=void 0:e==="sin-empezar"?U=o.jsx("p",{className:We.aviso,children:"Esta sesión todavía no ha empezado: no ha tocado ningún fichero. En cuanto le mandes algo al agente, lo que escriba aparecerá aquí."}):e==="sin-marca"&&m===!0?U=o.jsx("p",{className:We.aviso,children:"Esta conversación se reabrió y no tiene foto del proyecto de cuando empezó, así que no hay con qué comparar lo que tocó entonces. No es que no hubiera cambios — es que no se puede saber. Lo que el agente escriba a partir de ahora sí aparecerá aquí."}):e==="sin-marca"?U=o.jsx("p",{className:We.aviso,children:"No se puede saber qué ha tocado esta sesión: hace falta que el proyecto sea un repositorio de git, y que la sesión se abriera después de que xonecode empezara a marcarlas. No es que no haya cambios — es que no hay con qué compararlos."}):E.length>0&&P.length===0?U=o.jsx("p",{className:We.aviso,children:"Todo lo que ha tocado esta sesión ya está subido a CloudStudio: no queda nada suyo pendiente de subir."}):P.length===0&&(U=o.jsx("p",{className:We.aviso,children:e==="git"?"Esta sesión todavía no ha tocado ningún fichero.":"No ha cambiado ningún fichero del proyecto desde que se abrió esta sesión."})),U===void 0&&e!==void 0){const W=P.filter(ne=>ne.mas!==void 0||ne.menos!==void 0),O=P.length-W.length,q=W.reduce((ne,ce)=>ne+(ce.mas??0),0),F=W.reduce((ne,ce)=>ne+(ce.menos??0),0),K=new Map(P.map(ne=>[ne.ruta,ne.clase])),le=new Set([...n.map(ne=>ne.ruta),...b??[]]),me=ne=>{i(ne),typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{var ce,Ae;return(Ae=(ce=L.current.get(ne))==null?void 0:ce.scrollIntoView)==null?void 0:Ae.call(ce,{block:"start"})})};U=o.jsxs("div",{className:We.revision,children:[o.jsxs("div",{className:We.pila,children:[o.jsxs("div",{className:We.cabecera,children:[o.jsx("span",{className:We.alcance,children:N?"Pendiente":e==="git"?"Sesión":"Desde que abriste"}),o.jsxs("span",{className:We.total,children:[W.length>0?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:We.mas,children:["+",q]})," ",o.jsxs("span",{className:We.menos,children:["−",F]})]}):null,O>0?o.jsxs("span",{className:We.binarios,children:[W.length>0?" y ":"",O," ",O===1?"binario":"binarios"]}):null]}),o.jsxs("button",{type:"button",className:We.recargar,title:N?"Vuelve a medir qué falta por subir a CloudStudio":"Vuelve a mirar qué ficheros ha tocado esta sesión",disabled:M.esperando||v===!1,"aria-busy":M.esperando,onClick:()=>{M.empezar(),d()},children:[M.esperando?o.jsx(Wi,{}):null,"Refrescar"]})]}),!N&&e==="desde-apertura"?o.jsx("p",{className:We.nota,children:"Esta sesión no tiene ningún commit suyo con el que atribuir sus cambios (es de antes de que xonecode los sellara), así que esto es todo lo que ha cambiado en la copia del proyecto desde que se abrió — incluido lo que hayan escrito otras sesiones o una tarea de fondo."}):null,!N&&t!==void 0&&t>0?o.jsx("p",{className:We.nota,children:t===1?"Hay 1 commit de otra sesión entremedias: la lista de ficheros es de esta sesión, pero un diff puede traer cambios de la otra.":`Hay ${t} commits de otras sesiones entremedias: la lista de ficheros es de esta sesión, pero un diff puede traer cambios de las otras.`}):null,P.map(ne=>{const ce=l.has(ne.ruta),Ae=ce?r[ne.ruta]:void 0;return o.jsxs("section",{className:We.bloque,"data-bloque":ne.ruta,ref:de=>{de===null?L.current.delete(ne.ruta):L.current.set(ne.ruta,de)},children:[o.jsxs("div",{className:We.filaDeBloque,children:[o.jsxs("button",{type:"button",className:We.cabeceraDeBloque,"aria-expanded":ce,onClick:()=>ce?u(ne.ruta):i(ne.ruta),children:[o.jsx("span",{className:We.clase,"data-clase":ne.clase,"aria-label":ne.clase,children:ne.clase==="nuevo"?"A":ne.clase==="borrado"?"D":"M"}),o.jsx(sm,{ruta:ne.ruta}),o.jsxs("span",{className:We.ruta,children:[R5(ne.ruta)===""?null:o.jsx("span",{className:We.carpeta,children:R5(ne.ruta)}),o.jsx("span",{className:We.hoja,children:TY(ne.ruta)})]}),ne.sinCommitear===!0?o.jsx("span",{className:We.pendiente,title:N?"Git aún no lo sigue: commitéalo para poder subirlo":void 0,children:"sin commitear"}):null,ne.mas===void 0&&ne.menos===void 0?o.jsx("span",{className:We.binario,children:"binario"}):o.jsxs("span",{className:We.cuenta,children:[o.jsxs("span",{className:We.mas,children:["+",ne.mas??0]})," ",o.jsxs("span",{className:We.menos,children:["−",ne.menos??0]})]})]}),h!==void 0&&zY(ne,le)?o.jsxs("button",{type:"button",className:We.editar,"aria-label":`Editar ${ne.ruta}`,disabled:v===!1,onClick:()=>h(ne.ruta),children:[o.jsx("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:o.jsx("path",{d:"M10.8 2.7l2.5 2.5-7.6 7.6-3.2.7.7-3.2z",strokeLinejoin:"round"})}),"Editar"]}):null]}),ce&&a!==void 0&&ne.ruta.toLowerCase().endsWith(".xne")?o.jsx(DY,{ruta:ne.ruta,estado:a[ne.ruta]}):null,ce?Ae===void 0?o.jsxs("p",{className:We.aviso,children:["Trayendo el diff de ",ne.ruta,"…"]}):Ae.negado!==void 0?o.jsx("p",{className:We.aviso,children:`Este fichero no se enseña: ${Ae.negado}.`}):Ae.texto===""?o.jsx("p",{className:We.aviso,children:"Sin diff que enseñar para este fichero."}):o.jsx(MY,{texto:Ae.texto,recortado:Ae.recortado}):null]},ne.ruta)})]}),o.jsx("aside",{className:We.indice,"aria-label":"Ficheros cambiados",children:o.jsx(n4,{nodos:t4(P.map(ne=>ne.ruta)),variante:"explorador",alElegir:me,insignia:ne=>{const ce=K.get(ne)??"modificado";return o.jsx("span",{className:We.clase,"data-clase":ce,"aria-label":ce,children:ce==="nuevo"?"A":ce==="borrado"?"D":"M"})}})})]})}return o.jsxs("div",{className:We.tab,children:[f===void 0&&y===void 0?null:o.jsxs("div",{className:We.banda,children:[f===void 0?null:o.jsxs("section",{className:We.seccion,"aria-label":"Sincronización con CloudStudio",children:[o.jsx("h2",{className:We.tituloDeSeccion,children:"Sincronización con CloudStudio"}),f]}),y===void 0?null:o.jsxs("section",{className:We.seccion,"aria-label":"Últimas subidas",children:[o.jsx("h2",{className:We.tituloDeSeccion,children:N?"Últimas subidas de la conversación abierta":"Últimas subidas"}),y]})]}),o.jsx("h2",{className:`${We.tituloDeSeccion} ${We.tituloDeCambios}`,children:N?"Pendiente de subir a CloudStudio":z?"Cambios de esta sesión pendientes de subir":"Cambios de esta sesión"}),U]})}function DY({ruta:e,estado:t}){return t===void 0?o.jsxs("p",{className:We.aviso,children:["Comparando el modelo de ",e,"…"]}):t.cambios===void 0?o.jsxs("p",{className:We.aviso,children:["No se pudo comparar el modelo: ",t.error??"sin motivo","."]}):t.cambios.length===0?o.jsx("p",{className:We.aviso,children:"Sin cambios en el modelo (campos, tipos, referencias, eventos): lo que cambió está en el diff de abajo."}):o.jsxs("div",{className:We.modelo,"aria-label":`Cambios en el modelo de ${e}`,children:[o.jsx("p",{className:We.modeloTitulo,children:"Cambios en el modelo"}),t.cambios.map(n=>o.jsxs("div",{className:We.modeloColeccion,children:[o.jsxs("p",{className:We.modeloNombre,children:[n.nombre,n.estado==="modificada"?null:o.jsx("span",{className:We.modeloEstado,children:n.estado})]}),o.jsxs("ul",{className:We.modeloLineas,children:[n.campos.map(r=>o.jsxs("li",{"data-cambio":r.cambio==="tipo"?"modificado":r.cambio,children:[r.cambio==="nuevo"?"+ ":r.cambio==="borrado"?"− ":"~ ","campo ",o.jsx("code",{children:r.nombre}),r.cambio==="tipo"?` · ${r.antes??"sin tipo"} → ${r.ahora??"sin tipo"}`:(r.cambio==="nuevo"?r.ahora:r.antes)===void 0?"":` · ${r.cambio==="nuevo"?r.ahora:r.antes}`]},`c:${r.nombre}`)),n.referencias.map((r,a)=>o.jsxs("li",{"data-cambio":r.cambio,children:[r.cambio==="nuevo"?"+ ":"− ","referencia ",o.jsx("code",{children:r.desde})," ",r.por," → ",o.jsx("code",{children:r.hacia})]},`r:${a}`)),[["evento",n.eventos],["nodo",n.nodos],["conexión",n.conexiones]].flatMap(([r,a])=>a.map(l=>o.jsxs("li",{"data-cambio":l.cambio,children:[l.cambio==="nuevo"?"+ ":"− ",r," ",o.jsx("code",{children:l.nombre})]},`${r}:${l.nombre}`)))]})]},n.nombre)),o.jsx("p",{className:We.modeloNota,children:"Del campo solo consta el tipo: tamaño y demás atributos, en el diff de abajo."})]})}function zY(e,t){return!(e.clase==="borrado"||e.mas===void 0&&e.menos===void 0||/\.xml$/i.test(e.ruta)&&t.has(e.ruta.replace(/\.xml$/i,".xne")))}function R5(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t+1)}function TY(e){const t=e.lastIndexOf("/");return t===-1?e:e.slice(t+1)}function MY({texto:e,recortado:t}){const n=S.useMemo(()=>VX(e),[e]);return o.jsxs("div",{className:We.parche,children:[n.map((r,a)=>o.jsxs("div",{className:We.linea,"data-tipo":r.tipo,children:[o.jsx("span",{className:We.numero,"data-viejo":"",children:r.viejo??""}),o.jsx("span",{className:We.numero,"data-nuevo":"",children:r.nuevo??""}),o.jsx("span",{className:We.texto,children:r.texto===""?" ":r.texto})]},a)),t?o.jsx("p",{className:We.aviso,children:"El diff es demasiado grande y se ha cortado: míralo en tu editor."}):null]})}const LY="_caja_1nt34_13",IY="_ficheros_1nt34_5",RY="_visor_1nt34_27",PY="_arbol_1nt34_9",qY="_filtro_1nt34_61",FY="_cabecera_1nt34_75",OY="_titulo_1nt34_91",BY="_textos_1nt34_99",HY="_ruta_1nt34_109",UY="_carpetaDeRuta_1nt34_120",VY="_separador_1nt34_121",GY="_nombreDeRuta_1nt34_125",WY="_metadatos_1nt34_130",ZY="_caras_1nt34_137",QY="_cara_1nt34_137",XY="_markdown_1nt34_171",YY="_aviso_1nt34_178",KY="_nota_1nt34_186",JY="_rotulo_1nt34_195",eK="_acciones_1nt34_204",tK="_accion_1nt34_204 _secundario_1l1rx_39",nK="_accionPrincipal_1nt34_215 _primario_1l1rx_67",rK="_sinGuardar_1nt34_220",aK="_banda_1nt34_233",oK="_fallo_1nt34_247",sK="_marcaDelArbol_1nt34_254",et={caja:LY,ficheros:IY,visor:RY,arbol:PY,filtro:qY,cabecera:FY,titulo:OY,textos:BY,ruta:HY,carpetaDeRuta:UY,separador:VY,nombreDeRuta:GY,metadatos:WY,caras:ZY,cara:QY,markdown:XY,aviso:YY,nota:KY,rotulo:JY,acciones:eK,accion:tK,accionPrincipal:nK,sinGuardar:rK,banda:aK,fallo:oK,marcaDelArbol:sK},P5=S.lazy(()=>un(()=>import("./EditorDeFichero-BOMIz5Wx.js"),__vite__mapDeps([12,13]),import.meta.url));function iK({arbol:e,contenidos:t,elegido:n,alElegir:r,alRecargar:a,conectado:l,linea:i,edicion:u,cambiados:d,alPedirCambios:m}){var L,U;S.useEffect(()=>{l===!1||e!==void 0||a()},[e,l,a]),S.useEffect(()=>{l===!1||d!==void 0||m==null||m()},[d,l,m]);const v=((L=u==null?void 0:u.actual)==null?void 0:L.proyectoCambiado)===!0?u.actual:void 0;S.useEffect(()=>{v===void 0&&n!==void 0&&e!==void 0&&e.error===void 0&&!e.recortado&&!e.rutas.includes(n)&&r(void 0)},[e,n,r,v]);const[f,h]=S.useState(""),[b,y]=S.useState("vista");if(v!==void 0&&u!==void 0){const W=rm(v.ruta);return o.jsx("div",{className:et.caja,children:o.jsx("div",{className:et.ficheros,children:o.jsxs("div",{className:et.visor,"data-editando":"",children:[o.jsxs("div",{className:et.cabecera,children:[o.jsx(F5,{ruta:v.ruta,sinGuardar:!0,metadatos:Zh(v.ruta,q5(v.ruta,v.original),v.finDeLinea)}),o.jsx("div",{className:et.acciones,children:o.jsx("button",{type:"button",className:et.accionPrincipal,disabled:!0,children:"Guardar"})})]}),o.jsxs("div",{className:et.banda,role:"alert",children:[o.jsx("span",{children:"El proyecto abierto ya no es este: guardar está desactivado. Copia tus cambios o descártalos."}),o.jsx("button",{type:"button",className:et.accion,onClick:u.descartar,children:"Descartar"})]}),o.jsx(S.Suspense,{fallback:o.jsx("p",{className:et.aviso,children:"Cargando el editor…"}),children:o.jsx(P5,{texto:u.textoVivo(),...W===void 0?{}:{lenguaje:W},baseElegida:u.baseElegida,alCambiar:u.cambiar,alGuardar:u.guardar,alElegirBase:u.elegirBase},`${v.ruta}:${v.generacion}`)})]})})})}if(e===void 0)return o.jsx("p",{className:et.aviso,children:"Consultando el árbol del proyecto…"});if(e.error!==void 0)return o.jsxs("p",{className:et.aviso,children:["No se ha podido listar el proyecto: ",e.error]});const j=n===void 0?void 0:t[n],C=n===void 0?void 0:rm(n),N=(j==null?void 0:j.mime)!==void 0&&j.base64!==void 0,z=N&&(j==null?void 0:j.mime)==="image/svg+xml"&&j.texto!==void 0,E=(j==null?void 0:j.error)===void 0&&(j==null?void 0:j.texto)!==void 0&&C==="markdown",P=N&&!z,M=(u==null?void 0:u.actual)!==void 0&&u.actual.ruta===n?u.actual:void 0;return o.jsx("div",{className:et.caja,children:o.jsxs("div",{className:et.ficheros,children:[o.jsx("div",{className:et.visor,"data-editando":M!==void 0?"":void 0,children:n===void 0?o.jsx("p",{className:et.aviso,children:"Elige un fichero del árbol."}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:et.cabecera,children:[o.jsx(F5,{ruta:n,sinGuardar:(M==null?void 0:M.sucio)===!0,metadatos:M===void 0?Zh(n,j):Zh(n,j??q5(n,M.original),M.finDeLinea)}),M!==void 0&&u!==void 0?o.jsxs("div",{className:et.acciones,children:[o.jsx("button",{type:"button",className:et.accionPrincipal,disabled:!M.sucio||M.guardando||M.proyectoCambiado===!0,onClick:u.guardar,children:M.guardando?"Guardando…":"Guardar"}),o.jsx("button",{type:"button",className:et.accion,onClick:u.cerrar,children:"Cerrar"})]}):o.jsxs("div",{className:et.acciones,children:[E?o.jsx("div",{className:et.caras,role:"group","aria-label":"Cómo se enseña el fichero",children:["vista","fuente"].map(W=>o.jsx("button",{type:"button",className:et.cara,"aria-pressed":b===W,"data-activa":b===W?"":void 0,onClick:()=>y(W),children:W==="vista"?"Vista":"Fuente"},W))}):null,u!==void 0&&om(j)?o.jsx("button",{type:"button",className:et.accion,onClick:()=>u.abrir(j),children:"Editar"}):null]})]}),M!==void 0&&u!==void 0?o.jsxs(o.Fragment,{children:[M.proyectoCambiado===!0?o.jsxs("div",{className:et.banda,role:"alert",children:[o.jsx("span",{children:"El proyecto abierto ya no es este: guardar está desactivado. Copia tus cambios o descártalos."}),o.jsx("button",{type:"button",className:et.accion,onClick:u.descartar,children:"Descartar"})]}):null,M.versionNueva!==void 0?o.jsxs("div",{className:et.banda,role:"alert",children:[o.jsx("span",{children:"El fichero ha cambiado en el disco mientras lo editabas."}),o.jsx("button",{type:"button",className:et.accion,onClick:u.recargar,children:"Recargar (pierdes los tuyos)"}),o.jsx("button",{type:"button",className:et.accion,onClick:u.seguirConLosMios,children:"Seguir con los míos"})]}):null,M.sobrescribe===!0?o.jsx("p",{className:et.banda,role:"status",children:"Seguir con los míos: al guardar, tu versión sustituirá a la del disco"}):null,M.error!==void 0?o.jsxs("p",{className:et.fallo,role:"alert",children:["No se ha guardado: ",M.error]}):null,o.jsx(S.Suspense,{fallback:o.jsx("p",{className:et.aviso,children:"Cargando el editor…"}),children:o.jsx(P5,{texto:u.textoVivo(),...C===void 0?{}:{lenguaje:C},...u.base===void 0?{}:{base:u.base},baseElegida:u.baseElegida,alCambiar:u.cambiar,alGuardar:u.guardar,alElegirBase:u.elegirBase},`${M.ruta}:${M.generacion}`)})]}):j===void 0?o.jsxs("p",{className:et.aviso,children:["Trayendo ",n,"…"]}):j.error!==void 0?o.jsxs("p",{className:et.aviso,children:["No se puede enseñar este fichero: ",j.error,"."]}):P?o.jsx(am,{mime:j.mime,base64:j.base64,alt:n,bytes:j.bytes}):j.mime!==void 0&&j.base64===void 0&&j.binario?o.jsxs("p",{className:et.aviso,children:["Es una imagen de ",So(j.bytes)," KB: pesa más de lo que se trae por el cable, así que no se enseña. Ábrela en tu editor."]}):j.binario?o.jsxs("p",{className:et.aviso,children:["Es un fichero binario, ",So(j.bytes)," KB. No se enseña su contenido."]}):o.jsxs(o.Fragment,{children:[z?o.jsxs(o.Fragment,{children:[o.jsx(am,{mime:j.mime,base64:j.base64,alt:n,bytes:j.bytes}),o.jsx("p",{className:et.rotulo,children:"Código"})]}):null,j.recortado?o.jsxs("p",{className:et.nota,children:["Recortado a ",So(((U=j.texto)==null?void 0:U.length)??0)," KB de ",So(j.bytes)," KB: míralo entero en tu editor."]}):null,j.codificacion==="latin1"?o.jsx("p",{className:et.nota,children:"Leído como latin1: el fichero no es UTF-8."}):null,C==="markdown"&&b==="vista"?o.jsx("div",{className:`${et.markdown} md-cuerpo`,children:o.jsx(Ul,{text:Vl(j.vista===void 0?j.texto??"":GT(j.vista,window.location.origin)),codeLabels:Gl})}):o.jsx(b8,{texto:j.texto??"",...C===void 0?{}:{lenguaje:C},...i===void 0?{}:{linea:i}})]})]})}),o.jsxs("aside",{className:et.arbol,"aria-label":"Ficheros del proyecto",children:[o.jsx("input",{type:"search",className:et.filtro,placeholder:"Filtrar ficheros…",value:f,onChange:W=>h(W.target.value),"aria-label":"Filtrar ficheros"}),e.recortado?o.jsxs("p",{className:et.nota,children:["El árbol está recortado a ",e.rutas.length," entradas."]}):null,o.jsx(n4,{nodos:t4(e.rutas),...n===void 0?{}:{elegida:n},alElegir:r,filtro:f,abiertas:"ninguna",...d===void 0&&(M==null?void 0:M.sucio)!==!0?{}:{insignia:W=>W===(M==null?void 0:M.ruta)&&M.sucio?o.jsx("span",{className:et.marcaDelArbol,"aria-label":"Sin guardar en el editor",children:"●"}):(d==null?void 0:d.has(W))===!0?o.jsx("span",{className:et.marcaDelArbol,"data-marca":"cambiada","aria-label":"Cambiado en la sesión",children:"M"}):null}})]})]})})}function q5(e,t){return{ruta:e,texto:t,recortado:!1,binario:!1,bytes:0,codificacion:"utf-8"}}function F5({ruta:e,sinGuardar:t,metadatos:n}){const r=e.lastIndexOf("/");return o.jsxs("div",{className:et.titulo,"data-cabecera-del-fichero":"",children:[o.jsx(sm,{ruta:e,tamano:24}),o.jsxs("div",{className:et.textos,children:[o.jsxs("span",{className:et.ruta,children:[r===-1?null:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:et.carpetaDeRuta,"data-parte":"carpeta",children:e.slice(0,r)}),o.jsx("span",{className:et.separador,children:"/"})]}),o.jsx("span",{className:et.nombreDeRuta,"data-parte":"nombre",children:e.slice(r+1)}),t?o.jsx("span",{className:et.sinGuardar,"aria-label":"Hay cambios sin guardar",title:"Hay cambios sin guardar",children:"●"}):null]}),n.length===0?null:o.jsx("span",{className:et.metadatos,"data-metadatos":"",children:n.join(" · ")})]})]})}function lK({ruta:e,alDescartar:t,alSeguir:n}){return o.jsx(lr,{open:!0,onClose:n,title:"Cambios sin guardar",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:ye.ventana,role:"alertdialog","aria-label":"Cambios sin guardar",children:[o.jsx("h2",{className:ye.titulo,children:"Cambios sin guardar"}),o.jsxs("p",{className:ye.nota,children:["«",e,"» tiene cambios que no has guardado. Si sigues, se pierden."]}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,onClick:n,autoFocus:!0,children:"Seguir editando"}),o.jsx(Le,{variant:"primary",className:tt(ye.accion,ye.principal,Pm.destructiva),onClick:t,children:"Descartar cambios"})]})]})})})}let O5=0;function cK(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():(O5+=1,`${Date.now().toString(36)}-${O5}-${Math.random().toString(36).slice(2)}`)}const uK="el fichero es demasiado grande para guardarlo desde aquí",dK="no hay ningún proyecto abierto",pK="se cortó la conexión antes de saber si se guardó: al volver, recarga el fichero para comprobarlo";function Jh(e){const{error:t,versionNueva:n,sobrescribe:r,...a}=e;return a}function mK({enviar:e,proyecto:t,contenidos:n,bases:r,ultimoGuardado:a,conectado:l}){const[i,u]=S.useState(void 0),d=S.useRef(void 0),[m,v]=S.useState("sesion"),f=S.useRef(i),h=S.useRef(""),b=S.useRef(void 0),y=S.useRef(void 0),j=S.useRef((a==null?void 0:a.secuencia)??0),C=S.useCallback(te=>{f.current=te,u(te)},[]),N=S.useCallback((te,I)=>{e({clase:"baseDeFichero",ruta:te,base:I})},[e]),z=S.useCallback(te=>{var V;if(!om(te))return;const I=f5(te.texto);h.current=I,C({ruta:te.ruta,proyecto:t,original:I,huella:te.huella,finDeLinea:o2(te.texto),sucio:!1,guardando:!1,generacion:(((V=f.current)==null?void 0:V.generacion)??0)+1}),N(te.ruta,m)},[t,m,N,C]),E=S.useCallback(()=>{h.current="",b.current=void 0,C(void 0)},[C]),P=S.useCallback(te=>{h.current=te;const I=f.current;if(I===void 0)return;const V=te!==I.original;V!==I.sucio&&C({...I,sucio:V})},[C]),M=S.useCallback((te,I)=>{const V=f.current;V===void 0||V.ruta!==te||!V.guardando||(C({...V,guardando:!1,error:I}),V.proyectoCambiado!==!0&&e({clase:"fichero",ruta:te}).catch(()=>{}))},[C,e]),L=S.useCallback(()=>{const te=f.current;if(te===void 0||te.guardando||!te.sucio||te.proyectoCambiado===!0)return;if(te.proyecto===void 0){C({...te,error:dK});return}const I=cK(),V={clase:"guardarFichero",ruta:te.ruta,texto:dF(h.current,te.finDeLinea),huella:te.huella,id:I,proyecto:te.proyecto};if(!mF(V)){C({...te,error:uK});return}b.current=h.current,y.current=I;const{error:ie,...T}=te;C({...T,guardando:!0}),e(V).then(Se=>{(Se==null?void 0:Se.ok)===!1&&M(te.ruta,"el servidor no aceptó el guardado")},()=>M(te.ruta,"no se pudo hablar con el servidor: no se ha guardado"))},[e,C,M]);S.useEffect(()=>{if(a===void 0||a.secuencia===j.current)return;j.current=a.secuencia;const te=f.current;if(te===void 0||te.ruta!==a.ruta)return;const I=te.guardando&&a.id===y.current;if(te.proyectoCambiado===!0&&!I)return;if(!I){e({clase:"fichero",ruta:te.ruta});return}if(a.huella===void 0){C({...te,guardando:!1,error:a.error??"no se ha guardado"}),te.proyectoCambiado!==!0&&e({clase:"fichero",ruta:te.ruta});return}const V=b.current??h.current;b.current=void 0,C({...Jh(te),original:V,huella:a.huella,guardando:!1,sucio:h.current!==V}),te.proyectoCambiado!==!0&&(e({clase:"fichero",ruta:te.ruta}),e({clase:"revision"}),N(te.ruta,m))},[a,e,C,N,m]);const U=i===void 0||n==null?void 0:n[i.ruta];S.useEffect(()=>{var V;const te=f.current;if(te===void 0||te.guardando||te.proyectoCambiado===!0||!om(U)||U.ruta!==te.ruta||U.huella===te.huella||((V=te.versionNueva)==null?void 0:V.huella)===U.huella)return;const I={original:f5(U.texto),huella:U.huella,finDeLinea:o2(U.texto)};if(te.sucio){C({...te,versionNueva:I});return}h.current=I.original,C({...Jh(te),...I,generacion:te.generacion+1}),N(te.ruta,m)},[U,C,N,m]),S.useEffect(()=>{const te=f.current;if(te!==void 0){if(te.proyecto===t){if(te.proyectoCambiado===!0){const{proyectoCambiado:I,...V}=te;C(V)}return}te.sucio?te.proyectoCambiado!==!0&&C({...te,proyectoCambiado:!0}):E()}},[t,E,C]),S.useEffect(()=>{const te=f.current;l===!1&&(te==null?void 0:te.guardando)===!0&&C({...te,guardando:!1,error:pK})},[l,C]);const W=(i==null?void 0:i.sucio)===!0;S.useEffect(()=>{if(!W)return;const te=I=>{I.preventDefault(),I.returnValue=""};return window.addEventListener("beforeunload",te),()=>window.removeEventListener("beforeunload",te)},[W]);const O=S.useCallback(()=>{const te=f.current,I=te==null?void 0:te.versionNueva;te===void 0||I===void 0||(h.current=I.original,C({...Jh(te),...I,sucio:!1,generacion:te.generacion+1}),N(te.ruta,m))},[C,N,m]),q=S.useCallback(()=>{const te=f.current,I=te==null?void 0:te.versionNueva;if(te===void 0||I===void 0)return;const{versionNueva:V,...ie}=te;C({...ie,huella:I.huella,sobrescribe:!0})},[C]),F=S.useCallback(te=>{var V;v(te);const I=f.current;d.current=I===void 0||(V=le.current)==null?void 0:V[I.ruta],I!==void 0&&N(I.ruta,te)},[N]),K=S.useCallback(()=>{const te=f.current;te!==void 0&&N(te.ruta,m)},[N,m]),le=S.useRef(r);le.current=r;const me=S.useCallback(()=>h.current,[]),ne=S.useCallback(()=>{var te;return((te=f.current)==null?void 0:te.sucio)===!0},[]),ce=i===void 0||r==null?void 0:r[i.ruta],Ae=i==null?void 0:i.ruta;S.useEffect(()=>{Ae===void 0||ce===void 0||ce.base===m||ce===d.current||(d.current=ce,N(Ae,m))},[Ae,ce,m,N]);const de=ce!==void 0&&ce.base===m?ce:void 0;return S.useMemo(()=>({actual:i,base:de,baseElegida:m,textoVivo:me,haySinGuardar:ne,abrir:z,cerrar:E,descartar:E,cambiar:P,guardar:L,elegirBase:F,pedirBase:K,recargar:O,seguirConLosMios:q}),[i,de,m,me,ne,z,E,P,L,F,K,O,q])}const hK="_boton_xl444_4",fK="_girando_xl444_17",ef={boton:hK,girando:fK};function P8({subida:e,className:t,apagado:n=!1}){const r=n||e.esperando||e.motivoParaNo!==void 0;return o.jsxs("button",{type:"button",className:t===void 0?ef.boton:`${t} ${ef.boton}`,disabled:r,"aria-busy":e.esperando,title:e.esperando?"Preparando el plan de la subida…":e.motivoParaNo??"Sube a CloudStudio los cambios commiteados; antes eliges qué ficheros",onClick:e.alSubir,children:[e.esperando?o.jsx("span",{className:ef.girando,"aria-hidden":"true"}):null,"Subir"]})}const gK="_panel_pnpjv_6",vK="_aviso_pnpjv_14",bK="_cabecera_pnpjv_25",yK="_proyecto_pnpjv_32",xK="_rama_pnpjv_38",_K="_recargar_pnpjv_48 _secundario_1l1rx_39",wK="_cuenta_pnpjv_55",jK="_botones_pnpjv_62",CK="_subir_pnpjv_79",kK="_bajar_pnpjv_75",NK="_nota_pnpjv_102",SK="_registro_pnpjv_115",$K="_operacion_pnpjv_125",AK="_cabeceraDeOperacion_pnpjv_131",EK="_accion_pnpjv_138",DK="_sello_pnpjv_145",zK="_lineas_pnpjv_155",kn={panel:gK,aviso:vK,cabecera:bK,proyecto:yK,rama:xK,recargar:_K,cuenta:wK,botones:jK,subir:CK,bajar:kK,nota:NK,registro:SK,operacion:$K,cabeceraDeOperacion:AK,accion:EK,sello:DK,lineas:zK};function TK(e){const t=e.pendientes;return t===void 0?"No consta cuánto falta por subir.":t===0?"No hay nada por subir: lo que está en esta copia ya está en la rama.":`${t} ${t===1?"fichero":"ficheros"} por subir.`}const tf="VACÍA esta copia y la baja entera de la rama, con un git nuevo: lo que no esté commiteado y la historia de git de la copia se pierden. Antes pide confirmación.",MK={subir:"Subir",bajar:"Actualizar repo local",estado:"Consultar el estado"};function LK({operaciones:e}){return e===void 0||e.length===0?null:o.jsx("section",{className:kn.registro,"aria-label":"Registro de la sincronización",children:e.map((t,n)=>{const r=Qc(t.cuando);return o.jsxs("details",{className:kn.operacion,open:n===0,children:[o.jsxs("summary",{className:kn.cabeceraDeOperacion,children:[o.jsx("span",{className:kn.accion,children:MK[t.accion]}),r===void 0?null:o.jsx("span",{className:kn.sello,children:` · ${r}`})]}),o.jsx("pre",{className:kn.lineas,children:t.lineas.join(`
|
|
498
|
+
`)})]},`${t.accion}-${t.cuando}`)})})}function IK({sync:e,alPedir:t,subida:n,alRecargar:r,conectado:a}){const l=S.useRef(!0),i=e===void 0;S.useEffect(()=>{if(a===!1)return;const m=l.current;l.current=!1,!(!m&&!i)&&r()},[i,a,r]);const u=B0(e,a);if(e===void 0)return o.jsx("p",{className:kn.aviso,children:"Consultando la sincronización con CloudStudio…"});if(e.proyecto===void 0||e.rama===void 0)return o.jsxs("div",{className:kn.panel,children:[o.jsx("p",{className:kn.aviso,children:"Este proyecto no está dado de alta en CloudStudio, así que no hay nada que subir ni que bajar. Se elige al abrir el proyecto —entorno, proyecto y rama—, y a partir de ahí esta banda enseña lo que hay pendiente."}),e.error===void 0?null:o.jsx("p",{className:kn.aviso,children:e.error})]});const d=e.pendientes===0;return o.jsxs("div",{className:kn.panel,children:[o.jsxs("div",{className:kn.cabecera,children:[o.jsx("span",{className:kn.proyecto,children:e.proyecto}),o.jsxs("span",{className:kn.rama,children:["rama ",e.rama]}),o.jsxs("button",{type:"button",className:kn.recargar,title:"Vuelve a medir cuánto queda por subir a CloudStudio",disabled:u.esperando||a===!1,"aria-busy":u.esperando,onClick:()=>{u.empezar(),r()},children:[u.esperando?o.jsx(Wi,{}):null,"Refrescar"]})]}),e.error!==void 0?o.jsx("p",{className:kn.aviso,children:e.error}):e.pendientes===void 0?o.jsx("p",{className:kn.aviso,children:"No consta cuánto falta por subir."}):o.jsx("p",{className:kn.cuenta,children:TK(e)}),o.jsxs("div",{className:kn.botones,children:[d?null:o.jsx(P8,{subida:n??{esperando:!1,alSubir:()=>t("subir")},className:kn.subir,apagado:a===!1}),o.jsx("button",{type:"button",className:kn.bajar,title:tf,onClick:()=>t("bajar"),children:"Actualizar repo local"})]}),o.jsx("p",{className:kn.nota,children:d?`«Actualizar repo local» ${tf} Lo que pasa queda aquí abajo, en el registro de esta sesión.`:`Subir pide el plan y eliges qué ficheros suben antes de aprobarlo, y se niega con cambios sin commitear. «Actualizar repo local» ${tf} Lo que pasa —lo que sube, lo que no y por qué— queda aquí abajo, en el registro de esta sesión.`})]})}const RK="_lista_gytuv_9",PK="_encabezado_gytuv_23",qK="_rotulo_gytuv_31",FK="_nueva_gytuv_42 _secundario_1l1rx_39",OK="_avisoConexion_gytuv_47",BK="_aviso_gytuv_47",HK="_filas_gytuv_63",UK="_fila_gytuv_63",VK="_punto_gytuv_85",GK="_cuerpo_gytuv_112",WK="_cabecera_gytuv_17",ZK="_titulo_gytuv_17",QK="_etiquetaEstado_gytuv_135",XK="_motivo_gytuv_140",YK="_acciones_gytuv_150",Er={lista:RK,encabezado:PK,rotulo:qK,nueva:FK,avisoConexion:OK,aviso:BK,filas:HK,fila:UK,punto:VK,cuerpo:GK,cabecera:WK,titulo:ZK,etiquetaEstado:QK,motivo:XK,acciones:YK},KK={nuevo:"Nuevo","en-proceso":"En proceso","requiere-atencion":"Esperando feedback",terminada:"Terminada"};function JK({tareas:e,alNuevaTarea:t,corriendoAqui:n,ejecutaOtroProceso:r,alReintentar:a,alDescartar:l,alTerminar:i,alEnviarFeedback:u,alMirar:d,alDejarDeMirar:m,mirando:v,mirada:f,conectado:h}){const b=h===!1;return o.jsxs("section",{className:Er.lista,"aria-label":"Tareas del proyecto",children:[o.jsxs("div",{className:Er.encabezado,children:[o.jsx("span",{className:Er.rotulo,children:"Tareas en background"}),t===void 0?null:o.jsx("button",{type:"button",className:Er.nueva,disabled:b,onClick:t,children:"Nueva tarea"})]}),b&&t!==void 0?o.jsx("p",{className:Er.avisoConexion,children:"Sin conexión: no se puede crear una tarea hasta reconectar."}):null,n===void 0?null:o.jsx(A8,{corriendoAqui:n,...r===void 0?{}:{ejecutaOtroProceso:r},donde:"esta lista"}),e===void 0?o.jsx("p",{className:Er.aviso,children:"Consultando la cola de tareas de este proyecto…"}):e.length===0?o.jsx("p",{className:Er.aviso,children:"Este proyecto todavía no tiene ninguna tarea en background. Pulsa «Nueva tarea» para darle al agente un encargo que trabaje solo, sin que tengas que quedarte mirando: se aplica sin pedir aprobación, porque la autorización es crearla."}):o.jsx("ul",{className:Er.filas,children:e.map(y=>o.jsx(eJ,{tarea:y,conectado:h,corriendoAqui:n,...a===void 0?{}:{alReintentar:a},...l===void 0?{}:{alDescartar:l},...i===void 0?{}:{alTerminar:i},...u===void 0?{}:{alEnviarFeedback:u},...d===void 0?{}:{alMirar:d},...m===void 0?{}:{alDejarDeMirar:m},...v===void 0?{}:{mirando:v},...f===void 0?{}:{mirada:f}},y.id))})]})}function eJ({tarea:e,alReintentar:t,alDescartar:n,alTerminar:r,alEnviarFeedback:a,conectado:l,corriendoAqui:i,alMirar:u,alDejarDeMirar:d,mirando:m,mirada:v}){return o.jsxs("li",{className:Er.fila,"data-estado":e.estado,children:[o.jsx("span",{className:Er.punto,"aria-hidden":"true"}),o.jsxs("div",{className:Er.cuerpo,children:[o.jsxs("div",{className:Er.cabecera,children:[o.jsx("span",{className:Er.titulo,children:e.titulo}),o.jsx("span",{className:Er.etiquetaEstado,children:KK[e.estado]})]}),m===e.id?null:o.jsxs(o.Fragment,{children:[e.motivo===void 0?null:o.jsx("p",{className:Er.motivo,children:e.motivo}),o.jsx(Rm,{tarea:e})]}),o.jsx(o4,{tarea:e,conectado:l,corriendoAqui:i,...u===void 0?{}:{alMirar:u},...d===void 0?{}:{alDejarDeMirar:d},...m===void 0?{}:{mirando:m},...v===void 0?{}:{mirada:v}})]}),o.jsx("div",{className:Er.acciones,children:o.jsx(a4,{tarea:e,conectado:l,alReintentar:t,alDescartar:n,alTerminar:r,alEnviarFeedback:a})})]})}function _0(e){const t=e.toLowerCase().replace(/-/g,"");return/^[0-9a-f]{32}$/.test(t)?t.slice(0,8):void 0}const tJ="_capa_18fw9_12",nJ="_velo_18fw9_18",rJ="_tarjeta_18fw9_28",aJ="_titulo_18fw9_39",oJ="_aviso_18fw9_46",sJ="_campo_18fw9_52",iJ="_select_18fw9_60",lJ="_textarea_18fw9_61",cJ="_error_18fw9_76",uJ="_acciones_18fw9_82",dJ="_principal_18fw9_89 _primario_1l1rx_67 _grande_1l1rx_26",pJ="_accion_18fw9_82 _secundario_1l1rx_39 _grande_1l1rx_26",mJ="_cancelar_18fw9_97 _secundario_1l1rx_39 _grande_1l1rx_26",hJ="_barraDeTicket_18fw9_103",fJ="_ticket_18fw9_114",gJ="_avisoDelGestor_18fw9_123",vJ="_cerrarAviso_18fw9_136 _icono_1l1rx_149",Rt={capa:tJ,velo:nJ,tarjeta:rJ,titulo:aJ,aviso:oJ,campo:sJ,select:iJ,textarea:lJ,error:cJ,acciones:uJ,principal:dJ,accion:pJ,cancelar:mJ,barraDeTicket:hJ,ticket:fJ,avisoDelGestor:gJ,cerrarAviso:vJ},q8=e=>e??"el gestor",s4=e=>_0(e)??e;function F8(e){const[t,n]=S.useState((e==null?void 0:e.propuesta)??"");return S.useEffect(()=>{n((e==null?void 0:e.propuesta)??"")},[e]),[t,n]}function O8({titulo:e,alCancelar:t,children:n}){return o.jsx(lr,{open:!0,onClose:t,title:e,headless:!0,className:Rt.capa,children:o.jsx("div",{className:Rt.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:Rt.tarjeta,children:[o.jsx("p",{className:Rt.titulo,children:e}),n]})})})}function bJ({clave:e,nombreDelGestor:t,transiciones:n,errorTransiciones:r,enviando:a,error:l,alConfirmar:i,alCancelar:u}){var y;const[d,m]=F8(n),v=(n==null?void 0:n.lista)??[],f=(y=v.find(j=>j.id===d))==null?void 0:y.destino,h=s4(e),b=f===void 0?`¿Empezar con ${h}?`:`¿Pasar ${h} a ${f}?`;return o.jsxs(O8,{titulo:b,alCancelar:u,children:[n!==void 0?null:r===void 0?o.jsx("p",{className:Rt.aviso,children:`Consultando las transiciones de ${h}…`}):o.jsx("p",{className:Rt.error,role:"alert",children:`No se pudieron consultar las transiciones: ${r}`}),n===void 0?null:v.length===0?o.jsx("p",{className:Rt.aviso,children:`No hay transiciones disponibles para ${h}.`}):o.jsxs("label",{className:Rt.campo,children:["Transición",o.jsxs("select",{className:Rt.select,value:d,onChange:j=>m(j.target.value),children:[o.jsx("option",{value:"",children:"Ninguna"}),v.map(j=>o.jsx("option",{value:j.id,children:j.nombre},j.id))]})]}),l===void 0?null:o.jsx("p",{className:Rt.error,role:"alert",children:l}),o.jsxs("div",{className:Rt.acciones,children:[v.length===0?null:o.jsx(Le,{type:"button",variant:"primary",className:Rt.principal,disabled:a||d==="",onClick:()=>i(d),children:"Pasar y empezar"}),o.jsx(Le,{type:"button",variant:"outline",className:Rt.accion,disabled:a,onClick:()=>i(void 0),children:`Empezar sin tocar ${q8(t)}`}),o.jsx(Le,{type:"button",variant:"outline",className:Rt.cancelar,onClick:u,children:"Cancelar"})]})]})}function yJ({clave:e,nombreDelGestor:t,comentario:n,transiciones:r,errorTransiciones:a,enviando:l,error:i,alConfirmar:u,alCancelar:d}){var C;const[m,v]=S.useState(n),[f,h]=F8(r),b=(r==null?void 0:r.lista)??[],y=(C=b.find(N=>N.id===f))==null?void 0:C.destino,j=m.trim()==="";return o.jsxs(O8,{titulo:`Cerrar ${s4(e)} en ${q8(t)}`,alCancelar:d,children:[o.jsxs("label",{className:Rt.campo,children:["Comentario",o.jsx("textarea",{className:Rt.textarea,rows:5,value:m,onChange:N=>v(N.target.value)})]}),r!==void 0||a===void 0?null:o.jsx("p",{className:Rt.error,role:"alert",children:`No se pudieron consultar las transiciones: ${a}`}),b.length===0?null:o.jsxs("label",{className:Rt.campo,children:["Transición",o.jsxs("select",{className:Rt.select,value:f,onChange:N=>h(N.target.value),children:[o.jsx("option",{value:"",children:"Ninguna"}),b.map(N=>o.jsx("option",{value:N.id,children:N.nombre},N.id))]})]}),i===void 0?null:o.jsx("p",{className:Rt.error,role:"alert",children:i}),o.jsxs("div",{className:Rt.acciones,children:[y===void 0?null:o.jsx(Le,{type:"button",variant:"primary",className:Rt.principal,disabled:l||j,onClick:()=>u(m,f),children:`Comentar y pasar a ${y}`}),o.jsx(Le,{type:"button",variant:"outline",className:Rt.accion,disabled:l||j,onClick:()=>u(m,void 0),children:"Solo comentar"}),o.jsx(Le,{type:"button",variant:"outline",className:Rt.cancelar,onClick:d,children:"Cancelar"})]})]})}function xJ({ticket:e,nombreDelGestor:t,ocupado:n,conectado:r,alPedir:a}){return o.jsxs("div",{className:Rt.barraDeTicket,children:[o.jsx("span",{className:Rt.ticket,title:e,children:s4(e)}),o.jsx("button",{type:"button",className:Rt.accion,onClick:a,disabled:!r||n,children:n?"Preparando…":t===void 0?"Cerrar la tarea":`Cerrar en ${t}`})]})}function B5({texto:e,alCerrar:t}){return o.jsxs("div",{className:Rt.avisoDelGestor,role:"status",children:[o.jsx("span",{children:e}),o.jsx("button",{type:"button",className:Rt.cerrarAviso,onClick:t,"aria-label":"Descartar el aviso",children:"×"})]})}const _J="_cabecera_1lp5d_11",wJ="_pastillas_1lp5d_20",jJ="_pastilla_1lp5d_20",CJ="_acciones_1lp5d_58",kJ="_secundario_1lp5d_64 _secundario_1l1rx_39",NJ="_primario_1lp5d_69 _primario_1l1rx_67",SJ="_borrar_1lp5d_77 _peligro_1l1rx_18",$J="_negativa_1lp5d_82",AJ="_tira_1lp5d_92",EJ="_textoDeTira_1lp5d_122",DJ="_girando_1lp5d_130 _girando_jnvvl_174",zJ="_bloque_1lp5d_139 _equipo_tqt2p_8",TJ="_tituloDeBloque_1lp5d_148 _titulo_tqt2p_22",MJ="_vacio_1lp5d_156",LJ="_filaDeModo_1lp5d_164",IJ="_notaDeModo_1lp5d_173",on={cabecera:_J,pastillas:wJ,pastilla:jJ,acciones:CJ,secundario:kJ,primario:NJ,borrar:SJ,negativa:$J,tira:AJ,textoDeTira:EJ,girando:DJ,bloque:zJ,tituloDeBloque:TJ,vacio:MJ,filaDeModo:LJ,notaDeModo:IJ};function RJ({nombre:e,alConfirmar:t,alCerrar:n}){const[r,a]=S.useState(""),[l,i]=S.useState(!1),[u,d]=S.useState(void 0),m=r.trim()===e,v=async()=>{i(!0),d(void 0);const f=await t().catch(()=>"no se pudo hablar con el servidor");i(!1),d(f)};return o.jsx(lr,{open:!0,onClose:n,title:"Borrar copia local",headless:!0,className:ye.capa,children:o.jsx("div",{className:ye.velo,onClick:f=>{f.target===f.currentTarget&&!l&&n()},children:o.jsxs("div",{className:ye.ventana,role:"alertdialog","aria-label":`Borrar la copia local de ${e}`,children:[o.jsx("h2",{className:ye.titulo,children:"Borrar copia local"}),o.jsxs("p",{className:ye.nota,children:["Se borra la copia de «",e,"» en este equipo, entera: ",o.jsx("strong",{children:"todas sus sesiones"}),", su historial de conversación, los artefactos y ",o.jsx("strong",{children:"los cambios que no hayas subido a CloudStudio"}),". No hay papelera."]}),o.jsx("p",{className:ye.nota,children:"Lo que hay en CloudStudio no se toca: el proyecto seguirá en la lista, sin descargar, y se volverá a bajar al abrirlo."}),o.jsxs("label",{className:ye.etiqueta,htmlFor:"borrar-copia-nombre",children:["Escribe «",e,"» para confirmar"]}),o.jsx("input",{id:"borrar-copia-nombre",className:ye.campo,value:r,autoFocus:!0,autoComplete:"off",spellCheck:!1,onChange:f=>a(f.target.value),onKeyDown:f=>{f.key==="Enter"&&m&&!l&&v()}}),u===void 0?null:o.jsxs("p",{className:ye.fallo,role:"alert",children:["No se ha borrado: ",u]}),o.jsxs("div",{className:ye.acciones,children:[o.jsx(Le,{variant:"outline",className:ye.accion,disabled:l,onClick:n,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:tt(ye.accion,ye.principal,Pm.destructiva),disabled:!m||l,onClick:()=>void v(),children:l?"Borrando…":"Borrar"})]})]})})})}const PJ="_gasto_42egi_6",qJ="_totales_42egi_12",FJ="_total_42egi_12",OJ="_rotulo_42egi_25",BJ="_cifra_42egi_34",HJ="_unidad_42egi_41",UJ="_cache_42egi_42",VJ="_alcance_42egi_48",GJ="_leyenda_42egi_54",WJ="_muestra_42egi_70",ZJ="_segmento_42egi_77",QJ="_lienzo_42egi_88",XJ="_maximo_42egi_93",YJ="_columnas_42egi_102",KJ="_columna_42egi_102",JJ="_pila_42egi_134",eee="_tooltip_42egi_154",tee="_tituloTooltip_42egi_171",nee="_fechaTooltip_42egi_178",ree="_tabla_42egi_184",Gt={gasto:PJ,totales:qJ,total:FJ,rotulo:OJ,cifra:BJ,unidad:HJ,cache:UJ,alcance:VJ,leyenda:GJ,muestra:WJ,segmento:ZJ,lienzo:QJ,maximo:XJ,columnas:YJ,columna:KJ,pila:JJ,tooltip:eee,tituloTooltip:tee,fechaTooltip:nee,tabla:ree};function aee({datos:e}){const[t,n]=S.useState(void 0),{barras:r,total:a,conGasto:l,sinGasto:i,hayExterno:u}=e,d=Math.max(1,...r.map(v=>v.modelo.tokens+v.externo.tokens)),m=r.find(v=>v.id===t);return o.jsxs("div",{className:Gt.gasto,children:[o.jsxs("dl",{className:Gt.totales,children:[o.jsxs("div",{className:Gt.total,children:[o.jsx("dt",{className:Gt.rotulo,children:u?"Modelo":"Total"}),o.jsxs("dd",{className:Gt.cifra,children:[Mt(a.modelo.tokens)," ",o.jsx("span",{className:Gt.unidad,children:"tokens"}),a.modelo.cache>0?o.jsxs("span",{className:Gt.cache,children:[" · ",Mt(a.modelo.cache)," de caché"]}):null]})]}),u?o.jsxs("div",{className:Gt.total,children:[o.jsx("dt",{className:Gt.rotulo,children:"Agente externo"}),o.jsxs("dd",{className:Gt.cifra,children:[Mt(a.externo.tokens)," ",o.jsx("span",{className:Gt.unidad,children:"tokens"}),a.externo.cache>0?o.jsxs("span",{className:Gt.cache,children:[" · ",Mt(a.externo.cache)," de caché"]}):null]})]}):null]}),o.jsxs("p",{className:Gt.alcance,children:["de ",l," ",l===1?"sesión":"sesiones",i>0?` · ${i} sin gasto que conste, fuera del total`:""]}),u?o.jsxs("ul",{className:Gt.leyenda,"aria-label":"leyenda",children:[o.jsxs("li",{children:[o.jsx("span",{className:Gt.muestra,"data-serie":"modelo","aria-hidden":"true"}),"Modelo"]}),o.jsxs("li",{children:[o.jsx("span",{className:Gt.muestra,"data-serie":"externo","aria-hidden":"true"}),"Agente externo"]})]}):null,o.jsxs("div",{className:Gt.lienzo,children:[o.jsx("span",{className:Gt.maximo,"aria-hidden":"true",children:Mt(d)}),o.jsx("div",{className:Gt.columnas,role:"img","aria-label":`Tokens de las ${r.length} últimas sesiones con gasto: la mayor, ${Mt(d)}.`,children:r.map(v=>o.jsx(oee,{barra:v,maximo:d,hayExterno:u,alEnfocar:()=>n(v.id),alSoltar:()=>n(f=>f===v.id?void 0:f)},v.id))}),m===void 0?null:o.jsxs("div",{className:Gt.tooltip,role:"status",children:[o.jsx("strong",{className:Gt.tituloTooltip,children:u2(m)}),m.ultimoTurno===void 0?null:o.jsx("span",{className:Gt.fechaTooltip,children:Qc(m.ultimoTurno)}),o.jsx("span",{children:B8(m,u)})]})]}),o.jsxs("details",{className:Gt.tabla,children:[o.jsx("summary",{children:"Ver como tabla"}),o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"Sesión"}),o.jsx("th",{scope:"col",children:"Último turno"}),o.jsx("th",{scope:"col",children:u?"Modelo":"Tokens"}),u?o.jsx("th",{scope:"col",children:"Agente externo"}):null,o.jsx("th",{scope:"col",children:"Caché"})]})}),o.jsx("tbody",{children:[...r].reverse().map(v=>o.jsxs("tr",{children:[o.jsx("td",{children:u2(v)}),o.jsx("td",{children:v.ultimoTurno===void 0?"—":Qc(v.ultimoTurno)}),o.jsx("td",{children:Mt(v.modelo.tokens)}),u?o.jsx("td",{children:Mt(v.externo.tokens)}):null,o.jsx("td",{children:Mt(v.modelo.cache+v.externo.cache)})]},v.id))})]})]})]})}function u2(e){return e.titulo===""?"Sin título":e.titulo}function B8(e,t){const n=e.modelo.cache+e.externo.cache;return[...t?[`modelo ${Mt(e.modelo.tokens)}`,`externo ${Mt(e.externo.tokens)}`]:[`${Mt(e.modelo.tokens)} tokens`],...n>0?[`${Mt(n)} de caché`]:[]].join(" · ")}function oee({barra:e,maximo:t,hayExterno:n,alEnfocar:r,alSoltar:a}){const l=i=>`${i/t*100}%`;return o.jsx("span",{className:Gt.columna,tabIndex:0,"aria-label":`${u2(e)}: ${B8(e,n)}`,onMouseEnter:r,onMouseLeave:a,onFocus:r,onBlur:a,children:o.jsxs("span",{className:Gt.pila,children:[e.externo.tokens>0?o.jsx("span",{className:Gt.segmento,"data-serie":"externo",style:{height:l(e.externo.tokens)}}):null,e.modelo.tokens>0?o.jsx("span",{className:Gt.segmento,"data-serie":"modelo",style:{height:l(e.modelo.tokens)}}):null]})})}const see=10,H5={entrada:0,salida:0,cache:0};function c0(e,t){const n=e==="modelo"?r2(t.modelo,H5):r2(H5,t.externo);return{tokens:n.nueva+n.salida,cache:n.cache}}const U5=(e,t)=>({tokens:e.tokens+t.tokens,cache:e.cache+t.cache});function iee(e){const t=e.filter(l=>l.consumo!==void 0),n={tokens:0,cache:0},r=t.reduce((l,i)=>({modelo:U5(l.modelo,c0("modelo",i.consumo)),externo:U5(l.externo,c0("externo",i.consumo))}),{modelo:n,externo:n});return{barras:l8(t).slice(0,see).reverse().map(l=>({id:l.id,titulo:l.titulo,...l.ultimoTurno===void 0?{}:{ultimoTurno:l.ultimoTurno},modelo:c0("modelo",l.consumo),externo:c0("externo",l.consumo)})),total:r,conGasto:t.length,sinGasto:e.length-t.length,hayExterno:t.some(l=>c0("externo",l.consumo).tokens>0)}}function lee({proyecto:e,conectado:t,alDescargar:n,alAbrirCarpeta:r,alBorrarCopia:a,alPedirResumen:l,alFijarModoDelProyecto:i,modoGlobal:u,subida:d,marcaDeSubida:m,alVerPendientes:v}){var L;const f=t===!1,[h,b]=S.useState(!1),[y,j]=S.useState(void 0),[C,N]=S.useState(void 0),z=S.useRef(e.id);z.current=e.id;const E=()=>{const U=e.id;e.local===!0&&(N({proyecto:U,respondida:!1}),l(U).catch(()=>{}).then(W=>{z.current===U&&N({proyecto:U,respondida:!0,...W===void 0?{}:{foto:W}})}))};S.useEffect(E,[e.id,e.local]);const P=S.useRef(m);S.useEffect(()=>{P.current!==m&&(P.current=m,E())},[m]);const M=(C==null?void 0:C.proyecto)===e.id?C:void 0;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:on.cabecera,role:"group","aria-label":"Copia local",children:[o.jsxs("div",{className:on.pastillas,children:[e.local===!0?o.jsxs("span",{className:on.pastilla,"data-estado":"local",children:[o.jsx(V2,{size:14}),"en tu equipo"]}):o.jsxs("span",{className:on.pastilla,"data-estado":"sin-descargar",children:[o.jsx(O7,{size:14}),"sin descargar"]}),e.compartido===!0?o.jsxs("span",{className:on.pastilla,"data-estado":"compartido",children:[o.jsx(X2,{size:14}),"compartido contigo"]}):null]}),e.local===!0?o.jsxs("div",{className:on.acciones,children:[o.jsx("button",{type:"button",className:on.secundario,disabled:f,title:"Abre la carpeta del proyecto en el explorador de ficheros de este equipo",onClick:async()=>{j(void 0),j(await r(e.id).catch(()=>"no se pudo hablar con el servidor"))},children:"Abrir carpeta"}),o.jsx("button",{type:"button",className:on.borrar,disabled:f,onClick:()=>b(!0),children:"Borrar copia local"})]}):o.jsx("div",{className:on.acciones,children:o.jsx("button",{type:"button",className:on.primario,disabled:f,onClick:n,children:"Descargar"})})]}),y===void 0?null:o.jsxs("p",{className:on.negativa,role:"alert",children:["No se ha abierto la carpeta: ",y]}),e.local===!0?o.jsxs(o.Fragment,{children:[o.jsx(dee,{medida:M,apagado:f,alActualizar:E,...d===void 0?{}:{subida:d},...v===void 0?{}:{alVerPendientes:v}}),((L=M==null?void 0:M.foto)==null?void 0:L.modoDeEscritura)===void 0||i===void 0?null:o.jsx(uee,{guardado:M.foto.modoDeEscritura.proyecto,...u===void 0?{}:{modoGlobal:u},apagado:f,alFijar:async U=>{const W=e.id,O=await i(W,U).catch(()=>({motivo:"no se pudo hablar con el servidor"}));return"guardado"in O&&z.current===W&&N(q=>(q==null?void 0:q.proyecto)!==W||q.foto===void 0?q:{...q,foto:{...q.foto,modoDeEscritura:O.guardado}}),"motivo"in O?O.motivo:void 0}}),o.jsxs("section",{className:on.bloque,"aria-label":"Gasto del proyecto",children:[o.jsx("h2",{className:on.tituloDeBloque,children:"Gasto"}),o.jsx(pee,{sesiones:e.sesiones??[]})]})]}):null,h?o.jsx(RJ,{nombre:e.nombre,alCerrar:()=>b(!1),alConfirmar:async()=>{const U=await a(e.id);return U===void 0&&b(!1),U}}):null]})}const cee={supervisado:"Supervisado",autonomo:"Autónomo"};function uee({guardado:e,modoGlobal:t,apagado:n,alFijar:r}){const[a,l]=S.useState(!1),[i,u]=S.useState(void 0);return o.jsxs("section",{className:on.bloque,"aria-label":"Conversaciones nuevas",children:[o.jsx("h2",{className:on.tituloDeBloque,children:"Conversaciones nuevas"}),o.jsxs("label",{className:on.filaDeModo,children:[o.jsx("span",{children:"Empiezan en"}),o.jsxs(us,{value:e??"global",disabled:n||a,cargando:a,onChange:d=>{const m=d.target.value,v=m==="supervisado"||m==="autonomo"?m:void 0;u(void 0),l(!0),r(v).then(f=>{l(!1),u(f)})},children:[o.jsx("option",{value:"global",children:t===void 0?"Como el global":`Como el global (${cee[t]})`}),o.jsx("option",{value:"supervisado",children:"Supervisado en este proyecto"}),o.jsx("option",{value:"autonomo",children:"Autónomo en este proyecto"})]})]}),o.jsx("p",{className:on.notaDeModo,children:"Solo decide cómo empiezan las conversaciones nuevas de este proyecto; en cada una se puede cambiar en la caja del chat. El global está en Ajustes > General."}),i===void 0?null:o.jsxs("p",{className:on.negativa,role:"alert",children:["No se ha guardado: ",i]})]})}function dee({medida:e,apagado:t,alActualizar:n,subida:r,alVerPendientes:a}){var d;const l=(d=e==null?void 0:e.foto)==null?void 0:d.sync;let i,u;return e===void 0||!e.respondida?(u="midiendo",i=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:on.girando,"aria-hidden":"true"}),"midiendo lo que queda por subir…"]})):e.foto===void 0?(u="error",i="No se ha podido medir lo que queda por subir."):l===void 0||l.proyecto===void 0?(u="sin-vincular",i="No está vinculado a CloudStudio: no hay nada con lo que comparar."):l.error!==void 0?(u="error",i=`No se ha podido medir: ${l.error}`):l.pendientes===void 0?(u="error",i="No se ha podido medir lo que queda por subir."):l.pendientes===0?(u="al-dia",i="Nada por subir: la copia está igual que la rama en CloudStudio."):(u="pendientes",i=o.jsxs("span",{title:"Ficheros distintos de lo que consta en CloudStudio. Un renombrado cuenta como dos; un fichero nuevo que git aún no sigue no cuenta.",children:[o.jsxs("strong",{children:[l.pendientes," ",l.pendientes===1?"fichero":"ficheros"]})," ","con cambios sin subir",l.rama===void 0?"":` a «${l.rama}»`]})),o.jsxs("div",{className:on.tira,"data-estado":u,role:"status",children:[o.jsx("span",{className:on.textoDeTira,children:i}),a!==void 0&&u==="pendientes"?o.jsx("button",{type:"button",className:on.secundario,onClick:a,children:"Ver cambios"}):null,r!==void 0&&(u==="pendientes"||r.esperando)?o.jsx(P8,{subida:r,className:on.primario,apagado:t}):null,o.jsxs("button",{type:"button",className:on.secundario,disabled:t||(e==null?void 0:e.respondida)===!1,"aria-busy":(e==null?void 0:e.respondida)===!1,onClick:n,children:[(e==null?void 0:e.respondida)===!1?o.jsx(Wi,{}):null,"Actualizar"]})]})}function pee({sesiones:e}){const t=iee(e);return t.conGasto===0?o.jsx("p",{className:on.vacio,children:"Todavía no consta gasto en este proyecto."}):o.jsx(aee,{datos:t})}const mee="_soporte_11ydl_5",hee="_barra_11ydl_11",fee="_principal_11ydl_19 _primario_1l1rx_67",gee="_secundario_11ydl_24 _secundario_1l1rx_39",vee="_filtro_11ydl_33",bee="_aviso_11ydl_41",yee="_error_11ydl_48",xee="_grupo_11ydl_54",_ee="_tituloDeGrupo_11ydl_60",wee="_lista_11ydl_66",jee="_fila_11ydl_77",Cee="_cabecera_11ydl_81",kee="_insignia_11ydl_91",Nee="_titulo_11ydl_60",See="_dato_11ydl_140",$ee="_exportar_11ydl_148 _secundario_1l1rx_39",Aee="_hallazgos_11ydl_154",Eee="_turno_11ydl_168",En={soporte:mee,barra:hee,principal:fee,secundario:gee,filtro:vee,aviso:bee,error:yee,grupo:xee,tituloDeGrupo:_ee,lista:wee,fila:jee,cabecera:Cee,insignia:kee,titulo:Nee,dato:See,exportar:$ee,hallazgos:Aee,turno:Eee};function nf(e,t,n){return`/soporte?${new URLSearchParams({tipo:t,proyecto:e,...n===void 0?{}:{id:n}}).toString()}`}function Dee(e){return e.analisis.hallazgos.filter(t=>t.gravedad!=="info").length}function zee(e){const t=Dee(e);return e.analisis.gravedad==="ok"?"sin problemas":e.analisis.gravedad==="error"?`${t} con error`:`${t} aviso${t===1?"":"s"}`}function V5(e){return e.titulo.trim()===""?"Sin título":e.titulo}function Tee(e){const t=e.ultimoTurno??e.creada;return t===void 0?void 0:t.slice(0,16).replace("T"," ")}const Mee={nuevo:"nueva","en-proceso":"en proceso","requiere-atencion":"requiere atención",terminada:"terminada"};function Lee({fila:e,url:t}){const[n,r]=S.useState(!1),a=e.analisis.hallazgos.length>0,l=Tee(e);return o.jsxs("li",{className:En.fila,children:[o.jsxs("div",{className:En.cabecera,children:[o.jsx("span",{className:En.insignia,"data-gravedad":e.analisis.gravedad,children:zee(e)}),a?o.jsx("button",{type:"button",className:En.titulo,"aria-expanded":n,onClick:()=>r(!n),children:V5(e)}):o.jsx("span",{className:En.titulo,children:V5(e)}),o.jsxs("span",{className:En.dato,children:[e.estado===void 0?null:`${Mee[e.estado]} · `,e.enVuelo===!0?"en marcha · ":null,l]}),o.jsx("a",{className:En.exportar,href:t,download:!0,children:"Exportar"})]}),n&&a?o.jsx("ul",{className:En.hallazgos,children:e.analisis.hallazgos.map((i,u)=>o.jsxs("li",{"data-gravedad":i.gravedad,children:[i.turno===void 0?null:o.jsxs("span",{className:En.turno,children:["turno ",i.turno]}),i.mensaje]},u))}):null]})}function G5({titulo:e,filas:t,vacio:n,url:r}){return o.jsxs("section",{className:En.grupo,"aria-label":e,children:[o.jsx("h2",{className:En.tituloDeGrupo,children:e}),t.length===0?o.jsx("p",{className:En.aviso,children:n}):o.jsx("ul",{className:En.lista,children:t.map(a=>o.jsx(Lee,{fila:a,url:r(a)},a.id))})]})}function Iee({proyecto:e,conectado:t,alPedir:n}){const[r,a]=S.useState(void 0),[l,i]=S.useState(!1),[u,d]=S.useState(0),m=S.useRef(n);m.current=n,S.useEffect(()=>{if(!t)return;let y=!0;return a({proyecto:e,respondida:!1}),m.current(e).then(j=>{y&&a({proyecto:e,respondida:!0,...j===void 0?{}:{listado:j}})}),()=>{y=!1}},[e,t,u]);const v=(r==null?void 0:r.proyecto)===e?r:void 0,f=v==null?void 0:v.listado,h=v!==void 0&&!v.respondida,b=y=>l?y.filter(j=>j.analisis.gravedad!=="ok"):y;return o.jsxs("div",{className:En.soporte,children:[o.jsxs("div",{className:En.barra,children:[o.jsx("a",{className:En.principal,href:nf(e,"proyecto"),download:!0,children:"Exportar proyecto"}),o.jsxs("label",{className:En.filtro,children:[o.jsx("input",{type:"checkbox",checked:l,onChange:y=>i(y.target.checked)}),"Solo con problemas"]}),o.jsxs("button",{type:"button",className:En.secundario,disabled:!t||h,"aria-busy":h,onClick:()=>d(y=>y+1),children:[h?o.jsx(Wi,{}):null,"Actualizar"]})]}),o.jsx("p",{className:En.aviso,children:"El paquete lleva el código, las sesiones, sus trazas y la memoria del agente; nunca el .env, el historial de git ni las credenciales. Puede incluir rutas de tu equipo."}),v===void 0||!v.respondida?o.jsx("p",{className:En.aviso,role:"status",children:"Analizando…"}):f===void 0?o.jsx("p",{className:En.error,role:"status",children:"No se pudo pedir el análisis al servidor."}):o.jsxs(o.Fragment,{children:[o.jsx(G5,{titulo:"Chats",filas:b(f.chats),vacio:l?"Ningún chat con problemas.":"Este proyecto no tiene chats.",url:y=>nf(e,"chat",y.id)}),o.jsx(G5,{titulo:"Tareas",filas:b(f.tareas),vacio:l?"Ninguna tarea con problemas.":"Este proyecto no tiene tareas en background.",url:y=>nf(e,"tarea",y.id)})]})]})}const Ree="_panel_1gkhw_8",Pee="_cabecera_1gkhw_18",qee="_titular_1gkhw_23",Fee="_iconoDeApp_1gkhw_30",Oee="_nombre_1gkhw_37",Bee="_meta_1gkhw_44",Hee="_trabajando_1gkhw_54",Uee="_cuerpo_1gkhw_68",Vee="_seccion_1gkhw_75",Gee="_encabezado_1gkhw_82",Wee="_titulo_1gkhw_90",Zee="_aviso_1gkhw_96",Qee="_error_1gkhw_103",Xee="_nota_1gkhw_109",Yee="_lista_1gkhw_114",Kee="_plan_1gkhw_146",Jee="_nombreDePlan_1gkhw_154",ete="_busqueda_1gkhw_158",tte="_campo_1gkhw_164",nte="_tarea_1gkhw_179",rte="_filaDeTarea_1gkhw_183",ate="_datos_1gkhw_197",ote="_lineaPrincipal_1gkhw_205",ste="_lineaSecundaria_1gkhw_212",ite="_clave_1gkhw_219",lte="_abrirFuera_1gkhw_227",cte="_desplegar_1gkhw_239",ute="_estado_1gkhw_255",dte="_accionesDeTarea_1gkhw_268",pte="_ficha_1gkhw_289",mte="_filtros_1gkhw_298",hte="_pastilla_1gkhw_304",fte="_cuenta_1gkhw_335",gte="_consultado_1gkhw_342",vte="_icono_1gkhw_30",bte="_avisoConAcciones_1gkhw_374",yte="_conector_1gkhw_381",xte="_filaDeConector_1gkhw_389",_te="_casilla_1gkhw_396",wte="_interruptor_1gkhw_406",jte="_bolita_1gkhw_433",Cte="_huecoDeInterruptor_1gkhw_449",kte="_tituloDeConector_1gkhw_454",Nte="_alFinal_1gkhw_459",Ste="_vinculo_1gkhw_467",$te="_vinculoNotion_1gkhw_477",Ate="_base_1gkhw_486",Ete="_esquema_1gkhw_517",Dte="_lineaDelEsquema_1gkhw_523",zte="_principal_1gkhw_528 _primario_1l1rx_67",Tte="_accion_1gkhw_268 _secundario_1l1rx_39",Mte="_peligro_1gkhw_536 _peligro_1l1rx_18",Lte="_sincronizacion_1gkhw_543",pe={panel:Ree,cabecera:Pee,titular:qee,iconoDeApp:Fee,nombre:Oee,meta:Bee,trabajando:Hee,cuerpo:Uee,seccion:Vee,encabezado:Gee,titulo:Wee,aviso:Zee,error:Qee,nota:Xee,lista:Yee,plan:Kee,nombreDePlan:Jee,busqueda:ete,campo:tte,tarea:nte,filaDeTarea:rte,datos:ate,lineaPrincipal:ote,lineaSecundaria:ste,clave:ite,abrirFuera:lte,desplegar:cte,estado:ute,accionesDeTarea:dte,ficha:pte,filtros:mte,pastilla:hte,cuenta:fte,consultado:gte,icono:vte,avisoConAcciones:bte,conector:yte,filaDeConector:xte,casilla:_te,interruptor:wte,bolita:jte,huecoDeInterruptor:Cte,tituloDeConector:kte,alFinal:Nte,vinculo:Ste,vinculoNotion:$te,base:Ate,esquema:Ete,lineaDelEsquema:Dte,principal:zte,accion:Tte,peligro:Mte,sincronizacion:Lte};function Fm(e,t){var n;if(t!==void 0)return(n=e==null?void 0:e.catalogo.find(r=>r.id===t))==null?void 0:n.nombre}function cm(e){return e.proyecto.startsWith("collection://")?e.nombreDelProyecto:e.proyecto}const W5=[{id:"resumen",etiqueta:"Resumen"},{id:"sincronizacion",etiqueta:"Sincronización"},{id:"tareas",etiqueta:"Tareas"},{id:"conectores",etiqueta:"Conectores"},{id:"soporte",etiqueta:"Soporte"}];function Z5({nombre:e,entorno:t,rama:n,planes:r,copia:a,tareasEnFondo:l,sincronizacion:i,gestor:u,conectores:d,conectado:m,turnoEnVuelo:v=!1,empezarEnVuelo:f,alVolverAlChat:h,alGestor:b,alAutorizarConector:y,alProbarConector:j,alAbrirAjustesDeConectores:C,alPedirSoporte:N}){var Se,ge,Oe,be,Te;const[z,E]=S.useState("resumen"),P=a!==void 0&&a.proyecto.local!==!0,M=!P&&a!==void 0&&N!==void 0,L=P?W5.filter(Ee=>Ee.id==="resumen"):W5.filter(Ee=>(Ee.id!=="soporte"||M)&&(Ee.id!=="sincronizacion"||i!==void 0)),U=S.useRef({}),W=S.useRef(new WeakSet),O=(Ee,rt)=>{var Jt;U.current[Ee.accion]=Ee;const Nt=(Jt=u==null?void 0:u.errores)==null?void 0:Jt[Ee.accion];Nt!==void 0&&W.current.add(Nt),rt===void 0?b(Ee):b(Ee,rt)},q=Ee=>{var Nt,Jt;if(Ee==="pendientes")return(Jt=(Nt=u==null?void 0:u.estado)==null?void 0:Nt.vinculo)==null?void 0:Jt.conector;const rt=U.current[Ee];return rt!==void 0&&"conector"in rt?rt.conector:void 0};Bte({gestor:u,conectores:d,conectado:m,ultimas:U.current,repetidos:W.current,conectorDelFallo:q,pedir:O});const[F,K]=S.useState(void 0),le=(Se=u==null?void 0:u.errores)==null?void 0:Se.empezar,me=(ge=u==null?void 0:u.errores)==null?void 0:ge.transiciones,ne=(Oe=u==null?void 0:u.borrador)==null?void 0:Oe.id;S.useEffect(()=>{ne!==void 0&&K(void 0)},[ne]),S.useEffect(()=>{m||K(void 0)},[m]),S.useEffect(()=>{m&&!P&&O({accion:"estado"})},[m]);const ce=S.useRef({}),Ae=Ee=>{K(Ee),ce.current={empezar:le,transiciones:me},O({accion:"transiciones",clave:Ee,para:"empezar"})},de=u==null?void 0:u.transiciones,te=de!==void 0&&de.clave===F&&de.para==="empezar"?de:void 0,I=le!==ce.current.empezar?le:void 0,V=me!==ce.current.transiciones?me:void 0,ie=Ee=>{var Nt;if(F===void 0)return;const rt=Ee===void 0||(Nt=te==null?void 0:te.lista.find(Jt=>Jt.id===Ee))==null?void 0:Nt.destino;O({accion:"empezar",clave:F,...Ee===void 0?{}:{transicion:Ee}},{destino:rt})},T=Fm(d,(Te=(be=u==null?void 0:u.estado)==null?void 0:be.vinculo)==null?void 0:Te.conector);return o.jsxs("section",{className:pe.panel,"aria-label":`Proyecto ${e}`,children:[o.jsxs("header",{className:pe.cabecera,children:[(a==null?void 0:a.proyecto.icono)===!0?o.jsxs("div",{className:pe.titular,children:[o.jsx(i8,{id:a.proyecto.id,lado:32,className:pe.iconoDeApp}),o.jsx("h1",{className:pe.nombre,children:e})]}):o.jsx("h1",{className:pe.nombre,children:e}),t===void 0&&n===void 0?null:o.jsxs("p",{className:pe.meta,children:[t===void 0?null:o.jsx("span",{children:`Entorno: ${t}`}),n===void 0?null:o.jsx("span",{children:`Rama: ${n}`})]})]}),v?o.jsxs("div",{className:pe.trabajando,role:"status",children:[o.jsx("span",{children:"El agente está trabajando en esta sesión."}),h===void 0?null:o.jsx("button",{type:"button",className:pe.accion,onClick:h,children:"Volver al chat"})]}):null,o.jsx("div",{className:Il.cabecera,children:o.jsx("div",{className:tt(vn.tabs,Il.tira),role:"tablist","aria-label":"Vistas del proyecto",children:L.map(Ee=>o.jsx("button",{type:"button",role:"tab","aria-selected":z===Ee.id,className:tt(vn.tab,Il.pestana,z===Ee.id&&vn.tabActive),onClick:()=>E(Ee.id),children:Ee.etiqueta},Ee.id))})}),o.jsx("div",{className:pe.cuerpo,role:"tabpanel",children:z==="resumen"||P?o.jsxs(o.Fragment,{children:[a===void 0?null:o.jsx(lee,{proyecto:a.proyecto,conectado:m,alDescargar:a.alDescargar,alAbrirCarpeta:a.alAbrirCarpeta,alBorrarCopia:a.alBorrarCopia,alPedirResumen:a.alPedirResumen,...a.alFijarModoDelProyecto===void 0?{}:{alFijarModoDelProyecto:a.alFijarModoDelProyecto},...a.modoGlobal===void 0?{}:{modoGlobal:a.modoGlobal},...a.subida===void 0?{}:{subida:a.subida},...a.marcaDeSubida===void 0?{}:{marcaDeSubida:a.marcaDeSubida},...i===void 0?{}:{alVerPendientes:()=>E("sincronizacion")}}),P?o.jsx("p",{className:pe.aviso,children:"Tareas y Conectores aparecen cuando el proyecto está descargado: los dos trabajan sobre la copia abierta."}):o.jsx(Ite,{...r===void 0?{}:{planes:r}})]}):z==="sincronizacion"&&i!==void 0?o.jsx("div",{className:pe.sincronizacion,children:i}):z==="tareas"?o.jsxs(o.Fragment,{children:[l===void 0?null:o.jsxs("section",{className:pe.seccion,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:pe.titulo,children:"Tareas en background"}),l]}),o.jsx(Gte,{gestor:u,conectado:m,ocupado:F!==void 0||f,turnoEnVuelo:v,...d===void 0?{}:{conectores:d},alGestor:O,alAutorizar:y,alEmpezar:Ae,alIrAConectores:()=>E("conectores"),alAbrirAjustes:C})]}):z==="soporte"&&M?o.jsx(Iee,{proyecto:a.proyecto.id,conectado:m,alPedir:N}):o.jsx(Xte,{gestor:u,conectores:d,conectado:m,alGestor:O,alAutorizar:y,alProbar:j,conectorDelFallo:q,alAbrirAjustes:C})}),F===void 0?null:o.jsx(bJ,{clave:F,...T===void 0?{}:{nombreDelGestor:T},...te===void 0?{}:{transiciones:te},...V===void 0?{}:{errorTransiciones:V.motivo},enviando:f,...f||I===void 0?{}:{error:I.motivo},alConfirmar:ie,alCancelar:()=>K(void 0)})]})}function Ite({planes:e}){const t=e==null?void 0:e.filter(Rte);return o.jsx(o.Fragment,{children:t===void 0||t.length===0?null:o.jsxs("section",{className:pe.seccion,"aria-label":"Planes",children:[o.jsx("h2",{className:pe.titulo,children:"Planes"}),o.jsx("ul",{className:pe.lista,children:t.map(n=>{var l,i;const r=((l=n.tareas)==null?void 0:l.tareas)??[],a=r.length>0&&r.every(u=>u.progreso!==void 0);return o.jsxs("li",{className:pe.plan,children:[o.jsx("span",{className:pe.nombreDePlan,children:((i=n.tareas)==null?void 0:i.titulo)??n.nombre}),a?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:pe.nota,children:n8(r)}),o.jsx(r8,{tareas:r})]}):null]},n.nombre)})})]})})}function Rte(e){return e.ficheros.includes("PLAN.md")&&e.ficheros.includes("TASKS.md")}const Pte="Hay un turno en marcha: con él en vuelo se volvería a la sesión que trabaja, no a una nueva. Espera a que termine o páralo.";function qte(e){return new Date(e).toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}function H8({error:e}){return e===void 0?null:o.jsx("p",{className:pe.error,role:"alert",children:e.motivo})}const Fte=["sitios","proyectos","buscarProyectos","describir","pendientes"];function i4(e){return/falta autorizar/.test(e)}function Ote(e){return/no está conectado/.test(e)}const Om=e=>{var t;return((t=e.prueba)==null?void 0:t.ok)===!0};function Bte({gestor:e,conectores:t,conectado:n,ultimas:r,repetidos:a,conectorDelFallo:l,pedir:i}){const u=S.useRef(void 0),d=t==null?void 0:t.conectores;S.useEffect(()=>{var h;if(d===void 0)return;const m=new Map(d.flatMap(b=>{var y;return((y=b.prueba)==null?void 0:y.ok)===!0?[[b.id,b.prueba.cuando]]:[]})),v=u.current;if(u.current=m,v===void 0||!n)return;const f=[...m].filter(([b,y])=>v.get(b)!==y).map(([b])=>b);if(f.length!==0)for(const b of Fte){const y=(h=e==null?void 0:e.errores)==null?void 0:h[b],j=r[b];if(y===void 0||j===void 0||a.has(y)||!i4(y.motivo))continue;const C=l(b);C===void 0||!f.includes(C)||i(j)}},[d])}function l4({error:e,conector:t,conectores:n,conectado:r,alAutorizar:a,alAbrirAjustes:l,sinDuplicarLaFila:i=!1,children:u}){var f;if(e===void 0)return null;const d=t===void 0||n==null?void 0:n.conectores.find(h=>h.id===t),m=d!==void 0&&i4(e.motivo)&&!(i&&!Om(d)),v=t===void 0?"":((f=n==null?void 0:n.catalogo.find(h=>h.id===t))==null?void 0:f.nombre)??t;return o.jsxs("div",{className:pe.avisoConAcciones,children:[o.jsx(H8,{error:e}),m?o.jsx("button",{type:"button",className:pe.accion,onClick:()=>a(d.id),disabled:!r||d.autorizando===!0,children:d.autorizando===!0?"Esperando al navegador…":`Conectar ${v}`}):null,Ote(e.motivo)?o.jsx("button",{type:"button",className:pe.accion,onClick:l,children:"Añádelo en Ajustes"}):null,u]})}const Hte=/PROBAR|PREPROD|REVIS|TEST/i,Ute=e=>!Hte.test(e),Q5={"por-hacer":0,"en-curso":1,terminada:2};function Vte(e){const t=new Map;for(const n of e){const r=t.get(n.estado);r===void 0?t.set(n.estado,{estado:n.estado,categoria:n.categoria,cuantas:1,orden:t.size}):r.cuantas++}return[...t.values()].sort((n,r)=>Q5[n.categoria]-Q5[r.categoria]||n.orden-r.orden).map(({estado:n,cuantas:r})=>({estado:n,cuantas:r}))}const X5=100,Y5=(e,t)=>t||e.mias!==!0?e:{...e.texto===void 0?{}:{texto:e.texto}},K5=e=>({accion:"pendientes",...e.texto===void 0||e.texto===""?{}:{texto:e.texto},...e.mias===!0?{mias:!0}:{}});function Gte({gestor:e,conectores:t,conectado:n,ocupado:r,turnoEnVuelo:a,alGestor:l,alAutorizar:i,alEmpezar:u,alIrAConectores:d,alAbrirAjustes:m}){var T,Se;const v=(T=e==null?void 0:e.estado)==null?void 0:T.vinculo,[f,h]=S.useState(""),[b,y]=S.useState(!1),[j,C]=S.useState({}),[N,z]=S.useState(void 0),E=S.useRef(void 0),P=S.useRef({}),M=ge=>{P.current=ge,l(K5(ge))},L=v===void 0?void 0:`${v.conector}|${v.sitio}|${v.proyecto}`,U=((Se=e==null?void 0:e.estado)==null?void 0:Se.admiteMias)===!0,W=S.useRef(void 0);S.useEffect(()=>{if(L===void 0)return;const ge=W.current!==void 0&&W.current!==L;W.current=L,ge&&(P.current={},h(""),y(!1),C({}),z(void 0)),l(K5(Y5(P.current,U))),!ge&&N!==void 0&&(E.current=void 0,l({accion:"ficha",clave:N}))},[L]);const O=(e==null?void 0:e.errores)??{},q=B0(O.pendientes===void 0?e==null?void 0:e.pendientes:O.pendientes,n);if((e==null?void 0:e.estado)===void 0)return O.estado===void 0?o.jsx("p",{className:pe.aviso,children:"Consultando el gestor de tareas…"}):o.jsx("p",{className:pe.error,role:"alert",children:`No se ha podido leer el gestor de tareas: ${O.estado.motivo}`});if(v===void 0)return o.jsxs("div",{className:pe.seccion,children:[o.jsx("p",{className:pe.aviso,children:"Este proyecto no tiene gestor de tareas."}),o.jsx("button",{type:"button",className:pe.accion,onClick:d,children:"Vincular en Conectores"})]});const F=e.pendientes,K=Fm(t,v.conector),le=()=>M({texto:f.trim(),mias:U&&b}),me=()=>M(Y5(P.current,U)),ne=()=>{y(!b),M({texto:f.trim(),mias:!b})},ce=ge=>{if(N===ge){z(void 0);return}z(ge),E.current=O.ficha,l({accion:"ficha",clave:ge})},Ae=F===void 0?[]:Vte(F.lista),de=ge=>j[ge]??Ute(ge),te=Ae.every(ge=>de(ge.estado)),I=F===void 0?[]:F.lista.filter(ge=>de(ge.estado)),V=e.ficha!==void 0&&e.ficha.clave===N?e.ficha:void 0,ie=O.ficha!==void 0&&O.ficha!==E.current&&O.ficha.clave===N?O.ficha:void 0;return o.jsxs("div",{className:pe.seccion,children:[o.jsxs("div",{className:pe.encabezado,children:[o.jsx("h2",{className:pe.titulo,children:`Pendientes de ${cm(v)??"la base vinculada"}`}),F===void 0?null:o.jsxs("span",{className:pe.consultado,children:[o.jsx("span",{className:pe.nota,children:`Consultado a las ${qte(F.cuando)}`}),o.jsx("button",{type:"button",className:pe.icono,"aria-label":"Actualizar",title:"Volver a consultar las pendientes",onClick:()=>{q.empezar(),me()},disabled:!n||q.esperando,"aria-busy":q.esperando,children:o.jsx("span",{className:q.esperando?`${x0.icono} ${x0.girando}`:x0.icono,children:o.jsx(LR,{})})})]})]}),o.jsxs("form",{className:pe.busqueda,role:"search",onSubmit:ge=>{ge.preventDefault(),le()},children:[o.jsx("input",{type:"search",className:pe.campo,"aria-label":"Buscar tareas",placeholder:"Buscar en las pendientes",value:f,onChange:ge=>h(ge.target.value)}),o.jsx("button",{type:"submit",className:pe.accion,disabled:!n,children:"Buscar"}),U?o.jsx("button",{type:"button",className:pe.pastilla,"aria-pressed":b,title:"Solo las asignadas a la cuenta con la que está conectado el gestor",onClick:ne,disabled:!n,children:"Asignadas a mí"}):null]}),o.jsx(l4,{...O.pendientes===void 0?{}:{error:O.pendientes},conector:v.conector,...t===void 0?{}:{conectores:t},conectado:n,alAutorizar:i,alAbrirAjustes:m,children:o.jsx("button",{type:"button",className:pe.accion,onClick:me,disabled:!n,children:"Reintentar"})}),F===void 0?O.pendientes===void 0?o.jsx("p",{className:pe.aviso,children:"Consultando las tareas…"}):null:F.lista.length===0?o.jsx("p",{className:pe.aviso,children:F.texto===void 0?"No hay tareas pendientes.":`No hay tareas pendientes que coincidan con «${F.texto}».`}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:pe.filtros,role:"group","aria-label":"Filtrar por estado",children:[o.jsxs("button",{type:"button",className:pe.pastilla,"aria-pressed":te,onClick:()=>{te||C(Object.fromEntries(Ae.map(ge=>[ge.estado,!0])))},children:["Todas ",o.jsx("span",{className:pe.cuenta,children:F.lista.length})]}),Ae.map(ge=>o.jsxs("button",{type:"button",className:pe.pastilla,"aria-pressed":de(ge.estado),onClick:()=>C({...j,[ge.estado]:!de(ge.estado)}),children:[ge.estado," ",o.jsx("span",{className:pe.cuenta,children:ge.cuantas})]},ge.estado))]}),F.lista.length>=X5?o.jsx("p",{className:pe.aviso,children:`Se muestran las ${X5} más recientes; afina con la búsqueda.`}):null,I.length===0?o.jsx("p",{className:pe.aviso,children:"Ninguna pendiente con estos filtros."}):o.jsx("ul",{className:pe.lista,children:I.map(ge=>o.jsx(Zte,{tarea:ge,...K===void 0?{}:{nombreDelGestor:K},conAsignado:F.mias!==!0,desplegada:N===ge.clave,...N===ge.clave&&V!==void 0?{descripcion:V.descripcion}:{},...N===ge.clave&&ie!==void 0?{errorDeFicha:ie}:{},conectado:n,ocupado:r,turnoEnVuelo:a,alAlternar:()=>ce(ge.clave),alEmpezar:()=>u(ge.clave)},ge.clave))})]})]})}const Wte="a, button, input, select, textarea, summary";function Zte({tarea:e,nombreDelGestor:t,conAsignado:n,desplegada:r,descripcion:a,errorDeFicha:l,conectado:i,ocupado:u,turnoEnVuelo:d,alAlternar:m,alEmpezar:v}){const f=`ficha-${e.clave}`,h=e.etiqueta??_0(e.clave)??e.clave,b=`Abrir ${h} en ${t??"el gestor"}`,y=j=>{j.target instanceof Element&&j.target.closest(Wte)!==null||m()};return o.jsxs("li",{className:pe.tarea,"data-categoria":e.categoria,children:[o.jsxs("div",{className:pe.filaDeTarea,onClick:y,children:[o.jsxs("div",{className:pe.datos,children:[o.jsxs("div",{className:pe.lineaPrincipal,children:[o.jsx("span",{className:pe.clave,children:h}),e.url===void 0?null:o.jsx("a",{className:pe.abrirFuera,href:e.url,target:"_blank",rel:"noreferrer","aria-label":b,title:b,children:o.jsx(MR,{})}),o.jsx("button",{type:"button",className:pe.desplegar,"aria-expanded":r,...r?{"aria-controls":f}:{},title:e.titulo,onClick:m,children:e.titulo})]}),o.jsxs("div",{className:pe.lineaSecundaria,children:[o.jsx("span",{className:pe.estado,children:e.estado}),!n||e.asignado===void 0?null:o.jsx("span",{className:pe.nota,children:e.asignado})]})]}),o.jsx("div",{className:pe.accionesDeTarea,children:o.jsx("button",{type:"button",className:pe.accion,onClick:v,disabled:!i||u||d,...d?{title:Pte}:{},"aria-label":`Nueva sesión con ${h}`,children:"Nueva sesión con esta tarea"})})]}),r?o.jsx("div",{className:pe.ficha,id:f,children:a!==void 0?a.trim()===""?o.jsx("p",{className:pe.aviso,children:"Esta tarea no tiene descripción."}):o.jsx(Ul,{text:Vl(a),codeLabels:Gl}):l!==void 0?o.jsx("p",{className:pe.error,role:"alert",children:`No se pudo leer la descripción: ${l.motivo}`}):o.jsx("p",{className:pe.aviso,children:"Consultando la descripción…"})}):null]})}const J5=["jira","notion"],Qte="notion";function Xte({gestor:e,conectores:t,conectado:n,alGestor:r,alAutorizar:a,alProbar:l,conectorDelFallo:i,alAbrirAjustes:u}){Yte(t==null?void 0:t.conectores,n,l);const d=(e==null?void 0:e.errores)??{},m=e==null?void 0:e.estado,v=o.jsxs(o.Fragment,{children:[["estado","usarConector","desvincular"].map(C=>o.jsx(H8,{...d[C]===void 0?{}:{error:d[C]}},C)),["vincular","sitios","proyectos"].map(C=>{const N=i(C);return o.jsx(l4,{...d[C]===void 0?{}:{error:d[C]},...N===void 0?{}:{conector:N},...t===void 0?{}:{conectores:t},conectado:n,alAutorizar:a,alAbrirAjustes:u,sinDuplicarLaFila:!0},C)})]});if(m===void 0||t===void 0)return o.jsxs("div",{className:pe.seccion,children:[v,d.estado===void 0?o.jsx("p",{className:pe.aviso,children:"Consultando los conectores…"}):null]});const f=C=>Fm(t,C)??C,h=m.vinculo,b=C=>t.conectores.find(N=>N.id===C),y=[...J5].sort((C,N)=>+(N===(h==null?void 0:h.conector))-+(C===(h==null?void 0:h.conector))).filter(C=>C===(h==null?void 0:h.conector)||b(C)!==void 0),j=t.conectores.filter(C=>!J5.includes(C.id));return o.jsxs("div",{className:pe.seccion,children:[v,o.jsxs("section",{className:pe.seccion,"aria-label":"Gestor de tareas",children:[o.jsx("h2",{className:pe.titulo,children:"Gestor de tareas"}),o.jsx("p",{className:pe.aviso,children:"De dónde salen las tareas de la pestaña Tareas. El proyecto tiene uno solo: vincular otro sustituye al que haya."}),y.length===0?o.jsx("p",{className:pe.aviso,children:"Ni Jira ni Notion están añadidos. Se añaden en Ajustes."}):o.jsx("ul",{className:pe.lista,children:y.map(C=>o.jsx(Kte,{id:C,nombre:f(C),...b(C)===void 0?{}:{fila:b(C)},gestor:e,conectores:t,...h===void 0?{}:{vinculo:h,nombreDelVinculado:f(h.conector)},conectado:n,alGestor:r,alAutorizar:a,alProbar:l,alAbrirAjustes:u},C))})]}),o.jsxs("section",{className:pe.seccion,"aria-label":"Conectores para el chat",children:[o.jsx("h2",{className:pe.titulo,children:"Conectores para el chat"}),o.jsx("p",{className:pe.aviso,children:"Los que usará el agente en el chat de este proyecto."}),j.length===0?o.jsx("p",{className:pe.aviso,children:"No hay otros conectores añadidos."}):o.jsx("ul",{className:pe.lista,children:j.map(C=>{const N=m.conectores.includes(C.id),z=Om(C)||N;return o.jsx("li",{className:pe.conector,children:o.jsxs("div",{className:pe.filaDeConector,children:[z?o.jsx("button",{type:"button",role:"switch","aria-checked":N,"aria-label":"Usar en este proyecto",title:N?"Lo usa el agente en este proyecto":"No lo usa el agente en este proyecto",className:pe.interruptor,disabled:!n,onClick:()=>r({accion:"usarConector",conector:C.id,usar:!N}),children:o.jsx("span",{className:pe.bolita,"aria-hidden":"true"})}):o.jsx("span",{className:pe.huecoDeInterruptor,"aria-hidden":"true"}),o.jsx(qm,{id:C.id,nombre:f(C.id)}),o.jsx("span",{className:pe.tituloDeConector,children:f(C.id)}),o.jsx("span",{className:pe.alFinal,children:o.jsx(U8,{fila:C,nombre:f(C.id),conectado:n,alAutorizar:a,alProbar:l})})]})},C.id)})})]}),t.conectores.length===0?o.jsxs("div",{className:pe.encabezado,children:[o.jsx("p",{className:pe.aviso,children:"No hay ningún conector añadido. Se añaden en Ajustes."}),o.jsx("button",{type:"button",className:pe.accion,onClick:u,children:"Abrir Ajustes"})]}):o.jsx("div",{children:o.jsx("button",{type:"button",className:pe.accion,onClick:u,children:"Añadir otro conector en Ajustes"})})]})}function U8({fila:e,nombre:t,conectado:n,alAutorizar:r,alProbar:a}){if(Om(e))return null;const l=e.estado==="falta-autorizar"||e.prueba!==void 0&&!e.prueba.ok&&i4(e.prueba.motivo);return e.autorizando===!0||l?o.jsx("button",{type:"button",className:pe.accion,onClick:()=>r(e.id),disabled:!n||e.autorizando===!0,"aria-label":`Conectar ${t}`,children:e.autorizando===!0?"Esperando al navegador…":"Conectar"}):e.prueba===void 0?o.jsx("span",{className:pe.nota,children:"Comprobando…"}):o.jsx("button",{type:"button",className:pe.accion,onClick:()=>a(e.id),disabled:!n,title:e.prueba.ok?void 0:e.prueba.motivo,"aria-label":`Probar ${t} de nuevo`,children:"Probar de nuevo"})}function Yte(e,t,n){const r=S.useRef(new Set);S.useEffect(()=>{if(!(!t||e===void 0))for(const a of e)a.prueba!==void 0||a.estado==="falta-autorizar"||a.autorizando===!0||r.current.has(a.id)||(r.current.add(a.id),n(a.id))},[e,t,n])}function Kte({id:e,nombre:t,fila:n,gestor:r,conectores:a,vinculo:l,nombreDelVinculado:i,conectado:u,alGestor:d,alAutorizar:m,alProbar:v,alAbrirAjustes:f}){const[h,b]=S.useState(!1),y=(l==null?void 0:l.conector)===e,j=l!==void 0&&!y,C=n!==void 0&&Om(n),N=l===void 0?void 0:`${l.conector}|${l.proyecto}`;S.useEffect(()=>b(!1),[N]);const z=j&&l!==void 0?`Vincular ${t} sustituirá a ${i??l.conector}${cm(l)===void 0?"":` (${cm(l)})`} como gestor de este proyecto.`:void 0,E=e==="jira"?o.jsx(ene,{gestor:r,conectado:u,alGestor:d,...z===void 0?{}:{sustituye:z}}):e==="notion"?o.jsx(nne,{gestor:r,conectores:a,nombre:t,conectado:u,alGestor:d,alAutorizar:m,alAbrirAjustes:f,...z===void 0?{}:{sustituye:z}}):null;return o.jsxs("li",{className:pe.conector,children:[o.jsxs("div",{className:pe.filaDeConector,children:[o.jsx(qm,{id:e,nombre:t}),o.jsx("span",{className:pe.tituloDeConector,children:t}),o.jsx("span",{className:pe.alFinal,children:n===void 0?null:o.jsx(U8,{fila:n,nombre:t,conectado:u,alAutorizar:m,alProbar:v})})]}),y&&l!==void 0?o.jsx(Jte,{vinculo:l,nombre:t,conectado:u,alGestor:d}):C?j&&!h?o.jsx("div",{className:pe.vinculo,children:o.jsx("button",{type:"button",className:pe.accion,onClick:()=>b(!0),disabled:!u,children:`Vincular ${t} en su lugar…`})}):E:null]})}function Jte({vinculo:e,nombre:t,conectado:n,alGestor:r}){const a=cm(e),l=e.proyecto.startsWith("collection://")?a===void 0?`Vinculado a una base de ${t}.`:`Vinculado a la base «${a}» de ${t}.`:`Vinculado a ${e.proyecto} en ${e.nombreDelSitio??e.sitio}.`;return o.jsxs("div",{className:pe.vinculo,children:[o.jsx("span",{children:l}),o.jsx("button",{type:"button",className:pe.peligro,onClick:()=>r({accion:"desvincular"}),disabled:!n,children:"Desvincular"})]})}function V8({texto:e}){return e===void 0?null:o.jsx("p",{className:pe.aviso,children:e})}function ene({gestor:e,conectado:t,alGestor:n,sustituye:r}){var f,h;const a=((f=e==null?void 0:e.sitios)==null?void 0:f.conector)==="jira"?e.sitios.lista:void 0,[l,i]=S.useState(""),[u,d]=S.useState(""),m=l!==""?l:(a==null?void 0:a.length)===1?a[0].id:"",v=((h=e==null?void 0:e.proyectos)==null?void 0:h.sitio)===m&&m!==""?e.proyectos.lista:void 0;return S.useEffect(()=>{n({accion:"sitios",conector:"jira"})},[]),S.useEffect(()=>{d(""),m!==""&&n({accion:"proyectos",conector:"jira",sitio:m})},[m]),o.jsxs("div",{className:pe.vinculo,children:[o.jsxs("label",{className:pe.casilla,children:["Sitio",o.jsxs("select",{className:pe.campo,value:m,onChange:b=>i(b.target.value),disabled:a===void 0,children:[a===void 0?o.jsx("option",{value:"",children:"Consultando…"}):o.jsx("option",{value:"",children:"Elige un sitio"}),(a??[]).map(b=>o.jsx("option",{value:b.id,children:b.nombre},b.id))]})]}),o.jsxs("label",{className:pe.casilla,children:["Proyecto de Jira",o.jsxs("select",{className:pe.campo,value:u,onChange:b=>d(b.target.value),disabled:v===void 0,children:[o.jsx("option",{value:"",children:v===void 0?"—":"Elige un proyecto"}),(v??[]).map(b=>o.jsx("option",{value:b.clave,children:`${b.clave} · ${b.nombre}`},b.clave))]})]}),o.jsx(V8,{...r===void 0?{}:{texto:r}}),o.jsx("button",{type:"button",className:pe.principal,disabled:!t||m===""||u==="",onClick:()=>n({accion:"vincular",conector:"jira",sitio:m,proyecto:u}),children:"Vincular"})]})}function tne(e){const t=e.estado.opciones.map(r=>r.nombre).join(" · ");return[`Estado: ${e.estado.propiedad}${t===""?"":` (${t})`}`,`Título: ${e.titulo}`,...e.asignado===void 0?[]:[`Asignado: ${e.asignado}`]].join(" · ")}function nne({gestor:e,conectores:t,nombre:n,conectado:r,alGestor:a,alAutorizar:l,alAbrirAjustes:i,sustituye:u}){var L,U;const[d,m]=S.useState(""),[v,f]=S.useState(void 0),[h,b]=S.useState(void 0),y=v!==void 0&&((L=e==null?void 0:e.busqueda)==null?void 0:L.conector)==="notion"&&e.busqueda.texto===v?e.busqueda:void 0,j=h!==void 0&&((U=e==null?void 0:e.descripcion)==null?void 0:U.conector)==="notion"&&e.descripcion.pedido===h?e.descripcion:void 0,C=(e==null?void 0:e.errores)??{},N=v!==void 0&&C.buscarProyectos!==void 0&&C.buscarProyectos.texto===v?C.buscarProyectos:void 0,z=h!==void 0&&C.describir!==void 0&&C.describir.pedido===h?C.describir:void 0,E=W=>o.jsx(l4,{error:W,conector:"notion",...t===void 0?{}:{conectores:t},conectado:r,alAutorizar:l,alAbrirAjustes:i,sinDuplicarLaFila:!0}),P=()=>{const W=d.trim();W!==""&&(f(W),b(void 0),a({accion:"buscarProyectos",conector:"notion",texto:W}))},M=W=>{b(W),a({accion:"describir",conector:"notion",proyecto:W})};return o.jsxs("div",{className:pe.vinculoNotion,children:[o.jsxs("form",{className:pe.busqueda,role:"search",onSubmit:W=>{W.preventDefault(),P()},children:[o.jsx("input",{type:"search",className:pe.campo,"aria-label":`Buscar una base de ${n}`,placeholder:`Nombre de la base de ${n}`,value:d,onChange:W=>m(W.target.value)}),o.jsx("button",{type:"submit",className:pe.accion,disabled:!r||d.trim()==="",children:"Buscar"})]}),v===void 0?null:y===void 0?N===void 0?o.jsx("p",{className:pe.aviso,children:"Buscando…"}):E(N):y.lista.length===0?o.jsx("p",{className:pe.aviso,children:`Ninguna base de ${n} coincide con «${y.texto}».`}):o.jsx("ul",{className:pe.lista,"aria-label":`Bases de ${n}`,children:y.lista.map(W=>o.jsx("li",{children:o.jsxs("button",{type:"button",className:pe.base,"aria-pressed":h===W.proyecto,onClick:()=>M(W.proyecto),disabled:!r,children:[o.jsx("span",{children:W.nombre}),W.ruta===void 0?null:o.jsx("span",{className:pe.nota,children:W.ruta})]})},W.proyecto))}),h===void 0?null:j===void 0?z===void 0?o.jsx("p",{className:pe.aviso,children:"Leyendo el esquema de la base…"}):E(z):"motivo"in j?o.jsx("p",{className:pe.error,children:`Esta base no sirve como gestor de tareas: ${j.motivo}`}):o.jsxs("div",{className:pe.esquema,children:[o.jsx("p",{className:pe.lineaDelEsquema,children:tne(j.esquema)}),j.esquema.asignado===void 0?o.jsx("p",{className:pe.aviso,children:"Sin propiedad de persona: no se podrá filtrar por «Asignadas a mí»."}):null,j.esquema.fuentes===void 0||j.esquema.fuentes<=1?null:o.jsx("p",{className:pe.aviso,children:`La base tiene ${j.esquema.fuentes} orígenes de datos; se usa el primero.`}),o.jsx(V8,{...u===void 0?{}:{texto:u}}),o.jsx("div",{children:o.jsx("button",{type:"button",className:pe.principal,disabled:!r,onClick:()=>a({accion:"vincular",conector:"notion",sitio:Qte,proyecto:j.esquema.proyecto}),children:"Vincular"})})]})]})}const rne="_panel_1pfcm_9",ane="_aviso_1pfcm_18",one="_veredicto_1pfcm_27",sne="_cabecera_1pfcm_35",ine="_app_1pfcm_43",lne="_proyecto_1pfcm_49",cne="_sello_1pfcm_56",une="_listo_1pfcm_63",dne="_faltas_1pfcm_71",pne="_falta_1pfcm_71",mne="_acciones_1pfcm_85",hne="_ejecutar_1pfcm_94",fne="_recorrido_1pfcm_113",gne="_cabeceraDelRecorrido_1pfcm_122",vne="_fase_1pfcm_131",bne="_tiempo_1pfcm_137",yne="_cancelar_1pfcm_149 _secundario_1l1rx_39",xne="_desenlace_1pfcm_157",_ne="_lectura_1pfcm_176",wne="_lineas_1pfcm_188",jne="_dispositivos_1pfcm_201",Cne="_rotulo_1pfcm_209",kne="_lista_1pfcm_215",Nne="_fila_1pfcm_224",Sne="_dispositivo_1pfcm_201",$ne="_marca_1pfcm_263",At={panel:rne,aviso:ane,veredicto:one,cabecera:sne,app:ine,proyecto:lne,sello:cne,listo:une,faltas:dne,falta:pne,acciones:mne,ejecutar:hne,recorrido:fne,cabeceraDelRecorrido:gne,fase:vne,tiempo:bne,cancelar:yne,desenlace:xne,lectura:_ne,lineas:wne,dispositivos:jne,rotulo:Cne,lista:kne,fila:Nne,dispositivo:Sne,marca:$ne};function Ane({veredicto:e,lanzamiento:t,dispositivos:n,alActualizarDispositivos:r,elegido:a,conectado:l,alRevisar:i,alLanzar:u,alCancelar:d,alElegirDispositivo:m}){var C;S.useEffect(()=>{l===!1||i===void 0||i()},[l,i,a==null?void 0:a.id]),M8(l!==!1,r);const v=(t==null?void 0:t.estado)==="corriendo",f=l===!0&&(e==null?void 0:e.listo)===!0&&u!==void 0&&!v,h=(n??[]).filter(Fi),b=n===void 0,y=((C=e==null?void 0:e.dispositivo)==null?void 0:C.nombre)??(a==null?void 0:a.nombre),j=e===void 0?void 0:Qc(e.medido);return o.jsxs("div",{className:At.panel,children:[l===!1?o.jsx("p",{className:At.aviso,children:"Sin conexión con el servidor no se puede medir ni lanzar: las dos cosas las hace él, no esta ventana. En cuanto vuelva el cable, la medida se rehace sola."}):e!==void 0?o.jsxs("div",{className:At.veredicto,children:[o.jsxs("p",{className:At.cabecera,children:[o.jsx("span",{className:At.app,children:e.app??e.proyecto}),e.app===void 0||e.app===e.proyecto?null:o.jsxs("span",{className:At.proyecto,children:["en ",e.proyecto]}),j===void 0?null:o.jsxs("span",{className:At.sello,children:["medido el ",j]})]}),e.listo?o.jsx("p",{className:At.listo,children:"Está todo lo que hace falta: se puede lanzar."}):o.jsx("ul",{className:At.faltas,children:e.faltas.map((N,z)=>o.jsx("li",{className:At.falta,children:N},`${z}:${N}`))})]}):i===void 0?o.jsx("p",{className:At.aviso,children:"No hay ningún proyecto abierto que lanzar. Se abre desde el escritorio, y a partir de ahí esta pestaña mide si su app se puede ejecutar en un dispositivo."}):o.jsx("p",{className:At.aviso,children:"Midiendo si se puede lanzar la app de este proyecto…"}),f?o.jsx("div",{className:At.acciones,children:o.jsx("button",{type:"button",className:At.ejecutar,title:y===void 0?"Lanza la app del proyecto en el dispositivo de esta sesión":`Lanza la app del proyecto en ${y}`,onClick:u,children:y===void 0?"Ejecutar en el dispositivo de la sesión":`Ejecutar en ${y}`})}):null,t===void 0?null:o.jsx(Ene,{lanzamiento:t,...y===void 0?{}:{destino:y},...d===void 0?{}:{alCancelar:d}}),o.jsxs("section",{className:At.dispositivos,"aria-label":"Dispositivos a mano",children:[o.jsx("span",{className:At.rotulo,children:"Dispositivos a mano"}),b?o.jsx("p",{className:At.aviso,children:"Todavía no se ha mirado qué hay enchufado. Mira en Ajustes → Dispositivos, que es donde se mide la máquina y se ve qué le falta a cada herramienta."}):h.length===0?o.jsx("p",{className:At.aviso,children:"Ninguno de los dispositivos medidos está a mano ahora mismo. En Ajustes → Dispositivos se ve qué le falta a cada uno."}):o.jsx("ul",{className:At.lista,children:h.map(N=>{var M;const z=N.id===((a==null?void 0:a.id)??((M=e==null?void 0:e.dispositivo)==null?void 0:M.id)),E=m!==void 0&&l!==!1,P=`${N.nombre} · ${N.plataforma==="ios"?"iOS":"Android"} · ${Rl(N)}`;return o.jsxs("li",{className:At.fila,children:[E?o.jsx("button",{type:"button",className:At.dispositivo,"aria-current":z?"true":void 0,onClick:()=>m(N.id),children:P}):o.jsx("span",{className:At.dispositivo,children:P}),z?o.jsx("span",{className:At.marca,children:"el de esta sesión"}):null]},N.id)})})]})]})}function Ene({lanzamiento:e,destino:t,alCancelar:n}){var u;const r=e.estado==="corriendo",a=e.estado==="ok"?e.lineas[e.lineas.length-1]:void 0,l=((u=e.dispositivo)==null?void 0:u.nombre)??t,i=e.estado!=="ok"&&e.lineas.length>0;return o.jsxs("section",{className:At.recorrido,"data-estado":e.estado,children:[o.jsxs("p",{className:At.cabeceraDelRecorrido,children:[o.jsx("span",{className:At.fase,children:zne[e.fase]}),o.jsx("span",{className:At.tiempo,children:nm(e.ms)}),r&&n!==void 0?o.jsx("button",{type:"button",className:At.cancelar,onClick:n,children:"Cancelar"}):null]}),o.jsx("p",{className:At.desenlace,children:Dne(e,l)}),a===void 0?null:o.jsx("p",{className:At.lectura,children:a}),i?o.jsx("pre",{className:At.lineas,children:e.lineas.join(`
|
|
499
|
+
`)}):null]})}function Dne(e,t){const n=t===void 0?"":` en ${t}`;switch(e.estado){case"corriendo":return`Lanzando la app${n}…`;case"ok":return`La app arrancó y está viva${n}.`;case"fallo":return e.motivo??"El lanzamiento falló, y el servidor no dijo por qué.";case"colgada":return e.motivo??"El lanzamiento se quedó sin contestar.";case"cancelada":return"Se canceló el lanzamiento."}}const zne={comprobando:"comprobando el dispositivo",empaquetando:"empaquetando la app",subiendo:"subiendo al dispositivo",reiniciando:"reiniciando el framework",lanzando:"lanzando la app","comprobando-arranque":"comprobando que arrancó"},G8="xonecode.apariencia";function Tne(e){return e==="sistema"||e==="claro"||e==="oscuro"}function Mne(){try{const e=window.localStorage.getItem(G8);return Tne(e)?e:"sistema"}catch{return"sistema"}}function Lne(e){try{window.localStorage.setItem(G8,e)}catch{}}const W8={claro:"xonecode-claro",oscuro:"xonecode-oscuro"},Z8={claro:"xonecode.tema.claro",oscuro:"xonecode.tema.oscuro"};function Ine(){const e=t=>{try{return T8(window.localStorage.getItem(Z8[t])??void 0,t).id}catch{return W8[t]}};return{claro:e("claro"),oscuro:e("oscuro")}}function Rne(e,t){try{window.localStorage.setItem(Z8[e],t)}catch{}}function Pne(e,t=W8,n=document.body){const r=e==="oscuro"||e==="sistema"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;r?n.setAttribute("data-ds-dark-theme",""):n.removeAttribute("data-ds-dark-theme");const a=r?"oscuro":"claro",l=T8(t[a],a);for(const i of j5)n.style.removeProperty(`--tema-${i}`);if(l.semillas===void 0){n.removeAttribute("data-tema");return}for(const i of j5)n.style.setProperty(`--tema-${i}`,l.semillas[i]);n.setAttribute("data-tema",l.id)}const Q8="xonecode.barraContraida",X8="xonecode.anchoBarra";function qne(){try{return window.localStorage.getItem(Q8)==="1"}catch{return!1}}function Fne(e){try{window.localStorage.setItem(Q8,e?"1":"0")}catch{}}function One(){try{const e=window.localStorage.getItem(X8);if(e===null)return;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0}catch{return}}function Bne(e){try{window.localStorage.setItem(X8,String(Math.round(e)))}catch{}}const Y8="xonecode.anchoPanel";function Hne(){try{const e=window.localStorage.getItem(Y8);if(e===null)return;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0}catch{return}}function Une(e){try{window.localStorage.setItem(Y8,String(Math.round(e)))}catch{}}function Vne(){const[e,t]=S.useState(()=>typeof window>"u"?0:window.innerWidth);return S.useEffect(()=>{if(typeof window>"u")return;const n=()=>t(window.innerWidth);return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const Gne=3e3;function e6(e){if(typeof e!="object"||e===null)return;const t=e.proyecto;return t===void 0?{}:t==="supervisado"||t==="autonomo"?{proyecto:t}:void 0}async function u0(e){const t=e;if((t==null?void 0:t.status)===409)try{const n=await t.json();return typeof n.motivo=="string"?n.motivo:"el servidor se negó"}catch{return"el servidor se negó"}}function Wne({store:e,enviar:t,subirAdjunto:n,subirAdjuntoDeSesion:r,instalarSkill:a,mirar:l}){var X0,mu,hu,mi,hi,Y0,rl,K0,fu,ac,oc,gu,vu,bu,J0,ed,td,nd,rd,ra,fi,yu,xu,_u,wu,sc,ad,od,Ns,ic,gi,lc,ju,al,Ss,cc,Cu,ol,ku,Nu,Su,$u,Au,Eu,ho,uc,dc,sd,id,vi,ld,Du,zu,Bt,pc,sl,bi,Tu,mc,yi,il,$s,Mu,cd,ud,Lu,ll,cl,hc,fc,gc,vc,dd,Iu,pd,md,bc,fo,Ru,As,ka,xi,Ua,yc,hd,fd,Ko,_i,Es,ul,xc,Ds,go,Ht,Lt,vo,On,mr,Jo,zs,hr,dl,Pu,qu;const i=S.useSyncExternalStore(e.suscribir,e.leer),u=mK({enviar:t,proyecto:(X0=i.alta)==null?void 0:X0.proyectoActivo,contenidos:i.contenidos,bases:i.bases,ultimoGuardado:i.ultimoGuardado,conectado:i.conectado}),d=S.useRef(u);d.current=u;const[m,v]=S.useState(void 0),f=S.useCallback(D=>{var J;if(d.current.haySinGuardar()){v({accion:D,ruta:((J=d.current.actual)==null?void 0:J.ruta)??""});return}D()},[]),h=S.useMemo(()=>i.revision===void 0?void 0:new Set(i.revision.lista.filter(D=>D.clase!=="borrado").map(D=>D.ruta)),[i.revision]),b=S.useMemo(()=>({...u,cerrar:()=>f(u.cerrar)}),[u,f]),[y,j]=S.useState(void 0),C=S.useRef("ficheros"),N=S.useRef(y);N.current=y;const z=S.useCallback(D=>{if(N.current==="ficheros"&&d.current.actual!==void 0){f(()=>{d.current.cerrar(),D()});return}D()},[f]),E=S.useCallback(D=>{const J=()=>{C.current=D,j(D)};D==="ficheros"?J():z(J)},[z]),[P,M]=S.useState(void 0),[L,U]=S.useState(void 0),[W,O]=S.useState(void 0),[q,F]=S.useState(void 0),[K,le]=S.useState(!1),[me,ne]=S.useState(void 0),ce=D=>{ne(D),le(!0)},[Ae,de]=S.useState(()=>qne()),[te,I]=S.useState(()=>One()),[V,ie]=S.useState(()=>Hne()),T=Vne(),Se=S.useCallback(()=>{t({clase:"revision"})},[t]),ge=S.useCallback(D=>{t({clase:"revision",ruta:D}),D.toLowerCase().endsWith(".xne")&&t({clase:"modeloDelCambio",ruta:D})},[t]),Oe=S.useCallback(D=>{M(J=>new Set([...J??[],D])),ge(D)},[ge]),be=S.useRef(!1),Te=S.useCallback(()=>{be.current||(be.current=!0,queueMicrotask(()=>{be.current=!1}),t({clase:"pendientesDeSubida"}),t({clase:"sync",accion:"estado"}))},[t]),[Ee,rt]=S.useState(void 0),Nt=S.useCallback(D=>{rt(J=>new Set([...J??[],D])),t({clase:"pendientesDeSubida",ruta:D})},[t]),Jt=S.useCallback(D=>{rt(J=>{const he=new Set(J??[]);return he.delete(D),he})},[]),Dn=S.useCallback(D=>{M(J=>{const he=new Set(J??[]);return he.delete(D),he})},[]),[en,Ut]=S.useState(!1),[Qn,Xn]=S.useState(!1),[ha,tn]=S.useState(void 0),[yn,cr]=S.useState(void 0),qn=S.useRef(void 0),Yn=S.useCallback((D,J,he)=>{var wn;const qe=()=>{Ut(!1),Xn(!1),vs(void 0),tn(void 0),qn.current=i.alta,cr({proyecto:D,...J===void 0?{}:{sesion:J}}),he!==void 0&&E(he),t(J===void 0?{clase:"sesion",proyecto:D}:{clase:"sesion",proyecto:D,sesion:J})};D!==((wn=i.alta)==null?void 0:wn.proyectoActivo)?f(qe):qe()},[t,i.alta,E,f]);S.useEffect(()=>{yn!==void 0&&(i.alta!==qn.current||i.conectado===!1)&&cr(void 0)},[yn,i.alta,i.conectado]);const Vt=i.abriendo??yn,Qr=S.useCallback(D=>void t({clase:"tarea",accion:"reintentar",id:D}),[t]),ue=S.useCallback(()=>void t({clase:"dispositivos"}),[t]),Ne=S.useCallback(D=>void t({clase:"tarea",accion:"descartar",id:D}),[t]),Qe=S.useCallback(D=>void t({clase:"tarea",accion:"terminar",id:D}),[t]),at=S.useCallback((D,J)=>void t({clase:"tarea",accion:"feedback",id:D,texto:J}),[t]),[ut,nn]=S.useState(void 0),Mr=S.useCallback(D=>{nn(D),l==null||l(D,!0)},[l]),sn=S.useCallback(D=>{nn(void 0),e.dejarDeMirar(),l==null||l(D,!1)},[l,e]);S.useEffect(()=>{var D;ut===void 0||!i.conectado||((D=i.mirada)==null?void 0:D.tarea)!==ut&&(l==null||l(ut,!0))},[ut,i.conectado,(mu=i.mirada)==null?void 0:mu.tarea,l]);const _r=S.useMemo(()=>{const D=new Map;for(const J of i.actos)J.tipo==="artefacto"&&(D.delete(J.ruta),D.set(J.ruta,{ruta:J.ruta,nombre:J.nombre,bytes:J.bytes,...J.mime===void 0?{}:{mime:J.mime}}));return[...D.values()]},[i.actos]),Pt=S.useMemo(()=>{const D=[];for(const J of i.actos)J.tipo==="sincronizacion"&&D.push(J);return D.reverse()},[i.actos]);S.useEffect(()=>{_r.length===0&&j(D=>D==="artefactos"?void 0:D)},[_r.length]);const xn=S.useMemo(()=>i.tareas===void 0?void 0:i.tareas.lista.filter(D=>{var J;return D.proyecto===((J=i.alta)==null?void 0:J.proyectoActivo)}),[i.tareas,(hu=i.alta)==null?void 0:hu.proyectoActivo]),_n=(mi=i.alta)==null?void 0:mi.proyectoActivo,Kn=S.useCallback(D=>{t({clase:"artefacto",nombre:D})},[t]),fs=S.useCallback(D=>{O(D),E("artefactos")},[E]),Xr=S.useCallback(()=>{t({clase:"arbol"})},[t]),zn=S.useCallback(()=>{t({clase:"planes"})},[t]),fa=S.useCallback(()=>{t({clase:"colecciones"})},[t]),To=S.useCallback(()=>{t({clase:"sync",accion:"estado"})},[t]),Mo=S.useCallback(D=>{D==="subir"&&Xi(!0),t({clase:"sync",accion:D})},[t]),[gs,Xi]=S.useState(!1),Lr=(hi=Pt.find(D=>D.accion==="subir"))==null?void 0:hi.cuando,Lo=S.useRef(Lr);S.useEffect(()=>{var J,he;const D=Lo.current!==Lr;Lo.current=Lr,(D||((J=i.pregunta)==null?void 0:J.decision)!==void 0||((he=i.sync)==null?void 0:he.error)!==void 0||i.conectado===!1)&&Xi(!1)},[Lr,i.pregunta,(Y0=i.sync)==null?void 0:Y0.error,i.conectado]);const so=S.useRef(Lr);S.useEffect(()=>{so.current!==Lr&&(so.current=Lr,i.conectado===!0&&(Se(),To(),ii&&t({clase:"pendientesDeSubida"})))},[Lr,i.conectado,Se,To]);const[qt,Yr]=S.useState(void 0);S.useEffect(()=>{qt!==void 0&&i.conectado===!1&&qt.cableCaido!==!0&&Yr({...qt,cableCaido:!0})},[i.conectado,qt]);const ga=D=>Pt.find(J=>J.accion===D),Ra=qt===void 0||((rl=ga(qt.operacion))==null?void 0:rl.cuando)===qt.desde?void 0:ga(qt.operacion),Io=qt===void 0?void 0:Ra!==void 0?{fase:"terminada",operacion:qt.operacion,lineas:Ra.lineas,...Ra.resultado===void 0?{}:{resultado:Ra.resultado},...Ra.bajados===void 0?{}:{bajados:Ra.bajados},...Ra.error===void 0?{}:{error:Ra.error}}:qt.cableCaido===!0?{fase:"terminada",operacion:qt.operacion,lineas:[],motivo:qt.operacion==="subir"?"Se ha perdido la conexión con xonecode mientras subía. Mira las últimas subidas al reconectar para saber qué llegó a subir.":"Se ha perdido la conexión con xonecode mientras se actualizaba el repo local. Mira el estado de la copia al reconectar."}:{fase:"trabajando",operacion:qt.operacion},Ir=((K0=i.pregunta)==null?void 0:K0.decision)!==void 0?i.pregunta:qt==null?void 0:qt.pregunta,va=((fu=i.pregunta)==null?void 0:fu.decision)===void 0?i.pregunta:void 0,Ro=(Ir==null?void 0:Ir.decision)===void 0?null:o.jsx(Tl,{texto:Ir.texto,decision:Ir.decision,...Io===void 0?{}:{progreso:Io},alCerrar:()=>Yr(void 0),alResponder:async(D,J)=>{var qr,pl,aa;const he=i.pregunta,qe=((qr=he==null?void 0:he.decision)==null?void 0:qr.operacion)??(((pl=he==null?void 0:he.decision)==null?void 0:pl.seleccionable)===!0?"subir":void 0),wn=he!==void 0&&qe!==void 0&&D==="s";wn&&Yr({pregunta:he,operacion:qe,desde:(aa=ga(qe))==null?void 0:aa.cuando});try{await t({clase:"respuesta",texto:D,...J===void 0?{}:{seleccion:J}})}catch(wi){throw wn&&Yr(void 0),wi}e.contestarPregunta()}}),Yi={esperando:gs,...i.turnoEnVuelo===!0&&!gs?{motivoParaNo:"Hay un turno en marcha: se podrá subir cuando termine"}:{},alSubir:()=>Mo("subir")},au=S.useCallback(()=>{t({clase:"revisarLanzamiento"})},[t]),Po=S.useCallback(()=>{t({clase:"lanzarApp"})},[t]),rn=S.useCallback(()=>{t({clase:"cancelarLanzamiento"})},[t]),qo=S.useCallback(D=>{t({clase:"dispositivo",id:D})},[t]),[ei,Fo]=S.useState(void 0),ba=S.useCallback(D=>{var he;const J=()=>{const qe=d.current.actual;qe!==void 0&&qe.ruta!==D&&d.current.cerrar(),U(D),Fo(void 0),D!==void 0&&t({clase:"fichero",ruta:D})};D!==void 0&&D===((he=d.current.actual)==null?void 0:he.ruta)?J():f(J)},[t,f]),ti=S.useCallback((D,J)=>{var qe;const he=()=>{ba(D),Fo(J),E("ficheros")};D===((qe=d.current.actual)==null?void 0:qe.ruta)?he():f(he)},[ba,E,f]),[ya,ni]=S.useState(void 0),[ri,Ki]=S.useState(void 0),an=S.useCallback(D=>{var he;const J=()=>{var wn,qr,pl,aa;((wn=d.current.actual)==null?void 0:wn.ruta)!==D&&(d.current.baseElegida!=="sesion"&&d.current.elegirBase("sesion"),ni({ruta:D,copia:(qr=i.contenidos)==null?void 0:qr[D],proyecto:(pl=i.alta)==null?void 0:pl.proyectoActivo,sesion:(aa=i.alta)==null?void 0:aa.sesionActiva}));const qe=i.arbol;qe!==void 0&&qe.error===void 0&&!qe.recortado&&!qe.rutas.includes(D)&&(Ki(qe),Xr()),ba(D),E("ficheros")};D===((he=d.current.actual)==null?void 0:he.ruta)?J():f(J)},[i.contenidos,i.arbol,(ac=i.alta)==null?void 0:ac.proyectoActivo,(oc=i.alta)==null?void 0:oc.sesionActiva,Xr,ba,E,f]),Oo=ya===void 0||(gu=i.contenidos)==null?void 0:gu[ya.ruta];S.useEffect(()=>{var D,J;if(ya!==void 0){if(L!==ya.ruta||i.conectado===!1||((D=i.alta)==null?void 0:D.proyectoActivo)!==ya.proyecto||((J=i.alta)==null?void 0:J.sesionActiva)!==ya.sesion||y!=="ficheros"){ni(void 0);return}Oo===void 0||Oo===ya.copia||(ni(void 0),om(Oo)&&u.abrir(Oo))}},[ya,Oo,L,u,i.conectado,(vu=i.alta)==null?void 0:vu.proyectoActivo,(bu=i.alta)==null?void 0:bu.sesionActiva,y]),S.useEffect(()=>{ri!==void 0&&i.arbol!==ri&&Ki(void 0)},[ri,i.arbol]);const[ai,vs]=S.useState(void 0),ur=(J0=i.gestor)==null?void 0:J0.borrador,Bo=S.useRef(void 0),Rr=S.useRef(void 0),Pa=(td=(ed=i.gestor)==null?void 0:ed.errores)==null?void 0:td.empezar;S.useEffect(()=>{Pa!==void 0&&(Rr.current=Pa)},[Pa]);const[Jn,bs]=S.useState(void 0),[dr,Ho]=S.useState(!1),oi=S.useRef(void 0);S.useEffect(()=>{var D;dr&&Rr.current!==void 0&&((D=i.alta)==null?void 0:D.sesionActiva)===oi.current&&Ho(!1)},[i.alta]),S.useEffect(()=>{if(ur===void 0)return;Xn(!1),Ut(!1),Ho(!1),vs(qe=>({texto:ur.texto,id:((qe==null?void 0:qe.id)??0)+1}));const D=Rr.current;Rr.current=void 0;const J=Bo.current;Bo.current=void 0;const he=(J==null?void 0:J.clave)===ur.clave?J.destino:void 0;bs(D===void 0?void 0:he===void 0?`No se pudo cambiar el estado de ${_0(ur.clave)??ur.clave}: ${D.motivo}. La sesión se abrió igual.`:`No se pudo pasar ${_0(ur.clave)??ur.clave} a ${he}: ${D.motivo}. La sesión se abrió igual.`)},[ur==null?void 0:ur.id]);const io=S.useCallback((D,J)=>{var he;D.accion==="empezar"&&(Rr.current=void 0,Bo.current=D.transicion===void 0||(J==null?void 0:J.destino)===void 0?void 0:{clave:D.clave,destino:J.destino},Ho(!0),oi.current=(he=i.alta)==null?void 0:he.sesionActiva),t({clase:"gestor",...D})},[t,(nd=i.alta)==null?void 0:nd.sesionActiva]),Kr=(yu=(fi=(ra=(rd=i.alta)==null?void 0:rd.proyectos.find(D=>D.id===_n))==null?void 0:ra.sesiones)==null?void 0:fi.find(D=>{var J;return D.id===((J=i.alta)==null?void 0:J.sesionActiva)}))==null?void 0:yu.ticket,ys=(sc=(wu=(_u=(xu=i.alta)==null?void 0:xu.proyectos.find(D=>D.id===_n))==null?void 0:_u.sesiones)==null?void 0:wu.find(D=>{var J;return D.id===((J=i.alta)==null?void 0:J.sesionActiva)}))==null?void 0:sc.ticketConector,er=Fm(i.conectores,ys),[Uo,lo]=S.useState(!1),[ou,co]=S.useState(!1),[Ct,qa]=S.useState(!1),[Vo,si]=S.useState(void 0),xa=S.useRef(void 0),xt=S.useRef({}),Jr=(ad=i.gestor)==null?void 0:ad.cierre,Go=(Ns=(od=i.gestor)==null?void 0:od.errores)==null?void 0:Ns.cerrar,xs=(gi=(ic=i.gestor)==null?void 0:ic.errores)==null?void 0:gi.transiciones;S.useEffect(()=>{Jr!==void 0&&(co(!1),lo(!0))},[Jr]);const Wo=(ju=(lc=i.gestor)==null?void 0:lc.errores)==null?void 0:ju.borradorDeCierre;S.useEffect(()=>{Wo!==void 0&&(co(!1),si(`No se pudo preparar el cierre: ${Wo.motivo}`))},[Wo]),S.useEffect(()=>{Go!==void 0&&qa(!1)},[Go]);const ea=(al=i.gestor)==null?void 0:al.cerrado;S.useEffect(()=>{if(ea===void 0)return;lo(!1),qa(!1);const D=xa.current;xa.current=void 0;const J=ea.falloDeTransicion,he=_0(ea.clave)??ea.clave;si(J!==void 0?`${he}: comentado; no se pudo ${D===void 0?"aplicar la transición":`pasar a ${D}`}: ${J}`:`${he}: comentado${D===void 0?"":` y pasado a ${D}`}`)},[ea==null?void 0:ea.id]);const _s=(Ss=i.alta)==null?void 0:Ss.sesionActiva;S.useEffect(()=>{co(!1),lo(!1),si(void 0),bs(void 0),xa.current=void 0},[_s]),S.useEffect(()=>{i.conectado||(Ho(!1),co(!1),qa(!1),lo(!1))},[i.conectado]);const uo=(cc=i.gestor)==null?void 0:cc.transiciones,_a=uo!==void 0&&Jr!==void 0&&uo.clave===Jr.clave&&uo.para==="cerrar"?uo:void 0,pr=Go!==xt.current.cerrar?Go:void 0,Pr=xs!==xt.current.transiciones?xs:void 0,Fa=()=>{Kr!==void 0&&(co(!0),xt.current={cerrar:Go,transiciones:xs},io({accion:"borradorDeCierre"}),io({accion:"transiciones",clave:Kr,para:"cerrar"}))},Zo=(D,J)=>{var he;xa.current=J===void 0||(he=_a==null?void 0:_a.lista.find(qe=>qe.id===J))==null?void 0:he.destino,qa(!0),io({accion:"cerrar",comentario:D,...J===void 0?{}:{transicion:J}})},ta=i.aprobacion!==void 0||va!==void 0||i.secreto!==void 0||i.selector!==void 0;S.useEffect(()=>{ta&&(Xn(!1),tn(void 0))},[ta]);const wa=(Cu=i.revision)==null?void 0:Cu.lista;S.useEffect(()=>{wa===void 0&&M(void 0)},[wa]);const ii=i.pendientesDeSubida!==void 0;S.useEffect(()=>{ii||rt(void 0)},[ii]);const wr=i.turnoEnVuelo===!0,ja=f8(wr),na=S.useRef(wr);S.useEffect(()=>{const D=na.current&&!wr;if(na.current=wr,!!D){if(y==="revision"){Se();for(const J of P??[])ge(J);To()}if(y==="ficheros"&&(Xr(),Se(),L!==void 0&&t({clase:"fichero",ruta:L}),d.current.pedirBase()),ii){Te();for(const J of Ee??[])t({clase:"pendientesDeSubida",ruta:J})}y==="colecciones"&&fa(),zn()}},[wr,y,Se,ge,Xr,fa,zn,To,t]);const Ji=y==="planes";S.useEffect(()=>{if(!wr||!Ji||!i.conectado)return;const D=setInterval(zn,Gne);return()=>clearInterval(D)},[wr,Ji,i.conectado,zn]);const ws=((ol=i.alta)==null?void 0:ol.proyectoAbierto)===!0,el=i.planes!==void 0;S.useEffect(()=>{!i.conectado||!ws||el||zn()},[i.conectado,ws,el,zn]);const[Qo,Xo]=S.useState(()=>Mne()),[Ca,Yo]=S.useState(()=>Ine()),[po,Ql]=S.useState("claro");S.useEffect(()=>{const D=()=>{Pne(Qo,Ca),Ql(document.body.hasAttribute("data-ds-dark-theme")?"oscuro":"claro")};if(D(),Qo!=="sistema"||typeof window.matchMedia!="function")return;const J=window.matchMedia("(prefers-color-scheme: dark)");return J.addEventListener("change",D),()=>J.removeEventListener("change",D)},[Qo,Ca]);const js=D=>{Xo(D),Lne(D)},li=(D,J)=>{Yo(he=>({...he,[D]:J})),Rne(D,J),D!==po&&js(D)},[Q,Fe]=S.useState(void 0),_t=S.useRef(void 0),[Xt,ln]=S.useState(void 0);S.useEffect(()=>{var D,J;if(Xt!==void 0){if(i.conectado===!1){ln(void 0);return}if(i.alta!==Xt.alta){if(((D=i.alta)==null?void 0:D.proyectoAbierto)===!0&&i.alta.proyectoActivo===Xt.proyecto){ln(void 0),Fe(void 0),tn(void 0),Ut(!1);return}i.abriendo===void 0&&((J=i.alta)==null?void 0:J.aviso)!==void 0&&ln(void 0)}}},[Xt,i.alta,i.abriendo,i.conectado]);const[Tn,st]=S.useState(void 0),[Ft,it]=S.useState(!1),tr=(ku=i.alta)==null?void 0:ku.preparando,Ot=i.alta===void 0||i.alta.pasos.length>0||tr!==void 0,Fn=i.selector!==void 0||i.secreto!==void 0||i.pregunta!==void 0,ci=!((((Nu=i.alta)==null?void 0:Nu.pasos.length)??0)>0)&&!Fn,su=i.alta===void 0||i.selector!==void 0||i.secreto!==void 0,iu=[{id:"modelo",etiqueta:"Modelo",estado:su?"actual":"hecho"},{id:"entorno",etiqueta:"Entorno de CloudStudio",estado:su?"pendiente":"actual"}];if(Ot)return o.jsxs(o.Fragment,{children:[Ro,o.jsxs(nB,{centrada:ci,children:[o.jsx(i0,{conectado:i.conectado}),tr===void 0?null:o.jsx(bB,{texto:tr}),ci?null:o.jsxs(fB,{nombre:i.nombre??((Su=i.alta)==null?void 0:Su.nombre),pasos:iu,alVolverAPaso:D=>{D==="modelo"&&t({clase:"alta",paso:"cuenta"})},children:[va!==void 0?o.jsx(Tl,{texto:va.texto,anidado:!0,alResponder:async D=>{await t({clase:"respuesta",texto:D}),e.contestarPregunta()}}):null,i.secreto!==void 0?o.jsx(Tl,{texto:i.secreto.pregunta,oculta:!0,anidado:!0,alResponder:async D=>{await t({clase:"secreto",valor:D}),e.contestarSecreto()}}):null,i.selector!==void 0?o.jsx(b5,{titulo:i.selector.titulo,opciones:i.selector.opciones,...i.selector.aviso===void 0?{}:{aviso:i.selector.aviso},anidado:!0,alElegir:async D=>{const J=i.selector;await t({clase:"eleccion",id:D}),e.contestarSelector(J)}}):null,!su&&i.alta!==void 0&&i.alta.pasos.length>0?o.jsx(PO,{pasos:i.alta.pasos,proveedores:i.alta.proveedores,entornos:i.alta.entornos,...i.alta.aviso===void 0?{}:{aviso:i.alta.aviso},alGuardarCredencial:(D,J)=>void t({clase:"secreto",valor:J}),alRegistrarEntorno:D=>void t({clase:"alta",paso:"entorno",entorno:D})}):null]})]})]});const Cs=(($u=i.alta)==null?void 0:$u.proyectoAbierto)??!1,Cr=ha===void 0||(Eu=(Au=i.alta)==null?void 0:Au.proyectos)==null?void 0:Eu.find(D=>D.id===ha&&D.local!==!0),Xl=Cs&&!en&&!((Qn||Cr!==void 0)&&!ta),cu=Cs&&!en&&Qn&&Cr===void 0&&!ta,Yl=Cr!==void 0&&!en&&!(Cs&&ta),H0=Xl&&y!==void 0,Oa=Zz({anchoVentana:T,anchoBarra:te??Jp,anchoPanel:Jf(V??Kp),barraPlegadaPorElUsuario:Ae,panelAbierto:H0}),uu=i.actos.find(D=>D.tipo==="usuario"),Bm=(((ho=i.alta)==null?void 0:ho.sesionActiva)===void 0||(dc=(uc=i.alta.proyectos)==null?void 0:uc.flatMap(D=>D.sesiones??[]).find(D=>D.id===i.alta.sesionActiva))==null?void 0:dc.titulo)||(uu==null?void 0:uu.texto),mo=(vi=(id=(sd=i.alta)==null?void 0:sd.proyectos)==null?void 0:id.find(D=>{var J;return D.id===((J=i.alta)==null?void 0:J.proyectoActivo)}))==null?void 0:vi.nombre,Hm=i.actos.filter(D=>D.tipo==="usuario").length,Um=i.actos.filter(D=>D.tipo==="herramientas").reduce((D,J)=>D+J.lineas.length,0),Kl=i.actos.slice().reverse().find(D=>D.tipo==="fin"),ks=(ld=i.consumo)==null?void 0:ld.ventana,Ba=((Du=i.alta)==null?void 0:Du.entornoActivo)??((Bt=(zu=i.alta)==null?void 0:zu.registrados[0])==null?void 0:Bt.id)??"",tl=(sl=(pc=i.alta)==null?void 0:pc.registrados.find(D=>D.id===Ba))==null?void 0:sl.fijados,Jl=D=>{var he;const J=(he=i.alta)==null?void 0:he.proyectos.find(qe=>qe.id===D);if((J==null?void 0:J.local)===!0){Yn(D);return}_t.current=i.alta,ln(void 0),Fe(D),Ut(!1),vs(void 0),Xn(!1),t({clase:"alta",paso:"proyecto",proyecto:D})},du=D=>{var he,qe;const J=(he=i.alta)==null?void 0:he.proyectos.find(wn=>wn.id===D);if(Ut(!1),(J==null?void 0:J.local)!==!0){Xn(!1),tn(D);return}tn(void 0),Cs&&((qe=i.alta)==null?void 0:qe.proyectoActivo)===D||Yn(D),Xn(!0)},U0=D=>({proyecto:D,alDescargar:()=>Jl(D.id),alAbrirCarpeta:async J=>u0(await t({clase:"copiaLocal",accion:"abrirCarpeta",proyecto:J})),alBorrarCopia:async J=>{const he=await u0(await t({clase:"copiaLocal",accion:"borrar",proyecto:J}));return he===void 0&&tn(J),he},alFijarModoDelProyecto:async(J,he)=>{const qe=await t({clase:"copiaLocal",accion:"modoDeEscritura",proyecto:J,...he===void 0?{}:{modo:he}});if(qe===void 0)return{motivo:"no se pudo hablar con el servidor"};if(!qe.ok)return{motivo:await u0(qe)??"el servidor no lo ha guardado"};try{return{guardado:e6(await qe.json())??{}}}catch{return{motivo:"el servidor contestó algo que no se entiende"}}},...i.modoPorDefecto===void 0?{}:{modoGlobal:i.modoPorDefecto},alPedirResumen:async J=>{const he=await t({clase:"copiaLocal",accion:"resumen",proyecto:J});if(!(he===void 0||!he.ok))try{const qe=await he.json();if(!Array.isArray(qe.tareas)||!qe.tareas.every(qr=>typeof qr=="string"))return;const wn=e6(qe.modoDeEscritura);return{tareas:qe.tareas,...typeof qe.sync=="object"&&qe.sync!==null?{sync:qe.sync}:{},...wn===void 0?{}:{modoDeEscritura:wn}}}catch{return}}}),V0=async D=>{const J=await t({clase:"soporte",accion:"listar",proyecto:D});if(!(J===void 0||!J.ok))try{const he=await J.json();return!Array.isArray(he.chats)||!Array.isArray(he.tareas)?void 0:{chats:he.chats,tareas:he.tareas}}catch{return}},pu=(bi=i.alta)==null?void 0:bi.proyectos.find(D=>{var J;return D.id===((J=i.alta)==null?void 0:J.proyectoActivo)}),ec=()=>{if(!Ae&&Oa.barra==="plegada"){z(()=>j(void 0));return}de(D=>(Fne(!D),!D))},Vm=()=>{y===void 0?j(C.current):z(()=>j(void 0))},Gm=(D,J)=>{I(D),J&&Bne(D)},Wm=(D,J)=>{ie(D),J&&Une(D)},ui=(Tu=i.alta)==null?void 0:Tu.registrados.find(D=>D.id===Ba),tc=(mc=i.alta)==null?void 0:mc.proyectos.find(D=>D.id===Q),Zm=Q!==void 0&&tc!==void 0?o.jsx(OU,{proyecto:{id:tc.id,nombre:tc.nombre},local:tc.local===!0,ramas:((yi=i.alta)==null?void 0:yi.ramasDe)===Q?((il=i.alta)==null?void 0:il.ramas)??[]:[],...(($s=i.alta)==null?void 0:$s.aviso)===void 0||i.alta===_t.current||Xt!==void 0?{}:{aviso:i.alta.aviso},descargando:Xt!==void 0,alEmpezar:D=>{const J=Q;if(D===void 0){Fe(void 0),Ut(!1),Yn(J);return}f(()=>{ln({proyecto:J,alta:i.alta}),t({clase:"alta",paso:"proyecto",proyecto:J,rama:D})})},alCerrar:()=>{Fe(void 0),ln(void 0)}}):null,nc=(Mu=i.alta)==null?void 0:Mu.proyectos.find(D=>D.id===(Tn==null?void 0:Tn.proyecto)),rc=D=>{e.limpiarEncargoPropuesto(),it(!1),st({proyecto:D,borrador:crypto.randomUUID()})},di=()=>{Tn!==void 0&&Ft&&t({clase:"tarea",accion:"descartar",id:Tn.borrador}),st(void 0)},Qm=Tn!==void 0&&nc!==void 0?o.jsx(cV,{proyecto:{id:nc.id,nombre:nc.nombre},local:nc.local===!0,...i.encargoPropuesto===void 0?{}:{encargoPropuesto:i.encargoPropuesto},alAugmentar:D=>void t({clase:"tarea",accion:"augmentar",proyecto:Tn.proyecto,peticion:D,borrador:Tn.borrador}),alSubirAdjunto:async(D,J)=>{const he=await n(Tn.borrador,J,D);return he.ok&&it(!0),he},alEncolar:({peticion:D,encargo:J})=>{const{proyecto:he,borrador:qe}=Tn;st(void 0),t({clase:"tarea",accion:"crear",proyecto:he,peticion:D,encargo:J,...Ft?{borrador:qe}:{}})},alAbrirProyecto:()=>{const{proyecto:D}=Tn;di(),Jl(D)},alCerrar:di}):null,G0=m===void 0?null:o.jsx(lK,{ruta:m.ruta,alSeguir:()=>v(void 0),alDescartar:()=>{const D=m;v(void 0),u.cerrar(),D.accion()}}),W0=q===void 0?null:o.jsx(pV,{pendiente:q,esLaAbierta:((cd=i.alta)==null?void 0:cd.sesionActiva)===q.sesion,alCerrar:()=>F(void 0),alConfirmar:D=>{const{proyecto:J,sesion:he,accion:qe}=q;F(void 0),t(qe==="borrar"?{clase:"sesionAccion",accion:"borrar",proyecto:J,sesion:he}:{clase:"sesionAccion",accion:"renombrar",proyecto:J,sesion:he,titulo:D??""})}}),Z0=K?o.jsx(qX,{temas:Ca,modoEnVigor:po,alCambiarTema:li,...me===void 0?{}:{seccionInicial:me},...i.modelos===void 0?{}:{proveedores:i.modelos.proveedores},entornos:((ud=i.alta)==null?void 0:ud.registrados)??[],proyectos:((Lu=i.alta)==null?void 0:Lu.proyectos)??[],...Ba===""?{}:{entornoActivo:Ba},...i.agentes===void 0?{}:{agentes:i.agentes},...i.skills===void 0?{}:{skills:i.skills},...i.cuerposDeSkill===void 0?{}:{cuerposDeSkill:i.cuerposDeSkill},hayProyecto:Cs,alGuardarAgente:(D,J,he)=>void t({clase:"agente",accion:"guardar",ambito:J,agente:D,...he===void 0?{}:{renombrandoDe:he}}),alRestaurarAgente:D=>void t({clase:"agente",accion:"restaurar",ambito:"global",agente:{nombre:D,descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}),alBorrarAgente:(D,J)=>void t({clase:"agente",accion:"borrar",ambito:J,agente:{nombre:D,descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}),alPedirCuerpoDeSkill:D=>void t({clase:"cuerpoDeSkill",nombre:D}),alGuardarSkill:(D,J,he)=>void t({clase:"skill",accion:"guardar",ambito:J,skill:D,...he===void 0?{}:{renombrandoDe:he}}),alBorrarSkill:(D,J)=>void t({clase:"skill",accion:"borrar",ambito:J,skill:D}),alInstalarSkill:(D,J,he)=>a(D,J,he),...i.conectores===void 0?{}:{conectores:i.conectores},alAccionDeConector:(D,J)=>void t({clase:"conector",accion:D,id:J}),alCrearDeConector:D=>void t({clase:"conector",accion:"crear",definicion:D}),...i.secreto===void 0?{}:{secreto:i.secreto.pregunta},...i.dispositivos===void 0?{}:{dispositivos:i.dispositivos},...i.ajustesDeDispositivos===void 0?{}:{ajustesDeDispositivos:i.ajustesDeDispositivos},conectado:i.conectado,alCambiarDispositivos:D=>void t({clase:"dispositivos",ajustes:D}),alActualizarDispositivos:ue,alInstalarHerramienta:D=>void t({clase:"dispositivos",instalar:D}),alAbrirCarpetaDeHerramienta:D=>void t({clase:"dispositivos",abrirRuta:D}),alVerificarDispositivo:D=>void t({clase:"conexion",id:D}),alArrancarEmulador:D=>void t({clase:"arrancarEmulador",avd:D}),alAjustarAvd:(D,J)=>void t({clase:"ajusteDeAvd",avd:D,...J}),alPararEmulador:D=>void t({clase:"pararEmulador",id:D}),alCrearEmulador:(D,J)=>void t({clase:"crearEmulador",nombre:D,...J??{}}),alEliminarEmulador:D=>void t({clase:"eliminarEmulador",avd:D}),...i.arranqueDeEmulador===void 0?{}:{arranqueDeEmulador:i.arranqueDeEmulador},...i.tareas===void 0?{}:{tareas:{concurrencia:i.tareas.concurrencia}},alCambiarConcurrencia:D=>void t({clase:"tareas",concurrencia:D}),...i.workspace===void 0?{}:{workspace:i.workspace},alCambiarWorkspace:async D=>u0(await t({clase:"workspace",ruta:D,accion:"aplicar"})),alPlanearWorkspace:async D=>{const J=await t({clase:"workspace",ruta:D,accion:"planear"}),he=await u0(J);if(he!==void 0)return{proyectos:[],motivo:he};if(!(J===void 0||!J.ok))try{const qe=await J.json();return Array.isArray(qe.proyectos)?{proyectos:qe.proyectos.filter(qr=>typeof qr=="object"&&qr!==null&&typeof qr.entorno=="string"&&typeof qr.proyecto=="string"),...typeof qe.megas=="number"?{megas:qe.megas}:{},...typeof qe.motivo=="string"?{motivo:qe.motivo}:{}}:void 0}catch{return}},...i.mudanzaDeWorkspace===void 0?{}:{mudanzaDeWorkspace:i.mudanzaDeWorkspace},...i.depuracionActiva===void 0?{}:{depuracionActiva:i.depuracionActiva},alCambiarDepuracion:D=>void t({clase:"depuracion",activa:D}),...i.modoPorDefecto===void 0?{}:{modoPorDefecto:i.modoPorDefecto},alCambiarModoPorDefecto:D=>void t({clase:"modoPorDefecto",modo:D}),...i.puedeElegirCarpeta===!0?{alElegirCarpeta:()=>void t({clase:"elegirCarpeta"})}:{},...i.carpetaElegida===void 0?{}:{carpetaElegida:i.carpetaElegida},...i.modelosDeMotor===void 0?{}:{modelosDeMotor:i.modelosDeMotor},alPedirModelosDeMotor:D=>void t({clase:"modelosDeMotor",motor:D}),alPedirCatalogo:D=>void t({clase:"catalogo",proveedor:D}),...((ll=i.modelos)==null?void 0:ll.porDefecto)===void 0?{}:{modeloPorDefecto:i.modelos.porDefecto},alElegirModelo:D=>void t({clase:"modelo",id:D}),...i.instalacion===void 0?{}:{instalacion:i.instalacion},alEjecutarPaso:(D,J)=>void t({clase:"receta",id:D,paso:J,accion:"ejecutar"}),alCancelarPaso:D=>void t({clase:"receta",id:D,paso:0,accion:"cancelar"}),alPedirClave:D=>void t({clase:"credencial",accion:"pedir",proveedor:D}),alBorrarClave:D=>void t({clase:"credencial",accion:"borrar",proveedor:D}),alRegistrarEntorno:D=>void t({clase:"alta",paso:"entorno",entorno:{id:"",nombre:"",url:D}}),alAltaDeProveedor:(D,J)=>void t({clase:"proveedor",accion:"alta",nombre:D,baseUrl:J}),alBajaDeProveedor:D=>void t({clase:"proveedor",accion:"baja",slug:D}),...i.proveedor===void 0?{}:{resultadoDeProveedor:i.proveedor},alElegirProyectos:(D,J)=>void t({clase:"entorno",accion:"visibles",entorno:D,proyectos:J}),...i.proyectosPorEntorno===void 0?{}:{proyectosPorEntorno:i.proyectosPorEntorno},alPedirProyectosDeEntorno:D=>void t({clase:"entorno",accion:"proyectos",entorno:D}),...((cl=i.alta)==null?void 0:cl.aviso)===void 0?{}:{avisoDelAlta:i.alta.aviso},alQuitarEntorno:async(D,{borrarCopias:J})=>{const he=await t({clase:"entorno",accion:"olvidar",entorno:D,...J?{borrarCopias:!0}:{}});if((he==null?void 0:he.status)===409)try{const qe=await he.json();return typeof qe.motivo=="string"?qe.motivo:"el servidor se negó"}catch{return"el servidor se negó"}},alRenombrarEntorno:async(D,J)=>{const he=await t({clase:"entorno",accion:"renombrar",entorno:D,nombre:J});if((he==null?void 0:he.status)===409)try{const qe=await he.json();return typeof qe.motivo=="string"?qe.motivo:"el servidor se negó"}catch{return"el servidor se negó"}},alResponderSecreto:async D=>{await t({clase:"secreto",valor:D}),e.contestarSecreto()},alCerrar:()=>{i.secreto!==void 0&&(t({clase:"secreto",valor:""}),e.contestarSecreto()),le(!1)}}):null,Q0=o.jsx(JK,{tareas:xn,alReintentar:Qr,alDescartar:Ne,alTerminar:Qe,alEnviarFeedback:at,conectado:i.conectado,...i.tareas===void 0?{}:{corriendoAqui:i.tareas.corriendoAqui},...((hc=i.tareas)==null?void 0:hc.ejecutaOtroProceso)===void 0?{}:{ejecutaOtroProceso:i.tareas.ejecutaOtroProceso},..._n===void 0?{}:{alNuevaTarea:()=>rc(_n)},...l===void 0?{}:{alMirar:Mr,alDejarDeMirar:sn},...ut===void 0?{}:{mirando:ut},...i.mirada===void 0?{}:{mirada:i.mirada}}),nl=!H0||y===void 0?void 0:o.jsx(PL,{pestana:y,alElegirPestana:E,alCerrar:()=>z(()=>j(void 0)),hayArtefactos:_r.length>0,hayPlanes:(((gc=(fc=i.planes)==null?void 0:fc.lista)==null?void 0:gc.length)??0)>0,actos:i.actos,revision:o.jsx(I5,{historica:((vc=i.alta)==null?void 0:vc.historica)===!0,...i.revision===void 0?{}:{via:i.revision.via},...((dd=i.revision)==null?void 0:dd.mezclados)===void 0?{}:{mezclados:i.revision.mezclados},ficheros:((Iu=i.revision)==null?void 0:Iu.lista)??[],parches:i.parches??{},modelosDelCambio:i.modelosDelCambio??{},desplegados:P??new Set,alDesplegar:Oe,alPlegar:Dn,alRecargar:Se,conectado:i.conectado,alEditar:an,...((pd=i.arbol)==null?void 0:pd.rutas)===void 0?{}:{rutasDelProyecto:i.arbol.rutas}}),planes:o.jsx(ZD,{...((md=i.planes)==null?void 0:md.lista)===void 0?{}:{planes:i.planes.lista},...((bc=i.planes)==null?void 0:bc.error)===void 0?{}:{error:i.planes.error}}),colecciones:o.jsx(Cz,{...((fo=i.colecciones)==null?void 0:fo.foto)===void 0?{}:{foto:i.colecciones.foto},...((Ru=i.colecciones)==null?void 0:Ru.error)===void 0?{}:{error:i.colecciones.error},conectado:i.conectado,alPedir:fa,alAbrirFichero:ti}),ficheros:o.jsx(iK,{...i.arbol===void 0||i.arbol===ri?{}:{arbol:i.arbol},contenidos:i.contenidos??{},...L===void 0?{}:{elegido:L},...ei===void 0?{}:{linea:ei},alElegir:ba,alRecargar:Xr,conectado:i.conectado,edicion:b,...h===void 0?{}:{cambiados:h},alPedirCambios:Se}),artefactos:o.jsx(pP,{lista:_r,contenidos:i.artefactos??{},...W===void 0?{}:{elegido:W},alElegir:O,alPedir:Kn,conectado:i.conectado}),ejecutar:o.jsx(Ane,{veredicto:i.lanzable,lanzamiento:i.lanzamiento,dispositivos:(As=i.dispositivos)==null?void 0:As.dispositivos,alActualizarDispositivos:ue,elegido:(ka=i.alta)==null?void 0:ka.dispositivoActivo,conectado:i.conectado,alRevisar:au,alLanzar:Po,alCancelar:rn,alElegirDispositivo:qo})}),pi=cu||Yl?o.jsx(Vh,{titulo:(Yl?Cr==null?void 0:Cr.nombre:mo)??"Proyecto",...((xi=i.alta)==null?void 0:xi.modo)===void 0?{}:{modo:i.alta.modo},conectado:i.conectado,barraContraida:Oa.barra==="plegada",alAlternarBarra:ec,alAbrirAjustes:()=>ce(),apariencia:Qo,alCambiarApariencia:js,alIrAlEscritorio:()=>{Ut(!0),tn(void 0)}}):Xl?o.jsx(Vh,{titulo:Bm??mo??"Sesión nueva",...mo===void 0?{}:{proyecto:mo},...((Ua=i.alta)==null?void 0:Ua.modo)===void 0?{}:{modo:i.alta.modo},conectado:i.conectado,barraContraida:Oa.barra==="plegada",alAlternarBarra:ec,panelAbierto:y!==void 0,alAlternarPanel:Vm,alAbrirAjustes:()=>ce(),apariencia:Qo,alCambiarApariencia:js,alIrAlEscritorio:()=>Ut(!0)}):o.jsx(Vh,{titulo:"Escritorio",conectado:i.conectado,barraContraida:Oa.barra==="plegada",alAlternarBarra:ec,alAbrirAjustes:()=>ce(),apariencia:Qo,alCambiarApariencia:js}),Ha=i.pendientesDeSubida,Xm=o.jsx(I5,{modo:"pendientes",...(Ha==null?void 0:Ha.lista)===void 0?{}:{via:"git"},...(Ha==null?void 0:Ha.error)===void 0?{}:{error:Ha.error},ficheros:(Ha==null?void 0:Ha.lista)??[],parches:i.parchesDeSubida??{},desplegados:Ee??new Set,alDesplegar:Nt,alPlegar:Jt,alRecargar:Te,conectado:i.conectado,...Pt.length===0?{}:{registro:o.jsx(LK,{operaciones:Pt})},cloudstudio:o.jsx(IK,{...i.sync===void 0?{}:{sync:i.sync},alPedir:Mo,subida:Yi,alRecargar:Te,conectado:i.conectado})});return o.jsxs(o.Fragment,{children:[o.jsx(tT,{barraContraida:Oa.barra==="plegada",...te===void 0?{}:{anchoBarra:te},alRedimensionarBarra:Gm,...Oa.panel==="columna"&&nl!==void 0?{panel:nl}:{},...V===void 0?{}:{anchoPanel:V},alRedimensionarPanel:Wm,cabecera:pi,centro:Yl?o.jsxs(o.Fragment,{children:[o.jsx(i0,{conectado:i.conectado}),o.jsx(Z5,{nombre:Cr.nombre,...ui===void 0?{}:{entorno:ui.nombre},copia:U0(Cr),conectado:i.conectado,empezarEnVuelo:!1,alGestor:io,alAutorizarConector:D=>void t({clase:"conector",accion:"autorizar",id:D}),alProbarConector:D=>void t({clase:"conector",accion:"probar",id:D}),alAbrirAjustesDeConectores:()=>ce("conectores"),alPedirSoporte:V0},Cr.id)]}):Xl?o.jsxs(o.Fragment,{children:[o.jsx(i0,{conectado:i.conectado}),Jn===void 0?null:o.jsx(B5,{texto:Jn,alCerrar:()=>bs(void 0)}),Vo===void 0?null:o.jsx(B5,{texto:Vo,alCerrar:()=>si(void 0)}),Kr===void 0||wr?null:o.jsx(xJ,{ticket:Kr,...er===void 0?{}:{nombreDelGestor:er},ocupado:ou,conectado:i.conectado,alPedir:Fa}),!Uo||Jr===void 0||Jr.clave!==Kr?null:o.jsx(yJ,{clave:Jr.clave,...er===void 0?{}:{nombreDelGestor:er},comentario:Jr.comentario,..._a===void 0?{}:{transiciones:_a},...Pr===void 0?{}:{errorTransiciones:Pr.motivo},enviando:Ct,...pr===void 0?{}:{error:pr.motivo},alConfirmar:Zo,alCancelar:()=>lo(!1)},Jr.id),Oa.panel==="centro"&&nl!==void 0?nl:o.jsx(rF,{actos:i.actos,turnoEnVuelo:i.turnoEnVuelo===!0,historica:((yc=i.alta)==null?void 0:yc.historica)===!0,sinAprobacion:((hd=i.alta)==null?void 0:hd.modoDeEscritura)==="autonomo",...((fd=i.alta)==null?void 0:fd.trabajoAlAbrir)===void 0?{}:{trabajoAlAbrir:i.alta.trabajoAlAbrir},...ja===void 0?{}:{segundosEnVuelo:ja},...mo===void 0?{}:{proyecto:mo},...((Ko=i.modelos)==null?void 0:Ko.actual)===void 0?{}:{modelo:i.modelos.actual},...((_i=i.alta)==null?void 0:_i.sesionActiva)===void 0?{}:{sesion:i.alta.sesionActiva},alAbrirArtefacto:fs,alAbrirFichero:ti,alPedirCorreccion:D=>vs(J=>({texto:D,id:((J==null?void 0:J.id)??0)+1})),alResponderConsulta:async D=>{await t({clase:"prosa",texto:D})}}),va!==void 0?o.jsx(Tl,{texto:va.texto,alResponder:async D=>{await t({clase:"respuesta",texto:D}),e.contestarPregunta()}}):null,i.secreto!==void 0&&!K?o.jsx(Tl,{texto:i.secreto.pregunta,oculta:!0,alResponder:async D=>{await t({clase:"secreto",valor:D}),e.contestarSecreto()}}):null,i.selector!==void 0?o.jsx(b5,{titulo:i.selector.titulo,opciones:i.selector.opciones,...i.selector.aviso===void 0?{}:{aviso:i.selector.aviso},alElegir:async D=>{await t({clase:"eleccion",id:D}),e.contestarSelector()}}):null,o.jsx(vR,{conectado:i.conectado,hayPendiente:i.aprobacion!==void 0||i.pregunta!==void 0||i.selector!==void 0||i.secreto!==void 0,...ai===void 0?{}:{borrador:ai},...i.modelos===void 0?{}:{modelos:i.modelos},...i.consumo===void 0?{}:{consumo:i.consumo},alPedirCatalogo:D=>void t({clase:"catalogo",proveedor:D}),alElegirModelo:D=>void t({clase:"modelo",id:D}),alElegirEsfuerzo:D=>void t(D===void 0?{clase:"esfuerzo"}:{clase:"esfuerzo",nivel:D}),alAbrirAjustes:()=>ce(),...((Es=i.alta)==null?void 0:Es.dispositivoActivo)===void 0?{}:{dispositivo:i.alta.dispositivoActivo},...i.dispositivos===void 0?{}:{dispositivos:i.dispositivos},alElegirDispositivo:D=>void t(D===void 0?{clase:"dispositivo"}:{clase:"dispositivo",id:D}),...i.enUsoDeDispositivos===void 0?{}:{dispositivosEnUso:i.enUsoDeDispositivos},...mo===void 0?{}:{proyectoActual:mo},alMedirDispositivos:ue,...((ul=i.alta)==null?void 0:ul.modoDeEscritura)===void 0?{}:{modoDeEscritura:i.alta.modoDeEscritura},alElegirModoDeEscritura:D=>void t({clase:"modoDeEscritura",modo:D}),turnoEnVuelo:i.turnoEnVuelo===!0,oculto:Oa.panel==="centro",alParar:()=>void t({clase:"cancelar"}),...r===void 0?{}:{alSubirAdjunto:(D,J)=>r(J,D)},alEnviar:(D,J)=>void t({clase:"prosa",texto:D,...J.length===0?{}:{adjuntos:J},...wr&&i.turnoDetenible===!0?{detener:!0}:{}})}),o.jsx(lF,{turnos:Hm,pasos:Um,ms:Kl==null?void 0:Kl.ms,...ks===void 0||ks.usado===0?{}:{contexto:ks.usado},...(ks==null?void 0:ks.tope)===void 0?{}:{tope:ks.tope},...ja===void 0?{}:{segundosEnVuelo:ja}}),i.aprobacion!==void 0?o.jsx(vO,{pendientes:i.aprobacion.pendientes,ficheros:i.aprobacion.ficheros,diffs:i.aprobacion.diffs,alDecidir:async D=>{await t({clase:"decision",decisiones:D}),e.cerrarAprobacion()}}):null]}):cu?o.jsxs(o.Fragment,{children:[o.jsx(i0,{conectado:i.conectado}),o.jsx(Z5,{nombre:mo??"Proyecto",...ui===void 0?{}:{entorno:ui.nombre},...((xc=i.sync)==null?void 0:xc.rama)===void 0?{}:{rama:i.sync.rama},...((Ds=i.planes)==null?void 0:Ds.lista)===void 0?{}:{planes:i.planes.lista},...pu===void 0?{}:{copia:{...U0(pu),subida:Yi,...Lr===void 0?{}:{marcaDeSubida:Lr}}},tareasEnFondo:Q0,...pu===void 0?{}:{sincronizacion:Xm},...i.gestor===void 0?{}:{gestor:i.gestor},...i.conectores===void 0?{}:{conectores:i.conectores},conectado:i.conectado,turnoEnVuelo:wr,empezarEnVuelo:dr,alVolverAlChat:()=>Xn(!1),alGestor:io,alAutorizarConector:D=>void t({clase:"conector",accion:"autorizar",id:D}),alProbarConector:D=>void t({clase:"conector",accion:"probar",id:D}),alAbrirAjustesDeConectores:()=>ce("conectores"),alPedirSoporte:V0},_n??"")]}):o.jsxs(o.Fragment,{children:[o.jsx(i0,{conectado:i.conectado}),o.jsx(FU,{conectado:i.conectado,...((Ht=(go=i.alta)==null?void 0:go.registrados.find(D=>D.id===Ba))==null?void 0:Ht.proyectos)===void 0?{}:{visibles:i.alta.registrados.find(D=>D.id===Ba).proyectos},...tl===void 0?{}:{fijados:tl},...i.nombre===void 0?{}:{nombre:i.nombre},...ui===void 0?{}:{entorno:ui},proyectos:((Lt=i.alta)==null?void 0:Lt.proyectos)??[],...((vo=i.modelos)==null?void 0:vo.actual)===void 0?{}:{modelo:i.modelos.actual},alNuevaSesion:D=>Jl(D),alNuevaTarea:D=>rc(D),alAbrirAjustes:()=>ce(),...i.dispositivos===void 0?{}:{dispositivos:i.dispositivos},alActualizarDispositivos:ue,alVerificarDispositivo:D=>void t({clase:"conexion",id:D}),...i.tareas===void 0?{}:{tareas:i.tareas},alAbrirSesionDeTarea:(D,J)=>Yn(D,J),alAbrirRevisionDeTarea:(D,J)=>Yn(D,J,"revision"),alReintentarTarea:Qr,alDescartarTarea:Ne,alTerminarTarea:Qe,...l===void 0?{}:{alMirarTarea:Mr,alDejarDeMirarTarea:sn},...ut===void 0?{}:{mirandoTarea:ut},...i.mirada===void 0?{}:{mirada:i.mirada},alEnviarFeedback:at,...((On=i.alta)==null?void 0:On.proyectoActivo)===void 0?{}:{proyectoActivo:i.alta.proyectoActivo}})]}),barra:o.jsx(TM,{conectado:i.conectado,entornos:((mr=i.alta)==null?void 0:mr.registrados)??[],entornoActivo:Ba,...((Jo=i.alta)==null?void 0:Jo.proyectoActivo)===void 0?{}:{proyectoActivo:i.alta.proyectoActivo},...((zs=i.alta)==null?void 0:zs.sesionActiva)===void 0?{}:{sesionActiva:i.alta.sesionActiva},...((dl=(hr=i.alta)==null?void 0:hr.registrados.find(D=>D.id===Ba))==null?void 0:dl.proyectos)===void 0?{}:{visibles:i.alta.registrados.find(D=>D.id===Ba).proyectos},proyectos:(((Pu=i.alta)==null?void 0:Pu.proyectos)??[]).map(D=>({...D,sesiones:(D.sesiones??[]).map(J=>({...J,historica:!0}))})),alElegirEntorno:D=>f(()=>{tn(void 0),t({clase:"entorno",accion:"activo",entorno:D})}),alAbrirSesion:(D,J)=>Yn(D,J),alAbrirProyecto:D=>du(D),...cu&&_n!==void 0?{proyectoEnResumen:_n}:Yl?{proyectoEnResumen:Cr.id}:{},...tl===void 0?{}:{fijados:tl},alFijar:(D,J)=>{const he=tl??[],qe=J?[...he.filter(wn=>wn!==D),D]:he.filter(wn=>wn!==D);t({clase:"entorno",accion:"fijados",entorno:Ba,proyectos:qe})},alNuevaSesion:D=>Jl(D),alAccionDeSesion:(D,J,he,qe)=>F({proyecto:D,sesion:J,titulo:he,accion:qe}),alAbrirAjustes:()=>ce(),alAbrirAjustesEnEntornos:()=>ce("entornos"),...Vt===void 0?{}:{abriendo:Vt},...((qu=i.alta)==null?void 0:qu.version)===void 0?{}:{version:i.alta.version}})}),Z0,Zm,Qm,W0,G0,Ro]})}const K8=Uy(),d0=Zy(K8);U9.createRoot(document.getElementById("root")).render(o.jsx(S.StrictMode,{children:o.jsx(Wne,{store:K8,enviar:d0.enviar,subirAdjunto:d0.subirAdjunto,subirAdjuntoDeSesion:d0.subirAdjuntoDeSesion,instalarSkill:d0.instalarSkill,mirar:d0.mirar})}));export{qC as a,o as j,f5 as n,S as r,RC as s,LC as t};
|