@ganglion/xacpx-web 0.1.0 → 0.1.1-beta.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/dist/assets/InviteView-BOc1EBnT.js +1 -0
- package/dist/assets/InviteView-yuIx9xlU.css +1 -0
- package/dist/assets/{LoginView-Dsg2Wg6P.css → LoginView-Bvk3-VqG.css} +1 -1
- package/dist/assets/LoginView-h8Y4CO__.js +1 -0
- package/dist/assets/SettingsView-qVP1Xj7I.js +16 -0
- package/dist/assets/WorkbenchView-6TNuHz-D.css +1 -0
- package/dist/assets/WorkbenchView-sf976HLU.js +238 -0
- package/dist/assets/_plugin-vue_export-helper-B1TSiNER.js +1 -0
- package/dist/assets/abnfDiagram-VRR7QNED-Bfnq-0My.js +1 -0
- package/dist/assets/{arc-xIkyFqT3.js → arc-CBObN0Nb.js} +1 -1
- package/dist/assets/architectureDiagram-ZJ3FMSHR-Cwjcnr5F.js +36 -0
- package/dist/assets/{blockDiagram-677ZJIJ3-lu2klE_v.js → blockDiagram-677ZJIJ3-DKru9g0i.js} +2 -2
- package/dist/assets/{c4Diagram-LMCZKHZV-Dd2hpYRb.js → c4Diagram-LMCZKHZV-lvPrXoaQ.js} +2 -2
- package/dist/assets/channel-BNfGt21l.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-7hwQqQbR.js → chunk-2Q5K7J3B-BcZORlBd.js} +1 -1
- package/dist/assets/{chunk-32BRIVSS-MavMqVVu.js → chunk-32BRIVSS-BFeByl-C.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-BX70gG4b.js → chunk-5VM5RSS4-BAsZ7hKK.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-C-jzkiZl.js → chunk-EX3LRPZG-BEPamGk2.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-ByGT38Wz.js → chunk-JWPE2WC7-D8AqpFMY.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-DiuJSp5R.js → chunk-MOJQB5TN-C29VIbqs.js} +1 -1
- package/dist/assets/{chunk-RYQCIY6F-DBkYtUGC.js → chunk-RYQCIY6F-C-MfYffE.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-C3ucixyr.js → chunk-V7JOEXUC-CxbVMb7u.js} +1 -1
- package/dist/assets/{chunk-VR4S4FIN-BtpecO0p.js → chunk-VR4S4FIN-B9g4yt-i.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-ERDTnpLj.js → chunk-XXDRQBXY-DSzrRsaB.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-Ca5GRUdJ.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-Ca5GRUdJ.js +1 -0
- package/dist/assets/copy-Gx7CQq0o.js +11 -0
- package/dist/assets/cose-bilkent-JH36ORCC-CAoomtJy.js +1 -0
- package/dist/assets/{cynefin-VYW2F7L2-CLNnfRbF.js → cynefin-VYW2F7L2-C4EF2pbv.js} +1 -1
- package/dist/assets/cynefinDiagram-TSTJHNR4-CsvyFhlF.js +62 -0
- package/dist/assets/dagre-VKFMJZFB-D3AYQQDO.js +4 -0
- package/dist/assets/{diagram-FQU43EPY-Bf181RPA.js → diagram-FQU43EPY-CjY8C3xe.js} +2 -2
- package/dist/assets/diagram-G47NLZAW-B6zUfcV7.js +24 -0
- package/dist/assets/diagram-NH7WQ7WH-BfcRhh8H.js +24 -0
- package/dist/assets/{diagram-OA4YK3LP-CNTpSOZ4.js → diagram-OA4YK3LP-BvHTSUtQ.js} +2 -2
- package/dist/assets/diagram-WEI45ONY-BvQIUnv5.js +41 -0
- package/dist/assets/ebnfDiagram-CCIWWBDH-CsnXx2Qx.js +1 -0
- package/dist/assets/{erDiagram-Q63AITRT-BbP-SlyS.js → erDiagram-Q63AITRT-BfMkAFNq.js} +2 -2
- package/dist/assets/{flowDiagram-23GEKE2U-Ea2ctANE.js → flowDiagram-23GEKE2U-T47gk4vN.js} +1 -1
- package/dist/assets/ganttDiagram-NO4QXBWP-B4ssXa9U.js +292 -0
- package/dist/assets/gitGraphDiagram-IHSO6WYX-CdLuele7.js +106 -0
- package/dist/assets/index-B8wfE3SH.css +1 -0
- package/dist/assets/index-Bs900NEP.js +113 -0
- package/dist/assets/infoDiagram-FWYZ7A6U-DRAcmkGC.js +2 -0
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-R4-8kiST.js → ishikawaDiagram-FXEZZL3T-DYKnyUXp.js} +2 -2
- package/dist/assets/{journeyDiagram-5HDEW3XC-BcFQQ_i9.js → journeyDiagram-5HDEW3XC-BrelI3Kr.js} +2 -2
- package/dist/assets/{kanban-definition-HUTT4EX6-BrWfIXIg.js → kanban-definition-HUTT4EX6-B24_Z7xO.js} +2 -2
- package/dist/assets/{linear-BInHek8u.js → linear-qSriIFO8.js} +1 -1
- package/dist/assets/{mermaid.core-8_0UbjN2.js → mermaid.core-BFHDzAZC.js} +4 -4
- package/dist/assets/{mindmap-definition-LN4V7U3C-B0TdHvaq.js → mindmap-definition-LN4V7U3C-CQ5VUdZt.js} +2 -2
- package/dist/assets/pegDiagram-2B236MQR-C0d-B3bR.js +1 -0
- package/dist/assets/{pieDiagram-ENE6RG2P-IKATT41w.js → pieDiagram-ENE6RG2P-BUmAS1kX.js} +2 -2
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-DAA0nxMd.js → quadrantDiagram-ABIIQ3AL-C0bWCxoh.js} +2 -2
- package/dist/assets/railroadDiagram-RFXS5EU6-Cutk1KhY.js +1 -0
- package/dist/assets/{requirementDiagram-TGXJPOKE-Q1744KaB.js → requirementDiagram-TGXJPOKE-C9HyBmbl.js} +2 -2
- package/dist/assets/sankeyDiagram-HTMAVEWB-BwOLr2vY.js +40 -0
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-BiKhXubm.js → sequenceDiagram-DBY2YBRQ-D4i1-eeb.js} +2 -2
- package/dist/assets/sizeCapture-X5ZJPWSS-BwSzndaE.js +1 -0
- package/dist/assets/stateDiagram-2N3HPSRC-BmD70vk2.js +1 -0
- package/dist/assets/stateDiagram-v2-6OUMAXLB-BKU6fHNV.js +1 -0
- package/dist/assets/swimlanes-5IMT3BWC-f31y9xW1.js +2 -0
- package/dist/assets/swimlanesDiagram-G3AALYLV-BRR6SbJx.js +8 -0
- package/dist/assets/theme-DqKMOXBi.js +1 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-BQjl1xn3.js → timeline-definition-FHXFAJF6-B45vrJoH.js} +2 -2
- package/dist/assets/{vennDiagram-L72KCM5P-gt4VSwF2.js → vennDiagram-L72KCM5P-Dvv1k7uJ.js} +2 -2
- package/dist/assets/{wardleyDiagram-EHGQE667-BasDZaoM.js → wardleyDiagram-EHGQE667-DPBO7Our.js} +2 -2
- package/dist/assets/{xychartDiagram-FW5EYKEG-Dq2c7URZ.js → xychartDiagram-FW5EYKEG-CVsEtEnt.js} +2 -2
- package/dist/index.html +5 -5
- package/dist/manifest.webmanifest +1 -1
- package/dist/sdk/apple-touch-icon-180x180.png +0 -0
- package/dist/sdk/assets/style-MhP_vFvK.css +32 -0
- package/dist/sdk/bloub-LICENSE.txt +27 -0
- package/dist/sdk/chunks/abnfDiagram-VRR7QNED-B5qtjKCm.js +87 -0
- package/dist/sdk/chunks/arc-DckfcY6N.js +83 -0
- package/dist/sdk/chunks/architectureDiagram-ZJ3FMSHR-xn1dMTgj.js +4753 -0
- package/dist/sdk/chunks/blockDiagram-677ZJIJ3-DjD580lM.js +2424 -0
- package/dist/sdk/chunks/c4Diagram-LMCZKHZV-lO5w5kYq.js +1583 -0
- package/dist/sdk/chunks/channel-DeoRapRN.js +5 -0
- package/dist/sdk/chunks/chunk-2Q5K7J3B-B7VVfkIP.js +18 -0
- package/dist/sdk/chunks/chunk-32BRIVSS-B9QY0GW5.js +68 -0
- package/dist/sdk/chunks/chunk-5VM5RSS4--B81dy6d.js +19 -0
- package/dist/sdk/chunks/chunk-EX3LRPZG-CJroSBFh.js +1415 -0
- package/dist/sdk/chunks/chunk-JWPE2WC7-AaSTgNpz.js +8 -0
- package/dist/sdk/chunks/chunk-MOJQB5TN-rbgz55TI.js +670 -0
- package/dist/sdk/chunks/chunk-RYQCIY6F-n1-9DbS7.js +313 -0
- package/dist/sdk/chunks/chunk-V7JOEXUC-CLWXAURS.js +1540 -0
- package/dist/sdk/chunks/chunk-VR4S4FIN-tPRRefzc.js +19 -0
- package/dist/sdk/chunks/chunk-XXDRQBXY-B4SG6mvD.js +8 -0
- package/dist/sdk/chunks/classDiagram-OUVF2IWQ-CHPdzSS0.js +16 -0
- package/dist/sdk/chunks/classDiagram-v2-EOCWNBFH-CHPdzSS0.js +16 -0
- package/dist/sdk/chunks/cose-bilkent-JH36ORCC-CI0T_oFF.js +2605 -0
- package/dist/sdk/chunks/cynefin-VYW2F7L2-DIeG_cGG.js +24384 -0
- package/dist/sdk/chunks/cynefinDiagram-TSTJHNR4-DPl06i1A.js +299 -0
- package/dist/sdk/chunks/cytoscape.esm-DCrf4dL8.js +18782 -0
- package/dist/sdk/chunks/dagre-VKFMJZFB-qmLSWQny.js +343 -0
- package/dist/sdk/chunks/defaultLocale-BgPVtth8.js +171 -0
- package/dist/sdk/chunks/diagram-FQU43EPY-C9i-uiQ1.js +463 -0
- package/dist/sdk/chunks/diagram-G47NLZAW-DLWX6tBZ.js +532 -0
- package/dist/sdk/chunks/diagram-NH7WQ7WH-I25p635N.js +145 -0
- package/dist/sdk/chunks/diagram-OA4YK3LP-BeGMKTQ0.js +350 -0
- package/dist/sdk/chunks/diagram-WEI45ONY-CUmur97L.js +217 -0
- package/dist/sdk/chunks/ebnfDiagram-CCIWWBDH-DQHafLsc.js +109 -0
- package/dist/sdk/chunks/erDiagram-Q63AITRT-B6Oa_IfF.js +913 -0
- package/dist/sdk/chunks/flowDiagram-23GEKE2U-3_6GvXef.js +1642 -0
- package/dist/sdk/chunks/ganttDiagram-NO4QXBWP-FkPyh-tZ.js +2703 -0
- package/dist/sdk/chunks/gitGraphDiagram-IHSO6WYX-DmLnJ82p.js +815 -0
- package/dist/sdk/chunks/graph-B9K2TVcv.js +1545 -0
- package/dist/sdk/chunks/infoDiagram-FWYZ7A6U-eyfU2F4B.js +24 -0
- package/dist/sdk/chunks/init-DjUOC4st.js +16 -0
- package/dist/sdk/chunks/ishikawaDiagram-FXEZZL3T-PEMPVITh.js +624 -0
- package/dist/sdk/chunks/journeyDiagram-5HDEW3XC-1iXAowVB.js +836 -0
- package/dist/sdk/chunks/kanban-definition-HUTT4EX6-rXGKUXsz.js +723 -0
- package/dist/sdk/chunks/katex-DDt5_6Ec.js +11681 -0
- package/dist/sdk/chunks/layout-4pncbm3S.js +1519 -0
- package/dist/sdk/chunks/linear-5lAVJpVm.js +259 -0
- package/dist/sdk/chunks/map-CWe83buP.js +224 -0
- package/dist/sdk/chunks/mermaid.core-k_INIWMQ.js +15609 -0
- package/dist/sdk/chunks/mindmap-definition-LN4V7U3C-BoN5wWUF.js +829 -0
- package/dist/sdk/chunks/ordinal-DfAQgscy.js +61 -0
- package/dist/sdk/chunks/pegDiagram-2B236MQR-DNFLgGUu.js +95 -0
- package/dist/sdk/chunks/pieDiagram-ENE6RG2P-z6q_yThY.js +208 -0
- package/dist/sdk/chunks/quadrantDiagram-ABIIQ3AL-Dc6AW_ML.js +1029 -0
- package/dist/sdk/chunks/railroadDiagram-RFXS5EU6-LHFUPJEv.js +77 -0
- package/dist/sdk/chunks/requirementDiagram-TGXJPOKE-6llHVY9P.js +885 -0
- package/dist/sdk/chunks/rfb-BLgKCypg.js +8664 -0
- package/dist/sdk/chunks/sankeyDiagram-HTMAVEWB-BmnWM1Yt.js +859 -0
- package/dist/sdk/chunks/sequenceDiagram-DBY2YBRQ-BmqnJ4TQ.js +2891 -0
- package/dist/sdk/chunks/sizeCapture-X5ZJPWSS-Y0Z-_h9Z.js +46 -0
- package/dist/sdk/chunks/stateDiagram-2N3HPSRC-yflP3gMi.js +263 -0
- package/dist/sdk/chunks/stateDiagram-v2-6OUMAXLB-CTJjy4ar.js +16 -0
- package/dist/sdk/chunks/swimlanes-5IMT3BWC-DQyRy4hx.js +5332 -0
- package/dist/sdk/chunks/swimlanesDiagram-G3AALYLV-CqFL_-NH.js +13 -0
- package/dist/sdk/chunks/timeline-definition-FHXFAJF6-LCrbC5ur.js +1057 -0
- package/dist/sdk/chunks/vennDiagram-L72KCM5P-BmcV7dQ4.js +1578 -0
- package/dist/sdk/chunks/wardleyDiagram-EHGQE667-CPgFb4u-.js +678 -0
- package/dist/sdk/chunks/xacpx-elements-h6xAM9bH.js +5457 -0
- package/dist/sdk/chunks/xterm-CyIO-2Mm.js +7815 -0
- package/dist/sdk/chunks/xychartDiagram-FW5EYKEG-DtNeaGCh.js +1415 -0
- package/dist/sdk/favicon.ico +0 -0
- package/dist/sdk/icon.svg +11 -0
- package/dist/sdk/mask-icon.svg +9 -0
- package/dist/sdk/push-sw.js +71 -0
- package/dist/sdk/pwa-192x192.png +0 -0
- package/dist/sdk/pwa-512x512.png +0 -0
- package/dist/sdk/pwa-64x64.png +0 -0
- package/dist/sdk/xacpx-client.js +187 -0
- package/dist/sdk/xacpx-elements.js +9 -0
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/dist/assets/DashboardView-CKCfMOvY.css +0 -1
- package/dist/assets/DashboardView-n8Gl6JxY.js +0 -563
- package/dist/assets/InviteView-8jsBh11B.css +0 -1
- package/dist/assets/InviteView-D7sU8pF6.js +0 -1
- package/dist/assets/LoginView-CbVtCj0F.js +0 -1
- package/dist/assets/SettingsView-B5PBl6gM.js +0 -6
- package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
- package/dist/assets/abnfDiagram-VRR7QNED-B7l5809m.js +0 -1
- package/dist/assets/architectureDiagram-ZJ3FMSHR-Cg8-gwr4.js +0 -36
- package/dist/assets/channel-hASgc8qV.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-BsARieti.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-BsARieti.js +0 -1
- package/dist/assets/cose-bilkent-JH36ORCC-wlnSN5rM.js +0 -1
- package/dist/assets/cynefinDiagram-TSTJHNR4-DyNszQC1.js +0 -62
- package/dist/assets/dagre-VKFMJZFB-B2Jws2d_.js +0 -4
- package/dist/assets/diagram-G47NLZAW-CHH3qZGB.js +0 -24
- package/dist/assets/diagram-NH7WQ7WH-DLiM---s.js +0 -24
- package/dist/assets/diagram-WEI45ONY-5yyJAd-z.js +0 -41
- package/dist/assets/ebnfDiagram-CCIWWBDH-B6C8zuCj.js +0 -1
- package/dist/assets/ganttDiagram-NO4QXBWP-CcHIolzV.js +0 -292
- package/dist/assets/gitGraphDiagram-IHSO6WYX-Bi0E6Pd_.js +0 -106
- package/dist/assets/index-DgJccWyg.css +0 -1
- package/dist/assets/index-DoTEJFkb.js +0 -113
- package/dist/assets/infoDiagram-FWYZ7A6U-DP4p1hFz.js +0 -2
- package/dist/assets/pegDiagram-2B236MQR-BZmLxODC.js +0 -1
- package/dist/assets/railroadDiagram-RFXS5EU6-BTgYYJzm.js +0 -1
- package/dist/assets/sankeyDiagram-HTMAVEWB-BIQVsDCT.js +0 -40
- package/dist/assets/sizeCapture-X5ZJPWSS-BiDSoXbG.js +0 -1
- package/dist/assets/stateDiagram-2N3HPSRC-DMfqOjIr.js +0 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-D6U5aKfc.js +0 -1
- package/dist/assets/swimlanes-5IMT3BWC-BSQuJJ7_.js +0 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-ahYlaOLc.js +0 -8
- package/dist/assets/theme-Diqhhm92.js +0 -31
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BFHDzAZC.js","assets/index-Bs900NEP.js","assets/index-B8wfE3SH.css","assets/xterm-MhP_vFvK.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as we,d as Ri,$ as At,y as Ct,I as rn,r as j,E as pe,a0 as Li,a as He,o as y,b as _,e as c,t as A,g as ae,h as H,F as xe,O as Se,f as ee,B as Ce,a1 as vt,p as $e,x as Pe,M as pu,a2 as ao,J as pn,a3 as Cn,i as Ue,a4 as Oi,L as ha,n as De,z as Ne,_ as lu,a5 as zi,K as Pi,a6 as Du,a7 as fn,s as Ni,a8 as Bi,a9 as qi,w as Pn,aa as Ke,ab as Yu,ac as ru,ad as jt,u as ji,q as Ui,ae as Hi}from"./index-Bs900NEP.js";import Vi from"./LoginView-h8Y4CO__.js";import{C as Wi,a as Gi}from"./copy-Gx7CQq0o.js";import{a as nt}from"./_plugin-vue_export-helper-B1TSiNER.js";import{u as Ki}from"./theme-DqKMOXBi.js";/**
|
|
3
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const Zi=we("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
8
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/const ro=we("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
|
13
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/const Ha=we("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);/**
|
|
18
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/const oo=we("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
23
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const Yi=we("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
28
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/const Xi=we("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]);/**
|
|
33
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const Ji=we("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
38
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const Va=we("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
|
|
43
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const Qi=we("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
48
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const Wa=we("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]);/**
|
|
53
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const e0=we("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
58
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const t0=we("folder-open",[["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",key:"usdka0"}]]);/**
|
|
63
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const n0=we("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
|
|
68
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const u0=we("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);/**
|
|
73
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const a0=we("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
|
|
78
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const io=we("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
83
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const r0=we("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
88
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const o0=we("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
|
|
93
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const i0=we("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
|
|
98
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const s0=we("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
|
|
103
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const Xu=we("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
108
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const l0=we("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
|
|
113
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const Ju=we("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
118
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const pa=we("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
123
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const c0=we("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|
128
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const d0=we("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
133
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const f0=we("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
138
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const Fu=we("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/**
|
|
143
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const h0=we("square-split-horizontal",[["path",{d:"M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3",key:"lubmu8"}],["path",{d:"M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3",key:"1ag34g"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
148
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const so=we("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
|
|
153
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const p0=we("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
158
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const lo=we("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
|
|
163
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const m0=we("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/**
|
|
168
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const b0=we("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
173
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const g0=we("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Ga="0123456789abcdef";function Ka(){const e=globalThis.crypto;if(typeof e?.randomUUID=="function")return e.randomUUID();const t=new Uint8Array(16);if(typeof e?.getRandomValues=="function")e.getRandomValues(t);else for(let u=0;u<t.length;u+=1)t[u]=Math.floor(Math.random()*256);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n="";for(let u=0;u<t.length;u+=1){(u===4||u===6||u===8||u===10)&&(n+="-");const a=t[u];n+=Ga[a>>4]+Ga[a&15]}return n}new TextEncoder;class co extends Error{path;constructor(t,n){super(`${t.join(".")||"value"}: ${n}`),this.path=t,this.name="SchemaError"}}var Qu=Symbol("rpc.optional"),Ye=(e,t)=>{throw new co(e,t)},kt=(e,t)=>{const n={parse:(u,a=[])=>t(u,a),toJsonSchema:()=>typeof e=="function"?e():e,optional:()=>ho(n),nullable:()=>po(n),refine:(u,a)=>mo(n,u,a)};return n},ma=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function v0(){let e=0,t=Number.POSITIVE_INFINITY,n;const a={...kt(()=>({type:"string",...e>0?{minLength:e}:{},...Number.isFinite(t)?{maxLength:t}:{},...n?{pattern:n.source}:{}}),(r,o)=>typeof r!="string"?Ye(o,"expected string"):r.length<e||r.length>t?Ye(o,`length must be ${e}..${t}`):n&&!n.test(r)?Ye(o,"string does not match pattern"):r),min(r){return e=r,a},max(r){return t=r,a},pattern(r){return n=r,a}};return a}function y0(){let e=!1,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY;const a={...kt(()=>({type:e?"integer":"number",...Number.isFinite(t)?{minimum:t}:{},...Number.isFinite(n)?{maximum:n}:{}}),(r,o)=>typeof r!="number"||!Number.isFinite(r)?Ye(o,"expected finite number"):e&&!Number.isInteger(r)?Ye(o,"expected integer"):r<t||r>n?Ye(o,`number must be ${t}..${n}`):r),int(){return e=!0,a},min(r){return t=r,a},max(r){return n=r,a}};return a}function k0(e){return kt({const:e},(t,n)=>t===e?e:Ye(n,`expected ${JSON.stringify(e)}`))}function x0(...e){return kt({enum:[...e]},(t,n)=>typeof t=="string"&&e.includes(t)?t:Ye(n,`expected one of ${e.join(", ")}`))}function w0(e){let t=0,n=Number.POSITIVE_INFINITY;const a={...kt(()=>({type:"array",items:e.toJsonSchema(),...t>0?{minItems:t}:{},...Number.isFinite(n)?{maxItems:n}:{}}),(r,o)=>Array.isArray(r)?r.length<t||r.length>n?Ye(o,`length must be ${t}..${n}`):r.map((i,s)=>e.parse(i,[...o,s])):Ye(o,"expected array")),min(r){return t=r,a},max(r){return n=r,a}};return a}function _0(e){const t=Object.keys(e);return kt(()=>({type:"object",properties:Object.fromEntries(t.map(u=>[u,e[u].toJsonSchema()])),required:t.filter(u=>!(Qu in e[u])),additionalProperties:!1}),(u,a)=>{if(!ma(u))return Ye(a,"expected object");for(const o of Object.keys(u))o in e||Ye([...a,o],"unknown key");const r={};for(const o of t){const i=e[o];if(!(o in u)||u[o]===void 0){if(Qu in i)continue;Ye([...a,o],"required")}r[o]=i.parse(u[o],[...a,o])}return r})}function fo(e){return kt({type:"object",additionalProperties:e.toJsonSchema()},(t,n)=>ma(t)?Object.fromEntries(Object.entries(t).map(([u,a])=>[u,e.parse(a,[...n,u])])):Ye(n,"expected object"))}function E0(...e){return kt({anyOf:e.map(t=>t.toJsonSchema())},(t,n)=>{for(const u of e)try{return u.parse(t,n)}catch(a){if(!(a instanceof co))throw a}return Ye(n,"does not match any union member")})}function ho(e){return{...kt(e.toJsonSchema(),(t,n)=>t===void 0?void 0:e.parse(t,n)),[Qu]:!0}}function po(e){return kt({anyOf:[e.toJsonSchema(),{type:"null"}]},(t,n)=>t===null?null:e.parse(t,n))}function mo(e,t,n){return kt(e.toJsonSchema(),(u,a)=>{const r=e.parse(u,a);return t(r)?r:Ye(a,n)})}function ea(){return kt({},(e,t)=>e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"&&Number.isFinite(e)?e:Array.isArray(e)?e.map((n,u)=>ea().parse(n,[...t,u])):ma(e)?fo(ea()).parse(e,t):Ye(t,"expected JSON value"))}var f={string:v0,number:y0,boolean:()=>kt({type:"boolean"},(e,t)=>typeof e=="boolean"?e:Ye(t,"expected boolean")),literal:k0,enum:x0,array:w0,object:_0,record:fo,union:E0,optional:ho,nullable:po,refine:mo,json:ea},M=f.string().min(1).max(200),Fe=f.number().int().min(0),Ht=f.number().int().min(0),It=f.string().min(1).max(64),Nn=f.number().int().min(1).max(200),ba=f.string().min(1).max(512),ta=f.enum("session","direct","group","topic"),mu=f.object({agent:M,model:f.string().min(1).max(200).optional(),effort:f.string().min(1).max(100).optional(),executionInstanceId:M.optional()}),na=f.object({routing:f.enum("lead","automatic","manual"),collaboration:f.enum("none","roundtable","dispatch"),memory:f.enum("on","off"),isolation:f.enum("shared","dedicated","worktree")}),Xt=f.object({id:M,kind:ta,parentThreadId:M.optional(),title:f.string().max(500).optional(),status:f.enum("active","archived","deleting","deleted"),profileId:M.optional(),workspaceId:M.optional(),policy:na.optional(),clearEpoch:Fe,nextSeq:Ht,revision:Fe,executionInstanceId:M.optional(),executionDriver:f.string().min(1).max(100).optional(),switchTarget:mu.optional(),createdAt:It,updatedAt:It});f.object({id:M,name:f.string().min(1).max(200),kind:f.enum("bot","agent"),agent:M,driver:f.string().min(1).max(100).optional(),avatar:f.json().optional(),instructions:f.string().max(1e5).optional(),memoryCursor:f.string().max(500).optional(),removalPhase:f.enum("active","removing","removed"),revision:Fe,createdAt:It,updatedAt:It});var Za=f.object({id:M,threadId:M,profileId:M,role:f.enum("lead","member","observer"),enabled:f.boolean(),memoryCursor:f.string().max(500).optional(),runtimeBinding:f.record(f.json()).optional(),revision:Fe}),Jn=f.object({id:M,threadId:M,state:f.enum("accepted","routing","running","waiting-human","paused","terminal"),source:f.enum("prompt","orchestration","schedule","group"),requestId:M,messageEventId:M.optional(),target:mu.optional(),routingGeneration:Fe,createdAt:It,updatedAt:It}),Ya=f.object({id:M,threadId:M,turnId:M,memberId:M.optional(),kind:f.enum("assignment","member-turn","roundtable"),state:f.enum("queued","blocked","running","terminal"),dependsOn:f.array(M).max(100),attempt:Fe,revision:Fe}),A0=f.object({id:M,workItemId:M,state:f.enum("pending","claimed","started","settled","indeterminate"),owner:f.string().max(200).optional(),leaseExpiresAt:It.optional(),generation:Fe,clearEpoch:Fe,revision:Fe}),C0=f.enum("message","trace","route","handoff","switch","interaction","lifecycle"),ou=f.object({id:M,threadId:M,seq:Ht,kind:C0,payload:f.json(),turnId:M.optional(),workItemId:M.optional(),memberId:M.optional(),createdAt:It}),Xa=f.object({id:M,instanceId:M.optional(),name:f.string().min(1).max(200),cwd:f.string().min(1).max(4096),kind:f.enum("registered","dedicated","worktree"),parentWorkspaceId:M.optional(),status:f.enum("active","archived","removing","removed"),revision:Fe,createdAt:It,updatedAt:It}),ua=f.object({id:M,instanceId:M,threadId:M,turnId:M.optional(),workItemId:M.optional(),kind:f.enum("question","permission","approval"),status:f.enum("open","answered","cancelled","expired"),prompt:f.string().max(2e4),answer:f.json().optional(),createdAt:It,expiresAt:It.optional()}),aa=f.object({instanceId:M,online:f.boolean(),capabilities:f.array(f.string().max(200)).max(200),driver:f.string().max(100).optional()}),I0=f.object({name:f.string().min(1).max(300),input:f.json(),output:f.json()}),Ja=f.object({id:f.string().min(1).max(100),name:f.string().min(1).max(200),version:f.string().min(1).max(100),enabled:f.boolean(),revision:Fe,rpcs:f.array(I0).max(500)});function me(e,t,n,u){return{name:e,domain:t,input:n,output:u}}var cu=f.object({instanceId:M,threadId:M}),Qa=e=>f.object({items:f.array(e).max(200),nextCursor:ba.optional()}),sn=()=>f.object({ok:f.literal(!0)}),er=f.object({modelId:M,name:f.string().max(200).optional(),source:f.string().max(100).optional(),capabilities:f.array(f.string().max(100)).max(100).optional()}),S0=f.object({name:M,driver:f.string().min(1).max(100),workspaces:f.array(f.string().max(500)).max(200).optional()}),T0=f.object({id:M,filename:f.string().min(1).max(500),mimeType:f.string().min(1).max(200),size:f.number().int().min(0),kind:f.enum("image","file","audio","video"),filePath:f.string().max(4096).optional()}),D0=f.object({range:f.array(f.number().int().min(0)).min(2).max(2),handle:f.string().min(1).max(300)}),F0=f.string().max(35e4).refine(e=>e.length%4===0&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e),"invalid base64"),$0=f.string().min(1).max(100).pattern(/^[a-z][a-z0-9-]*$/),Rt={list:f.object({instanceId:M.optional(),kind:ta.optional(),cursor:ba.optional(),limit:Nn.optional()}),get:cu,create:f.object({instanceId:M,kind:ta,parentThreadId:M.optional(),agent:M.optional(),botId:M.optional(),groupId:M.optional(),workspace:M.optional(),title:f.string().max(500).optional(),executionInstanceId:M.optional()}),update:f.refine(f.object({instanceId:M,threadId:M,title:f.string().max(500).optional(),settings:f.record(f.json()).optional(),expectedRevision:Fe.optional()}),e=>e.title!==void 0||e.settings!==void 0,"update requires title or settings"),archive:f.object({instanceId:M,threadId:M,archived:f.boolean(),expectedRevision:Fe.optional()}),delete:f.object({instanceId:M,threadId:M,mode:f.enum("detach","delete"),expectedRevision:Fe.optional()}),fork:f.refine(f.object({instanceId:M,threadId:M,atMessageId:M.optional(),atRunId:M.optional(),targetAgent:M.optional(),executionInstanceId:M.optional(),handoffMode:f.enum("none","summary","full").optional()}),e=>e.atMessageId===void 0||e.atRunId===void 0,"fork boundary is ambiguous"),"switch.set":f.object({instanceId:M,threadId:M,target:mu,expectedRevision:Fe.optional()}),"switch.cancel":f.object({instanceId:M,threadId:M,revision:Fe}),"timeline.get":f.refine(f.object({instanceId:M,threadId:M,beforeSeq:Ht.optional(),afterSeq:Ht.optional(),limit:Nn.optional()}),e=>e.beforeSeq===void 0||e.afterSeq===void 0,"timeline cursor is ambiguous")},ln={send:f.object({instanceId:M,threadId:M,text:f.string().max(1e5),attachments:f.array(T0).max(20).optional(),mentions:f.array(D0).max(32).optional(),target:mu.optional(),requestId:M}),cancel:f.refine(f.object({instanceId:M,threadId:M,runId:M.optional(),requestId:M.optional()}),e=>e.runId!==void 0||e.requestId!==void 0,"cancel requires runId or requestId"),"queue.list":cu,"queue.cancel":f.object({instanceId:M,threadId:M,queueItemId:M}),"runs.list":f.object({instanceId:M,threadId:M,cursor:ba.optional(),limit:Nn.optional()}),"runs.get":f.object({instanceId:M,threadId:M,runId:M}),"trace.get":f.object({instanceId:M,threadId:M,runId:M,memberTurnId:M.optional(),attempt:Fe.optional(),cursor:Ht.optional(),limit:Nn.optional()})},$u={"models.get":f.object({instanceId:M,executionInstanceId:M.optional(),agent:M,workspace:M}),"capabilities.get":f.object({instanceId:M,executionInstanceId:M.optional(),agent:M,workspace:M,botId:M.optional()}),"health.get":f.object({instanceId:M})},M0=f.union(f.object({instanceId:M,executionInstanceId:M.optional(),action:f.literal("create"),name:f.string().min(1).max(200),cwd:f.string().min(1).max(4096)}),f.object({instanceId:M,executionInstanceId:M.optional(),action:f.literal("remove"),workspaceId:M}),f.object({instanceId:M,executionInstanceId:M.optional(),action:f.literal("rename"),workspaceId:M,name:f.string().min(1).max(200)})),R0=f.union(f.object({instanceId:M,threadId:M,action:f.literal("add"),botId:M,role:f.enum("lead","member","observer").optional()}),f.refine(f.object({instanceId:M,threadId:M,action:f.literal("update"),participantId:M,role:f.enum("lead","member","observer").optional(),enabled:f.boolean().optional()}),e=>e.role!==void 0||e.enabled!==void 0,"participant update is empty")),L0={"threads.list":me("threads.list","threads",Rt.list,Qa(Xt)),"threads.get":me("threads.get","threads",Rt.get,f.object({thread:Xt})),"threads.create":me("threads.create","threads",Rt.create,f.object({thread:Xt})),"threads.update":me("threads.update","threads",Rt.update,f.object({thread:Xt})),"threads.archive":me("threads.archive","threads",Rt.archive,f.object({thread:Xt})),"threads.delete":me("threads.delete","threads",Rt.delete,sn()),"threads.fork":me("threads.fork","threads",Rt.fork,f.object({thread:Xt})),"threads.switch.set":me("threads.switch.set","threads",Rt["switch.set"],f.object({thread:Xt})),"threads.switch.cancel":me("threads.switch.cancel","threads",Rt["switch.cancel"],f.object({thread:Xt})),"threads.timeline.get":me("threads.timeline.get","threads",Rt["timeline.get"],f.object({events:f.array(ou).max(200),nextSeq:Ht.optional(),hasMore:f.boolean(),clearEpoch:Fe,revision:Fe})),"turns.send":me("turns.send","turns",ln.send,f.object({turn:Jn,event:ou})),"turns.cancel":me("turns.cancel","turns",ln.cancel,f.object({turn:Jn})),"turns.queue.list":me("turns.queue.list","turns",ln["queue.list"],f.object({items:f.array(Ya).max(200)})),"turns.queue.cancel":me("turns.queue.cancel","turns",ln["queue.cancel"],sn()),"turns.runs.list":me("turns.runs.list","turns",ln["runs.list"],Qa(Jn)),"turns.runs.get":me("turns.runs.get","turns",ln["runs.get"],f.object({turn:Jn,workItems:f.array(Ya).max(200),attempts:f.array(A0).max(500)})),"turns.trace.get":me("turns.trace.get","turns",ln["trace.get"],f.object({events:f.array(ou).max(200),nextSeq:Ht.optional(),hasMore:f.boolean(),recordingState:f.enum("recording","complete","interrupted","unavailable"),completenessReason:f.string().max(200).optional()})),"interactions.list":me("interactions.list","interactions",f.object({instanceId:M.optional(),limit:Nn.optional()}),f.object({interactions:f.array(ua).max(200)})),"interactions.respond":me("interactions.respond","interactions",f.object({instanceId:M,interactionId:M,answer:f.union(f.string().max(4e3),f.record(f.json())),requestId:M.optional()}),f.object({interaction:ua})),"runtime.models.get":me("runtime.models.get","runtime",$u["models.get"],f.object({models:f.array(er).max(500)})),"runtime.capabilities.get":me("runtime.capabilities.get","runtime",$u["capabilities.get"],f.object({models:f.array(er).max(500),efforts:f.record(f.json()),commands:f.record(f.json())})),"runtime.health.get":me("runtime.health.get","runtime",$u["health.get"],f.object({status:aa})),"remote.instances.list":me("remote.instances.list","remote",f.object({includeOffline:f.boolean().optional()}),f.object({instances:f.array(aa).max(500)})),"remote.agents.list":me("remote.agents.list","remote",f.object({executionInstanceId:M}),f.object({agents:f.array(S0).max(500)})),"workspaces.list":me("workspaces.list","workspaces",f.object({instanceId:M,executionInstanceId:M.optional()}),f.object({workspaces:f.array(Xa).max(500)})),"workspaces.mutate":me("workspaces.mutate","workspaces",M0,f.object({workspace:Xa})),"participants.list":me("participants.list","participants",cu,f.object({members:f.array(Za).max(500)})),"participants.mutate":me("participants.mutate","participants",R0,f.object({member:Za})),"participants.remove":me("participants.remove","participants",f.object({instanceId:M,threadId:M,participantId:M}),sn()),"policies.get":me("policies.get","policies",cu,f.object({policy:na})),"policies.update":me("policies.update","policies",f.refine(f.object({instanceId:M,threadId:M,routing:f.enum("lead","automatic","manual").optional(),collaboration:f.enum("none","roundtable","dispatch").optional(),memory:f.enum("on","off").optional(),isolation:f.enum("shared","dedicated","worktree").optional(),expectedRevision:Fe.optional()}),e=>e.routing!==void 0||e.collaboration!==void 0||e.memory!==void 0||e.isolation!==void 0,"policy update is empty"),f.object({policy:na,revision:Fe})),"files.read":me("files.read","files",f.object({instanceId:M,executionInstanceId:M.optional(),path:f.string().min(1).max(4096)}),f.object({path:f.string().max(4096),content:f.string().max(2e6),revision:Fe.optional()})),"files.write":me("files.write","files",f.object({instanceId:M,executionInstanceId:M.optional(),path:f.string().min(1).max(4096),content:f.string().max(1e6),expectedRevision:Fe.optional()}),f.object({path:f.string().max(4096),revision:Fe})),"files.diff":me("files.diff","files",f.object({instanceId:M,executionInstanceId:M.optional(),workspace:M}),f.object({diff:f.json()})),"terminal.open":me("terminal.open","terminal",f.object({instanceId:M,threadId:M.optional(),cols:f.number().int().min(2).max(500).optional(),rows:f.number().int().min(1).max(300).optional()}),f.object({terminalId:M,generation:M,cols:f.number().int().min(2).max(500),rows:f.number().int().min(1).max(300)})),"terminal.input":me("terminal.input","terminal",f.object({instanceId:M,terminalId:M,dataBase64:F0}),sn()),"terminal.resize":me("terminal.resize","terminal",f.object({instanceId:M,terminalId:M,cols:f.number().int().min(2).max(500),rows:f.number().int().min(1).max(300)}),sn()),"terminal.close":me("terminal.close","terminal",f.object({instanceId:M,terminalId:M}),sn()),"desktop.open":me("desktop.open","desktop",f.object({instanceId:M}),f.object({streamId:M,wsPath:f.string().min(1).max(500),expiresAt:f.number().int().min(0),security:f.enum("none","password","token")})),"desktop.close":me("desktop.close","desktop",f.object({instanceId:M,streamId:M}),sn()),"plugins.list":me("plugins.list","plugins",f.object({}),f.object({plugins:f.array(Ja).max(500)})),"plugins.set":me("plugins.set","plugins",f.object({pluginId:$0,enabled:f.boolean(),config:f.json().optional()}),f.object({plugin:Ja})),"settings.get":me("settings.get","settings",f.object({scope:f.enum("user","instance"),instanceId:M.optional(),key:f.string().max(200).optional()}).refine(e=>e.scope!=="instance"||e.instanceId!==void 0,"instance scope requires instanceId"),f.object({value:f.json()})),"settings.update":me("settings.update","settings",f.object({scope:f.enum("user","instance"),instanceId:M.optional(),key:f.string().min(1).max(200),value:f.json(),expectedRevision:Fe.optional()}).refine(e=>e.scope!=="instance"||e.instanceId!==void 0,"instance scope requires instanceId"),f.object({revision:Fe}))},O0=Object.keys(L0);new Set(O0);function z0(e){return new Proxy({},{get(t,n){if(!(typeof n!="string"||n==="then"))return u=>e(n,u)}})}var P0=f.union(f.object({type:f.literal("thread.event"),instanceId:M,threadId:M,seq:Ht,event:ou}),f.object({type:f.literal("interaction.updated"),interaction:ua}),f.object({type:f.literal("runtime.status"),status:aa}),f.object({type:f.literal("terminal.output"),instanceId:M,terminalId:M,generation:M,epoch:Fe,sequence:Ht,dataBase64:f.string().max(35e4)}),f.object({type:f.literal("plugin.changed"),pluginId:f.string().min(1).max(100),enabled:f.boolean(),revision:Fe})),N0=e=>P0.parse(e);class ga extends Error{constructor(t,n,u){super(u||t),this.code=t,this.status=n,this.detail=u,this.name="ThreadRpcError"}}const B0=new Set(["thread.event","interaction.updated","runtime.status","terminal.output","plugin.changed"]);function q0(e){if(typeof e!="object"||e===null)return;const t=e;return typeof t.type=="string"?e:t.data??t.event??e}function tr(e){const t=q0(e);if(typeof t!="object"||t===null)return;const n=t.type;if(!(typeof n!="string"||!B0.has(n)))try{return N0(t)}catch{return}}function ra(e){return typeof e.token=="function"?e.token():e.token}function bo(e){return e.baseUrl?.replace(/\/+$/,"")??""}function j0(e){const t=bo(e);if(t)return t;const n=e.location??(typeof globalThis.location>"u"?void 0:globalThis.location);return n?`${n.protocol}//${n.host}`:""}function U0(e){if(typeof e!="object"||e===null)return;const t=e;return typeof t.instanceId=="string"&&t.instanceId.length>0?t.instanceId:typeof t.executionInstanceId=="string"&&t.executionInstanceId.length>0?t.executionInstanceId:void 0}function H0(e,t){const n=bo(e);if((e.mode??"local")==="relay"){const a=U0(t)??e.instanceId;if(a)return`${n}/api/instances/${encodeURIComponent(a)}/rpc`}return`${n}/api/rpc`}function V0(e){const t=e.wsPath;if(t&&/^wss?:\/\//.test(t))return nr(t,ra(e));const n=j0(e),u=n?n.replace(/^http:/,"ws:").replace(/^https:/,"wss:"):(e.location?.protocol==="https:"?"wss://":"ws://")+(e.location?.host??"");return nr(`${u}${t??"/ws/rpc"}`,ra(e))}function nr(e,t){if(!t)return e;const n=e.includes("?")?"&":"?";return`${e}${n}token=${encodeURIComponent(t)}`}function W0(e,t){const n=typeof e?.code=="string"&&e.code.length>0?e.code:typeof e?.error=="string"&&e.error.length>0?e.error:"rpc-failed",u=typeof e?.message=="string"&&e.message.length>0?e.message:typeof e?.error=="string"&&e.error.length>0?e.error:void 0;return new ga(n,t,u)}async function G0(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return}if(typeof Blob<"u"&&e instanceof Blob)try{return JSON.parse(await e.text())}catch{return}if(e instanceof ArrayBuffer)try{return JSON.parse(new TextDecoder().decode(e))}catch{return}if(ArrayBuffer.isView(e))try{return JSON.parse(new TextDecoder().decode(e))}catch{return}}function K0(e={}){const t=e.fetch??globalThis.fetch.bind(globalThis),n=new Set,u=new Set,a=new Set;let r=null,o=null,i=null,s=0,l=!1,d=!1,m=ra(e);const p=e.reconnect?.baseDelayMs??250,g=e.reconnect?.maxDelayMs??8e3;function x(){e.onUnauthorized?.();for(const I of[...a])I()}function b(){if(d||n.size===0||o)return;s=Math.min(s+1,6);const I=Math.min(p*2**(s-1),g);o=setTimeout(()=>{o=null,E()},I)}function E(){if(d||n.size===0||r)return;if(e.subscribe){l=!0;return}const I=e.WebSocket??globalThis.WebSocket;if(!I)return;const C=new I(V0({...e,token:m}));r=C;const $=()=>r===C;C.onopen=()=>{if(!$())return;const D=l;if(l=!0,s=0,D)for(const z of[...u])try{z()}catch{}},C.onmessage=D=>{$()&&G0(D.data).then(z=>{if(!$())return;const T=tr(z);if(T)for(const W of[...n])W(T)})},C.onclose=()=>{$()&&(r=null,b())},C.onerror=()=>{$()&&C.close()}}function S(){o&&(clearTimeout(o),o=null);const I=r;r=null,I?.close()}return{async rpc(I,C){const $=H0(e,C),D={"content-type":"application/json"};m&&(D.authorization=`Bearer ${m}`);const z=await t($,{method:"POST",credentials:"include",headers:D,body:JSON.stringify({name:I,input:C})}),T=await z.json().catch(()=>{});if(!z.ok||T?.ok===!1)throw(z.status===401||T?.code==="unauthorized"||T?.error==="unauthorized")&&x(),W0(T,z.status);if(T?.ok!==!0)throw new ga("invalid-envelope",z.status);return T.data},subscribe(I){return n.add(I),e.subscribe?(i||(i=e.subscribe(C=>{const $=tr(C);if($)for(const D of[...n])D($)})),()=>{n.delete(I),n.size===0&&i&&(i(),i=null)}):(E(),()=>{n.delete(I),n.size===0&&S()})},onReconnect(I){return u.add(I),()=>{u.delete(I)}},onUnauthorized(I){return a.add(I),()=>{a.delete(I)}},setAuthToken(I){I!==m&&(m=I,r&&(S(),E()))},dispose(){d=!0,n.clear(),u.clear(),a.clear(),i?.(),i=null,S()}}}function Z0(e){return{rpc:z0((t,n)=>e.rpc(t,n)),subscribe:t=>e.subscribe(t),onReconnect:t=>e.onReconnect?.(t)??(()=>{}),onUnauthorized:t=>e.onUnauthorized?.(t)??(()=>{}),setAuthToken:t=>e.setAuthToken?.(t),dispose:()=>e.dispose?.()}}function Y0(e={}){return K0(e)}function X0(e={}){return Z0(Y0(e))}function hn(e){return`${e.instanceId}:${e.threadId}`}const ur=1e3,J0=()=>({thread:0,timeline:0,queue:0,runs:0,trace:0,members:0,policy:0,interactions:0,switch:0});function Q0(e){return{key:hn(e),instanceId:e.instanceId,threadId:e.threadId,thread:null,loadingThread:!1,timelineLoading:!1,loadingOlder:!1,events:[],hasMore:!1,nextSeq:void 0,clearEpoch:0,revision:0,turns:[],queue:[],interactions:[],members:[],policy:null,runs:[],runsNextCursor:void 0,runDetail:null,trace:null,switchPending:null,switchError:null,commandReplies:[],error:null,timelineError:null,epochs:J0()}}function tt(e){return e instanceof Error?e.message:String(e)}function Mu(e,t,n){return e.rpc[t](n)}function ar(e){return e instanceof ga?e.status===404||e.code==="unknown-rpc"||e.code==="invalid-rpc-name"||e.code==="not-found":!1}function Rn(e,t){const n=e.findIndex(a=>a.id===t.id);if(n===-1)return[...e,t];const u=e.slice();return u[n]=t,u}function oa(e,t){const n=e.findIndex(a=>a.id===t.id),u=e.slice();return n===-1?u.push(t):u[n]=t,u.sort((a,r)=>a.seq-r.seq||a.id.localeCompare(r.id)),u.length>ur?u.slice(u.length-ur):u}function rr(e){return e.reduce((t,n)=>oa(t,n),[])}function or(e,t){return Rn(e.slice(),t)}function es(e){return JSON.stringify([e.instanceId??null,e.kind??null,e.cursor??null,e.limit??null])}function ts(e){const t=At({panes:At({}),lists:At({}),runtimes:At({}),remoteInstances:[],remoteAgents:At({}),workspaces:At({}),commands:At({}),plugins:[],pluginStates:At({}),terminals:At({}),authRequired:!1}),n=new Map,u=new Set;let a=null,r=null,o=null,i=!1;function s(){a||i||(a=e.subscribe(T),r=e.onReconnect(()=>{rt()}),o=e.onUnauthorized(()=>{t.authRequired=!0}))}function l(v){return t.panes[hn(v)]}function d(v){const k=hn(v),w=t.panes[k];if(w)return w;s();const L=At(Q0(v));return t.panes[k]=L,L}function m(v){let k=t.runtimes[v];return k||(k=At({executionInstanceId:v,modelsLoading:!1,capabilitiesLoading:!1,healthLoading:!1,error:null,modelsEpoch:0,capabilitiesEpoch:0,healthEpoch:0}),t.runtimes[v]=k),k}function p(v){const k=es(v);let w=t.lists[k];return w||(w=At({key:k,query:{...v},items:[],nextCursor:void 0,loading:!1,error:null,epoch:0}),t.lists[k]=w),w}function g(v,k){for(const w of Object.values(t.lists)){if(w.query.instanceId&&w.query.instanceId!==k||w.query.kind&&w.query.kind!==v.kind)continue;const L=w.items.findIndex(V=>V.id===v.id);if(L===-1)w.items=[v,...w.items];else{const V=w.items.slice();V[L]=v,w.items=V}}}function x(v){for(const k of Object.values(t.lists))k.query.instanceId&&k.query.instanceId!==v.instanceId||(k.items=k.items.filter(w=>w.id!==v.threadId))}function b(v,k){v.thread=k,v.revision=k.revision,v.clearEpoch=k.clearEpoch,g(k,v.instanceId)}function E(v){return l(v)?.thread?.executionInstanceId??v.instanceId}function S(v){return l(v)?.thread?.executionDriver}function R(v){return t.runtimes[E(v)]?.models??[]}function I(v){return t.runtimes[E(v)]?.capabilities}function C(v){return t.workspaces[E(v)]??[]}function $(v){return t.remoteAgents[v]??[]}function D(v){const k=new Set,w=[];for(const L of Object.values(t.lists))if(L.query.instanceId===v)for(const V of L.items)k.has(V.id)||(k.add(V.id),w.push(V));return w.sort((L,V)=>V.updatedAt.localeCompare(L.updatedAt))}function z(v,k=v){return t.workspaces[k]??t.workspaces[v]??[]}function T(v){for(const k of u)k(v);if(v.type==="thread.event"){for(const k of Object.values(t.panes))k.instanceId!==v.instanceId||k.threadId!==v.threadId||(k.events=oa(k.events,v.event),k.nextSeq=Math.max(k.nextSeq??0,v.seq),k.thread&&(k.thread={...k.thread,nextSeq:Math.max(k.thread.nextSeq,v.seq)}));return}if(v.type==="interaction.updated"){const k=v.interaction;for(const w of Object.values(t.panes))w.instanceId!==k.instanceId||w.threadId!==k.threadId||(w.interactions=or(w.interactions,k));return}if(v.type==="runtime.status"){const k=v.status,w=t.remoteInstances.filter(V=>V.instanceId!==k.instanceId);t.remoteInstances=[...w,k];const L=m(k.instanceId);L.driver!==k.driver&&(L.models=void 0,L.capabilities=void 0),L.driver=k.driver,L.health=k;return}if(v.type==="plugin.changed"){t.pluginStates[v.pluginId]={pluginId:v.pluginId,enabled:v.enabled,revision:v.revision};const k=t.plugins.findIndex(w=>w.id===v.pluginId);k>=0&&(t.plugins[k]={...t.plugins[k],enabled:v.enabled,revision:v.revision});return}v.type==="terminal.output"&&(t.terminals[v.terminalId]={generation:v.generation,epoch:v.epoch,sequence:v.sequence,dataBase64:v.dataBase64})}function W(v){return s(),u.add(v),()=>{u.delete(v)}}function G(v){return s(),e.onReconnect(v)}function U(v,k={}){return Mu(e,v,k)}async function J(v){const k=d(v),w=++k.epochs.thread;k.loadingThread=!0,k.error=null;try{const L=await e.rpc["threads.get"]({...v});return k.epochs.thread===w&&b(k,L.thread),L.thread}catch(L){throw k.epochs.thread===w&&(k.error=tt(L)),L}finally{k.epochs.thread===w&&(k.loadingThread=!1)}}async function q(v={}){const k=p(v),w=++k.epoch;k.loading=!0,k.error=null;try{const L=await e.rpc["threads.list"]({...v});return k.epoch===w&&(k.items=L.items,k.nextCursor=L.nextCursor),L}catch(L){throw k.epoch===w&&(k.error=tt(L)),L}finally{k.epoch===w&&(k.loading=!1)}}async function ue(v){const k=await e.rpc["threads.create"](v);return g(k.thread,v.instanceId),k.thread}async function de(v,k){const w=d(v),L=await e.rpc["threads.update"]({...v,...k});return b(w,L.thread),L.thread}async function be(v,k,w){const L=d(v),V=await e.rpc["threads.archive"]({...v,archived:k,...w===void 0?{}:{expectedRevision:w}});return b(L,V.thread),V.thread}async function ge(v,k,w){const L=d(v);await e.rpc["threads.delete"]({...v,mode:k,...w===void 0?{}:{expectedRevision:w}}),delete t.panes[L.key],x(v)}async function se(v,k={}){const w=await e.rpc["threads.fork"]({...v,...k});return g(w.thread,v.instanceId),w.thread}async function O(v){const k=d(v),w=await e.rpc["threads.update"]({...v,settings:{clear:!0}});return b(k,w.thread),k.events=[],k.commandReplies=[],k.hasMore=!1,k.nextSeq=void 0,k.clearEpoch=w.thread.clearEpoch,w.thread}async function Y(v,k={}){const w=d(v),L=++w.epochs.timeline;w.timelineLoading=!0,w.timelineError=null;try{const V=await e.rpc["threads.timeline.get"]({...v,limit:k.limit??100});return w.epochs.timeline===L&&(w.events=rr([...V.events,...w.events]),w.hasMore=V.hasMore,w.nextSeq=Math.max(V.nextSeq??0,...w.events.map(fe=>fe.seq)),w.clearEpoch=V.clearEpoch,w.revision=V.revision),V}catch(V){throw w.epochs.timeline===L&&(w.timelineError=tt(V)),V}finally{w.epochs.timeline===L&&(w.timelineLoading=!1)}}async function K(v,k=100){const w=d(v),L=w.events[0];if(!L||!w.hasMore||w.loadingOlder)return null;const V=++w.epochs.timeline;w.loadingOlder=!0,w.timelineError=null;try{const fe=await e.rpc["threads.timeline.get"]({...v,beforeSeq:L.seq,limit:k});return w.epochs.timeline===V&&(w.events=rr([...fe.events,...w.events]),w.hasMore=fe.hasMore,w.nextSeq=fe.nextSeq??w.nextSeq,w.clearEpoch=fe.clearEpoch,w.revision=fe.revision),fe}catch(fe){throw w.epochs.timeline===V&&(w.timelineError=tt(fe)),fe}finally{w.epochs.timeline===V&&(w.loadingOlder=!1)}}async function X(v,k,w){const L=d(v),V=++L.epochs.switch;L.switchPending=k,L.switchError=null;try{const fe=await e.rpc["threads.switch.set"]({...v,target:k,...w===void 0?{}:{expectedRevision:w}});return L.epochs.switch===V&&(L.switchPending=null,b(L,fe.thread)),fe.thread}catch(fe){throw L.epochs.switch===V&&(L.switchPending=null,L.switchError=tt(fe)),fe}}async function Oe(v,k){const w=d(v),L=++w.epochs.switch;w.switchError=null;try{const V=await e.rpc["threads.switch.cancel"]({...v,revision:k});return w.epochs.switch===L&&(w.switchPending=null,b(w,V.thread)),V.thread}catch(V){throw w.epochs.switch===L&&(w.switchError=tt(V)),V}}async function xt(v,k){const w=d(v),{requestId:L,...V}=k,fe=await e.rpc["turns.send"]({...v,...V,requestId:L??Ka()});return w.turns=Rn(w.turns,fe.turn),w.events=oa(w.events,fe.event),fe}async function Tt(v){const k=t.commands[v];if(k)return k;const w=n.get(v);if(w)return w;const L=(async()=>{try{const V=await Mu(e,"plugin.commands.list",{instanceId:v}),fe=Array.isArray(V?.commands)?V.commands.filter(Te=>Te&&typeof Te.name=="string").map(Te=>({...Te,aliases:Array.isArray(Te.aliases)?Te.aliases:[],description:typeof Te.description=="string"?Te.description:""})):[];return t.commands[v]=fe,fe}catch(V){return ar(V)&&(t.commands[v]=[]),[]}finally{n.delete(v)}})();return n.set(v,L),L}function mt(v){return t.commands[v]??[]}async function dt(v,k){try{const w=await Mu(e,"plugin.commands.exec",{instanceId:v.instanceId,threadId:v.threadId,text:k});if(!w||typeof w.handled!="boolean")return{handled:!1};if(w.handled&&typeof w.reply=="string"&&w.reply.length>0){const L=d(v);L.commandReplies=[...L.commandReplies,{id:Ka(),text:w.reply,createdAt:new Date().toISOString()}].slice(-20)}return w}catch(w){if(ar(w))return{handled:!1};throw w}}async function bt(v,k){const w=d(v),L=await e.rpc["turns.cancel"]({...v,...k});return w.turns=Rn(w.turns,L.turn),L.turn}async function gt(v){const k=d(v),w=++k.epochs.queue;try{const L=await e.rpc["turns.queue.list"]({...v});return k.epochs.queue===w&&(k.queue=L.items),L.items}catch(L){throw k.epochs.queue===w&&(k.error=tt(L)),L}}async function ft(v,k){const w=d(v);await e.rpc["turns.queue.cancel"]({...v,queueItemId:k}),w.queue=w.queue.filter(L=>L.id!==k)}async function _e(v,k={}){const w=d(v),L=++w.epochs.runs;try{const V=await e.rpc["turns.runs.list"]({...v,...k.cursor===void 0?{}:{cursor:k.cursor},...k.limit===void 0?{}:{limit:k.limit}});return w.epochs.runs===L&&(w.runs=V.items,w.runsNextCursor=V.nextCursor),V.items}catch(V){throw w.epochs.runs===L&&(w.error=tt(V)),V}}async function ce(v,k){const w=d(v),L=await e.rpc["turns.runs.get"]({...v,runId:k});return w.runDetail=L,L}async function Z(v,k,w={}){const L=d(v),V=++L.epochs.trace;try{const fe=await e.rpc["turns.trace.get"]({...v,runId:k,...w.memberTurnId===void 0?{}:{memberTurnId:w.memberTurnId},...w.attempt===void 0?{}:{attempt:w.attempt},...w.cursor===void 0?{}:{cursor:w.cursor},...w.limit===void 0?{}:{limit:w.limit}});return L.epochs.trace===V&&(L.trace=fe),fe}catch(fe){throw L.epochs.trace===V&&(L.error=tt(fe)),fe}}async function Q(v){const k=d(v),w=++k.epochs.interactions;try{const V=(await e.rpc["interactions.list"]({instanceId:v.instanceId,limit:100})).interactions.filter(fe=>fe.threadId===v.threadId);return k.epochs.interactions===w&&(k.interactions=V),V}catch(L){throw k.epochs.interactions===w&&(k.error=tt(L)),L}}async function ve(v,k,w,L){const V=d(v),fe=await e.rpc["interactions.respond"]({instanceId:v.instanceId,interactionId:k,answer:w,...L===void 0?{}:{requestId:L}});return V.interactions=or(V.interactions,fe.interaction),fe.interaction}async function ut(v){const k=d(v),w=++k.epochs.members;try{const L=await e.rpc["participants.list"]({...v});return k.epochs.members===w&&(k.members=L.members),L.members}catch(L){throw k.epochs.members===w&&(k.error=tt(L)),L}}async function Vt(v,k){const w=d(v),L=await e.rpc["participants.mutate"]({...v,...k});return w.members=Rn(w.members,L.member),L.member}async function et(v,k){const w=d(v);await e.rpc["participants.remove"]({...v,participantId:k}),w.members=w.members.filter(L=>L.id!==k)}async function Wt(v){const k=d(v),w=++k.epochs.policy,L=await e.rpc["policies.get"]({...v});return k.epochs.policy===w&&(k.policy=L.policy),L.policy}async function $t(v,k){const w=d(v),L=await e.rpc["policies.update"]({...v,...k});return w.policy=L.policy,L.policy}async function P(v,k={}){const w=d(v),L=E(v),V=m(L),fe=k.agent??w.thread?.switchTarget?.agent??w.thread?.executionDriver,Te=k.workspace??w.thread?.workspaceId;if(!fe||!Te)return V.models=[],V.error="runtime target is unavailable",[];const Re=++V.modelsEpoch;V.modelsLoading=!0,V.error=null;try{const Ve=await e.rpc["runtime.models.get"]({instanceId:v.instanceId,...L===v.instanceId?{}:{executionInstanceId:L},agent:fe,workspace:Te});return V.modelsEpoch===Re&&(V.models=Ve.models),Ve.models}catch(Ve){throw V.modelsEpoch===Re&&(V.error=tt(Ve)),Ve}finally{V.modelsEpoch===Re&&(V.modelsLoading=!1)}}async function B(v,k={}){const w=d(v),L=E(v),V=m(L),fe=k.agent??w.thread?.switchTarget?.agent??w.thread?.executionDriver,Te=k.workspace??w.thread?.workspaceId;if(!fe||!Te){V.capabilities=void 0,V.error="runtime target is unavailable";return}const Re=++V.capabilitiesEpoch;V.capabilitiesLoading=!0,V.error=null;try{const Ve=await e.rpc["runtime.capabilities.get"]({instanceId:v.instanceId,...L===v.instanceId?{}:{executionInstanceId:L},agent:fe,workspace:Te,...k.botId===void 0?{}:{botId:k.botId}});return V.capabilitiesEpoch===Re&&(V.capabilities=Ve),Ve}catch(Ve){throw V.capabilitiesEpoch===Re&&(V.error=tt(Ve)),Ve}finally{V.capabilitiesEpoch===Re&&(V.capabilitiesLoading=!1)}}async function N(v){const k=m(v.instanceId),w=++k.healthEpoch;k.healthLoading=!0,k.error=null;try{const L=await e.rpc["runtime.health.get"]({instanceId:v.instanceId});return k.healthEpoch===w&&(k.health=L.status),L.status}catch(L){throw k.healthEpoch===w&&(k.error=tt(L)),L}finally{k.healthEpoch===w&&(k.healthLoading=!1)}}async function le(v=!1){const k=await e.rpc["remote.instances.list"]({includeOffline:v});return t.remoteInstances=k.instances,k.instances}async function Ie(v){const k=await e.rpc["remote.agents.list"]({executionInstanceId:v});return t.remoteAgents[v]=k.agents,k.agents}async function at(v,k){const w=k??E(v);return wt(v.instanceId,w)}async function wt(v,k){const w=k??v,L=await e.rpc["workspaces.list"]({instanceId:v,...w===v?{}:{executionInstanceId:w}});return t.workspaces[w]=L.workspaces,L.workspaces}async function Mt(v,k){const w=k.executionInstanceId??E(v),L=await e.rpc["workspaces.mutate"]({...k,instanceId:v.instanceId,...w===v.instanceId?{}:{executionInstanceId:w}}),V=t.workspaces[w]??[];return t.workspaces[w]=Rn(V,L.workspace),L.workspace}async function Gt(v,k,w,L){const V=m(k),fe=++V.modelsEpoch;V.modelsLoading=!0,V.error=null;try{const Te=await e.rpc["runtime.models.get"]({instanceId:v,...k===v?{}:{executionInstanceId:k},agent:w,workspace:L});return V.modelsEpoch===fe&&(V.models=Te.models),Te.models}catch(Te){throw V.modelsEpoch===fe&&(V.error=tt(Te)),Te}finally{V.modelsEpoch===fe&&(V.modelsLoading=!1)}}async function Kt(v,k,w,L,V){const fe=m(k),Te=++fe.capabilitiesEpoch;fe.capabilitiesLoading=!0,fe.error=null;try{const Re=await e.rpc["runtime.capabilities.get"]({instanceId:v,...k===v?{}:{executionInstanceId:k},agent:w,workspace:L,...V===void 0?{}:{botId:V}});return fe.capabilitiesEpoch===Te&&(fe.capabilities=Re),Re}catch(Re){throw fe.capabilitiesEpoch===Te&&(fe.error=tt(Re)),Re}finally{fe.capabilitiesEpoch===Te&&(fe.capabilitiesLoading=!1)}}async function te(v){return(await e.rpc["settings.get"](v)).value}async function ne(v){return(await e.rpc["settings.update"](v)).revision}async function ie(){const k=(await e.rpc["plugins.list"]({})).plugins;return t.plugins=k,k}async function ke(v,k,w){const L=await e.rpc["plugins.set"]({pluginId:v,enabled:k,...w===void 0?{}:{config:w}});return t.plugins=t.plugins.map(V=>V.id===v?L.plugin:V),L.plugin}async function rt(){const v=Object.values(t.lists),k=Object.values(t.panes);await Promise.allSettled([...v.map(w=>q(w.query)),...k.map(w=>J(w)),...k.map(w=>Y(w)),...k.map(w=>Q(w)),ie()])}function Zt(v){e.setAuthToken(v),v&&(t.authRequired=!1)}function _t(){i=!0,a?.(),a=null,r?.(),r=null,o?.(),o=null,e.dispose(),t.panes={},t.lists={},t.runtimes={},t.remoteInstances=[],t.remoteAgents={},t.workspaces={},t.commands={},t.plugins=[],t.pluginStates={},t.terminals={},t.authRequired=!1,n.clear(),u.clear()}return{data:t,client:e,subscribe:W,onReconnect:G,rpc:U,pane:l,ensurePane:d,ingest:T,loadThread:J,loadThreads:q,createThread:ue,updateThread:de,archiveThread:be,deleteThread:ge,forkThread:se,clearThread:O,loadTimeline:Y,loadOlder:K,switchSet:X,switchCancel:Oe,send:xt,loadCommands:Tt,commandsFor:mt,execCommand:dt,cancel:bt,loadQueue:gt,cancelQueue:ft,loadRuns:_e,loadRun:ce,loadTrace:Z,loadInteractions:Q,respondInteraction:ve,loadMembers:ut,mutateParticipant:Vt,removeParticipant:et,loadPolicy:Wt,updatePolicy:$t,loadModels:P,loadCapabilities:B,loadHealth:N,loadExecutionModels:Gt,loadExecutionCapabilities:Kt,getSetting:te,updateSetting:ne,loadRemoteInstances:le,loadRemoteAgents:Ie,loadWorkspaces:at,loadInstanceWorkspaces:wt,mutateWorkspace:Mt,listPlugins:ie,setPlugin:ke,executionInstanceIdFor:E,driverFor:S,modelsFor:R,capabilitiesFor:I,workspacesFor:C,workspacesForInstance:z,remoteAgentsFor:$,threadsFor:D,resync:rt,setAuthToken:Zt,dispose:_t}}const Vn=Ri("thread",()=>ts(X0()));function ns(){const e=j(typeof window<"u"&&window.innerWidth<1024);function t(){e.value=window.innerWidth<1024}return Ct(()=>window.addEventListener("resize",t)),rn(()=>window.removeEventListener("resize",t)),e}const Ln={participants:!1,policies:!1,switchTarget:!0,fork:!0,worktree:!1,mentions:!1,roundtable:!1,stopAll:!1,persona:!1,topicDrawer:!1},go={session:{kind:"session",fallbackTitle:"Session",capabilities:{...Ln},composer:{placeholder:"Message the agent…",showAttachments:!0,showMentions:!1},header:{showExecutionMachine:!0,showParticipants:!1,showPersona:!1,showTopicDrawer:!1,showStopAll:!1}},direct:{kind:"direct",fallbackTitle:"Direct",capabilities:{...Ln,persona:!0,topicDrawer:!0},composer:{placeholder:"Message this bot…",showAttachments:!0,showMentions:!1},header:{showExecutionMachine:!0,showParticipants:!1,showPersona:!0,showTopicDrawer:!0,showStopAll:!1}},group:{kind:"group",fallbackTitle:"Group",capabilities:{...Ln,participants:!0,policies:!0,mentions:!0,roundtable:!0,stopAll:!0,worktree:!0},composer:{placeholder:"Message the group…",showAttachments:!0,showMentions:!0},header:{showExecutionMachine:!0,showParticipants:!0,showPersona:!1,showTopicDrawer:!1,showStopAll:!0}},topic:{kind:"topic",fallbackTitle:"Topic",capabilities:{...Ln,participants:!0,policies:!0,mentions:!0,roundtable:!0,stopAll:!0,worktree:!0,topicDrawer:!0},composer:{placeholder:"Message the topic…",showAttachments:!0,showMentions:!0},header:{showExecutionMachine:!0,showParticipants:!0,showPersona:!1,showTopicDrawer:!0,showStopAll:!0}}},us={kind:"session",fallbackTitle:"Thread",capabilities:{...Ln},composer:{placeholder:"Message the thread…",showAttachments:!0,showMentions:!1},header:{showExecutionMachine:!0,showParticipants:!1,showPersona:!1,showTopicDrawer:!1,showStopAll:!1}},Dn="builtin";function Qn(e){const{kind:t,...n}=go[e];return n}class vo{revision=j(0);entries=[];sequence=0;constructor(){this.register({kind:"session",adapter:Qn("session"),create:{label:"Session"}},Dn),this.register({kind:"direct",adapter:Qn("direct"),create:{label:"Direct"}},Dn),this.register({kind:"group",adapter:Qn("group"),create:{label:"Group"}},Dn),this.register({kind:"topic",adapter:Qn("topic"),create:!1},Dn)}register(t,n){const u={ownerId:n,registration:t,priority:t.priority??0,sequence:++this.sequence,active:!0};return this.entries.push(u),this.revision.value+=1,()=>{u.active&&(u.active=!1,this.revision.value+=1)}}adapterFor(t){this.revision.value;const n=t??"session",u=this.entriesFor(n)[0];return u?{...u.registration.adapter,kind:n}:{...us,kind:n}}creatableKinds(){this.revision.value;const t=[];for(const n of Object.keys(go)){const u=this.entriesFor(n).find(r=>r.registration.create!==void 0),a=u?.registration.create;!u||!a||t.push({kind:n,label:a.label,pluginId:u.ownerId})}return t}hasCustomProvider(t){return this.revision.value,this.entries.some(n=>n.active&&n.ownerId!==Dn&&n.registration.kind===t)}entriesFor(t){return this.entries.filter(n=>n.active&&n.registration.kind===t).sort((n,u)=>u.priority-n.priority||(n.ownerId<u.ownerId?-1:n.ownerId>u.ownerId?1:0)||u.sequence-n.sequence)}}const yo=new vo;function va(e){return yo.adapterFor(e)}function as(){return yo.creatableKinds()}const mn=Symbol("xacpx-plugin-ui-host");function ia(e){return e instanceof Error?e.stack??e.message:String(e)}function rs(e,t,n){const u=document.createElement("div");u.className="xacpx-plugin-error",u.dataset.test="plugin-slot-error";const a=document.createElement("strong");a.textContent=`Plugin “${e}” failed in this area.`;const r=document.createElement("details"),o=document.createElement("summary");o.textContent="Error details";const i=document.createElement("pre");i.textContent=ia(t),r.append(o,i);const s=document.createElement("div"),l=document.createElement("button");l.type="button",l.dataset.test="plugin-error-disable",l.textContent="Disable plugin",l.addEventListener("click",()=>{n.disable(e)});const d=document.createElement("button");return d.type="button",d.dataset.test="plugin-error-repair",d.textContent="Ask Agent to fix",d.addEventListener("click",()=>{n.repair(e,t)}),s.append(l,d),u.append(a,r,s),u}class os{revision=j(0);toasts=j([]);drawer=j(null);views=j([]);activeView=j(null);failures=j([]);rootApp=j(null);kindRegistry=new vo;creatableKinds=pe(()=>this.kindRegistry.creatableKinds());safeMode;store;stateGetter;loadModule;onDisable;onRepair;active=new Map;channels=new Map;listeners=new Map;toastTimers=new Map;nextToast=0;nextDrawer=0;ready=!1;refreshing=null;refreshAgain=!1;disposed=!1;constructor(t){this.store=t.store,this.safeMode=t.safeMode,this.stateGetter=t.getState,this.loadModule=t.loadModule??(n=>import(n)),this.onDisable=t.onDisable,this.onRepair=t.onRepair}getState(){return this.stateGetter()}get hasRootApp(){return!this.safeMode&&this.rootApp.value!==null}adapterFor(t){return this.kindRegistry.adapterFor(t)}async refresh(){if(!(this.safeMode||this.disposed))return this.refreshing?(this.refreshAgain=!0,this.refreshing):(this.refreshing=(async()=>{do{this.refreshAgain=!1;const[t,n]=await Promise.allSettled([this.store.listPlugins(),this.store.rpc("plugin.market.catalog",{})]),u=t.status==="fulfilled"?[...t.value]:[];if(t.status==="rejected")return;if(n.status==="fulfilled"){const a=new Map((n.value?.plugins??n.value?.catalog??[]).map(r=>[r.id,r]));for(const r of u){const o=a.get(r.id);o&&(o.webAssetUrl&&(r.webAssetUrl=o.webAssetUrl),o.styleAssetUrl&&(r.styleAssetUrl=o.styleAssetUrl),o.webRevision!==void 0&&(r.webRevision=o.webRevision))}}await this.sync(u),this.ready=!0}while(this.refreshAgain&&!this.disposed)})().finally(()=>{this.refreshing=null}),this.refreshing)}async sync(t){if(this.safeMode)return;const n=new Map(t.filter(u=>u.enabled).map(u=>[u.id,u]));for(const[u,a]of this.active){const r=n.get(u),o=r?this.signature(r):"";(!r||o!==a.signature)&&this.deactivate(u)}for(const[u,a]of n)!a.webAssetUrl||this.active.has(u)||await this.activate(a,this.ready);this.revision.value+=1}signature(t){return`${t.revision}:${t.webRevision??""}:${t.webAssetUrl??""}:${t.styleAssetUrl??""}`}async activate(t,n){const u={manifest:t,signature:this.signature(t),scope:Li(),cleanups:[],registrations:[],rootApp:null,disposed:!1};this.active.set(t.id,u),this.failures.value=this.failures.value.filter(a=>a.pluginId!==t.id);try{if(t.styleAssetUrl){const o=document.createElement("link");o.rel="stylesheet",o.href=`${t.styleAssetUrl}?v=${t.webRevision??t.revision}`,o.dataset.xacpxPlugin=t.id,document.head.append(o),u.cleanups.push(()=>o.remove())}const a=`${t.webAssetUrl}?v=${t.webRevision??t.revision}`,r=await u.scope.run(()=>this.loadModule(a));if(this.active.get(t.id)!==u||this.disposed){this.disposeRecord(u);return}if(await u.scope.run(()=>r?.activate?.(this.uiFor(u))),this.active.get(t.id)!==u||this.disposed){this.disposeRecord(u);return}n&&this.toast(`${t.name} loaded`,{pluginId:t.id,action:{label:"Disable",run:()=>{this.disable(t.id)}}})}catch(a){this.active.get(t.id)===u?(this.deactivate(t.id),this.failures.value=[...this.failures.value,{pluginId:t.id,message:ia(a)}]):this.disposeRecord(u)}this.revision.value+=1}deactivate(t){const n=this.active.get(t);n&&(this.active.delete(t),this.rootApp.value?.pluginId===t&&(this.rootApp.value=null),this.disposeRecord(n))}disposeRecord(t){if(t.disposed)return;t.disposed=!0;for(const u of t.registrations){const a=this.channels.get(u.key);a&&this.channels.set(u.key,a.filter(r=>r!==u));for(const r of u.runs.values())for(const o of r)try{o()}catch(i){console.error("plugin cleanup failed",i)}u.runs.clear()}for(const u of t.cleanups.reverse())try{u()}catch(a){console.error("plugin cleanup failed",a)}try{t.scope.stop()}catch(u){console.error("plugin scope stop failed",u)}this.views.value=this.views.value.filter(u=>this.viewOwners.get(u.id)!==t.manifest.id);for(const[u,a]of this.viewOwners)a===t.manifest.id&&this.viewOwners.delete(u);this.activeView.value&&!this.views.value.some(u=>u.id===this.activeView.value)&&(this.activeView.value=null),this.drawer.value?.pluginId===t.manifest.id&&(this.drawer.value=null);const n=this.toasts.value.filter(u=>u.pluginId===t.manifest.id);this.toasts.value=this.toasts.value.filter(u=>u.pluginId!==t.manifest.id);for(const u of n){const a=this.toastTimers.get(u.id);a&&clearTimeout(a),this.toastTimers.delete(u.id)}this.revision.value+=1}viewOwners=new Map;register(t,n,u){const a={pluginId:t.manifest.id,key:n,render:u,runs:new Map},r=this.channels.get(n)??[];r.push(a),this.channels.set(n,r),t.registrations.push(a),this.revision.value+=1}uiFor(t){return{slot:(n,u)=>this.register(t,`slot:${n}`,u),override:(n,u)=>this.register(t,`override:${n}`,u),messageRenderer:(n,u)=>this.register(t,`message:${n}`,u),style:n=>{const u=document.createElement("style");u.dataset.xacpxPlugin=t.manifest.id,u.textContent=n,document.head.append(u),t.cleanups.push(()=>u.remove())},registerView:(n,u)=>{const a={...u,id:n};this.viewOwners.set(n,t.manifest.id),this.views.value=[...this.views.value.filter(r=>r.id!==n),a],this.revision.value+=1},openDrawer:(n,u)=>{const a=++this.nextDrawer;this.register(t,`drawer:${a}`,u),this.drawer.value={id:a,title:n,pluginId:t.manifest.id},this.revision.value+=1},toast:(n,u)=>this.toast(n,{...u,pluginId:t.manifest.id}),rpc:(n,u)=>this.store.rpc(n,u),on:(n,u)=>this.on(n,u,t),getState:()=>this.getState(),effect:n=>{t.cleanups.push(n)},replaceApp:n=>{if(t.disposed)return;const u=this.rootApp.value;if(u){const r=this.active.get(u.pluginId);r&&(r.rootApp=null)}const a={pluginId:t.manifest.id,render:n};t.rootApp=a,this.rootApp.value=a,this.revision.value+=1},registerThreadKind:n=>{if(this.safeMode||t.disposed)return()=>{};const u=this.kindRegistry.register({...n,priority:n.priority??10},t.manifest.id);return t.cleanups.push(u),this.revision.value+=1,u}}}on(t,n,u){const a=this.listeners.get(t)??new Set;a.add(n),this.listeners.set(t,a);const r=()=>{a.delete(n)};return u?.cleanups.push(r),r}emit(t,n){for(const u of this.listeners.get(t)??[])u(n)}subscribe(t){return this.store.subscribe(n=>{n.type==="plugin.changed"&&this.refresh(),t(n)})}hasOverride(t,n=!1){return(this.channels.get(n?`message:${t}`:`override:${t}`)?.length??0)>0}clearRootApp(t){if(t&&this.rootApp.value?.pluginId!==t)return;const n=this.rootApp.value;if(n){const u=this.active.get(n.pluginId);u?.rootApp===n&&(u.rootApp=null)}this.rootApp.value=null,this.revision.value+=1}renderRoot(t,n){t.replaceChildren();const u=this.rootApp.value;if(!u)return()=>{};const a=document.createElement("div");a.className="xacpx-plugin-mount xacpx-root-app-mount",a.dataset.plugin=u.pluginId,t.append(a);let r,o=!1;const i=s=>{o||this.rootApp.value!==u||(this.clearRootApp(u.pluginId),this.failures.value=[...this.failures.value,{pluginId:u.pluginId,message:ia(s)}])};try{const s=u.render(a,n);s instanceof Promise?s.then(l=>{typeof l=="function"&&(!o&&this.rootApp.value===u?r=l:l())}).catch(i):typeof s=="function"&&(r=s)}catch(s){i(s)}return()=>{if(!o){o=!0;try{r?.()}catch(s){console.error("plugin root cleanup failed",s)}a.remove()}}}render(t,n,u,a){u.replaceChildren();const o=(t==="slot"?[`slot:${n}`,`override:${n}`]:[`${t}:${n}`]).flatMap(s=>this.channels.get(s)??[]),i=[];for(const s of o){const l=document.createElement("div");l.className="xacpx-plugin-mount",l.dataset.plugin=s.pluginId,u.append(l);const d=[];s.runs.set(l,d);try{const m=s.render(l,a);if(typeof m=="function"){let p=!1;d.push(()=>{p||(p=!0,m())})}}catch(m){l.replaceChildren(rs(s.pluginId,m,this))}i.push(()=>{for(const m of d.reverse())m();s.runs.delete(l),l.remove()})}return()=>{if(i.length===0)return;const s=i.splice(0).reverse();for(const l of s)l();u.replaceChildren()}}toast(t,n={}){const u=++this.nextToast;this.toasts.value=[...this.toasts.value,{id:u,text:t,...n}];const a=setTimeout(()=>this.dismissToast(u),n.duration??4e3);this.toastTimers.set(u,a)}dismissToast(t){const n=this.toastTimers.get(t);n&&clearTimeout(n),this.toastTimers.delete(t),this.toasts.value=this.toasts.value.filter(u=>u.id!==t)}runToastAction(t){this.toasts.value.find(u=>u.id===t)?.action?.run(),this.dismissToast(t)}setActiveView(t){this.activeView.value=t,this.emit("view:change",t)}closeDrawer(){this.drawer.value=null,this.revision.value+=1}async disable(t){await this.onDisable?.(t),await this.refresh()}async repair(t,n){await this.onRepair?.(t,n)}dispose(){this.disposed=!0;for(const t of[...this.active.keys()])this.deactivate(t);for(const t of this.toastTimers.values())clearTimeout(t);this.toastTimers.clear(),this.listeners.clear(),this.toasts.value=[],this.drawer.value=null,this.views.value=[],this.rootApp.value=null}}const is={en:{hideSidebar:"Hide sidebar",showSidebar:"Show sidebar",openPanes:"Open panes",toggleTerminal:"Toggle terminal",toggleDesktop:"Toggle desktop",togglePlugins:"Toggle plugins",newThread:"New",emptyTitle:"Open a thread",emptyBody:"Choose a thread from the sidebar, or start a new one.",newSession:"New session",terminal:"Terminal",desktop:"Desktop",closeTool:"Close tool panel",closePane:"Close pane",plugins:"Plugins",closePlugins:"Close plugins panel",switchTheme:"Switch theme",switchLanguage:"Switch language",connected:"Connected",opening:"Opening…",connecting:"Connecting…",closed:"Closed",terminalUnavailable:"Terminal unavailable",desktopUnavailable:"Desktop unavailable",passwordRequired:"Password required",vncPassword:"VNC password",connect:"Connect",retry:"Retry",trace:"Trace",closeTrace:"Close trace",loadingTrace:"Loading trace…",sidebarEyebrow:"Workbench",threads:"Threads",refreshThreads:"Refresh threads",searchThreads:"Search threads",statusFilter:"Thread status filter",filterActive:"Active",filterArchived:"Archived",filterAll:"All",noInstances:"No instances reported yet.",newThreadAria:"New thread",workspaces:"Workspaces",worktree:"Worktree",policy:"Policy",noThreadsMatch:"No threads match.",renameThread:"Rename thread",rename:"Rename",kindSession:"Session",kindDirect:"Direct",kindGroup:"Group",kindTopic:"Topic",openInSplit:"Open in split pane",archiveThread:"Archive thread",unarchiveThread:"Unarchive thread",deleteThread:"Delete thread",confirmDeleteThread:"Confirm delete thread",dialogEyebrow:"New Thread",instance:"Instance",executionMachine:"Execution machine",agent:"Agent",workspace:"Workspace",selectWorkspace:"Select a workspace",model:"Model",effort:"Effort",defaultOption:"Default",title:"Title",botProfile:"Bot profile",persona:"Persona",avatar:"Avatar",instructions:"Instructions",groupProfile:"Group profile",members:"Members",routing:"Routing",collaboration:"Collaboration",memory:"Memory",isolation:"Isolation",cancel:"Cancel",create:"Create",creating:"Creating…",routingLead:"Lead",routingAutomatic:"Automatic",routingManual:"Manual",collaborationNone:"None",collaborationRoundtable:"Roundtable",collaborationDispatch:"Dispatch",memoryOn:"On",memoryOff:"Off",isolationShared:"Shared",isolationDedicated:"Dedicated",isolationWorktree:"Worktree",send:"Send",stop:"Stop",stopAll:"Stop all",commands:"Commands",commandResult:"Command result",loadEarlier:"Load earlier",loading:"Loading…",noMessages:"No messages yet.",copySelection:"Copy selection",pasteClipboard:"Paste clipboard",fitDesktop:"Fit desktop",fullscreenDesktop:"Fullscreen desktop",desktopDisconnected:"Desktop disconnected",passwordRejected:"Password rejected",securityUnsupported:"Desktop security unsupported",permissionRequired:"Permission required",permissionAllowOnce:"Allow once",permissionAllowAlways:"Allow always",permissionRejectOnce:"Reject",permissionRejectAlways:"Always reject",permissionCancel:"Cancel",switchTarget:"Switch target",switchApply:"Apply",settings:"Settings",answer:"Answer",submitAnswer:"Submit",declineAction:"Decline",cancelSwitch:"Cancel switch",topics:"Topics",participants:"Participants",forkThread:"Fork thread",clearContext:"Clear context"},zh:{hideSidebar:"收起侧栏",showSidebar:"展开侧栏",openPanes:"已打开面板",toggleTerminal:"终端",toggleDesktop:"桌面",togglePlugins:"插件",newThread:"新建",emptyTitle:"打开一个会话",emptyBody:"从侧栏选择一个会话,或新建一个。",newSession:"新建会话",terminal:"终端",desktop:"桌面",closeTool:"关闭工具面板",closePane:"关闭面板",plugins:"插件",closePlugins:"关闭插件面板",switchTheme:"切换主题",switchLanguage:"切换语言",connected:"已连接",opening:"正在打开…",connecting:"正在连接…",closed:"已关闭",terminalUnavailable:"终端不可用",desktopUnavailable:"桌面不可用",passwordRequired:"需要密码",vncPassword:"VNC 密码",connect:"连接",retry:"重试",trace:"追踪",closeTrace:"关闭追踪",loadingTrace:"正在加载追踪…",sidebarEyebrow:"工作台",threads:"会话",refreshThreads:"刷新会话",searchThreads:"搜索会话",statusFilter:"会话状态筛选",filterActive:"活跃",filterArchived:"已归档",filterAll:"全部",noInstances:"还没有上报的实例。",newThreadAria:"新建会话",workspaces:"工作区",worktree:"工作树",policy:"策略",noThreadsMatch:"没有匹配的会话。",renameThread:"重命名会话",rename:"重命名",kindSession:"会话",kindDirect:"直聊",kindGroup:"群组",kindTopic:"话题",openInSplit:"在分屏中打开",archiveThread:"归档会话",unarchiveThread:"取消归档",deleteThread:"删除会话",confirmDeleteThread:"确认删除会话",dialogEyebrow:"新建会话",instance:"实例",executionMachine:"执行机器",agent:"Agent",workspace:"工作区",selectWorkspace:"选择工作区",model:"模型",effort:"推理强度",defaultOption:"默认",title:"标题",botProfile:"Bot 配置",persona:"人格",avatar:"头像",instructions:"指令",groupProfile:"群组配置",members:"成员",routing:"路由",collaboration:"协作",memory:"记忆",isolation:"隔离",cancel:"取消",create:"创建",creating:"创建中…",routingLead:"Lead",routingAutomatic:"自动",routingManual:"手动",collaborationNone:"无",collaborationRoundtable:"圆桌",collaborationDispatch:"派发",memoryOn:"开启",memoryOff:"关闭",isolationShared:"共享",isolationDedicated:"独立",isolationWorktree:"工作树",send:"发送",stop:"停止",stopAll:"全部停止",commands:"命令",commandResult:"命令结果",loadEarlier:"加载更早",loading:"加载中…",noMessages:"还没有消息。",copySelection:"复制选中内容",pasteClipboard:"粘贴剪贴板",fitDesktop:"适应窗口",fullscreenDesktop:"全屏桌面",desktopDisconnected:"桌面连接已断开",passwordRejected:"密码不正确",securityUnsupported:"不支持该桌面安全方式",permissionRequired:"需要授权",permissionAllowOnce:"允许一次",permissionAllowAlways:"始终允许",permissionRejectOnce:"拒绝",permissionRejectAlways:"始终拒绝",permissionCancel:"取消",switchTarget:"切换目标",switchApply:"应用",settings:"设置",answer:"回答",submitAnswer:"提交",declineAction:"拒绝",cancelSwitch:"取消切换",topics:"话题",participants:"参与者",forkThread:"分叉会话",clearContext:"清空上下文"}};function Le(e,t){return is[t][e]}function ht(e){if(e)return e.toLowerCase().startsWith("zh")?"zh":"en";try{const n=localStorage.getItem("relay-locale");if(n)return n.toLowerCase().startsWith("zh")?"zh":"en"}catch{}const t=typeof document>"u"?"":document.documentElement.lang;return t?t.toLowerCase().startsWith("zh")?"zh":"en":typeof navigator<"u"&&navigator.language.toLowerCase().startsWith("zh")?"zh":"en"}const ss={class:"thread-switch"},ls=["aria-expanded"],cs={key:0,class:"thread-switch-panel","data-test":"thread-switch-panel"},ds={class:"thread-switch-field"},fs=["value","disabled"],hs=["value"],ps={class:"thread-switch-field"},ms=["value","disabled"],bs={key:0,value:""},gs=["value"],vs={class:"thread-switch-field"},ys=["disabled"],ks={value:""},xs=["value"],ws={class:"thread-switch-field"},_s=["disabled"],Es={value:""},As=["value"],Cs={key:0,class:"thread-switch-error",role:"alert"},Is=["disabled"],Ss=He({__name:"ThreadSwitchControl",props:{store:{},scope:{},thread:{},agent:{},executionInstanceId:{},model:{},effort:{},locale:{}},emits:["apply"],setup(e,{emit:t}){const n=e,u=t,a=W=>Le(W,ht(n.locale)),r=j(!1),o=j(!1),i=j(""),s=j(n.executionInstanceId),l=j(n.agent),d=j(n.model??""),m=j(n.effort??""),p=j([]),g=j([]),x=j([]);let b=0;const E=pe(()=>{const W=new Set([n.scope.instanceId]);for(const G of n.store.data.remoteInstances)G.online&&W.add(G.instanceId);return[...W]}),S=pe(()=>{const W=[l.value||n.agent];return d.value&&W.push(d.value),m.value&&W.push(m.value),W.join(" · ")}),R=pe(()=>s.value!==n.executionInstanceId||l.value!==n.agent||d.value!==(n.model??"")||m.value!==(n.effort??""));async function I(){const W=++b;if(!l.value||!n.thread?.workspaceId){g.value=[],x.value=[];return}o.value=!0,i.value="";try{const G=await n.store.loadExecutionCapabilities(n.scope.instanceId,s.value,l.value,n.thread.workspaceId);if(W!==b)return;g.value=G.models,x.value=Object.keys(G.efforts).sort(),d.value&&!g.value.some(U=>U.modelId===d.value)&&(d.value=""),m.value&&!x.value.includes(m.value)&&(m.value="")}catch(G){if(W!==b)return;g.value=[],x.value=[],i.value=G instanceof Error?G.message:String(G)}finally{W===b&&(o.value=!1)}}async function C(){const W=++b;o.value=!0,i.value="";try{const G=await n.store.loadRemoteAgents(s.value);if(W!==b)return;p.value=G,G.some(U=>U.name===l.value)||(l.value=G[0]?.name??"",d.value="",m.value="")}catch(G){if(W!==b)return;p.value=[],d.value="",m.value="",i.value=G instanceof Error?G.message:String(G)}finally{W===b&&(o.value=!1)}await I()}async function $(){if(r.value){r.value=!1;return}s.value=n.executionInstanceId,l.value=n.agent,d.value=n.model??"",m.value=n.effort??"",r.value=!0,n.store.data.remoteInstances.length||await n.store.loadRemoteInstances(!0).catch(()=>{}),await C()}async function D(W){s.value=W,d.value="",m.value="",await C()}async function z(W){l.value=W,d.value="",m.value="",await I()}function T(){if(!l.value)return;const W=s.value!==n.scope.instanceId;u("apply",{agent:l.value,...d.value?{model:d.value}:{},...m.value?{effort:m.value}:{},...W?{executionInstanceId:s.value}:{}}),r.value=!1}return(W,G)=>(y(),_("div",ss,[c("button",{type:"button",class:"thread-switch-trigger","data-test":"thread-switch-trigger","aria-expanded":r.value,onClick:$},[c("span",null,A(S.value),1),ae(H(Yi),{size:14})],8,ls),r.value?(y(),_("div",cs,[c("label",ds,[c("span",null,A(a("executionMachine")),1),c("select",{"data-test":"thread-switch-machine",value:s.value,disabled:o.value,onChange:G[0]||(G[0]=U=>D(U.target.value))},[(y(!0),_(xe,null,Se(E.value,U=>(y(),_("option",{key:U,value:U},A(U),9,hs))),128))],40,fs)]),c("label",ps,[c("span",null,A(a("agent")),1),c("select",{"data-test":"thread-switch-agent",value:l.value,disabled:o.value||p.value.length===0,onChange:G[1]||(G[1]=U=>z(U.target.value))},[l.value?ee("",!0):(y(),_("option",bs,A(a("agent")),1)),(y(!0),_(xe,null,Se(p.value,U=>(y(),_("option",{key:U.name,value:U.name},A(U.name),9,gs))),128))],40,ms)]),c("label",vs,[c("span",null,A(a("model")),1),Ce(c("select",{"onUpdate:modelValue":G[2]||(G[2]=U=>d.value=U),"data-test":"thread-switch-model",disabled:o.value||g.value.length===0},[c("option",ks,A(a("defaultOption")),1),(y(!0),_(xe,null,Se(g.value,U=>(y(),_("option",{key:U.modelId,value:U.modelId},A(U.name??U.modelId),9,xs))),128))],8,ys),[[vt,d.value]])]),c("label",ws,[c("span",null,A(a("effort")),1),Ce(c("select",{"onUpdate:modelValue":G[3]||(G[3]=U=>m.value=U),"data-test":"thread-switch-effort",disabled:o.value||x.value.length===0},[c("option",Es,A(a("defaultOption")),1),(y(!0),_(xe,null,Se(x.value,U=>(y(),_("option",{key:U,value:U},A(U),9,As))),128))],8,_s),[[vt,m.value]])]),i.value?(y(),_("p",Cs,A(i.value),1)):ee("",!0),c("button",{type:"button",class:"thread-switch-apply","data-test":"thread-switch-apply",disabled:o.value||!l.value||!R.value,onClick:T},[ae(H(Wi),{size:14}),$e(" "+A(a("switchApply")),1)],8,Is)])):ee("",!0)]))}}),Ts=nt(Ss,[["__scopeId","data-v-4558ed4d"]]),Ds=["data-plugin-slot"],Fs=He({__name:"PluginSlot",props:{name:{},context:{},message:{type:Boolean}},setup(e){const t=e,n=Cn(mn,null),u=j(null),a=j(null);let r;const o=pe(()=>(n?.revision.value,n?.hasOverride(t.name,t.message)??!1)),i=pe(()=>{const d=t.context;return[d?.scope?.instanceId,d?.scope?.threadId,d?.event?.id,d?.state?.activeView,d?.state?.locale,d?.state?.theme,d?.thread?.revision,d?.disabled,d?.streaming].join(":")}),s=pe(()=>({...t.context??{},state:t.context?.state??n?.getState()??{safeMode:!1,activeScope:null,activeView:null,locale:"en",theme:"dark"}}));function l(){r?.(),r=void 0,!(!n||!a.value)&&(r=n.render(t.message?"message":"slot",t.name,a.value,s.value))}return Pe([()=>n?.revision.value,()=>t.name,()=>t.message,i],l,{immediate:!0,flush:"post"}),Ct(()=>{pu(l)}),rn(()=>{r?.()}),(d,m)=>(y(),_("div",{class:"plugin-slot","data-plugin-slot":e.name},[Ce(c("div",{ref_key:"native",ref:u,class:"plugin-slot-native"},[pn(d.$slots,"default",{},void 0,!0)],512),[[ao,!o.value]]),c("div",{ref_key:"extensions",ref:a,class:"plugin-slot-extensions"},null,512)],8,Ds))}}),Be=nt(Fs,[["__scopeId","data-v-36c3c43c"]]),$s={class:"thread-header","data-test":"thread-header"},Ms={class:"thread-header-main"},Rs={class:"thread-header-title"},Ls={class:"thread-header-kind","data-test":"thread-kind"},Os={class:"thread-header-name","data-test":"thread-title"},zs={key:0,class:"thread-header-driver","data-test":"thread-driver"},Ps={key:1,class:"thread-header-execution","data-test":"thread-execution"},Ns={class:"thread-header-actions"},Bs=["aria-label"],qs=["aria-label"],js=["aria-label"],Us=["aria-label"],Hs={key:0,class:"thread-header-error",role:"alert","data-test":"thread-switch-error"},Vs=He({__name:"ThreadHeader",props:{scope:{},store:{},thread:{},adapter:{},driver:{},executionLabel:{},switchPending:{},switchError:{},locale:{}},emits:["switch","cancelSwitch","archive","fork","clear","members","policy","persona","topic","worktree","roundtable","trace"],setup(e,{emit:t}){const n=e,u=t,a=Cn(mn,null),r=pe(()=>a?.adapterFor(n.thread?.kind??n.adapter.kind)??n.adapter),o=pe(()=>n.thread?.title||r.value.fallbackTitle),i=m=>Le(m,ht(n.locale)),s=pe(()=>n.thread?.status==="archived"),l=pe(()=>n.thread?.switchTarget?.agent??n.thread?.executionDriver??""),d=pe(()=>n.thread?.executionInstanceId??n.scope.instanceId);return(m,p)=>(y(),_("header",$s,[c("div",Ms,[c("div",Rs,[c("span",Ls,A(r.value.kind),1),c("h1",Os,A(o.value),1),e.driver?(y(),_("span",zs,A(e.driver),1)):ee("",!0),e.executionLabel?(y(),_("span",Ps,A(e.executionLabel),1)):ee("",!0)]),c("div",Ns,[r.value.capabilities.switchTarget&&l.value?(y(),Ue(Ts,{key:0,store:e.store,scope:e.scope,thread:e.thread,agent:l.value,"execution-instance-id":d.value,model:e.thread?.switchTarget?.model,effort:e.thread?.switchTarget?.effort,locale:e.locale,onApply:p[0]||(p[0]=g=>u("switch",g))},null,8,["store","scope","thread","agent","execution-instance-id","model","effort","locale"])):ee("",!0),e.switchPending?(y(),_("button",{key:1,type:"button",class:"thread-header-button","data-test":"thread-switch-cancel",onClick:p[1]||(p[1]=g=>u("cancelSwitch",e.thread?.revision??0))},A(i("cancelSwitch")),1)):ee("",!0),r.value.capabilities.persona?(y(),_("button",{key:2,type:"button",class:"thread-header-button","data-test":"thread-persona",onClick:p[2]||(p[2]=g=>u("persona"))},A(i("persona")),1)):ee("",!0),r.value.capabilities.topicDrawer?(y(),_("button",{key:3,type:"button",class:"thread-header-button","data-test":"thread-topic",onClick:p[3]||(p[3]=g=>u("topic"))},A(i("topics")),1)):ee("",!0),r.value.capabilities.worktree?(y(),_("button",{key:4,type:"button",class:"thread-header-button","data-test":"thread-worktree",onClick:p[4]||(p[4]=g=>u("worktree"))},A(i("worktree")),1)):ee("",!0),r.value.capabilities.roundtable?(y(),_("button",{key:5,type:"button",class:"thread-header-button","data-test":"thread-roundtable",onClick:p[5]||(p[5]=g=>u("roundtable"))},A(i("collaborationRoundtable")),1)):ee("",!0),r.value.capabilities.participants?(y(),_("button",{key:6,type:"button",class:"thread-header-button","data-test":"thread-members","aria-label":i("participants"),onClick:p[6]||(p[6]=g=>u("members"))},[ae(H(m0),{size:16})],8,Bs)):ee("",!0),r.value.capabilities.policies?(y(),_("button",{key:7,type:"button",class:"thread-header-button","data-test":"thread-policy",onClick:p[7]||(p[7]=g=>u("policy"))},A(i("policy")),1)):ee("",!0),c("button",{type:"button",class:"thread-header-button","data-test":"thread-trace-open","aria-label":"Open trace",onClick:p[8]||(p[8]=g=>u("trace"))},[ae(H(Zi),{size:16})]),r.value.capabilities.fork?(y(),_("button",{key:8,type:"button",class:"thread-header-button","data-test":"thread-fork","aria-label":i("forkThread"),onClick:p[9]||(p[9]=g=>u("fork"))},[ae(H(u0),{size:16})],8,qs)):ee("",!0),c("button",{type:"button",class:"thread-header-button","data-test":"thread-clear","aria-label":i("clearContext"),onClick:p[10]||(p[10]=g=>u("clear"))},[ae(H(pa),{size:16})],8,js),c("button",{type:"button",class:"thread-header-button","data-test":"thread-archive","aria-label":s.value?"Unarchive thread":"Archive thread",onClick:p[11]||(p[11]=g=>u("archive",!s.value))},[ae(H(ro),{size:16})],8,Us),ae(Be,{name:"pane.header.actions",context:{scope:e.scope,thread:e.thread??void 0}},null,8,["context"])])]),e.switchError?(y(),_("p",Hs,A(e.switchError),1)):ee("",!0)]))}}),Ws=nt(Vs,[["__scopeId","data-v-ef40d922"]]),Gs='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path d="M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z" fill="#fff"></path><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z" fill="url(#lobe-icons-codex-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-codex-_R_0_" x1="12" x2="12" y1="3" y2="21"><stop stop-color="#B1A7FF"></stop><stop offset=".5" stop-color="#7A9DFF"></stop><stop offset="1" stop-color="#3941FF"></stop></linearGradient></defs></svg>',Ks='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Claude Code</title><path clip-rule="evenodd" d="M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z" fill="#D97757" fill-rule="evenodd"></path></svg>',Zs='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Gemini</title><path d="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" fill="#3186FF"></path><path d="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" fill="url(#lobe-icons-gemini-0-_R_0_)"></path><path d="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" fill="url(#lobe-icons-gemini-1-_R_0_)"></path><path d="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" fill="url(#lobe-icons-gemini-2-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-0-_R_0_" x1="7" x2="11" y1="15.5" y2="12"><stop stop-color="#08B962"></stop><stop offset="1" stop-color="#08B962" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-1-_R_0_" x1="8" x2="11.5" y1="5.5" y2="11"><stop stop-color="#F94543"></stop><stop offset="1" stop-color="#F94543" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-2-_R_0_" x1="3.5" x2="17.5" y1="13.5" y2="12"><stop stop-color="#FABC12"></stop><stop offset=".46" stop-color="#FABC12" stop-opacity="0"></stop></linearGradient></defs></svg>',Ys='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Copilot</title><path d="M17.533 1.829A2.528 2.528 0 0015.11 0h-.737a2.531 2.531 0 00-2.484 2.087l-1.263 6.937.314-1.08a2.528 2.528 0 012.424-1.833h4.284l1.797.706 1.731-.706h-.505a2.528 2.528 0 01-2.423-1.829l-.715-2.453z" fill="url(#lobe-icons-copilot-0-_R_0_)" transform="translate(0 1)"></path><path d="M6.726 20.16A2.528 2.528 0 009.152 22h1.566c1.37 0 2.49-1.1 2.525-2.48l.17-6.69-.357 1.228a2.528 2.528 0 01-2.423 1.83h-4.32l-1.54-.842-1.667.843h.497c1.124 0 2.113.75 2.426 1.84l.697 2.432z" fill="url(#lobe-icons-copilot-1-_R_0_)" transform="translate(0 1)"></path><path d="M15 0H6.252c-2.5 0-4 3.331-5 6.662-1.184 3.947-2.734 9.225 1.75 9.225H6.78c1.13 0 2.12-.753 2.43-1.847.657-2.317 1.809-6.359 2.713-9.436.46-1.563.842-2.906 1.43-3.742A1.97 1.97 0 0115 0" fill="url(#lobe-icons-copilot-2-_R_0_)" transform="translate(0 1)"></path><path d="M15 0H6.252c-2.5 0-4 3.331-5 6.662-1.184 3.947-2.734 9.225 1.75 9.225H6.78c1.13 0 2.12-.753 2.43-1.847.657-2.317 1.809-6.359 2.713-9.436.46-1.563.842-2.906 1.43-3.742A1.97 1.97 0 0115 0" fill="url(#lobe-icons-copilot-3-_R_0_)" transform="translate(0 1)"></path><path d="M9 22h8.749c2.5 0 4-3.332 5-6.663 1.184-3.948 2.734-9.227-1.75-9.227H17.22c-1.129 0-2.12.754-2.43 1.848a1149.2 1149.2 0 01-2.713 9.437c-.46 1.564-.842 2.907-1.43 3.743A1.97 1.97 0 019 22" fill="url(#lobe-icons-copilot-4-_R_0_)" transform="translate(0 1)"></path><path d="M9 22h8.749c2.5 0 4-3.332 5-6.663 1.184-3.948 2.734-9.227-1.75-9.227H17.22c-1.129 0-2.12.754-2.43 1.848a1149.2 1149.2 0 01-2.713 9.437c-.46 1.564-.842 2.907-1.43 3.743A1.97 1.97 0 019 22" fill="url(#lobe-icons-copilot-5-_R_0_)" transform="translate(0 1)"></path><defs><radialGradient cx="85.44%" cy="100.653%" fx="85.44%" fy="100.653%" gradientTransform="scale(-.8553 -1) rotate(50.927 2.041 -1.946)" id="lobe-icons-copilot-0-_R_0_" r="105.116%"><stop offset="9.6%" stop-color="#00AEFF"></stop><stop offset="77.3%" stop-color="#2253CE"></stop><stop offset="100%" stop-color="#0736C4"></stop></radialGradient><radialGradient cx="18.143%" cy="32.928%" fx="18.143%" fy="32.928%" gradientTransform="scale(.8897 1) rotate(52.069 .193 .352)" id="lobe-icons-copilot-1-_R_0_" r="95.612%"><stop offset="0%" stop-color="#FFB657"></stop><stop offset="63.4%" stop-color="#FF5F3D"></stop><stop offset="92.3%" stop-color="#C02B3C"></stop></radialGradient><radialGradient cx="82.987%" cy="-9.792%" fx="82.987%" fy="-9.792%" gradientTransform="scale(-1 -.9441) rotate(-70.872 .142 1.17)" id="lobe-icons-copilot-4-_R_0_" r="140.622%"><stop offset="6.6%" stop-color="#8C48FF"></stop><stop offset="50%" stop-color="#F2598A"></stop><stop offset="89.6%" stop-color="#FFB152"></stop></radialGradient><linearGradient id="lobe-icons-copilot-2-_R_0_" x1="39.465%" x2="46.884%" y1="12.117%" y2="103.774%"><stop offset="15.6%" stop-color="#0D91E1"></stop><stop offset="48.7%" stop-color="#52B471"></stop><stop offset="65.2%" stop-color="#98BD42"></stop><stop offset="93.7%" stop-color="#FFC800"></stop></linearGradient><linearGradient id="lobe-icons-copilot-3-_R_0_" x1="45.949%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#3DCBFF"></stop><stop offset="24.7%" stop-color="#0588F7" stop-opacity="0"></stop></linearGradient><linearGradient id="lobe-icons-copilot-5-_R_0_" x1="83.507%" x2="83.453%" y1="-6.106%" y2="21.131%"><stop offset="5.8%" stop-color="#F8ADFA"></stop><stop offset="70.8%" stop-color="#A86EDD" stop-opacity="0"></stop></linearGradient></defs></svg>',Xs='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Cursor</title><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"></path></svg>',Js='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Hermes Agent</title><path d="M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z"></path><path d="M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z"></path><path clip-rule="evenodd" d="M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z"></path></svg>',Qs='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Qwen</title><path d="M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z" fill="url(#lobe-icons-qwen-_R_0_)" fill-rule="nonzero"></path><defs><linearGradient id="lobe-icons-qwen-_R_0_" x1="0%" x2="100%" y1="0%" y2="0%"><stop offset="0%" stop-color="#6336E7" stop-opacity=".84"></stop><stop offset="100%" stop-color="#6F69F7" stop-opacity=".84"></stop></linearGradient></defs></svg>',el='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kimi</title><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z" fill="#1783FF"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z" fill="#fff"></path></svg>',tl='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>opencode</title><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>',nl='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenClaw</title><path d="M12 2.568c-6.33 0-9.495 5.275-9.495 9.495 0 4.22 3.165 8.44 6.33 9.494v2.11h2.11v-2.11s1.055.422 2.11 0v2.11h2.11v-2.11c3.165-1.055 6.33-5.274 6.33-9.494S18.33 2.568 12 2.568z" fill="url(#lobe-icons-open-claw-0-_R_0_)"></path><path d="M3.56 9.953C.396 8.898-.66 11.008.396 13.118c1.055 2.11 3.164 1.055 4.22-1.055.632-1.477 0-2.11-1.056-2.11z" fill="url(#lobe-icons-open-claw-1-_R_0_)"></path><path d="M20.44 9.953c3.164-1.055 4.22 1.055 3.164 3.165-1.055 2.11-3.164 1.055-4.22-1.055-.632-1.477 0-2.11 1.056-2.11z" fill="url(#lobe-icons-open-claw-2-_R_0_)"></path><path d="M5.507 1.875c.476-.285 1.036-.233 1.615.037.577.27 1.223.774 1.937 1.488a.316.316 0 01-.447.447c-.693-.693-1.279-1.138-1.757-1.361-.475-.222-.795-.205-1.022-.069a.317.317 0 01-.326-.542zM16.877 1.913c.58-.27 1.14-.323 1.616-.038a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.069-.478.223-1.064.668-1.756 1.361a.316.316 0 11-.448-.447c.714-.714 1.36-1.218 1.936-1.487z" fill="#FF4D4D"></path><path d="M8.835 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532zM15.165 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532z" fill="#050810"></path><path d="M9.046 8.16a.527.527 0 100-1.056.527.527 0 000 1.055zM15.376 8.16a.527.527 0 100-1.055.527.527 0 000 1.054z" fill="#00E5CC"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-0-_R_0_" x1="-.659" x2="27.023" y1=".458" y2="22.855"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-1-_R_0_" x1="0" x2="4.311" y1="9.672" y2="14.949"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-2-_R_0_" x1="19.385" x2="24.399" y1="9.953" y2="14.462"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient></defs></svg>',ul='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kilo Code</title><path d="M0 0v24h24V0H0zm22.222 22.222H1.778V1.778h20.444v20.444zm-7.555-4.964h2.222v1.778h-2.794L12.89 17.83v-2.794h1.778v2.222zm4 0h-1.778v-2.222h-2.222v-1.778h2.793l1.207 1.207v2.793zm-7.556-2.591H9.333v-1.778h1.778v1.778zm-5.778-1.778h1.778v4h4v1.778H6.54L5.333 17.46V12.89zm13.334-3.556v1.778h-5.778V9.333h1.987V7.111h-1.987V5.333h2.558l1.206 1.207v2.793h2.014zm-11.556-2h2.222l1.778 1.778v2H9.333v-2H7.111v2H5.333V5.333h1.778v2zm4 0H9.333v-2h1.778v2z"></path></svg>',al='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kiro</title><path d="M18.8 0H5.2A5.2 5.2 0 000 5.2v13.6A5.2 5.2 0 005.2 24h13.6a5.2 5.2 0 005.2-5.2V5.2A5.2 5.2 0 0018.8 0z" fill="#9046FF"></path><path d="M7.97 16.376c-1.644 3.642 1.86 4.556 4.443 2.424.76 2.39 3.608.607 4.631-1.247 2.251-4.084 1.342-8.249 1.108-9.108-1.6-5.859-9.6-5.869-10.976.03-.323 1.033-.328 2.206-.507 3.423-.09.617-.16 1.009-.393 1.655-.139.373-.323.7-.62 1.257-.458.865-.264 2.53 2.101 1.665l.224-.1h-.01l-.001.001z" fill="#fff"></path><path d="M12.722 10.985c-.656 0-.755-.785-.755-1.252 0-.423.074-.756.218-.97a.61.61 0 01.537-.283c.229 0 .428.095.567.289.159.218.243.55.243.964 0 .785-.303 1.252-.805 1.252h-.005zm2.703 0c-.656 0-.755-.785-.755-1.252 0-.423.074-.756.219-.97a.61.61 0 01.536-.283c.229 0 .428.095.567.289.159.218.243.55.243.964 0 .785-.303 1.252-.805 1.252h-.005z" fill="#000"></path></svg>',rl='<svg fill="currentColor" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Qoder</title><path d="M23.376 14.458v-4.056c0-2.304-1.003-4.154-2.748-5.075L11.612.574l-.046.086-.045.086c1.68.886 2.644 2.673 2.644 4.902v4.056a7.928 7.928 0 01-.014.454l-.005.061c-.005.081-.01.164-.018.245a4.897 4.897 0 01-.011.1l-.01.076c-.008.068-.015.135-.025.203l-.018.113-.01.058a9.99 9.99 0 01-.098.513l-.007.03a7.209 7.209 0 01-.074.294l-.024.086c-.027.099-.056.197-.087.296l-.027.085a9.592 9.592 0 01-.111.323l-.033.085-.018.046c-.032.082-.064.166-.098.248-.019.048-.04.096-.061.145l-.007.017a6 6 0 01-.084.187c-.024.056-.05.11-.077.165-.03.061-.058.122-.089.182a9.423 9.423 0 01-.176.332c-.03.056-.062.111-.094.167-.031.053-.062.108-.095.16-.033.055-.066.11-.101.164-.033.053-.065.104-.1.155-.034.055-.07.107-.111.169l-.099.144a15.193 15.193 0 01-.34.457c-.04.05-.08.102-.121.151l-.107.128-.007.008a6.987 6.987 0 01-.262.298l-.149.16-.116.12a9.562 9.562 0 01-.204.198l-.03.03-.072.069a9.05 9.05 0 01-.263.235l-.025.022-.029.026-.042.035a11.7 11.7 0 01-.22.18l-.07.055-.018.013a8.904 8.904 0 01-.194.146c-.029.02-.057.042-.086.063a7.7 7.7 0 01-.22.152l-.057.04a8.865 8.865 0 01-.293.185l-.062.037a10.424 10.424 0 01-.307.173l-.037.02-.196.103-.108.052-.012.006a6.196 6.196 0 01-.315.143c-.065.028-.13.054-.196.08l-.035.014-.086.034c-.07.026-.143.05-.215.075l-.039.014-.064.023a8.056 8.056 0 01-.323.097l-.63.173a7.285 7.285 0 01-.33.08l-.07.015c-.053.012-.104.023-.157.032l-.065.011-.085.015a2.332 2.332 0 01-.194.027l-.085.01a4.715 4.715 0 01-.16.018l-.034.003a4.861 4.861 0 01-.246.016h-.033a2.714 2.714 0 01-.155.005h-.106a3.384 3.384 0 01-.225-.007H4.86l-.15-.012-.066-.006a5.586 5.586 0 01-.187-.02l-.04-.005a5.14 5.14 0 01-.219-.035l-.054-.01a6.943 6.943 0 01-.347-.082l-.03-.008-.038-.01a5.034 5.034 0 01-.269-.086l-.063-.023a4.216 4.216 0 01-.188-.073l-.071-.031-.016-.007a4.959 4.959 0 01-.16-.074l-.026-.013a.164.164 0 00-.014-.007l-.671-.351.486.486h.016l8.995 4.742.093.048.03.014.02.01c.056.026.111.052.169.076l.016.008.073.032.195.076.022.008a.718.718 0 01.03.012l.014.004a4.693 4.693 0 00.323.1l.027.007c.073.02.147.038.22.055l.018.004.027.006.066.013.088.016c.075.014.15.026.226.038l.042.004c.064.009.128.016.193.022l.126.012.06.003.05.002.098.005c.046.002.094.002.14.003h.12c.05 0 .1-.002.161-.005h.033l.07-.004a6.17 6.17 0 00.184-.014l.033-.003a.753.753 0 00.058-.005l.108-.012.081-.01.08-.01.129-.021.082-.014.071-.012c.054-.01.107-.021.16-.033l.066-.013.059-.013c.096-.022.192-.046.287-.073l.63-.172a7.354 7.354 0 00.397-.122l.04-.015c.075-.025.149-.051.222-.078.032-.011.062-.024.093-.037l.03-.012c.067-.027.135-.054.2-.082l.128-.056.195-.09.021-.01.102-.05c.068-.034.135-.069.202-.105l.037-.02.073-.038c.08-.044.16-.092.24-.139l.026-.015a8.086 8.086 0 00.322-.2l.065-.045 1.98.902a1.748 1.748 0 002.472-1.59v-7.33l.004.004z" fill="#2ADB5C"></path><path d="M11.617.576a3.904 3.904 0 00-.093-.047c-.016-.009-.033-.016-.05-.024a5.854 5.854 0 00-.166-.077l-.09-.04a4.094 4.094 0 00-.194-.074c-.017-.006-.035-.015-.053-.02l-.013-.005a5.18 5.18 0 00-.277-.088l-.07-.019a4.034 4.034 0 00-.219-.053c-.015-.003-.03-.008-.044-.012L10.253.1l-.057-.011a5.177 5.177 0 00-.225-.036L9.928.047a5.972 5.972 0 00-.191-.022L9.669.02a1.33 1.33 0 00-.058-.005L9.515.009a4.058 4.058 0 00-.111-.005C9.354 0 9.304 0 9.254 0h-.109c-.052 0-.106.004-.16.004L8.884.01A5.32 5.32 0 008.7.022l-.083.006h-.008c-.05.005-.1.013-.15.019l-.12.014c-.056.008-.112.018-.169.028-.037.006-.074.011-.11.018a7.054 7.054 0 00-.572.133l-.63.172c-.111.031-.22.064-.33.1-.037.011-.072.025-.108.037a12.91 12.91 0 00-.345.126c-.067.027-.133.054-.2.083l-.128.055a11.916 11.916 0 00-.318.15 7.376 7.376 0 00-.311.163c-.082.045-.16.092-.24.14a9.424 9.424 0 00-.35.218l-.016.01-.06.04a9.242 9.242 0 00-.51.37 12.54 12.54 0 00-.315.254l-.043.034-.01.007-.045.041c-.09.078-.18.158-.268.24l-.106.101c-.07.067-.139.135-.207.204l-.056.054-.063.067-.153.164-.12.133-.148.17c-.024.03-.049.057-.073.086l-.043.053a5.96 5.96 0 00-.123.155l-.118.151c-.04.053-.08.106-.118.16l-.075.101-.038.056-.107.155-.11.164a9.91 9.91 0 00-.168.265c-.012.02-.023.043-.037.063a12.43 12.43 0 00-.192.335l-.09.168c-.019.034-.04.07-.057.105-.011.022-.02.043-.032.065l-.092.188-.08.167a19.15 19.15 0 00-.083.192c-.017.038-.035.076-.05.115-.008.016-.014.034-.021.051-.035.083-.067.167-.1.253l-.051.134c-.04.11-.077.22-.113.33l-.02.057c0 .002 0 .005-.002.007l-.008.026c-.032.1-.06.2-.09.301l-.023.089c-.027.1-.052.2-.075.301l-.007.03a7.63 7.63 0 00-.057.267l-.008.048c-.015.074-.026.148-.038.223L.082 8.4c-.011.078-.02.156-.029.234-.006.051-.013.103-.017.154a6.57 6.57 0 00-.02.26c-.003.044-.007.086-.009.13-.004.128-.007.257-.007.386v4.056c0 1.478.42 2.741 1.138 3.692A4.75 4.75 0 002.73 18.67l9.015 4.753c-1.656-.874-2.728-2.685-2.73-5.051v-4.056c0-.13.004-.26.01-.39.002-.043.006-.085.01-.128.005-.088.01-.174.019-.261l.017-.155c.01-.077.018-.155.029-.234l.026-.164c.013-.074.025-.15.039-.223.02-.105.04-.21.064-.313l.008-.031c.023-.1.048-.201.075-.301l.023-.088c.028-.1.058-.202.09-.302l.008-.025.021-.063c.036-.11.073-.22.113-.33l.052-.134c.031-.085.065-.169.1-.253.022-.056.047-.111.07-.166a13.856 13.856 0 01.164-.358c.03-.063.06-.126.092-.188l.088-.172a9.22 9.22 0 01.187-.338l.096-.164c.034-.057.069-.112.104-.168l.1-.159a10.49 10.49 0 01.567-.786l.123-.155.116-.139c.05-.057.098-.115.148-.171a14.092 14.092 0 01.272-.297 9.706 9.706 0 01.432-.425c.088-.083.177-.163.268-.241l.054-.048a10.08 10.08 0 01.553-.435l.092-.068c.075-.053.15-.105.226-.156.019-.013.038-.028.06-.04a9.18 9.18 0 01.362-.227c.08-.047.16-.094.241-.139l.11-.058a7.643 7.643 0 01.521-.256l.126-.056a7.509 7.509 0 01.546-.208l.107-.037c.11-.036.22-.069.33-.1l.63-.172c.095-.026.191-.05.287-.072l.097-.02c.062-.014.125-.029.187-.04l.114-.018c.055-.01.11-.02.166-.028.04-.006.08-.01.12-.014.053-.007.105-.014.157-.019l.083-.006c.061-.005.123-.01.184-.013.034-.003.067-.003.101-.004l.16-.006h.11a3.187 3.187 0 01.261.008l.153.01.067.007c.064.006.128.013.192.022l.043.005a5.232 5.232 0 01.281.047l.141.03c.073.016.146.035.218.053l.07.019c.094.026.187.055.278.087l.067.025a4.326 4.326 0 01.449.19l.143.072L11.617.576z"></path></svg>',ol='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>TRAE</title><path d="M24 20.541H3.428v-3.426H0V3.4h24V20.54zM3.428 17.115h17.144V6.827H3.428v10.288zm8.573-5.196l-2.425 2.424-2.424-2.424 2.424-2.424 2.425 2.424zm6.857-.001l-2.424 2.423-2.425-2.423 2.425-2.425 2.424 2.425z" fill="#32F08C"></path></svg>',il=`<!-- omp (Oh My Pi) brand mark — the gradient "pi mark". Sourced from the omp
|
|
178
|
+
harness UI; local asset because @lobehub/icons ships no omp glyph. -->
|
|
179
|
+
<svg viewBox="0 0 64 64" width="22" height="22" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
|
|
180
|
+
<defs>
|
|
181
|
+
<linearGradient id="pi-mark-1-grad" x1="0" y1="0" x2="1" y2="1">
|
|
182
|
+
<stop offset="0" stop-color="oklch(0.7 0.24 340)"></stop>
|
|
183
|
+
<stop offset=".5" stop-color="oklch(0.62 0.21 295)"></stop>
|
|
184
|
+
<stop offset="1" stop-color="oklch(0.81 0.14 200)"></stop>
|
|
185
|
+
</linearGradient>
|
|
186
|
+
</defs>
|
|
187
|
+
<path fill="url(#pi-mark-1-grad)" d="M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"></path>
|
|
188
|
+
</svg>
|
|
189
|
+
`;function ko(e){const t=e.match(/\bviewBox="([^"]+)"/i);if(!t)return[0,0,24,24];const n=t[1].trim().split(/[\s,]+/).map(Number);return n.length!==4||n.some(u=>!Number.isFinite(u))?[0,0,24,24]:[n[0],n[1],n[2],n[3]]}function sl(e){const t=ko(e),n=Math.max(t[2],t[3]),u=/<path\b[^>]*\/>|<path\b[^>]*>[\s\S]*?<\/path>/g,a=[...e.matchAll(u)];if(a.length<2)return e;let r=e,o=0;for(const i of a){const s=i[0];if(!s.match(/\bfill="(#[0-9A-Fa-f]{3,8})"/))continue;const d=s.match(/\bd="([^"]*)"/)?.[1]??"",m=/M[\d.]+ 0H|M0[\s,]|M0H|\b0H/.test(d),p=new RegExp(String.raw`(^|[^0-9.])${n}([^0-9.]|$)`).test(d);if(!(!m||!p)){r=r.replace(s,""),o++;break}}return o&&!/<path\b/i.test(r)?e:r}const ll="#9046FF",cl="currentColor",dl={kiro:[['fill="#fff"',`fill="${ll}"`]],kimi:[['fill="#fff"',`fill="${cl}"`]]};function fl(e,t){return t.reduce((n,[u,a])=>n.split(u).join(a),e)}function hl(e,t,n,u){const[a,r,o,i]=ko(e),s=a+o/2,l=r+i/2;if(Math.abs(t-1)<1e-6&&Math.abs(n-s)<1e-6&&Math.abs(u-l)<1e-6)return e;const d=e.indexOf(">",e.indexOf("<svg"))+1,m=e.lastIndexOf("</svg>"),p=`translate(${s} ${l}) scale(${t}) translate(${-n} ${-u})`;return`${e.slice(0,d)}<g transform="${p}">${e.slice(d,m)}</g>${e.slice(m)}`}const pl={claude:{scale:.6,cx:11.9995,cy:11.745},codex:{scale:.8,cx:12.0659,cy:11.9324},gemini:{scale:.653617,cx:11.9917,cy:12.0002},copilot:{scale:.6,cx:12.0223,cy:11.9595},cursor:{scale:.6,cx:11.3379,cy:12.3878},hermes:{scale:.6,cx:12.7155,cy:12.5548},qwen:{scale:.653617,cx:12.0428,cy:11.9938},kimi:{scale:.693454,cx:10.5652,cy:11.0414},opencode:{scale:.717757,cx:11.9999,cy:12},openclaw:{scale:.6,cx:11.9955,cy:12.3299},kilocode:{scale:.6,cx:11.9015,cy:12.0546},kiro:{scale:.906344,cx:12.352,cy:12.1757},qoder:{scale:.6,cx:12.0418,cy:12.3113},trae:{scale:.6,cx:12.5858,cy:11.639},omp:{scale:.872727,cx:31.6111,cy:28.9444}},iu={codex:Gs,claude:Ks,gemini:Zs,copilot:Ys,cursor:Xs,hermes:Js,qwen:Qs,kimi:el,opencode:tl,openclaw:nl,kilocode:ul,kiro:al,qoder:rl,trae:ol,omp:il};for(const e of Object.keys(iu)){let t=sl(iu[e]);const n=dl[e];n&&(t=fl(t,n));const u=pl[e];u&&(t=hl(t,u.scale,u.cx,u.cy)),iu[e]=t}function ml(e){return e?iu[e.trim().toLowerCase()]??null:null}function bl(e,t){if(!e)return e;const n=Array.from(e.matchAll(/\bid="([^"]+)"/g),r=>r[1]);if(n.length===0)return e;const u=`-${t.replace(/[^A-Za-z0-9_-]/g,"")}`,a=new Set(n);return e.replace(/\bid="([^"]+)"/g,(r,o)=>`id="${o}${u}"`).replace(/url\(#([^)]+)\)/g,(r,o)=>a.has(o)?`url(#${o}${u})`:r).replace(/(href=")#([^"]+)"/g,(r,o,i)=>a.has(i)?`${o}#${i}${u}"`:r)}const gl=["data-driver","title","aria-label"],vl=["innerHTML"],yl=.72,kl=He({__name:"AgentIcon",props:{driver:{},size:{default:16},title:{},fill:{type:Boolean,default:!1}},setup(e){const t=e,n=Oi(),u=pe(()=>bl(ml(t.driver),n)),a=pe(()=>`${t.size}px`),r=pe(()=>Math.round(t.size*yl));return(o,i)=>(y(),_("span",{"data-test":"agent-icon","data-driver":e.driver||"",title:e.title,role:"img","aria-label":e.title||e.driver||void 0,class:De(["shrink-0 place-items-center",e.fill?"grid h-full w-full":"inline-grid"]),style:ha(e.fill?void 0:{width:a.value,height:a.value})},[u.value?(y(),_("span",{key:0,class:"grid h-full w-full place-items-center text-fg [&>svg]:block [&>svg]:h-full [&>svg]:w-full",innerHTML:u.value},null,8,vl)):(y(),Ue(H(oo),{key:1,size:r.value,class:"text-fg-muted"},null,8,["size"]))],14,gl))}}),xl=["data-row-id"],wl={key:1,class:"text-xs font-semibold text-fg"},_l={key:2,class:"text-xs font-normal text-fg-muted"},El=He({__name:"TranscriptRow",props:{driver:{},speaker:{},speakerRole:{},speakerClickable:{type:Boolean},own:{type:Boolean},hideLeadingAvatar:{type:Boolean},hideIdentityOnMobile:{type:Boolean},rowId:{},enterClass:{},enterStyle:{}},emits:["speakerClick"],setup(e,{emit:t}){const n=t;return(u,a)=>(y(),_("div",{class:De(["conversation-row group flex w-full flex-col",[e.own?"items-end":"",e.enterClass]]),style:ha(e.enterStyle),"data-row-id":e.rowId,tabindex:"-1"},[c("div",{class:De(["flex w-full gap-3",e.own?"justify-end":""])},[!e.own&&!e.hideLeadingAvatar?(y(),_("div",{key:0,class:De(["agent-avatar mt-0.5 h-8 w-8 shrink-0 self-start",e.hideIdentityOnMobile?"hidden lg:block":""]),"data-avatar-key":"row"},[c("span",{class:De(["grid h-8 w-8 place-items-center",u.$slots.avatar?"":"overflow-hidden rounded-full bg-surface"])},[pn(u.$slots,"avatar",{},()=>[e.driver?(y(),Ue(kl,{key:0,driver:e.driver,size:20,fill:""},null,8,["driver"])):(y(),Ue(H(oo),{key:1,size:20,class:"text-fg-muted"}))],!0)],2)],2)):ee("",!0),c("div",{class:De(["cv-bubble min-w-0",e.own?"flex max-w-[80%] flex-col items-end":"flex-1 space-y-2.5"])},[!e.own&&e.speaker?(y(),_("div",{key:0,class:De(["flex items-center gap-2",e.hideIdentityOnMobile?"hidden lg:flex":""])},[e.speakerClickable?(y(),_("button",{key:0,type:"button","data-test":"transcript-speaker",class:"text-xs font-semibold text-fg transition-colors hover:text-accent-text focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent [@media(pointer:coarse)]:inline-flex [@media(pointer:coarse)]:min-h-11 [@media(pointer:coarse)]:min-w-11 [@media(pointer:coarse)]:items-center",onClick:a[0]||(a[0]=Ne(r=>n("speakerClick"),["stop"]))},A(e.speaker),1)):(y(),_("span",wl,A(e.speaker),1)),e.speakerRole?(y(),_("span",_l,A(e.speakerRole),1)):ee("",!0)],2)):ee("",!0),pn(u.$slots,"default",{},void 0,!0)],2)],2),u.$slots.meta?(y(),_("div",{key:0,class:De(["flex",e.own?"justify-end":e.hideLeadingAvatar?"":e.hideIdentityOnMobile?"lg:ml-11":"ml-11"])},[pn(u.$slots,"meta",{},void 0,!0)],2)):ee("",!0)],14,xl))}}),Al=nt(El,[["__scopeId","data-v-bb603dfe"]]),ir={};function Cl(e){let t=ir[e];if(t)return t;t=ir[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function _n(e,t){typeof t!="string"&&(t=_n.defaultChars);const n=Cl(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let a="";for(let r=0,o=u.length;r<o;r+=3){const i=parseInt(u.slice(r+1,r+3),16);if(i<128){a+=n[i];continue}if((i&224)===192&&r+3<o){const s=parseInt(u.slice(r+4,r+6),16);if((s&192)===128){const l=i<<6&1984|s&63;l<128?a+="��":a+=String.fromCharCode(l),r+=3;continue}}if((i&240)===224&&r+6<o){const s=parseInt(u.slice(r+4,r+6),16),l=parseInt(u.slice(r+7,r+9),16);if((s&192)===128&&(l&192)===128){const d=i<<12&61440|s<<6&4032|l&63;d<2048||d>=55296&&d<=57343?a+="���":a+=String.fromCharCode(d),r+=6;continue}}if((i&248)===240&&r+9<o){const s=parseInt(u.slice(r+4,r+6),16),l=parseInt(u.slice(r+7,r+9),16),d=parseInt(u.slice(r+10,r+12),16);if((s&192)===128&&(l&192)===128&&(d&192)===128){let m=i<<18&1835008|s<<12&258048|l<<6&4032|d&63;m<65536||m>1114111?a+="����":(m-=65536,a+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),r+=9;continue}}a+="�"}return a})}_n.defaultChars=";/?:@&=+$,#";_n.componentChars="";const sr={};function Il(e){let t=sr[e];if(t)return t;t=sr[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Wn(e,t,n){typeof t!="string"&&(n=t,t=Wn.defaultChars),typeof n>"u"&&(n=!0);const u=Il(t);let a="";for(let r=0,o=e.length;r<o;r++){const i=e.charCodeAt(r);if(n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){a+=e.slice(r,r+3),r+=2;continue}if(i<128){a+=u[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o){const s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){a+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}a+="%EF%BF%BD";continue}a+=encodeURIComponent(e[r])}return a}Wn.defaultChars=";/?:@&=+$,-_.!~*'()#";Wn.componentChars="-_.!~*'()";function ya(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function du(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Sl=/^([a-z0-9.+-]+:)/i,Tl=/:[0-9]*$/,Dl=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Fl=["<",">",'"',"`"," ","\r",`
|
|
190
|
+
`," "],$l=["{","}","|","\\","^","`"].concat(Fl),Ml=["'"].concat($l),lr=["%","/","?",";","#"].concat(Ml),cr=["/","?","#"],Rl=255,dr=/^[+a-z0-9A-Z_-]{0,63}$/,Ll=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fr={javascript:!0,"javascript:":!0},hr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ka(e,t){if(e&&e instanceof du)return e;const n=new du;return n.parse(e,t),n}du.prototype.parse=function(e,t){let n,u,a,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const l=Dl.exec(r);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let o=Sl.exec(r);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,r=r.substr(o.length)),(t||o||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=r.substr(0,2)==="//",a&&!(o&&fr[o])&&(r=r.substr(2),this.slashes=!0)),!fr[o]&&(a||o&&!hr[o])){let l=-1;for(let x=0;x<cr.length;x++)u=r.indexOf(cr[x]),u!==-1&&(l===-1||u<l)&&(l=u);let d,m;l===-1?m=r.lastIndexOf("@"):m=r.lastIndexOf("@",l),m!==-1&&(d=r.slice(0,m),r=r.slice(m+1),this.auth=d),l=-1;for(let x=0;x<lr.length;x++)u=r.indexOf(lr[x]),u!==-1&&(l===-1||u<l)&&(l=u);l===-1&&(l=r.length),r[l-1]===":"&&l--;const p=r.slice(0,l);r=r.slice(l),this.parseHost(p),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const x=this.hostname.split(/\./);for(let b=0,E=x.length;b<E;b++){const S=x[b];if(S&&!S.match(dr)){let R="";for(let I=0,C=S.length;I<C;I++)S.charCodeAt(I)>127?R+="x":R+=S[I];if(!R.match(dr)){const I=x.slice(0,b),C=x.slice(b+1),$=S.match(Ll);$&&(I.push($[1]),C.unshift($[2])),C.length&&(r=C.join(".")+r),this.hostname=I.join(".");break}}}}this.hostname.length>Rl&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=r.indexOf("#");i!==-1&&(this.hash=r.substr(i),r=r.slice(0,i));const s=r.indexOf("?");return s!==-1&&(this.search=r.substr(s),r=r.slice(0,s)),r&&(this.pathname=r),hr[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};du.prototype.parseHost=function(e){let t=Tl.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Ol=Object.freeze(Object.defineProperty({__proto__:null,decode:_n,encode:Wn,format:ya,parse:ka},Symbol.toStringTag,{value:"Module"})),xo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wo=/[\0-\x1F\x7F-\x9F]/,zl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,xa=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,_o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Eo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pl=Object.freeze(Object.defineProperty({__proto__:null,Any:xo,Cc:wo,Cf:zl,P:xa,S:_o,Z:Eo},Symbol.toStringTag,{value:"Module"})),Nl=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Bl=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ru;const ql=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),jl=(Ru=String.fromCodePoint)!==null&&Ru!==void 0?Ru:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ul(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ql.get(e))!==null&&t!==void 0?t:e}var Ze;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ze||(Ze={}));const Hl=32;var tn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(tn||(tn={}));function sa(e){return e>=Ze.ZERO&&e<=Ze.NINE}function Vl(e){return e>=Ze.UPPER_A&&e<=Ze.UPPER_F||e>=Ze.LOWER_A&&e<=Ze.LOWER_F}function Wl(e){return e>=Ze.UPPER_A&&e<=Ze.UPPER_Z||e>=Ze.LOWER_A&&e<=Ze.LOWER_Z||sa(e)}function Gl(e){return e===Ze.EQUALS||Wl(e)}var Ge;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ge||(Ge={}));var Ut;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ut||(Ut={}));class Kl{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Ge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ut.Strict}startEntity(t){this.decodeMode=t,this.state=Ge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ge.EntityStart:return t.charCodeAt(n)===Ze.NUM?(this.state=Ge.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ge.NamedEntity,this.stateNamedEntity(t,n));case Ge.NumericStart:return this.stateNumericStart(t,n);case Ge.NumericDecimal:return this.stateNumericDecimal(t,n);case Ge.NumericHex:return this.stateNumericHex(t,n);case Ge.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Hl)===Ze.LOWER_X?(this.state=Ge.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ge.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,a){if(n!==u){const r=u-n;this.result=this.result*Math.pow(a,r)+parseInt(t.substr(n,r),a),this.consumed+=r}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const a=t.charCodeAt(n);if(sa(a)||Vl(a))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const a=t.charCodeAt(n);if(sa(a))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ze.SEMI)this.consumed+=1;else if(this.decodeMode===Ut.Strict)return 0;return this.emitCodePoint(Ul(this.result),this.consumed),this.errors&&(t!==Ze.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let a=u[this.treeIndex],r=(a&tn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Zl(u,a,this.treeIndex+Math.max(1,r),o),this.treeIndex<0)return this.result===0||this.decodeMode===Ut.Attribute&&(r===0||Gl(o))?0:this.emitNotTerminatedNamedEntity();if(a=u[this.treeIndex],r=(a&tn.VALUE_LENGTH)>>14,r!==0){if(o===Ze.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Ut.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,a=(u[n]&tn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~tn.VALUE_LENGTH:a[t+1],u),n===3&&this.emitCodePoint(a[t+2],u),u}end(){var t;switch(this.state){case Ge.NamedEntity:return this.result!==0&&(this.decodeMode!==Ut.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ge.NumericDecimal:return this.emitNumericEntity(0,2);case Ge.NumericHex:return this.emitNumericEntity(0,3);case Ge.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ge.EntityStart:return 0}}}function Ao(e){let t="";const n=new Kl(e,u=>t+=jl(u));return function(a,r){let o=0,i=0;for(;(i=a.indexOf("&",i))>=0;){t+=a.slice(o,i),n.startEntity(r);const l=n.write(a,i+1);if(l<0){o=i+n.end();break}o=i+l,i=l===0?o+1:o}const s=t+a.slice(o);return t="",s}}function Zl(e,t,n,u){const a=(t&tn.BRANCH_LENGTH)>>7,r=t&tn.JUMP_TABLE;if(a===0)return r!==0&&u===r?n:-1;if(r){const s=u-r;return s<0||s>=a?-1:e[n+s]-1}let o=n,i=o+a-1;for(;o<=i;){const s=o+i>>>1,l=e[s];if(l<u)o=s+1;else if(l>u)i=s-1;else return e[s+a]}return-1}const Co=Ao(Nl);Ao(Bl);function Yl(e,t=Ut.Legacy){return Co(e,t)}function Xl(e){return Co(e,Ut.Strict)}function Jl(e){return Object.prototype.toString.call(e)}function wa(e){return Jl(e)==="[object String]"}const Ql=Object.prototype.hasOwnProperty;function ec(e,t){return Ql.call(e,t)}function bu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Io(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function _a(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Bn(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const So=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,tc=/&([a-z#][a-z0-9]{1,31});/gi,nc=new RegExp(So.source+"|"+tc.source,"gi"),uc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ac(e,t){if(t.charCodeAt(0)===35&&uc.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return _a(u)?Bn(u):e}const n=Yl(e);return n!==e?n:e}function rc(e){return e.indexOf("\\")<0?e:e.replace(So,"$1")}function En(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(nc,function(t,n,u){return n||ac(t,u)})}const oc=/[&<>"]/,ic=/[&<>"]/g,sc={"&":"&","<":"<",">":">",'"':"""};function lc(e){return sc[e]}function nn(e){return oc.test(e)?e.replace(ic,lc):e}const cc=/[.?*+^$[\]\\(){}|-]/g;function dc(e){return e.replace(cc,"\\$&")}function Me(e){switch(e){case 9:case 32:return!0}return!1}function qn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function To(e){return xa.test(e)||_o.test(e)}function jn(e){return To(Bn(e))}function Un(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function gu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function pr(e){return e===32||e===9||e===10||e===13}function vu(e){let t=0;for(;t<e.length&&pr(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&pr(e.charCodeAt(n));n--);return e.slice(t,n+1)}const fc={mdurl:Ol,ucmicro:Pl},hc=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Io,asciiTrim:vu,assign:bu,escapeHtml:nn,escapeRE:dc,fromCodePoint:Bn,has:ec,isMdAsciiPunct:Un,isPunctChar:To,isPunctCharCode:jn,isSpace:Me,isString:wa,isValidEntityCode:_a,isWhiteSpace:qn,lib:fc,normalizeReference:gu,unescapeAll:En,unescapeMd:rc},Symbol.toStringTag,{value:"Module"}));function pc(e,t,n){let u,a,r,o;const i=e.posMax,s=e.pos;for(e.pos=t+1,u=1;e.pos<i;){if(r=e.src.charCodeAt(e.pos),r===93&&(u--,u===0)){a=!0;break}if(o=e.pos,e.md.inline.skipToken(e),r===91){if(o===e.pos-1)u++;else if(n)return e.pos=s,-1}}let l=-1;return a&&(l=e.pos),e.pos=s,l}function mc(e,t,n){let u,a=t;const r={ok:!1,pos:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<n;){if(u=e.charCodeAt(a),u===10||u===60)return r;if(u===62)return r.pos=a+1,r.str=En(e.slice(t+1,a)),r.ok=!0,r;if(u===92&&a+1<n){a+=2;continue}a++}return r}let o=0;for(;a<n&&(u=e.charCodeAt(a),!(u===32||u<32||u===127));){if(u===92&&a+1<n){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(u===40&&(o++,o>32))return r;if(u===41){if(o===0)break;o--}a++}return t===a||o!==0||(r.str=En(e.slice(t,a)),r.pos=a,r.ok=!0),r}function bc(e,t,n,u){let a,r=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)o.str=u.str,o.marker=u.marker;else{if(r>=n)return o;let i=e.charCodeAt(r);if(i!==34&&i!==39&&i!==40)return o;t++,r++,i===40&&(i=41),o.marker=i}for(;r<n;){if(a=e.charCodeAt(r),a===o.marker)return o.pos=r+1,o.str+=En(e.slice(t,r)),o.ok=!0,o;if(a===40&&o.marker===41)return o;a===92&&r+1<n&&r++,r++}return o.can_continue=!0,o.str+=En(e.slice(t,r)),o}const gc=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:mc,parseLinkLabel:pc,parseLinkTitle:bc},Symbol.toStringTag,{value:"Module"})),Nt={};Nt.code_inline=function(e,t,n,u,a){const r=e[t];return"<code"+a.renderAttrs(r)+">"+nn(r.content)+"</code>"};Nt.code_block=function(e,t,n,u,a){const r=e[t];return"<pre"+a.renderAttrs(r)+"><code>"+nn(e[t].content)+`</code></pre>
|
|
191
|
+
`};Nt.fence=function(e,t,n,u,a){const r=e[t],o=r.info?En(r.info).trim():"";let i="",s="";if(o){const d=o.split(/(\s+)/g);i=d[0],s=d.slice(2).join("")}let l;if(n.highlight?l=n.highlight(r.content,i,s)||nn(r.content):l=nn(r.content),l.indexOf("<pre")===0)return l+`
|
|
192
|
+
`;if(o){const d=r.attrIndex("class"),m=r.attrs?r.attrs.slice():[];d<0?m.push(["class",n.langPrefix+i]):(m[d]=m[d].slice(),m[d][1]+=" "+n.langPrefix+i);const p={attrs:m};return`<pre><code${a.renderAttrs(p)}>${l}</code></pre>
|
|
193
|
+
`}return`<pre><code${a.renderAttrs(r)}>${l}</code></pre>
|
|
194
|
+
`};Nt.image=function(e,t,n,u,a){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=a.renderInlineAsText(r.children,n,u),a.renderToken(e,t,n)};Nt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
195
|
+
`:`<br>
|
|
196
|
+
`};Nt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
197
|
+
`:`<br>
|
|
198
|
+
`:`
|
|
199
|
+
`};Nt.text=function(e,t){return nn(e[t].content)};Nt.html_block=function(e,t){return e[t].content};Nt.html_inline=function(e,t){return e[t].content};function In(){this.rules=bu({},Nt)}In.prototype.renderAttrs=function(t){let n,u,a;if(!t.attrs)return"";for(a="",n=0,u=t.attrs.length;n<u;n++)a+=" "+nn(t.attrs[n][0])+'="'+nn(t.attrs[n][1])+'"';return a};In.prototype.renderToken=function(t,n,u){const a=t[n];let r="";if(a.hidden)return"";a.block&&a.nesting!==-1&&n&&t[n-1].hidden&&(r+=`
|
|
200
|
+
`),r+=(a.nesting===-1?"</":"<")+a.tag,r+=this.renderAttrs(a),a.nesting===0&&u.xhtmlOut&&(r+=" /");let o=!1;if(a.block&&(o=!0,a.nesting===1&&n+1<t.length)){const i=t[n+1];(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===a.tag)&&(o=!1)}return r+=o?`>
|
|
201
|
+
`:">",r};In.prototype.renderInline=function(e,t,n){let u="";const a=this.rules;for(let r=0,o=e.length;r<o;r++){const i=e[r].type;typeof a[i]<"u"?u+=a[i](e,r,t,n,this):u+=this.renderToken(e,r,t)}return u};In.prototype.renderInlineAsText=function(e,t,n){let u="";for(let a=0,r=e.length;a<r;a++)switch(e[a].type){case"text":u+=e[a].content;break;case"image":u+=this.renderInlineAsText(e[a].children,t,n);break;case"html_inline":case"html_block":u+=e[a].content;break;case"softbreak":case"hardbreak":u+=`
|
|
202
|
+
`;break}return u};In.prototype.render=function(e,t,n){let u="";const a=this.rules;for(let r=0,o=e.length;r<o;r++){const i=e[r].type;i==="inline"?u+=this.renderInline(e[r].children,t,n):typeof a[i]<"u"?u+=a[i](e,r,t,n,this):u+=this.renderToken(e,r,t,n)}return u};function pt(){this.__rules__=[],this.__cache__=null}pt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};pt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};pt.prototype.at=function(e,t,n){const u=this.__find__(e),a=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=a.alt||[],this.__cache__=null};pt.prototype.before=function(e,t,n,u){const a=this.__find__(e),r=u||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null};pt.prototype.after=function(e,t,n,u){const a=this.__find__(e),r=u||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null};pt.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};pt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const a=this.__find__(u);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[a].enabled=!0,n.push(u)},this),this.__cache__=null,n};pt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};pt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const a=this.__find__(u);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[a].enabled=!1,n.push(u)},this),this.__cache__=null,n};pt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Ft(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ft.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,a=n.length;u<a;u++)if(n[u][0]===t)return u;return-1};Ft.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Ft.prototype.attrSet=function(t,n){const u=this.attrIndex(t),a=[t,n];u<0?this.attrPush(a):this.attrs[u]=a};Ft.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Ft.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Do(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Do.prototype.Token=Ft;const vc=/\r\n?|\n/g,yc=/\0/g;function kc(e){let t;t=e.src.replace(vc,`
|
|
203
|
+
`),t=t.replace(yc,"�"),e.src=t}function xc(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function wc(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const a=t[n];a.type==="inline"&&e.md.inline.parse(a.content,e.md,e.env,a.children)}}function _c(e){return/^<a[>\s]/i.test(e)}function Ec(e){return/^<\/a\s*>/i.test(e)}function Ac(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let a=t[n].children,r=0;for(let o=a.length-1;o>=0;o--){const i=a[o];if(i.type==="link_close"){for(o--;a[o].level!==i.level&&a[o].type!=="link_open";)o--;continue}if(i.type==="html_inline"&&(_c(i.content)&&r>0&&r--,Ec(i.content)&&r++),!(r>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const s=i.content;let l=e.md.linkify.match(s);const d=[];let m=i.level,p=0;l.length>0&&l[0].index===0&&o>0&&a[o-1].type==="text_special"&&(l=l.slice(1));for(let g=0;g<l.length;g++){const x=l[g].url,b=e.md.normalizeLink(x);if(!e.md.validateLink(b))continue;let E=l[g].text;l[g].schema?l[g].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,"");const S=l[g].index;if(S>p){const $=new e.Token("text","",0);$.content=s.slice(p,S),$.level=m,d.push($)}const R=new e.Token("link_open","a",1);R.attrs=[["href",b]],R.level=m++,R.markup="linkify",R.info="auto",d.push(R);const I=new e.Token("text","",0);I.content=E,I.level=m,d.push(I);const C=new e.Token("link_close","a",-1);C.level=--m,C.markup="linkify",C.info="auto",d.push(C),p=l[g].lastIndex}if(p<s.length){const g=new e.Token("text","",0);g.content=s.slice(p),g.level=m,d.push(g)}t[n].children=a=Io(a,o,d)}}}}const Fo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Cc=/\((c|tm|r)\)/i,Ic=/\((c|tm|r)\)/ig,Sc={c:"©",r:"®",tm:"™"};function Tc(e,t){return Sc[t.toLowerCase()]}function Dc(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(Ic,Tc)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Fc(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Fo.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function $c(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Cc.test(e.tokens[t].content)&&Dc(e.tokens[t].children),Fo.test(e.tokens[t].content)&&Fc(e.tokens[t].children))}const Mc=/['"]/,mr=/['"]/g,br="’";function eu(e,t,n,u){e[t]||(e[t]=[]),e[t].push({pos:n,ch:u})}function Rc(e,t){let n="",u=0;t.sort((a,r)=>a.pos-r.pos);for(let a=0;a<t.length;a++){const r=t[a];n+=e.slice(u,r.pos)+r.ch,u=r.pos+1}return n+e.slice(u)}function Lc(e,t){let n;const u=[],a={};for(let r=0;r<e.length;r++){const o=e[r],i=e[r].level;for(n=u.length-1;n>=0&&!(u[n].level<=i);n--);if(u.length=n+1,o.type!=="text")continue;const s=o.content;let l=0;const d=s.length;e:for(;l<d;){mr.lastIndex=l;const m=mr.exec(s);if(!m)break;let p=!0,g=!0;l=m.index+1;const x=m[0]==="'";let b=32;if(m.index-1>=0)b=s.charCodeAt(m.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let E=32;if(l<d)E=s.charCodeAt(l);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){E=e[n].content.charCodeAt(0);break}const S=Un(b)||jn(b),R=Un(E)||jn(E),I=qn(b),C=qn(E);if(C?p=!1:R&&(I||S||(p=!1)),I?g=!1:S&&(C||R||(g=!1)),E===34&&m[0]==='"'&&b>=48&&b<=57&&(g=p=!1),p&&g&&(p=S,g=R),!p&&!g){x&&eu(a,r,m.index,br);continue}if(g)for(n=u.length-1;n>=0;n--){let $=u[n];if(u[n].level<i)break;if($.single===x&&u[n].level===i){$=u[n];let D,z;x?(D=t.md.options.quotes[2],z=t.md.options.quotes[3]):(D=t.md.options.quotes[0],z=t.md.options.quotes[1]),eu(a,r,m.index,z),eu(a,$.token,$.pos,D),u.length=n;continue e}}p?u.push({token:r,pos:m.index,single:x,level:i}):g&&x&&eu(a,r,m.index,br)}}Object.keys(a).forEach(function(r){e[r].content=Rc(e[r].content,a[r])})}function Oc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Mc.test(e.tokens[t].content)||Lc(e.tokens[t].children,e)}function zc(e){let t,n;const u=e.tokens,a=u.length;for(let r=0;r<a;r++){if(u[r].type!=="inline")continue;const o=u[r].children,i=o.length;for(t=0;t<i;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=n=0;t<i;t++)o[t].type==="text"&&t+1<i&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}const Lu=[["normalize",kc],["block",xc],["inline",wc],["linkify",Ac],["replacements",$c],["smartquotes",Oc],["text_join",zc]];function Ea(){this.ruler=new pt;for(let e=0;e<Lu.length;e++)this.ruler.push(Lu[e][0],Lu[e][1])}Ea.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};Ea.prototype.State=Do;function Bt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const a=this.src;for(let r=0,o=0,i=0,s=0,l=a.length,d=!1;o<l;o++){const m=a.charCodeAt(o);if(!d)if(Me(m)){i++,m===9?s+=4-s%4:s++;continue}else d=!0;(m===10||o===l-1)&&(m!==10&&o++,this.bMarks.push(r),this.eMarks.push(o),this.tShift.push(i),this.sCount.push(s),this.bsCount.push(0),d=!1,i=0,s=0,r=o+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Bt.prototype.push=function(e,t,n){const u=new Ft(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Bt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Bt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Bt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Me(u))break}return t};Bt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Me(this.src.charCodeAt(--t)))return t+1;return t};Bt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Bt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Bt.prototype.getLines=function(t,n,u,a){if(t>=n)return"";const r=new Array(n-t);for(let o=0,i=t;i<n;i++,o++){let s=0;const l=this.bMarks[i];let d=l,m;for(i+1<n||a?m=this.eMarks[i]+1:m=this.eMarks[i];d<m&&s<u;){const p=this.src.charCodeAt(d);if(Me(p))p===9?s+=4-(s+this.bsCount[i])%4:s++;else if(d-l<this.tShift[i])s++;else break;d++}s>u?r[o]=new Array(s-u+1).join(" ")+this.src.slice(d,m):r[o]=this.src.slice(d,m)}return r.join("")};Bt.prototype.Token=Ft;const Pc=65536;function Ou(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function gr(e){const t=[],n=e.length;let u=0,a=e.charCodeAt(u),r=!1,o=0,i="";for(;u<n;)a===124&&(r?(i+=e.substring(o,u-1),o=u):(t.push(i+e.substring(o,u)),i="",o=u+1)),r=a===92,u++,a=e.charCodeAt(u);return t.push(i+e.substring(o)),t}function Nc(e,t,n,u){if(t+2>n)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let r=e.bMarks[a]+e.tShift[a];if(r>=e.eMarks[a])return!1;const o=e.src.charCodeAt(r++);if(o!==124&&o!==45&&o!==58||r>=e.eMarks[a])return!1;const i=e.src.charCodeAt(r++);if(i!==124&&i!==45&&i!==58&&!Me(i)||o===45&&Me(i))return!1;for(;r<e.eMarks[a];){const C=e.src.charCodeAt(r);if(C!==124&&C!==45&&C!==58&&!Me(C))return!1;r++}let s=Ou(e,t+1),l=s.split("|");const d=[];for(let C=0;C<l.length;C++){const $=l[C].trim();if(!$){if(C===0||C===l.length-1)continue;return!1}if(!/^:?-+:?$/.test($))return!1;$.charCodeAt($.length-1)===58?d.push($.charCodeAt(0)===58?"center":"right"):$.charCodeAt(0)===58?d.push("left"):d.push("")}if(s=Ou(e,t).trim(),s.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=gr(s),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const m=l.length;if(m===0||m!==d.length)return!1;if(u)return!0;const p=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),x=e.push("table_open","table",1),b=[t,0];x.map=b;const E=e.push("thead_open","thead",1);E.map=[t,t+1];const S=e.push("tr_open","tr",1);S.map=[t,t+1];for(let C=0;C<l.length;C++){const $=e.push("th_open","th",1);d[C]&&($.attrs=[["style","text-align:"+d[C]]]);const D=e.push("inline","",0);D.content=l[C].trim(),D.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let R,I=0;for(a=t+2;a<n&&!(e.sCount[a]<e.blkIndent);a++){let C=!1;for(let D=0,z=g.length;D<z;D++)if(g[D](e,a,n,!0)){C=!0;break}if(C||(s=Ou(e,a).trim(),!s)||e.sCount[a]-e.blkIndent>=4||(l=gr(s),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),I+=m-l.length,I>Pc))break;if(a===t+2){const D=e.push("tbody_open","tbody",1);D.map=R=[t+2,0]}const $=e.push("tr_open","tr",1);$.map=[a,a+1];for(let D=0;D<m;D++){const z=e.push("td_open","td",1);d[D]&&(z.attrs=[["style","text-align:"+d[D]]]);const T=e.push("inline","",0);T.content=l[D]?l[D].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return R&&(e.push("tbody_close","tbody",-1),R[1]=a),e.push("table_close","table",-1),b[1]=a,e.parentType=p,e.line=a,!0}function Bc(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,a=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,a=u;continue}break}e.line=a;const r=e.push("code_block","code",0);return r.content=e.getLines(t,a,4+e.blkIndent,!1)+`
|
|
204
|
+
`,r.map=[t,e.line],!0}function qc(e,t,n,u){let a=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>r)return!1;const o=e.src.charCodeAt(a);if(o!==126&&o!==96)return!1;let i=a;a=e.skipChars(a,o);let s=a-i;if(s<3)return!1;const l=e.src.slice(i,a),d=e.src.slice(a,r);if(o===96&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(u)return!0;let m=t,p=!1;for(;m++,!(m>=n||(a=i=e.bMarks[m]+e.tShift[m],r=e.eMarks[m],a<r&&e.sCount[m]<e.blkIndent));)if(e.src.charCodeAt(a)===o&&!(e.sCount[m]-e.blkIndent>=4)&&(a=e.skipChars(a,o),!(a-i<s)&&(a=e.skipSpaces(a),!(a<r)))){p=!0;break}s=e.sCount[t],e.line=m+(p?1:0);const g=e.push("fence","code",0);return g.info=d,g.content=e.getLines(t+1,m,s,!0),g.markup=l,g.map=[t,e.line],!0}function jc(e,t,n,u){let a=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(u)return!0;const i=[],s=[],l=[],d=[],m=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let g=!1,x;for(x=t;x<n;x++){const I=e.sCount[x]<e.blkIndent;if(a=e.bMarks[x]+e.tShift[x],r=e.eMarks[x],a>=r)break;if(e.src.charCodeAt(a++)===62&&!I){let $=e.sCount[x]+1,D,z;e.src.charCodeAt(a)===32?(a++,$++,z=!1,D=!0):e.src.charCodeAt(a)===9?(D=!0,(e.bsCount[x]+$)%4===3?(a++,$++,z=!1):z=!0):D=!1;let T=$;for(i.push(e.bMarks[x]),e.bMarks[x]=a;a<r;){const W=e.src.charCodeAt(a);if(Me(W))W===9?T+=4-(T+e.bsCount[x]+(z?1:0))%4:T++;else break;a++}g=a>=r,s.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(D?1:0),l.push(e.sCount[x]),e.sCount[x]=T-$,d.push(e.tShift[x]),e.tShift[x]=a-e.bMarks[x];continue}if(g)break;let C=!1;for(let $=0,D=m.length;$<D;$++)if(m[$](e,x,n,!0)){C=!0;break}if(C){e.lineMax=x,e.blkIndent!==0&&(i.push(e.bMarks[x]),s.push(e.bsCount[x]),d.push(e.tShift[x]),l.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}i.push(e.bMarks[x]),s.push(e.bsCount[x]),d.push(e.tShift[x]),l.push(e.sCount[x]),e.sCount[x]=-1}const b=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const S=[t,0];E.map=S,e.md.block.tokenize(e,t,x);const R=e.push("blockquote_close","blockquote",-1);R.markup=">",e.lineMax=o,e.parentType=p,S[1]=e.line;for(let I=0;I<d.length;I++)e.bMarks[I+t]=i[I],e.tShift[I+t]=d[I],e.sCount[I+t]=l[I],e.bsCount[I+t]=s[I];return e.blkIndent=b,!0}function Uc(e,t,n,u){const a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==95)return!1;let i=1;for(;r<a;){const l=e.src.charCodeAt(r++);if(l!==o&&!Me(l))return!1;l===o&&i++}if(i<3)return!1;if(u)return!0;e.line=t+1;const s=e.push("hr","hr",0);return s.map=[t,e.line],s.markup=Array(i+1).join(String.fromCharCode(o)),!0}function vr(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(u++);if(a!==42&&a!==45&&a!==43)return-1;if(u<n){const r=e.src.charCodeAt(u);if(!Me(r))return-1}return u}function yr(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let a=n;if(a+1>=u)return-1;let r=e.src.charCodeAt(a++);if(r<48||r>57)return-1;for(;;){if(a>=u)return-1;if(r=e.src.charCodeAt(a++),r>=48&&r<=57){if(a-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return a<u&&(r=e.src.charCodeAt(a),!Me(r))?-1:a}function Hc(e,t){const n=e.level+2;for(let u=t+2,a=e.tokens.length-2;u<a;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function Vc(e,t,n,u){let a,r,o,i,s=t,l=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let d=!1;u&&e.parentType==="paragraph"&&e.sCount[s]>=e.blkIndent&&(d=!0);let m,p,g;if((g=yr(e,s))>=0){if(m=!0,o=e.bMarks[s]+e.tShift[s],p=Number(e.src.slice(o,g-1)),d&&p!==1)return!1}else if((g=vr(e,s))>=0)m=!1;else return!1;if(d&&e.skipSpaces(g)>=e.eMarks[s])return!1;if(u)return!0;const x=e.src.charCodeAt(g-1),b=e.tokens.length;m?(i=e.push("ordered_list_open","ol",1),p!==1&&(i.attrs=[["start",p]])):i=e.push("bullet_list_open","ul",1);const E=[s,0];i.map=E,i.markup=String.fromCharCode(x);let S=!1;const R=e.md.block.ruler.getRules("list"),I=e.parentType;for(e.parentType="list";s<n;){r=g,a=e.eMarks[s];const C=e.sCount[s]+g-(e.bMarks[s]+e.tShift[s]);let $=C;for(;r<a;){const de=e.src.charCodeAt(r);if(de===9)$+=4-($+e.bsCount[s])%4;else if(de===32)$++;else break;r++}const D=r;let z;D>=a?z=1:z=$-C,z>4&&(z=1);const T=C+z;i=e.push("list_item_open","li",1),i.markup=String.fromCharCode(x);const W=[s,0];i.map=W,m&&(i.info=e.src.slice(o,g-1));const G=e.tight,U=e.tShift[s],J=e.sCount[s],q=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[s]=D-e.bMarks[s],e.sCount[s]=$,D>=a&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||S)&&(l=!1),S=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=q,e.tShift[s]=U,e.sCount[s]=J,e.tight=G,i=e.push("list_item_close","li",-1),i.markup=String.fromCharCode(x),s=e.line,W[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let ue=!1;for(let de=0,be=R.length;de<be;de++)if(R[de](e,s,n,!0)){ue=!0;break}if(ue)break;if(m){if(g=yr(e,s),g<0)break;o=e.bMarks[s]+e.tShift[s]}else if(g=vr(e,s),g<0)break;if(x!==e.src.charCodeAt(g-1))break}return m?i=e.push("ordered_list_close","ol",-1):i=e.push("bullet_list_close","ul",-1),i.markup=String.fromCharCode(x),E[1]=s,e.line=s,e.parentType=I,l&&Hc(e,b),!0}function Wc(e,t,n,u){let a=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function i(R){const I=e.lineMax;if(R>=I||e.isEmpty(R))return null;let C=!1;if(e.sCount[R]-e.blkIndent>3&&(C=!0),e.sCount[R]<0&&(C=!0),!C){const z=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let W=!1;for(let G=0,U=z.length;G<U;G++)if(z[G](e,R,I,!0)){W=!0;break}if(e.parentType=T,W)return null}const $=e.bMarks[R]+e.tShift[R],D=e.eMarks[R];return e.src.slice($,D+1)}let s=e.src.slice(a,r+1);r=s.length;let l=-1;for(a=1;a<r;a++){const R=s.charCodeAt(a);if(R===91)return!1;if(R===93){l=a;break}else if(R===10){const I=i(o);I!==null&&(s+=I,r=s.length,o++)}else if(R===92&&(a++,a<r&&s.charCodeAt(a)===10)){const I=i(o);I!==null&&(s+=I,r=s.length,o++)}}if(l<0||s.charCodeAt(l+1)!==58)return!1;for(a=l+2;a<r;a++){const R=s.charCodeAt(a);if(R===10){const I=i(o);I!==null&&(s+=I,r=s.length,o++)}else if(!Me(R))break}const d=e.md.helpers.parseLinkDestination(s,a,r);if(!d.ok)return!1;const m=e.md.normalizeLink(d.str);if(!e.md.validateLink(m))return!1;a=d.pos;const p=a,g=o,x=a;for(;a<r;a++){const R=s.charCodeAt(a);if(R===10){const I=i(o);I!==null&&(s+=I,r=s.length,o++)}else if(!Me(R))break}let b=e.md.helpers.parseLinkTitle(s,a,r);for(;b.can_continue;){const R=i(o);if(R===null)break;s+=R,a=r,r=s.length,o++,b=e.md.helpers.parseLinkTitle(s,a,r,b)}let E;for(a<r&&x!==a&&b.ok?(E=b.str,a=b.pos):(E="",a=p,o=g);a<r;){const R=s.charCodeAt(a);if(!Me(R))break;a++}if(a<r&&s.charCodeAt(a)!==10&&E)for(E="",a=p,o=g;a<r;){const R=s.charCodeAt(a);if(!Me(R))break;a++}if(a<r&&s.charCodeAt(a)!==10)return!1;const S=gu(s.slice(1,l));return S?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[S]>"u"&&(e.env.references[S]={title:E,href:m}),e.line=o),!0):!1}const Gc=["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"],Kc="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zc="[^\"'=<>`\\x00-\\x20]+",Yc="'[^']*'",Xc='"[^"]*"',Jc="(?:"+Zc+"|"+Yc+"|"+Xc+")",Qc="(?:\\s+"+Kc+"(?:\\s*=\\s*"+Jc+")?)",$o="<[A-Za-z][A-Za-z0-9\\-]*"+Qc+"*\\s*\\/?>",Mo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",e1="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",t1="<[?][\\s\\S]*?[?]>",n1="<![A-Za-z][^>]*>",u1="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",a1=new RegExp("^(?:"+$o+"|"+Mo+"|"+e1+"|"+t1+"|"+n1+"|"+u1+")"),r1=new RegExp("^(?:"+$o+"|"+Mo+")"),cn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Gc.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r1.source+"\\s*$"),/^$/,!1]];function o1(e,t,n,u){let a=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let o=e.src.slice(a,r),i=0;for(;i<cn.length&&!cn[i][0].test(o);i++);if(i===cn.length)return!1;if(u)return cn[i][2];let s=t+1;const l=cn[i][1].test("");if(!cn[i][1].test(o)){for(;s<n&&!(e.sCount[s]<e.blkIndent&&(l||!e.isEmpty(s)));s++)if(a=e.bMarks[s]+e.tShift[s],r=e.eMarks[s],o=e.src.slice(a,r),cn[i][1].test(o)){o.length!==0&&s++;break}}e.line=s;const d=e.push("html_block","",0);return d.map=[t,s],d.content=e.getLines(t,s,e.blkIndent,!0),!0}function i1(e,t,n,u){let a=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(a);if(o!==35||a>=r)return!1;let i=1;for(o=e.src.charCodeAt(++a);o===35&&a<r&&i<=6;)i++,o=e.src.charCodeAt(++a);if(i>6||a<r&&!Me(o))return!1;if(u)return!0;r=e.skipSpacesBack(r,a);const s=e.skipCharsBack(r,35,a);s>a&&Me(e.src.charCodeAt(s-1))&&(r=s),e.line=t+1;const l=e.push("heading_open","h"+String(i),1);l.markup="########".slice(0,i),l.map=[t,e.line];const d=e.push("inline","",0);d.content=vu(e.src.slice(a,r)),d.map=[t,e.line],d.children=[];const m=e.push("heading_close","h"+String(i),-1);return m.markup="########".slice(0,i),!0}function s1(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let r=0,o,i=t+1;for(;i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]>=e.blkIndent){let g=e.bMarks[i]+e.tShift[i];const x=e.eMarks[i];if(g<x&&(o=e.src.charCodeAt(g),(o===45||o===61)&&(g=e.skipChars(g,o),g=e.skipSpaces(g),g>=x))){r=o===61?1:2;break}}if(e.sCount[i]<0)continue;let p=!1;for(let g=0,x=u.length;g<x;g++)if(u[g](e,i,n,!0)){p=!0;break}if(p)break}if(!r)return e.parentType=a,!1;const s=vu(e.getLines(t,i,e.blkIndent,!1));e.line=i+1;const l=e.push("heading_open","h"+String(r),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];const d=e.push("inline","",0);d.content=s,d.map=[t,e.line-1],d.children=[];const m=e.push("heading_close","h"+String(r),-1);return m.markup=String.fromCharCode(o),e.parentType=a,!0}function l1(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let r=t+1;for(e.parentType="paragraph";r<n&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3||e.sCount[r]<0)continue;let l=!1;for(let d=0,m=u.length;d<m;d++)if(u[d](e,r,n,!0)){l=!0;break}if(l)break}const o=vu(e.getLines(t,r,e.blkIndent,!1));e.line=r;const i=e.push("paragraph_open","p",1);i.map=[t,e.line];const s=e.push("inline","",0);return s.content=o,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}const tu=[["table",Nc,["paragraph","reference"]],["code",Bc],["fence",qc,["paragraph","reference","blockquote","list"]],["blockquote",jc,["paragraph","reference","blockquote","list"]],["hr",Uc,["paragraph","reference","blockquote","list"]],["list",Vc,["paragraph","reference","blockquote"]],["reference",Wc],["html_block",o1,["paragraph","reference","blockquote"]],["heading",i1,["paragraph","reference","blockquote"]],["lheading",s1],["paragraph",l1]];function yu(){this.ruler=new pt;for(let e=0;e<tu.length;e++)this.ruler.push(tu[e][0],tu[e][1],{alt:(tu[e][2]||[]).slice()})}yu.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),a=u.length,r=e.md.options.maxNesting;let o=t,i=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=r){e.line=n;break}const s=e.line;let l=!1;for(let d=0;d<a;d++)if(l=u[d](e,o,n,!1),l){if(s>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),o=e.line,o<n&&e.isEmpty(o)&&(i=!0,o++,e.line=o)}};yu.prototype.parse=function(e,t,n,u){if(!e)return;const a=new this.State(e,t,n,u);this.tokenize(a,a.line,a.lineMax)};yu.prototype.State=Bt;function Gn(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Gn.prototype.pushPending=function(){const e=new Ft("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Gn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Ft(e,t,n);let a=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(a),u};Gn.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e);let a;if(e===0)a=32;else if(e===1)a=this.src.charCodeAt(0),(a&63488)===55296&&(a=65533);else if(a=this.src.charCodeAt(e-1),(a&64512)===56320){const E=this.src.charCodeAt(e-2);a=(E&64512)===55296?65536+(E-55296<<10)+(a-56320):65533}else(a&64512)===55296&&(a=65533);let r=e;for(;r<n&&this.src.charCodeAt(r)===u;)r++;const o=r-e;let i=r<n?this.src.charCodeAt(r):32;if((i&64512)===55296){const E=this.src.charCodeAt(r+1);i=(E&64512)===56320?65536+(i-55296<<10)+(E-56320):65533}else(i&64512)===56320&&(i=65533);const s=Un(a)||jn(a),l=Un(i)||jn(i),d=qn(a),m=qn(i),p=!m&&(!l||d||s),g=!d&&(!s||m||l);return{can_open:p&&(t||!g||s),can_close:g&&(t||!p||l),length:o}};Gn.prototype.Token=Ft;function c1(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function d1(e,t){let n=e.pos;for(;n<e.posMax&&!c1(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const f1=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function h1(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const a=e.pending.match(f1);if(!a)return!1;const r=a[1],o=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!o)return!1;let i=o.url;if(i.length<=r.length)return!1;let s=i.length;for(;s>0&&i.charCodeAt(s-1)===42;)s--;s!==i.length&&(i=i.slice(0,s));const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const d=e.push("link_open","a",1);d.attrs=[["href",l]],d.markup="linkify",d.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(i);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=i.length-r.length,!0}function p1(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,a=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let r=u-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<a&&Me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Aa=[];for(let e=0;e<256;e++)Aa.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Aa[e.charCodeAt(0)]=1});function m1(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let a=e.src.charCodeAt(n);if(a===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(a=e.src.charCodeAt(n),!!Me(a));)n++;return e.pos=n,!0}let r=e.src[n];if(a>=55296&&a<=56319&&n+1<u){const i=e.src.charCodeAt(n+1);i>=56320&&i<=57343&&(r+=e.src[n+1],n++)}const o="\\"+r;if(!t){const i=e.push("text_special","",0);a<256&&Aa[a]!==0?i.content=r:i.content=o,i.markup=o,i.info="escape"}return e.pos=n+1,!0}function b1(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const a=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(a,n),i=o.length;if(e.backticksScanned&&(e.backticks[i]||0)<=a)return t||(e.pending+=o),e.pos+=i,!0;let s=n,l;for(;(l=e.src.indexOf("`",s))!==-1;){for(s=l+1;s<r&&e.src.charCodeAt(s)===96;)s++;const d=s-l;if(d===i){if(!t){const m=e.push("code_inline","code",0);m.markup=o,m.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[d]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=i,!0}function g1(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const a=e.scanDelims(e.pos,!0);let r=a.length;const o=String.fromCharCode(u);if(r<2)return!1;let i;r%2&&(i=e.push("text","",0),i.content=o,r--);for(let s=0;s<r;s+=2)i=e.push("text","",0),i.content=o+o,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function kr(e,t){let n;const u=[],a=t.length;for(let r=0;r<a;r++){const o=t[r];if(o.marker!==126||o.end===-1)continue;const i=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[i.token-1].type==="text"&&e.tokens[i.token-1].content==="~"&&u.push(i.token-1)}for(;u.length;){const r=u.pop();let o=r+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,r!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[r],e.tokens[r]=n)}}function v1(e){const t=e.tokens_meta,n=e.tokens_meta.length;kr(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&kr(e,t[u].delimiters)}const Ro={tokenize:g1,postProcess:v1};function y1(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const a=e.scanDelims(e.pos,u===42);for(let r=0;r<a.length;r++){const o=e.push("text","",0);o.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function xr(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const a=t[u];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const r=t[a.end],o=u>0&&t[u-1].end===a.end+1&&t[u-1].marker===a.marker&&t[u-1].token===a.token-1&&t[a.end+1].token===r.token+1,i=String.fromCharCode(a.marker),s=e.tokens[a.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?i+i:i,s.content="";const l=e.tokens[r.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?i+i:i,l.content="",o&&(e.tokens[t[u-1].token].content="",e.tokens[t[a.end+1].token].content="",u--)}}function k1(e){const t=e.tokens_meta,n=e.tokens_meta.length;xr(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&xr(e,t[u].delimiters)}const Lo={tokenize:y1,postProcess:k1};function x1(e,t){let n,u,a,r,o="",i="",s=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,m=e.posMax,p=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let x=g+1;if(x<m&&e.src.charCodeAt(x)===40){for(l=!1,x++;x<m&&(n=e.src.charCodeAt(x),!(!Me(n)&&n!==10));x++);if(x>=m)return!1;if(s=x,a=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),a.ok){for(o=e.md.normalizeLink(a.str),e.md.validateLink(o)?x=a.pos:o="",s=x;x<m&&(n=e.src.charCodeAt(x),!(!Me(n)&&n!==10));x++);if(a=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<m&&s!==x&&a.ok)for(i=a.str,x=a.pos;x<m&&(n=e.src.charCodeAt(x),!(!Me(n)&&n!==10));x++);}(x>=m||e.src.charCodeAt(x)!==41)&&(l=!0),x++}if(l){if(typeof e.env.references>"u")return!1;if(x<m&&e.src.charCodeAt(x)===91?(s=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?u=e.src.slice(s,x++):x=g+1):x=g+1,u||(u=e.src.slice(p,g)),r=e.env.references[gu(u)],!r)return e.pos=d,!1;o=r.href,i=r.title}if(!t){e.pos=p,e.posMax=g;const b=e.push("link_open","a",1),E=[["href",o]];b.attrs=E,i&&E.push(["title",i]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=m,!0}function w1(e,t){let n,u,a,r,o,i,s,l,d="";const m=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(r=x+1,r<p&&e.src.charCodeAt(r)===40){for(r++;r<p&&(n=e.src.charCodeAt(r),!(!Me(n)&&n!==10));r++);if(r>=p)return!1;for(l=r,i=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),i.ok&&(d=e.md.normalizeLink(i.str),e.md.validateLink(d)?r=i.pos:d=""),l=r;r<p&&(n=e.src.charCodeAt(r),!(!Me(n)&&n!==10));r++);if(i=e.md.helpers.parseLinkTitle(e.src,r,e.posMax),r<p&&l!==r&&i.ok)for(s=i.str,r=i.pos;r<p&&(n=e.src.charCodeAt(r),!(!Me(n)&&n!==10));r++);else s="";if(r>=p||e.src.charCodeAt(r)!==41)return e.pos=m,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r<p&&e.src.charCodeAt(r)===91?(l=r+1,r=e.md.helpers.parseLinkLabel(e,r),r>=0?a=e.src.slice(l,r++):r=x+1):r=x+1,a||(a=e.src.slice(g,x)),o=e.env.references[gu(a)],!o)return e.pos=m,!1;d=o.href,s=o.title}if(!t){u=e.src.slice(g,x);const b=[];e.md.inline.parse(u,e.md,e.env,b);const E=e.push("image","img",0),S=[["src",d],["alt",""]];E.attrs=S,E.children=b,E.content=u,s&&S.push(["title",s])}return e.pos=r,e.posMax=p,!0}const _1=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,E1=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function A1(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,a=e.posMax;for(;;){if(++n>=a)return!1;const o=e.src.charCodeAt(n);if(o===60)return!1;if(o===62)break}const r=e.src.slice(u+1,n);if(E1.test(r)){const o=e.md.normalizeLink(r);if(!e.md.validateLink(o))return!1;if(!t){const i=e.push("link_open","a",1);i.attrs=[["href",o]],i.markup="autolink",i.info="auto";const s=e.push("text","",0);s.content=e.md.normalizeLinkText(r);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=r.length+2,!0}if(_1.test(r)){const o=e.md.normalizeLink("mailto:"+r);if(!e.md.validateLink(o))return!1;if(!t){const i=e.push("link_open","a",1);i.attrs=[["href",o]],i.markup="autolink",i.info="auto";const s=e.push("text","",0);s.content=e.md.normalizeLinkText(r);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=r.length+2,!0}return!1}function C1(e){return/^<a[>\s]/i.test(e)}function I1(e){return/^<\/a\s*>/i.test(e)}function S1(e){const t=e|32;return t>=97&&t<=122}function T1(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const a=e.src.charCodeAt(u+1);if(a!==33&&a!==63&&a!==47&&!S1(a))return!1;const r=e.src.slice(u).match(a1);if(!r)return!1;if(!t){const o=e.push("html_inline","",0);o.content=r[0],C1(o.content)&&e.linkLevel++,I1(o.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}const D1=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,F1=/^&([a-z][a-z0-9]{1,31});/i;function $1(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(D1);if(r){if(!t){const o=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),i=e.push("text_special","",0);i.content=_a(o)?Bn(o):Bn(65533),i.markup=r[0],i.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(F1);if(r){const o=Xl(r[0]);if(o!==r[0]){if(!t){const i=e.push("text_special","",0);i.content=o,i.markup=r[0],i.info="entity"}return e.pos+=r[0].length,!0}}}return!1}function wr(e){const t={},n=e.length;if(!n)return;let u=0,a=-2;const r=[];for(let o=0;o<n;o++){const i=e[o];if(r.push(0),(e[u].marker!==i.marker||a!==i.token-1)&&(u=o),a=i.token,i.length=i.length||0,!i.close)continue;t.hasOwnProperty(i.marker)||(t[i.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[i.marker][(i.open?3:0)+i.length%3];let l=u-r[u]-1,d=l;for(;l>s;l-=r[l]+1){const m=e[l];if(m.marker===i.marker&&m.open&&m.end<0){let p=!1;if((m.close||i.open)&&(m.length+i.length)%3===0&&(m.length%3!==0||i.length%3!==0)&&(p=!0),!p){const g=l>0&&!e[l-1].open?r[l-1]+1:0;r[o]=o-l+g,r[l]=g,i.open=!1,m.end=o,m.close=!1,d=-1,a=-2;break}}}d!==-1&&(t[i.marker][(i.open?3:0)+(i.length||0)%3]=d)}}function M1(e){const t=e.tokens_meta,n=e.tokens_meta.length;wr(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&wr(t[u].delimiters)}function R1(e){let t,n,u=0;const a=e.tokens,r=e.tokens.length;for(t=n=0;t<r;t++)a[t].nesting<0&&u--,a[t].level=u,a[t].nesting>0&&u++,a[t].type==="text"&&t+1<r&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}const zu=[["text",d1],["linkify",h1],["newline",p1],["escape",m1],["backticks",b1],["strikethrough",Ro.tokenize],["emphasis",Lo.tokenize],["link",x1],["image",w1],["autolink",A1],["html_inline",T1],["entity",$1]],Pu=[["balance_pairs",M1],["strikethrough",Ro.postProcess],["emphasis",Lo.postProcess],["fragments_join",R1]];function Kn(){this.ruler=new pt;for(let e=0;e<zu.length;e++)this.ruler.push(zu[e][0],zu[e][1]);this.ruler2=new pt;for(let e=0;e<Pu.length;e++)this.ruler2.push(Pu[e][0],Pu[e][1])}Kn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,a=e.md.options.maxNesting,r=e.cache;if(typeof r[t]<"u"){e.pos=r[t];return}let o=!1;if(e.level<a){for(let i=0;i<u;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,r[t]=e.pos};Kn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,a=e.md.options.maxNesting;for(;e.pos<u;){const r=e.pos;let o=!1;if(e.level<a){for(let i=0;i<n;i++)if(o=t[i](e,!1),o){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Kn.prototype.parse=function(e,t,n,u){const a=new this.State(e,t,n,u);this.tokenize(a);const r=this.ruler2.getRules(""),o=r.length;for(let i=0;i<o;i++)r[i](a)};Kn.prototype.State=Gn;function L1(e){const t={};e=e||{},t.src_Any=xo.source,t.src_Cc=wo.source,t.src_Z=Eo.source,t.src_P=xa.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function la(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function ku(e){return Object.prototype.toString.call(e)}function O1(e){return ku(e)==="[object String]"}function z1(e){return ku(e)==="[object Object]"}function P1(e){return ku(e)==="[object RegExp]"}function _r(e){return ku(e)==="[object Function]"}function N1(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Oo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function B1(e){return Object.keys(e||{}).reduce(function(t,n){return t||Oo.hasOwnProperty(n)},!1)}const q1={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},j1="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",U1="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function H1(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Er(){return function(e,t){t.normalize(e)}}function fu(e){const t=e.re=L1(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(j1),n.push(t.src_xn),t.src_tlds=n.join("|");function u(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(u(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(u(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(u(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function r(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(e.__schemas__).forEach(function(i){const s=e.__schemas__[i];if(s===null)return;const l={validate:null,link:null};if(e.__compiled__[i]=l,z1(s)){P1(s.validate)?l.validate=H1(s.validate):_r(s.validate)?l.validate=s.validate:r(i,s),_r(s.normalize)?l.normalize=s.normalize:s.normalize?r(i,s):l.normalize=Er();return}if(O1(s)){a.push(i);return}r(i,s)}),a.forEach(function(i){e.__compiled__[e.__schemas__[i]]&&(e.__compiled__[i].validate=e.__compiled__[e.__schemas__[i]].validate,e.__compiled__[i].normalize=e.__compiled__[e.__schemas__[i]].normalize)}),e.__compiled__[""]={validate:null,normalize:Er()};const o=Object.keys(e.__compiled__).filter(function(i){return i.length>0&&e.__compiled__[i]}).map(N1).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function zo(e,t,n,u){const a=e.slice(n,u);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=u,this.raw=a,this.text=a,this.url=a}function yt(e,t){if(!(this instanceof yt))return new yt(e,t);t||B1(e)&&(t=e,e={}),this.__opts__=la({},Oo,t),this.__schemas__=la({},q1,e),this.__compiled__={},this.__tlds__=U1,this.__tlds_replaced__=!1,this.re={},fu(this)}yt.prototype.add=function(t,n){return this.__schemas__[t]=n,fu(this),this};yt.prototype.set=function(t){return this.__opts__=la(this.__opts__,t),this};yt.prototype.test=function(t){if(!t.length)return!1;let n,u;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(this.testSchemaAt(t,n[2],u.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};yt.prototype.pretest=function(t){return this.re.pretest.test(t)};yt.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};yt.prototype.match=function(t){const n=[],u=[],a=[],r=[];let o,i,s;function l(p,g){return p?g?p.index!==g.index?p.index<g.index?p:g:p.lastIndex>=g.lastIndex?p:g:p:g}if(!t.length)return null;if(this.re.schema_test.test(t))for(s=this.re.schema_search,s.lastIndex=0;(o=s.exec(t))!==null;)i=this.testSchemaAt(t,o[2],s.lastIndex),i&&u.push({schema:o[2],index:o.index+o[1].length,lastIndex:o.index+o[0].length+i});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(o=s.exec(t))!==null;)a.push({schema:"",index:o.index+o[1].length,lastIndex:o.index+o[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(o=s.exec(t))!==null;)r.push({schema:"mailto:",index:o.index+o[1].length,lastIndex:o.index+o[0].length});const d=[0,0,0];let m=0;for(;;){const p=[u[d[0]],r[d[1]],a[d[2]]],g=l(l(p[0],p[1]),p[2]);if(!g)break;if(g===p[0]?d[0]++:g===p[1]?d[1]++:d[2]++,g.index<m)continue;const x=new zo(t,g.schema,g.index,g.lastIndex);this.__compiled__[x.schema].normalize(x,this),n.push(x),m=g.lastIndex}return n.length?n:null};yt.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);if(!u)return null;const a=new zo(t,n[2],n.index+n[1].length,n.index+n[0].length+u);return this.__compiled__[a.schema].normalize(a,this),a};yt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,a,r){return u!==r[a-1]}).reverse(),fu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,fu(this),this)};yt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};yt.prototype.onCompile=function(){};const wn=2147483647,zt=36,Ca=1,Hn=26,V1=38,W1=700,Po=72,No=128,Bo="-",G1=/^xn--/,K1=/[^\0-\x7F]/,Z1=/[\x2E\u3002\uFF0E\uFF61]/g,Y1={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nu=zt-Ca,Pt=Math.floor,Bu=String.fromCharCode;function Qt(e){throw new RangeError(Y1[e])}function X1(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function qo(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Z1,".");const a=e.split("."),r=X1(a,t).join(".");return u+r}function jo(e){const t=[];let n=0;const u=e.length;for(;n<u;){const a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<u){const r=e.charCodeAt(n++);(r&64512)==56320?t.push(((a&1023)<<10)+(r&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}const J1=e=>String.fromCodePoint(...e),Q1=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:zt},Ar=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Uo=function(e,t,n){let u=0;for(e=n?Pt(e/W1):e>>1,e+=Pt(e/t);e>Nu*Hn>>1;u+=zt)e=Pt(e/Nu);return Pt(u+(Nu+1)*e/(e+V1))},Ho=function(e){const t=[],n=e.length;let u=0,a=No,r=Po,o=e.lastIndexOf(Bo);o<0&&(o=0);for(let i=0;i<o;++i)e.charCodeAt(i)>=128&&Qt("not-basic"),t.push(e.charCodeAt(i));for(let i=o>0?o+1:0;i<n;){const s=u;for(let d=1,m=zt;;m+=zt){i>=n&&Qt("invalid-input");const p=Q1(e.charCodeAt(i++));p>=zt&&Qt("invalid-input"),p>Pt((wn-u)/d)&&Qt("overflow"),u+=p*d;const g=m<=r?Ca:m>=r+Hn?Hn:m-r;if(p<g)break;const x=zt-g;d>Pt(wn/x)&&Qt("overflow"),d*=x}const l=t.length+1;r=Uo(u-s,l,s==0),Pt(u/l)>wn-a&&Qt("overflow"),a+=Pt(u/l),u%=l,t.splice(u++,0,a)}return String.fromCodePoint(...t)},Vo=function(e){const t=[];e=jo(e);const n=e.length;let u=No,a=0,r=Po;for(const s of e)s<128&&t.push(Bu(s));const o=t.length;let i=o;for(o&&t.push(Bo);i<n;){let s=wn;for(const d of e)d>=u&&d<s&&(s=d);const l=i+1;s-u>Pt((wn-a)/l)&&Qt("overflow"),a+=(s-u)*l,u=s;for(const d of e)if(d<u&&++a>wn&&Qt("overflow"),d===u){let m=a;for(let p=zt;;p+=zt){const g=p<=r?Ca:p>=r+Hn?Hn:p-r;if(m<g)break;const x=m-g,b=zt-g;t.push(Bu(Ar(g+x%b,0))),m=Pt(x/b)}t.push(Bu(Ar(m,0))),r=Uo(a,l,i===o),a=0,++i}++a,++u}return t.join("")},ed=function(e){return qo(e,function(t){return G1.test(t)?Ho(t.slice(4).toLowerCase()):t})},td=function(e){return qo(e,function(t){return K1.test(t)?"xn--"+Vo(t):t})},Wo={version:"2.3.1",ucs2:{decode:jo,encode:J1},decode:Ho,encode:Vo,toASCII:td,toUnicode:ed},nd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},ud={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ad={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},rd={default:nd,zero:ud,commonmark:ad},od=/^(vbscript|javascript|file|data):/,id=/^data:image\/(gif|png|jpeg|webp);/;function sd(e){const t=e.trim().toLowerCase();return od.test(t)?id.test(t):!0}const Go=["http:","https:","mailto:"];function ld(e){const t=ka(e,!0);if(t.hostname&&(!t.protocol||Go.indexOf(t.protocol)>=0))try{t.hostname=Wo.toASCII(t.hostname)}catch{}return Wn(ya(t))}function cd(e){const t=ka(e,!0);if(t.hostname&&(!t.protocol||Go.indexOf(t.protocol)>=0))try{t.hostname=Wo.toUnicode(t.hostname)}catch{}return _n(ya(t),_n.defaultChars+"%")}function St(e,t){if(!(this instanceof St))return new St(e,t);t||wa(e)||(t=e||{},e="default"),this.inline=new Kn,this.block=new yu,this.core=new Ea,this.renderer=new In,this.linkify=new yt,this.validateLink=sd,this.normalizeLink=ld,this.normalizeLinkText=cd,this.utils=hc,this.helpers=bu({},gc),this.options={},this.configure(e),t&&this.set(t)}St.prototype.set=function(e){return bu(this.options,e),this};St.prototype.configure=function(e){const t=this;if(wa(e)){const n=e;if(e=rd[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};St.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){n=n.concat(this[a].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(a){return n.indexOf(a)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};St.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){n=n.concat(this[a].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(a){return n.indexOf(a)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};St.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};St.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};St.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};St.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};St.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE */function Cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function dd(e){if(Array.isArray(e))return e}function fd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,a,r,o,i=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,t!==0)for(;!(s=(u=r.call(n)).done)&&(i.push(u.value),i.length!==t);s=!0);}catch(d){l=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return i}}function hd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
205
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pd(e,t){return dd(e)||fd(e,t)||md(e,t)||hd()}function md(e,t){if(e){if(typeof e=="string")return Cr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cr(e,t):void 0}}const Ko=Object.entries,Ir=Object.setPrototypeOf,bd=Object.isFrozen,gd=Object.getPrototypeOf,vd=Object.getOwnPropertyDescriptor;let Je=Object.freeze,Qe=Object.seal,kn=Object.create,Zo=typeof Reflect<"u"&&Reflect,ca=Zo.apply,da=Zo.construct;Je||(Je=function(t){return t});Qe||(Qe=function(t){return t});ca||(ca=function(t,n){for(var u=arguments.length,a=new Array(u>2?u-2:0),r=2;r<u;r++)a[r-2]=arguments[r];return t.apply(n,a)});da||(da=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),a=1;a<n;a++)u[a-1]=arguments[a];return new t(...u)});const Fn=je(Array.prototype.forEach),yd=je(Array.prototype.lastIndexOf),Sr=je(Array.prototype.pop),yn=je(Array.prototype.push),kd=je(Array.prototype.splice),en=Array.isArray,On=je(String.prototype.toLowerCase),qu=je(String.prototype.toString),Tr=je(String.prototype.match),$n=je(String.prototype.replace),Dr=je(String.prototype.indexOf),xd=je(String.prototype.trim),wd=je(Number.prototype.toString),_d=je(Boolean.prototype.toString),Fr=typeof BigInt>"u"?null:je(BigInt.prototype.toString),$r=typeof Symbol>"u"?null:je(Symbol.prototype.toString),lt=je(Object.prototype.hasOwnProperty),Mn=je(Object.prototype.toString),Xe=je(RegExp.prototype.test),dn=Ed(TypeError);function je(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),a=1;a<n;a++)u[a-1]=arguments[a];return ca(e,t,u)}}function Ed(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return da(e,n)}}function Ee(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:On;if(Ir&&Ir(e,null),!en(t))return e;let u=t.length;for(;u--;){let a=t[u];if(typeof a=="string"){const r=n(a);r!==a&&(bd(t)||(t[u]=r),a=r)}e[a]=!0}return e}function Ad(e){for(let t=0;t<e.length;t++)lt(e,t)||(e[t]=null);return e}function st(e){const t=kn(null);for(const u of Ko(e)){var n=pd(u,2);const a=n[0],r=n[1];lt(e,a)&&(en(r)?t[a]=Ad(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=st(r):t[a]=r)}return t}function Cd(e){switch(typeof e){case"string":return e;case"number":return wd(e);case"boolean":return _d(e);case"bigint":return Fr?Fr(e):"0";case"symbol":return $r?$r(e):"Symbol()";case"undefined":return Mn(e);case"function":case"object":{if(e===null)return Mn(e);const t=e,n=Ot(t,"toString");if(typeof n=="function"){const u=n(t);return typeof u=="string"?u:Mn(u)}return Mn(e)}default:return Mn(e)}}function Ot(e,t){for(;e!==null;){const u=vd(e,t);if(u){if(u.get)return je(u.get);if(typeof u.value=="function")return je(u.value)}e=gd(e)}function n(){return null}return n}function Id(e){try{return Xe(e,""),!0}catch{return!1}}const Mr=Je(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ju=Je(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uu=Je(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Sd=Je(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hu=Je(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Td=Je(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rr=Je(["#text"]),Lr=Je(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Vu=Je(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Or=Je(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nu=Je(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Dd=Qe(/{{[\w\W]*|^[\w\W]*}}/g),Fd=Qe(/<%[\w\W]*|^[\w\W]*%>/g),$d=Qe(/\${[\w\W]*/g),Md=Qe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rd=Qe(/^aria-[\-\w]+$/),zr=Qe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ld=Qe(/^(?:\w+script|data):/i),Od=Qe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zd=Qe(/^html$/i),Pd=Qe(/^[a-z][.\w]*(-[.\w]+)+$/i),Pr=Qe(/<[/\w!]/g),Nd=Qe(/<[/\w]/g),Bd=Qe(/<\/no(script|embed|frames)/i),qd=Qe(/\/>/i),Lt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},jd=function(){return typeof window>"u"?null:window},Ud=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(u=n.getAttribute(a));const r="dompurify"+(u?"#"+u:"");try{return t.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Nr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Jt=function(t,n,u,a){return lt(t,n)&&en(t[n])?Ee(a.base?st(a.base):{},t[n],a.transform):u};function Yo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jd();const t=oe=>Yo(oe);if(t.version="3.4.10",t.removed=[],!e||!e.document||e.document.nodeType!==Lt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const u=n,a=u.currentScript;e.DocumentFragment;const r=e.HTMLTemplateElement,o=e.Node,i=e.Element,s=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,m=e.trustedTypes,p=i.prototype,g=Ot(p,"cloneNode"),x=Ot(p,"remove"),b=Ot(p,"nextSibling"),E=Ot(p,"childNodes"),S=Ot(p,"parentNode"),R=Ot(p,"shadowRoot"),I=Ot(p,"attributes"),C=o&&o.prototype?Ot(o.prototype,"nodeType"):null,$=o&&o.prototype?Ot(o.prototype,"nodeName"):null;if(typeof r=="function"){const oe=n.createElement("template");oe.content&&oe.content.ownerDocument&&(n=oe.content.ownerDocument)}let D,z="",T,W=!1,G=0;const U=function(){if(G>0)throw dn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},J=function(h){U(),G++;try{return D.createHTML(h)}finally{G--}},q=function(h){U(),G++;try{return D.createScriptURL(h)}finally{G--}},ue=function(){return W||(T=Ud(m,a),W=!0),T},de=n,be=de.implementation,ge=de.createNodeIterator,se=de.createDocumentFragment,O=de.getElementsByTagName,Y=u.importNode;let K=Nr();t.isSupported=typeof Ko=="function"&&typeof S=="function"&&be&&be.createHTMLDocument!==void 0;const X=Dd,Oe=Fd,xt=$d,Tt=Md,mt=Rd,dt=Ld,bt=Od,gt=Pd;let ft=zr,_e=null;const ce=Ee({},[...Mr,...ju,...Uu,...Hu,...Rr]);let Z=null;const Q=Ee({},[...Lr,...Vu,...Or,...nu]);let ve=Object.seal(kn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ut=null,Vt=null;const et=Object.seal(kn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Wt=!0,$t=!0,P=!1,B=!0,N=!1,le=!0,Ie=!1,at=!1,wt=!1,Mt=!1,Gt=!1,Kt=!1,te=!0,ne=!1;const ie="user-content-";let ke=!0,rt=!1,Zt={},_t=null;const v=Ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let k=null;const w=Ee({},["audio","video","img","source","image","track"]);let L=null;const V=Ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let Ve=Re,wu=!1,_u=null;const vi=Ee({},[fe,Te,Re],qu),$a=Je(["mi","mo","mn","ms","mtext"]);let Eu=Ee({},$a);const Ma=Je(["annotation-xml"]);let Au=Ee({},Ma);const yi=Ee({},["title","style","font","a","script"]);let Sn=null;const ki=["application/xhtml+xml","text/html"],xi="text/html";let ze=null,gn=null;const wi=n.createElement("form"),Ra=function(h){return h instanceof RegExp||h instanceof Function},Cu=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(gn&&gn===h)return;(!h||typeof h!="object")&&(h={}),h=st(h),Sn=ki.indexOf(h.PARSER_MEDIA_TYPE)===-1?xi:h.PARSER_MEDIA_TYPE,ze=Sn==="application/xhtml+xml"?qu:On,_e=Jt(h,"ALLOWED_TAGS",ce,{transform:ze}),Z=Jt(h,"ALLOWED_ATTR",Q,{transform:ze}),_u=Jt(h,"ALLOWED_NAMESPACES",vi,{transform:qu}),L=Jt(h,"ADD_URI_SAFE_ATTR",V,{transform:ze,base:V}),k=Jt(h,"ADD_DATA_URI_TAGS",w,{transform:ze,base:w}),_t=Jt(h,"FORBID_CONTENTS",v,{transform:ze}),ut=Jt(h,"FORBID_TAGS",st({}),{transform:ze}),Vt=Jt(h,"FORBID_ATTR",st({}),{transform:ze}),Zt=lt(h,"USE_PROFILES")?h.USE_PROFILES&&typeof h.USE_PROFILES=="object"?st(h.USE_PROFILES):h.USE_PROFILES:!1,Wt=h.ALLOW_ARIA_ATTR!==!1,$t=h.ALLOW_DATA_ATTR!==!1,P=h.ALLOW_UNKNOWN_PROTOCOLS||!1,B=h.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=h.SAFE_FOR_TEMPLATES||!1,le=h.SAFE_FOR_XML!==!1,Ie=h.WHOLE_DOCUMENT||!1,Mt=h.RETURN_DOM||!1,Gt=h.RETURN_DOM_FRAGMENT||!1,Kt=h.RETURN_TRUSTED_TYPE||!1,wt=h.FORCE_BODY||!1,te=h.SANITIZE_DOM!==!1,ne=h.SANITIZE_NAMED_PROPS||!1,ke=h.KEEP_CONTENT!==!1,rt=h.IN_PLACE||!1,ft=Id(h.ALLOWED_URI_REGEXP)?h.ALLOWED_URI_REGEXP:zr,Ve=typeof h.NAMESPACE=="string"?h.NAMESPACE:Re,Eu=lt(h,"MATHML_TEXT_INTEGRATION_POINTS")&&h.MATHML_TEXT_INTEGRATION_POINTS&&typeof h.MATHML_TEXT_INTEGRATION_POINTS=="object"?st(h.MATHML_TEXT_INTEGRATION_POINTS):Ee({},$a),Au=lt(h,"HTML_INTEGRATION_POINTS")&&h.HTML_INTEGRATION_POINTS&&typeof h.HTML_INTEGRATION_POINTS=="object"?st(h.HTML_INTEGRATION_POINTS):Ee({},Ma);const F=lt(h,"CUSTOM_ELEMENT_HANDLING")&&h.CUSTOM_ELEMENT_HANDLING&&typeof h.CUSTOM_ELEMENT_HANDLING=="object"?st(h.CUSTOM_ELEMENT_HANDLING):kn(null);if(ve=kn(null),lt(F,"tagNameCheck")&&Ra(F.tagNameCheck)&&(ve.tagNameCheck=F.tagNameCheck),lt(F,"attributeNameCheck")&&Ra(F.attributeNameCheck)&&(ve.attributeNameCheck=F.attributeNameCheck),lt(F,"allowCustomizedBuiltInElements")&&typeof F.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=F.allowCustomizedBuiltInElements),Qe(ve),N&&($t=!1),Gt&&(Mt=!0),Zt&&(_e=Ee({},Rr),Z=kn(null),Zt.html===!0&&(Ee(_e,Mr),Ee(Z,Lr)),Zt.svg===!0&&(Ee(_e,ju),Ee(Z,Vu),Ee(Z,nu)),Zt.svgFilters===!0&&(Ee(_e,Uu),Ee(Z,Vu),Ee(Z,nu)),Zt.mathMl===!0&&(Ee(_e,Hu),Ee(Z,Or),Ee(Z,nu))),et.tagCheck=null,et.attributeCheck=null,lt(h,"ADD_TAGS")&&(typeof h.ADD_TAGS=="function"?et.tagCheck=h.ADD_TAGS:en(h.ADD_TAGS)&&(_e===ce&&(_e=st(_e)),Ee(_e,h.ADD_TAGS,ze))),lt(h,"ADD_ATTR")&&(typeof h.ADD_ATTR=="function"?et.attributeCheck=h.ADD_ATTR:en(h.ADD_ATTR)&&(Z===Q&&(Z=st(Z)),Ee(Z,h.ADD_ATTR,ze))),lt(h,"ADD_URI_SAFE_ATTR")&&en(h.ADD_URI_SAFE_ATTR)&&Ee(L,h.ADD_URI_SAFE_ATTR,ze),lt(h,"FORBID_CONTENTS")&&en(h.FORBID_CONTENTS)&&(_t===v&&(_t=st(_t)),Ee(_t,h.FORBID_CONTENTS,ze)),lt(h,"ADD_FORBID_CONTENTS")&&en(h.ADD_FORBID_CONTENTS)&&(_t===v&&(_t=st(_t)),Ee(_t,h.ADD_FORBID_CONTENTS,ze)),ke&&(_e["#text"]=!0),Ie&&Ee(_e,["html","head","body"]),_e.table&&(Ee(_e,["tbody"]),delete ut.tbody),h.TRUSTED_TYPES_POLICY){if(typeof h.TRUSTED_TYPES_POLICY.createHTML!="function")throw dn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof h.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw dn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const re=D;D=h.TRUSTED_TYPES_POLICY;try{z=J("")}catch(he){throw D=re,he}}else h.TRUSTED_TYPES_POLICY===null?(D=void 0,z=""):(D===void 0&&(D=ue()),D&&typeof z=="string"&&(z=J("")));(K.uponSanitizeElement.length>0||K.uponSanitizeAttribute.length>0)&&_e===ce&&(_e=st(_e)),K.uponSanitizeAttribute.length>0&&Z===Q&&(Z=st(Z)),Je&&Je(h),gn=h},La=Ee({},[...ju,...Uu,...Sd]),Oa=Ee({},[...Hu,...Td]),_i=function(h,F,re){return F.namespaceURI===Re?h==="svg":F.namespaceURI===fe?h==="svg"&&(re==="annotation-xml"||Eu[re]):!!La[h]},Ei=function(h,F,re){return F.namespaceURI===Re?h==="math":F.namespaceURI===Te?h==="math"&&Au[re]:!!Oa[h]},Ai=function(h,F,re){return F.namespaceURI===Te&&!Au[re]||F.namespaceURI===fe&&!Eu[re]?!1:!Oa[h]&&(yi[h]||!La[h])},Ci=function(h){let F=S(h);(!F||!F.tagName)&&(F={namespaceURI:Ve,tagName:"template"});const re=On(h.tagName),he=On(F.tagName);return _u[h.namespaceURI]?h.namespaceURI===Te?_i(re,F,he):h.namespaceURI===fe?Ei(re,F,he):h.namespaceURI===Re?Ai(re,F,he):!!(Sn==="application/xhtml+xml"&&_u[h.namespaceURI]):!1},Yt=function(h){yn(t.removed,{element:h});try{S(h).removeChild(h)}catch{if(x(h),!S(h))throw dn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},za=function(h){const F=E(h);if(F){const he=[];Fn(F,ye=>{yn(he,ye)}),Fn(he,ye=>{try{x(ye)}catch{}})}const re=I(h);if(re)for(let he=re.length-1;he>=0;--he){const ye=re[he],Ae=ye&&ye.name;if(typeof Ae=="string")try{h.removeAttribute(Ae)}catch{}}},on=function(h,F){try{yn(t.removed,{attribute:F.getAttributeNode(h),from:F})}catch{yn(t.removed,{attribute:null,from:F})}if(F.removeAttribute(h),h==="is")if(Mt||Gt)try{Yt(F)}catch{}else try{F.setAttribute(h,"")}catch{}},Ii=function(h){const F=I(h);if(F)for(let re=F.length-1;re>=0;--re){const he=F[re],ye=he&&he.name;if(!(typeof ye!="string"||Z[ze(ye)]))try{h.removeAttribute(ye)}catch{}}},Si=function(h){const F=[h];for(;F.length>0;){const re=F.pop();(C?C(re):re.nodeType)===Lt.element&&Ii(re);const ye=E(re);if(ye)for(let Ae=ye.length-1;Ae>=0;--Ae)F.push(ye[Ae])}},Pa=function(h){let F=null,re=null;if(wt)h="<remove></remove>"+h;else{const Ae=Tr(h,/^[\r\n\t ]+/);re=Ae&&Ae[0]}Sn==="application/xhtml+xml"&&Ve===Re&&(h='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+h+"</body></html>");const he=D?J(h):h;if(Ve===Re)try{F=new d().parseFromString(he,Sn)}catch{}if(!F||!F.documentElement){F=be.createDocument(Ve,"template",null);try{F.documentElement.innerHTML=wu?z:he}catch{}}const ye=F.body||F.documentElement;return h&&re&&ye.insertBefore(n.createTextNode(re),ye.childNodes[0]||null),Ve===Re?O.call(F,Ie?"html":"body")[0]:Ie?F.documentElement:ye},Na=function(h){return ge.call(h.ownerDocument||h,h,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},Zn=function(h){return h=$n(h,X," "),h=$n(h,Oe," "),h=$n(h,xt," "),h},Iu=function(h){var F;h.normalize();const re=ge.call(h.ownerDocument||h,h,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let he=re.nextNode();for(;he;)he.data=Zn(he.data),he=re.nextNode();const ye=(F=h.querySelectorAll)===null||F===void 0?void 0:F.call(h,"template");ye&&Fn(ye,Ae=>{vn(Ae.content)&&Iu(Ae.content)})},Yn=function(h){const F=$?$(h):null;return typeof F!="string"||ze(F)!=="form"?!1:typeof h.nodeName!="string"||typeof h.textContent!="string"||typeof h.removeChild!="function"||h.attributes!==I(h)||typeof h.removeAttribute!="function"||typeof h.setAttribute!="function"||typeof h.namespaceURI!="string"||typeof h.insertBefore!="function"||typeof h.hasChildNodes!="function"||h.nodeType!==C(h)||h.childNodes!==E(h)},vn=function(h){if(!C||typeof h!="object"||h===null)return!1;try{return C(h)===Lt.documentFragment}catch{return!1}},Tn=function(h){if(!C||typeof h!="object"||h===null)return!1;try{return typeof C(h)=="number"}catch{return!1}};function qt(oe,h,F){oe.length!==0&&Fn(oe,re=>{re.call(t,h,F,gn)})}const Ti=function(h,F){return!!(le&&h.hasChildNodes()&&!Tn(h.firstElementChild)&&Xe(Pr,h.textContent)&&Xe(Pr,h.innerHTML)||le&&h.namespaceURI===Re&&F==="style"&&Tn(h.firstElementChild)||h.nodeType===Lt.processingInstruction||le&&h.nodeType===Lt.comment&&Xe(Nd,h.data))},Di=function(h,F){if(!ut[F]&&ja(F)&&(ve.tagNameCheck instanceof RegExp&&Xe(ve.tagNameCheck,F)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(F)))return!1;if(ke&&!_t[F]){const re=S(h),he=E(h);if(he&&re){const ye=he.length;for(let Ae=ye-1;Ae>=0;--Ae){const We=rt?he[Ae]:g(he[Ae],!0);re.insertBefore(We,b(h))}}}return Yt(h),!0},Ba=function(h){if(qt(K.beforeSanitizeElements,h,null),Yn(h))return Yt(h),!0;const F=ze($?$(h):h.nodeName);if(qt(K.uponSanitizeElement,h,{tagName:F,allowedTags:_e}),Ti(h,F))return Yt(h),!0;if(ut[F]||!(et.tagCheck instanceof Function&&et.tagCheck(F))&&!_e[F])return Di(h,F);if((C?C(h):h.nodeType)===Lt.element&&!Ci(h)||(F==="noscript"||F==="noembed"||F==="noframes")&&Xe(Bd,h.innerHTML))return Yt(h),!0;if(N&&h.nodeType===Lt.text){const he=Zn(h.textContent);h.textContent!==he&&(yn(t.removed,{element:h.cloneNode()}),h.textContent=he)}return qt(K.afterSanitizeElements,h,null),!1},qa=function(h,F,re){if(Vt[F]||te&&(F==="id"||F==="name")&&(re in n||re in wi))return!1;const he=Z[F]||et.attributeCheck instanceof Function&&et.attributeCheck(F,h);if(!($t&&Xe(Tt,F))){if(!(Wt&&Xe(mt,F))){if(he){if(!L[F]){if(!Xe(ft,$n(re,bt,""))){if(!((F==="src"||F==="xlink:href"||F==="href")&&h!=="script"&&Dr(re,"data:")===0&&k[h])){if(!(P&&!Xe(dt,$n(re,bt,"")))){if(re)return!1}}}}}else if(!(ja(h)&&(ve.tagNameCheck instanceof RegExp&&Xe(ve.tagNameCheck,h)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(h))&&(ve.attributeNameCheck instanceof RegExp&&Xe(ve.attributeNameCheck,F)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(F,h))||F==="is"&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&Xe(ve.tagNameCheck,re)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(re))))return!1}}return!0},Fi=Ee({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ja=function(h){return!Fi[On(h)]&&Xe(gt,h)},$i=function(h,F,re,he){if(D&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!re)switch(m.getAttributeType(h,F)){case"TrustedHTML":return J(he);case"TrustedScriptURL":return q(he)}return he},Mi=function(h,F,re,he){try{re?h.setAttributeNS(re,F,he):h.setAttribute(F,he),Yn(h)?Yt(h):Sr(t.removed)}catch{on(F,h)}},Ua=function(h){qt(K.beforeSanitizeAttributes,h,null);const F=h.attributes;if(!F||Yn(h))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z,forceKeepAttr:void 0};let he=F.length;const ye=ze(h.nodeName);for(;he--;){const Ae=F[he],We=Ae.name,qe=Ae.namespaceURI,Et=Ae.value,Dt=ze(We),Tu=Et;let ot=We==="value"?Tu:xd(Tu);if(re.attrName=Dt,re.attrValue=ot,re.keepAttr=!0,re.forceKeepAttr=void 0,qt(K.uponSanitizeAttribute,h,re),ot=re.attrValue,ne&&(Dt==="id"||Dt==="name")&&Dr(ot,ie)!==0&&(on(We,h),ot=ie+ot),le&&Xe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ot)){on(We,h);continue}if(Dt==="attributename"&&Tr(ot,"href")){on(We,h);continue}if(!re.forceKeepAttr){if(!re.keepAttr){on(We,h);continue}if(!B&&Xe(qd,ot)){on(We,h);continue}if(N&&(ot=Zn(ot)),!qa(ye,Dt,ot)){on(We,h);continue}ot=$i(ye,Dt,qe,ot),ot!==Tu&&Mi(h,We,qe,ot)}}qt(K.afterSanitizeAttributes,h,null)},Xn=function(h){let F=null;const re=Na(h);for(qt(K.beforeSanitizeShadowDOM,h,null);F=re.nextNode();)if(qt(K.uponSanitizeShadowNode,F,null),Ba(F),Ua(F),vn(F.content)&&Xn(F.content),(C?C(F):F.nodeType)===Lt.element){const ye=R(F);vn(ye)&&(Su(ye),Xn(ye))}qt(K.afterSanitizeShadowDOM,h,null)},Su=function(h){const F=[{node:h,shadow:null}];for(;F.length>0;){const re=F.pop();if(re.shadow){Xn(re.shadow);continue}const he=re.node,Ae=(C?C(he):he.nodeType)===Lt.element,We=E(he);if(We)for(let qe=We.length-1;qe>=0;--qe)F.push({node:We[qe],shadow:null});if(Ae){const qe=$?$(he):null;if(typeof qe=="string"&&ze(qe)==="template"){const Et=he.content;vn(Et)&&F.push({node:Et,shadow:null})}}if(Ae){const qe=R(he);vn(qe)&&F.push({node:null,shadow:qe},{node:qe,shadow:null})}}};return t.sanitize=function(oe){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=null,re=null,he=null,ye=null;if(wu=!oe,wu&&(oe="<!-->"),typeof oe!="string"&&!Tn(oe)&&(oe=Cd(oe),typeof oe!="string"))throw dn("dirty is not a string, aborting");if(!t.isSupported)return oe;at||Cu(h),t.removed=[];const Ae=rt&&typeof oe!="string"&&Tn(oe);if(Ae){const Et=$?$(oe):oe.nodeName;if(typeof Et=="string"){const Dt=ze(Et);if(!_e[Dt]||ut[Dt])throw dn("root node is forbidden and cannot be sanitized in-place")}if(Yn(oe))throw dn("root node is clobbered and cannot be sanitized in-place");try{Su(oe)}catch(Dt){throw za(oe),Dt}}else if(Tn(oe))F=Pa("<!---->"),re=F.ownerDocument.importNode(oe,!0),re.nodeType===Lt.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?F=re:F.appendChild(re),Su(re);else{if(!Mt&&!N&&!Ie&&oe.indexOf("<")===-1)return D&&Kt?J(oe):oe;if(F=Pa(oe),!F)return Mt?null:Kt?z:""}F&&wt&&Yt(F.firstChild);const We=Na(Ae?oe:F);try{for(;he=We.nextNode();)Ba(he),Ua(he),vn(he.content)&&Xn(he.content)}catch(Et){throw Ae&&za(oe),Et}if(Ae)return Fn(t.removed,Et=>{Et.element&&Si(Et.element)}),N&&Iu(oe),oe;if(Mt){if(N&&Iu(F),Gt)for(ye=se.call(F.ownerDocument);F.firstChild;)ye.appendChild(F.firstChild);else ye=F;return(Z.shadowroot||Z.shadowrootmode)&&(ye=Y.call(u,ye,!0)),ye}let qe=Ie?F.outerHTML:F.innerHTML;return Ie&&_e["!doctype"]&&F.ownerDocument&&F.ownerDocument.doctype&&F.ownerDocument.doctype.name&&Xe(zd,F.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+F.ownerDocument.doctype.name+`>
|
|
206
|
+
`+qe),N&&(qe=Zn(qe)),D&&Kt?J(qe):qe},t.setConfig=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cu(oe),at=!0},t.clearConfig=function(){gn=null,at=!1,D=T,z=""},t.isValidAttribute=function(oe,h,F){gn||Cu({});const re=ze(oe),he=ze(h);return qa(re,he,F)},t.addHook=function(oe,h){typeof h=="function"&&yn(K[oe],h)},t.removeHook=function(oe,h){if(h!==void 0){const F=yd(K[oe],h);return F===-1?void 0:kd(K[oe],F,1)[0]}return Sr(K[oe])},t.removeHooks=function(oe){K[oe]=[]},t.removeAllHooks=function(){K=Nr()},t}var Ia=Yo(),Hd=Object.defineProperty,Vd=Object.defineProperties,Wd=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,qr=(e,t,n)=>t in e?Hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xo=(e,t)=>{for(var n in t||(t={}))Gd.call(t,n)&&qr(e,n,t[n]);if(Br)for(var n of Br(t))Kd.call(t,n)&&qr(e,n,t[n]);return e},Jo=(e,t)=>Vd(e,Wd(t)),ct=(e,t)=>{let n=!1,u=!1;for(let a=0;a<t;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){u=!u,a+=2;continue}!u&&e[a]==="`"&&(n=!n)}return n||u},Zd=(e,t)=>{let n=e.substring(t,t+3)==="```",u=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return n||u||a},Yd=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!Zd(e,n)&&(t+=1)}return t},un=(e,t)=>{let n=!1,u=!1,a=-1;for(let r=0;r<e.length;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}if(e.substring(r,r+3)==="```"){u=!u,r+=2;continue}if(!u&&e[r]==="`")if(n){if(a<t&&t<r)return!0;n=!1,a=-1}else n=!0,a=r}return!1},Xd=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,Jd=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(Xd,(t,n,u,a)=>ct(e,a)?t:`${n}\\>${u}`),Qd=/(\*\*)([^*]*\*?)$/,e2=/(__)([^_]*?)$/,t2=/(\*\*\*)([^*]*?)$/,n2=/(\*)([^*]*?)$/,u2=/(_)([^_]*?)$/,a2=/(`)([^`]*?)$/,r2=/(~~)([^~]*?)$/,bn=/^[\s_~*`]*$/,Qo=/^[\s]*[-*+][\s]+$/,o2=/[\p{L}\p{N}_]/u,i2=/^```[^`\n]*```?$/,s2=/^\*{4,}$/,l2=/(__)([^_]+)_$/,c2=/(~~)([^~]+)~$/,jr=/~~/g,an=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:o2.test(e)},d2=(e,t)=>{let n=1;for(let u=t-1;u>=0;u-=1)if(e[u]==="]")n+=1;else if(e[u]==="["&&(n-=1,n===0))return u;return-1},ei=(e,t)=>{let n=1;for(let u=t+1;u<e.length;u+=1)if(e[u]==="[")n+=1;else if(e[u]==="]"&&(n-=1,n===0))return u;return-1},xu=(e,t)=>{let n=!1,u=!1;for(let a=0;a<e.length&&a<t;a+=1){if(e[a]==="\\"&&e[a+1]==="$"){a+=1;continue}e[a]==="$"&&(e[a+1]==="$"?(u=!u,a+=1,n=!1):u||(n=!n))}return n||u},f2=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
207
|
+
`)return!1}return!1},ti=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?f2(e,t):!1;if(e[n]===`
|
|
208
|
+
`)return!1}return!1},h2=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let u=n+1<e.length?e[n+1]:"";return u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="/"}if(e[n]===`
|
|
209
|
+
`)return!1}return!1},Sa=(e,t,n)=>{let u=0;for(let s=t-1;s>=0;s-=1)if(e[s]===`
|
|
210
|
+
`){u=s+1;break}let a=e.length;for(let s=t;s<e.length;s+=1)if(e[s]===`
|
|
211
|
+
`){a=s;break}let r=e.substring(u,a),o=0,i=!1;for(let s of r)if(s===n)o+=1;else if(s!==" "&&s!==" "){i=!0;break}return o>=3&&!i},p2=(e,t,n,u)=>n==="\\"||e.includes("$")&&xu(e,t)?!0:n!=="*"&&u==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(n==="*"||n&&u&&an(n)&&an(u)||(!n||n===" "||n===" "||n===`
|
|
212
|
+
`)&&(!u||u===" "||u===" "||u===`
|
|
213
|
+
`)),ni=e=>{let t=0,n=!1,u=e.length;for(let a=0;a<u;a+=1){if(e[a]==="`"&&a+2<u&&e[a+1]==="`"&&e[a+2]==="`"){n=!n,a+=2;continue}if(n||e[a]!=="*")continue;let r=a>0?e[a-1]:"",o=a<u-1?e[a+1]:"";p2(e,a,r,o)||(t+=1)}return t},m2=(e,t,n,u)=>!!(n==="\\"||e.includes("$")&&xu(e,t)||ti(e,t)||h2(e,t)||n==="_"||u==="_"||n&&u&&an(n)&&an(u)),b2=e=>{let t=0,n=!1,u=e.length;for(let a=0;a<u;a+=1){if(e[a]==="`"&&a+2<u&&e[a+1]==="`"&&e[a+2]==="`"){n=!n,a+=2;continue}if(n||e[a]!=="_")continue;let r=a>0?e[a-1]:"",o=a<u-1?e[a+1]:"";m2(e,a,r,o)||(t+=1)}return t},g2=e=>{let t=0,n=0,u=!1;for(let a=0;a<e.length;a+=1){if(e[a]==="`"&&a+2<e.length&&e[a+1]==="`"&&e[a+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,u=!u,a+=2;continue}u||(e[a]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},Ta=e=>{let t=0,n=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="`"&&u+2<e.length&&e[u+1]==="`"&&e[u+2]==="`"){n=!n,u+=2;continue}n||e[u]==="*"&&u+1<e.length&&e[u+1]==="*"&&(t+=1,u+=1)}return t},Ur=e=>{let t=0,n=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="`"&&u+2<e.length&&e[u+1]==="`"&&e[u+2]==="`"){n=!n,u+=2;continue}n||e[u]==="_"&&u+1<e.length&&e[u+1]==="_"&&(t+=1,u+=1)}return t},v2=(e,t,n)=>{if(!t||bn.test(t))return!0;let u=e.substring(0,n).lastIndexOf(`
|
|
214
|
+
`),a=u===-1?0:u+1,r=e.substring(a,n);return Qo.test(r)&&t.includes(`
|
|
215
|
+
`)?!0:Sa(e,n,"*")},y2=e=>{let t=e.match(Qd);if(!t)return e;let n=t[2],u=e.lastIndexOf(t[1]);return ct(e,u)||un(e,u)||v2(e,n,u)?e:Ta(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},k2=(e,t,n)=>{if(!t||bn.test(t))return!0;let u=e.substring(0,n).lastIndexOf(`
|
|
216
|
+
`),a=u===-1?0:u+1,r=e.substring(a,n);return Qo.test(r)&&t.includes(`
|
|
217
|
+
`)?!0:Sa(e,n,"_")},x2=e=>{let t=e.match(e2);if(!t){let a=e.match(l2);if(a){let r=e.lastIndexOf(a[1]);if(!(ct(e,r)||un(e,r))&&Ur(e)%2===1)return`${e}_`}return e}let n=t[2],u=e.lastIndexOf(t[1]);return ct(e,u)||un(e,u)||k2(e,n,u)?e:Ur(e)%2===1?`${e}__`:e},w2=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!xu(e,n)){let u=n>0?e[n-1]:"",a=n<e.length-1?e[n+1]:"";if((!u||u===" "||u===" "||u===`
|
|
218
|
+
`)&&(!a||a===" "||a===" "||a===`
|
|
219
|
+
`)||u&&a&&an(u)&&an(a))continue;return n}}return-1},_2=e=>{if(!e.match(n2))return e;let t=w2(e);if(t===-1||ct(e,t)||un(e,t))return e;let n=e.substring(t+1);return!n||bn.test(n)?e:ni(e)%2===1?`${e}*`:e},ui=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!xu(e,n)&&!ti(e,n)){let u=n>0?e[n-1]:"",a=n<e.length-1?e[n+1]:"";if(u&&a&&an(u)&&an(a))continue;return n}}return-1},E2=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
220
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),u=e.slice(t);return`${n}_${u}`}return`${e}_`},A2=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Ta(t)%2!==1)return null;let n=t.indexOf("**"),u=ui(t);return n!==-1&&u!==-1&&n<u?`${t}_**`:null},C2=e=>{if(!e.match(u2))return e;let t=ui(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||bn.test(n)||ct(e,t)||un(e,t))return e;if(b2(e)%2===1){let u=A2(e);return u!==null?u:E2(e)}return e},I2=e=>{let t=Ta(e),n=ni(e);return t%2===0&&n%2===0},S2=(e,t,n)=>!t||bn.test(t)||ct(e,n)||un(e,n)?!0:Sa(e,n,"*"),T2=e=>{if(s2.test(e))return e;let t=e.match(t2);if(!t)return e;let n=t[2],u=e.lastIndexOf(t[1]);return S2(e,n,u)?e:g2(e)%2===1?I2(e)?e:`${e}***`:e},D2=/<[a-zA-Z/][^>]*$/,F2=e=>{let t=e.match(D2);return!t||t.index===void 0||ct(e,t.index)?e:e.substring(0,t.index).trimEnd()},$2=e=>!e.match(i2)||e.includes(`
|
|
221
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,M2=e=>(e.match(/```/g)||[]).length%2===1,R2=e=>{let t=$2(e);if(t!==null)return t;let n=e.match(a2);if(n&&!M2(e)){let u=n[2];if(!u||bn.test(u))return e;if(Yd(e)%2===1)return`${e}\``}return e},ai=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",L2=e=>{let t=0,n=!1;for(let u=0;u<e.length-1;u+=1)e[u]==="`"&&!ai(e,u)&&(n=!n),!n&&e[u]==="$"&&e[u+1]==="$"&&(t+=1,u+=1);return t},O2=e=>{let t=0,n=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="\\"){u+=1;continue}if(e[u]==="`"&&!ai(e,u)){n=!n;continue}!n&&e[u]==="$"&&(u+1<e.length&&e[u+1]==="$"?u+=1:t+=1)}return t},z2=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
222
|
+
`,t)!==-1&&!e.endsWith(`
|
|
223
|
+
`)?`${e}
|
|
224
|
+
$$`:`${e}$$`},P2=e=>L2(e)%2===0?e:z2(e),N2=e=>O2(e)%2===1?`${e}$`:e,B2=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let u=d2(e,t);if(u===-1||ct(e,u))return null;let a=u>0&&e[u-1]==="!",r=a?u-1:u,o=e.substring(0,r);if(a)return o;let i=e.substring(u+1,t);return n==="text-only"?`${o}${i}`:`${o}[${i}](streamdown:incomplete-link)`},Hr=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!ct(e,n)){if(n>0&&e[n-1]==="!")continue;let u=ei(e,n);if(u===-1)return n;if(u+1<e.length&&e[u+1]==="("){let a=e.indexOf(")",u+2);a!==-1&&(n=a)}}return t},q2=(e,t,n)=>{let u=t>0&&e[t-1]==="!",a=u?t-1:t;if(!e.substring(t+1).includes("]")){let r=e.substring(0,a);if(u)return r;if(n==="text-only"){let o=Hr(e,t);return e.substring(0,o)+e.substring(o+1)}return`${e}](streamdown:incomplete-link)`}if(ei(e,t)===-1){let r=e.substring(0,a);if(u)return r;if(n==="text-only"){let o=Hr(e,t);return e.substring(0,o)+e.substring(o+1)}return`${e}](streamdown:incomplete-link)`}return null},ri=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!ct(e,n)){let u=B2(e,n,t);if(u!==null)return u}for(let u=e.length-1;u>=0;u-=1)if(e[u]==="["&&!ct(e,u)){let a=q2(e,u,t);if(a!==null)return a}return e},j2=/^-{1,2}$/,U2=/^[\s]*-{1,2}[\s]+$/,H2=/^={1,2}$/,V2=/^[\s]*={1,2}[\s]+$/,W2=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
225
|
+
`);if(t===-1)return e;let n=e.substring(t+1),u=e.substring(0,t),a=n.trim();if(j2.test(a)&&!n.match(U2)){let r=u.split(`
|
|
226
|
+
`).at(-1);if(r&&r.trim().length>0)return`${e}`}if(H2.test(a)&&!n.match(V2)){let r=u.split(`
|
|
227
|
+
`).at(-1);if(r&&r.trim().length>0)return`${e}`}return e},G2=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),K2=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(G2,(t,n)=>ct(e,n)?t:"\\~"),Z2=e=>{var t,n;let u=e.match(r2);if(u){let a=u[2];if(!a||bn.test(a))return e;let r=e.lastIndexOf(u[1]);if(ct(e,r)||un(e,r))return e;if(((t=e.match(jr))==null?void 0:t.length)%2===1)return`${e}~~`}else{let a=e.match(c2);if(a){let r=e.lastIndexOf(a[0].slice(0,2));if(ct(e,r)||un(e,r))return e;if(((n=e.match(jr))==null?void 0:n.length)%2===1)return`${e}~`}}return e},Wu=e=>e!==!1,Y2=e=>e===!0,it={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},X2=[{handler:{name:"singleTilde",handle:K2,priority:it.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:Jd,priority:it.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:F2,priority:it.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:W2,priority:it.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:ri,priority:it.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:T2,priority:it.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:y2,priority:it.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:x2,priority:it.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:_2,priority:it.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:C2,priority:it.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:R2,priority:it.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:Z2,priority:it.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:P2,priority:it.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:N2,priority:it.INLINE_KATEX},optionKey:"inlineKatex"}],J2=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return X2.filter(({handler:u,optionKey:a})=>u.name==="links"?Wu(e?.links)||Wu(e?.images):u.name==="inlineKatex"?Y2(e?.inlineKatex):Wu(e?.[a])).map(({handler:u,earlyReturn:a})=>u.name==="links"?{handler:Jo(Xo({},u),{handle:r=>ri(r,n)}),earlyReturn:n==="protocol"?a:void 0}:{handler:u,earlyReturn:a})},Q2=(e,t)=>{var n;if(!e||typeof e!="string")return e;let u=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,a=J2(t),r=((n=t?.handlers)!=null?n:[]).map(i=>{var s;return{handler:Jo(Xo({},i),{priority:(s=i.priority)!=null?s:it.DEFAULT}),earlyReturn:void 0}}),o=[...a,...r].sort((i,s)=>{var l,d;return((l=i.handler.priority)!=null?l:0)-((d=s.handler.priority)!=null?d:0)});for(let{handler:i,earlyReturn:s}of o)if(u=i.handle(u),s!=null&&s(u))return u;return u},ef=Q2;function zn(e){return e.trim().startsWith("|")}function tf(e){return/^(?: {4,}|\t)/.test(e)}function oi(e){let t=e.trim();return t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&(t=t.slice(0,-1)),t.split("|")}function Vr(e){if(!zn(e))return!1;const t=oi(e);return t.length===0?!1:t.every(n=>/^\s*:?-+:?\s*$/.test(n))}function nf(e){return"| "+Array(e).fill("---").join(" | ")+" |"}function uf(e){if(e==="")return"";const t=e.split(`
|
|
228
|
+
`),n=[];let u=!1;for(let a=0;a<t.length;a++){const r=t[a];if(/^\s*(```|~~~)/.test(r)){u=!u,n.push(r);continue}if(u){n.push(r);continue}const o=n.length>0?n[n.length-1]:null,i=o!==null&&zn(o);if(zn(r)&&!tf(r)&&!i&&!Vr(r)){const s=a+1<t.length?t[a+1]:null;if(s!==null&&zn(s)&&Vr(s)){n.length>0&&n[n.length-1].trim()!==""&&n.push(""),n.push(r);continue}if(s!==null&&zn(s)){n.length>0&&n[n.length-1].trim()!==""&&n.push(""),n.push(r),n.push(nf(oi(r).length));continue}n.push(r);continue}n.push(r)}return n.join(`
|
|
229
|
+
`)}function ii(e){const t=new TextEncoder().encode(e);let n="";for(const u of t)n+=String.fromCharCode(u);return btoa(n)}function af(e){return ii(e)}function Da(e){const t=atob(e),n=new Uint8Array(t.length);for(let u=0;u<t.length;u+=1)n[u]=t.charCodeAt(u);return new TextDecoder("utf-8",{ignoreBOM:!0}).decode(n)}const An=new St({html:!1,linkify:!0,breaks:!0});An.renderer.rules.table_open=()=>'<div class="md-table-wrap"><table>';An.renderer.rules.table_close=()=>"</table></div>";const rf=An.renderer.rules.fence??((e,t,n,u,a)=>a.renderToken(e,t,n));An.renderer.rules.fence=(e,t,n,u,a)=>{const r=e[t];if((r.info.trim().split(/\s+/g)[0]?.toLowerCase()??"")!=="mermaid")return rf(e,t,n,u,a);const i=af(r.content),s=An.utils.escapeHtml(r.content);return`<pre class="mermaid-block" data-mermaid="${i}"><code>${s}</code></pre>`};Ia.addHook("afterSanitizeAttributes",e=>{e.nodeName==="A"&&e.hasAttribute("href")&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer nofollow"))});function of(e,t={}){const n=t.streaming?ef(e):e;return uf(n)}function sf(e,t={}){return lf(e,t,{})}function lf(e,t={},n={}){const u=of(e,t),a=An.render(u,{...n});return Ia.sanitize(a)}function Wr(e){const t=e.match(/rgba?\(([^)]+)\)/i);if(!t)return null;const n=t[1].split(",").map(a=>parseFloat(a.trim()));return n.length<3||n.slice(0,3).some(a=>Number.isNaN(a))||!((n.length>=4?n[3]:1)>=1)?null:[n[0],n[1],n[2]]}function Gu(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gr([e,t,n]){return .2126*Gu(e)+.7152*Gu(t)+.0722*Gu(n)}function fa(e,t){const n=Gr(e),u=Gr(t),a=Math.max(n,u),r=Math.min(n,u);return(a+.05)/(r+.05)}function cf(e){const t=[0,0,0],n=[255,255,255];return fa(t,e)>=fa(n,e)?"rgb(0, 0, 0)":"rgb(255, 255, 255)"}const df=3;let Ku=null,Kr=null,Zr=0;const Yr=new Map;function ff(e){e.querySelectorAll("g.node").forEach(n=>{const u=n.querySelector("rect, polygon, path, circle, ellipse"),a=n.querySelector("text");if(!u||!a)return;const r=Wr(getComputedStyle(u).fill);if(!r)return;const o=Wr(getComputedStyle(a).fill);o&&(fa(o,r)>=df||(a.style.fill=cf(r)))})}function hf(){return Ku||(Ku=lu(()=>import("./mermaid.core-BFHDzAZC.js").then(e=>e.bq),__vite__mapDeps([0,1,2])).then(e=>e.default)),Ku}async function pf(e){const t=await hf();return Kr!==e&&(t.initialize({startOnLoad:!1,securityLevel:"strict",htmlLabels:!1,flowchart:{htmlLabels:!1},theme:e==="dark"?"dark":"default"}),Kr=e),t}async function mf(e,t,n){const u=Array.from(e.querySelectorAll("pre.mermaid-block[data-mermaid]:not([data-mermaid-done])"));if(u.length===0)return;let a;try{a=await pf(t)}catch{return}for(const r of u){if(n?.())return;if(r.getAttribute("data-mermaid-done"))continue;const o=Da(r.getAttribute("data-mermaid")??""),i=`${t}:${o}`;try{let s=Yr.get(i);if(s===void 0){Zr+=1;const l=await a.render(`mmd-${Zr}`,o);s=Ia.sanitize(l.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}}),Yr.set(i,s)}if(n?.())return;r.innerHTML=s,ff(r),r.setAttribute("data-mermaid-done","1"),r.classList.add("mermaid-rendered")}catch{if(n?.())return;r.setAttribute("data-mermaid-done","error"),r.classList.add("mermaid-error")}}}function bf(e){const t=Array.from(e.querySelectorAll("pre.mermaid-block[data-mermaid-done]"));for(const n of t){const u=Da(n.getAttribute("data-mermaid")??""),a=document.createElement("code");a.textContent=u,n.replaceChildren(a),n.removeAttribute("data-mermaid-done"),n.classList.remove("mermaid-rendered","mermaid-error")}}function Fa(e){const t=e.viewBox?.baseVal;if(t&&t.width>0&&t.height>0)return{width:t.width,height:t.height};const n=e.getBoundingClientRect?.();return n&&n.width>0&&n.height>0?{width:n.width,height:n.height}:null}const gf="http://www.w3.org/2000/svg",vf=2;function yf(e){let t=e.trim();const n=/^<svg\b([^>]*)>/i.exec(t);return n&&!/\bxmlns\s*=/i.test(n[1])&&(t=`<svg xmlns="${gf}"${n[1]}>${t.slice(n[0].length)}`),`data:image/svg+xml;base64,${ii(t)}`}function kf(e){const n=((e??"").split(`
|
|
230
|
+
`).map(u=>u.trim()).find(u=>u!=="")??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40).replace(/-+$/g,"");return n===""?"diagram.png":`diagram-${n}.png`}function xf(e,t){const n=URL.createObjectURL(e),u=document.createElement("a");u.href=n,u.download=t,u.style.display="none",document.body.appendChild(u),u.click(),u.remove(),URL.revokeObjectURL(n)}async function wf(e,t){try{const n=Fa(e);if(!n)return;const u=t.scale??vf,a=e.cloneNode(!0);a.setAttribute("width",String(n.width)),a.setAttribute("height",String(n.height)),a.style.maxWidth="none";const r=new XMLSerializer().serializeToString(a),o=new Image;await new Promise((d,m)=>{o.onload=()=>d(),o.onerror=()=>m(new Error("svg image load failed")),o.src=yf(r)});const i=document.createElement("canvas");i.width=Math.max(1,Math.round(n.width*u)),i.height=Math.max(1,Math.round(n.height*u));const s=i.getContext("2d");if(!s)return;s.fillStyle=t.background,s.fillRect(0,0,i.width,i.height),s.drawImage(o,0,0,i.width,i.height);const l=await new Promise(d=>i.toBlob(m=>d(m),"image/png"));if(!l)return;xf(l,t.fileName??"diagram.png")}catch{}}const si=1.25,li=.8;function ci(e,t,n,u,a={}){if(e<=0||t<=0||n<=0||u<=0)return null;const r=a.maxScale??1,o=Math.min(e/n,t/u,r),i=(e-n*o)/2,s=a.align==="top"?0:(t-u*o)/2;return{scale:o,x:i,y:s}}function di(e,t,n){e.zoomAt(n,t.width/2,t.height/2)}function fi(e={}){const t=e.minScale??.2;let n=t;const u=e.maxScale??8,a={scale:1,x:0,y:0},r={scale:1,x:0,y:0};return{state:a,zoomAt(o,i,s){const l=Math.min(u,Math.max(n,a.scale*o));l!==a.scale&&(a.x=i-(i-a.x)*(l/a.scale),a.y=s-(s-a.y)*(l/a.scale),a.scale=l)},panBy(o,i){a.x+=o,a.y+=i},reset(){a.scale=r.scale,a.x=r.x,a.y=r.y},setHome(o,i,s){n=Math.min(t,o),r.scale=o,r.x=i,r.y=s,a.scale=o,a.x=i,a.y=s},atHome(){return Math.abs(a.scale-r.scale)<.001&&Math.abs(a.x-r.x)<.5&&Math.abs(a.y-r.y)<.5},toTransform(){return`translate(${a.x}px, ${a.y}px) scale(${a.scale})`}}}function hi(e,t,n,u={}){const a=u.wheelRequiresModifier??!1,r=u.oneFingerTouchPan??!1;function o(){const T=e.getBoundingClientRect();return{left:T.left,top:T.top}}function i(T,W){return Math.hypot(T.clientX-W.clientX,T.clientY-W.clientY)}function s(T){if(a&&!T.ctrlKey&&!T.metaKey)return;T.preventDefault();const{left:W,top:G}=o();t.zoomAt(T.deltaY<0?1.1:1/1.1,T.clientX-W,T.clientY-G),n()}let l=!1,d=null,m=0,p=0;function g(T){if(T.pointerType==="mouse"){l=!0,d=T.pointerId,m=T.clientX,p=T.clientY;try{e.setPointerCapture?.(T.pointerId)}catch{}}}function x(T){!l||T.pointerId!==d||(t.panBy(T.clientX-m,T.clientY-p),m=T.clientX,p=T.clientY,n())}function b(T){T.pointerId===d&&(l=!1,d=null)}let E=!1,S=0,R=!1,I=0,C=0;function $(T){T.touches.length===2?(E=!0,R=!1,S=i(T.touches[0],T.touches[1])):T.touches.length===1&&r&&(R=!0,I=T.touches[0].clientX,C=T.touches[0].clientY)}function D(T){if(E&&T.touches.length===2){T.preventDefault();const{left:W,top:G}=o(),U=i(T.touches[0],T.touches[1]);if(S>0){const J=(T.touches[0].clientX+T.touches[1].clientX)/2-W,q=(T.touches[0].clientY+T.touches[1].clientY)/2-G;t.zoomAt(U/S,J,q),n()}S=U}else R&&T.touches.length===1&&(T.preventDefault(),t.panBy(T.touches[0].clientX-I,T.touches[0].clientY-C),I=T.touches[0].clientX,C=T.touches[0].clientY,n())}function z(T){T.touches.length<2&&(E=!1,S=0),T.touches.length===0&&(R=!1)}return e.addEventListener("wheel",s,{passive:!1}),e.addEventListener("pointerdown",g),e.addEventListener("pointermove",x),e.addEventListener("pointerup",b),e.addEventListener("pointercancel",b),e.addEventListener("touchstart",$,{passive:!1}),e.addEventListener("touchmove",D,{passive:!1}),e.addEventListener("touchend",z),()=>{e.removeEventListener("wheel",s),e.removeEventListener("pointerdown",g),e.removeEventListener("pointermove",x),e.removeEventListener("pointerup",b),e.removeEventListener("pointercancel",b),e.removeEventListener("touchstart",$),e.removeEventListener("touchmove",D),e.removeEventListener("touchend",z)}}function _f(){return typeof window<"u"?Math.min(560,Math.round(window.innerHeight*.7)):560}const Ef=[{key:"zoomOut",glyph:"−",factor:li},{key:"reset",glyph:"↺",factor:0},{key:"zoomIn",glyph:"+",factor:si}];function Af(e){try{const t=getComputedStyle(e).backgroundColor;if(t&&t!=="transparent"&&!/^rgba\(0,\s*0,\s*0,\s*0\)$/.test(t))return t}catch{}return"#ffffff"}function Cf(e,t){const n=e.querySelector("svg");if(!n)return()=>{};const u=document.createElement("div");u.className="mmd-viewport";const a=document.createElement("div");a.className="mmd-transform",a.appendChild(n),u.appendChild(a);const r=Da(e.getAttribute("data-mermaid")??""),o=document.createElement("pre");o.className="mmd-source";const i=document.createElement("code");i.textContent=r,o.appendChild(i);const s=fi(),l=()=>{a.style.transform=s.toTransform()},d=document.createElement("div");d.className="mmd-controls";const m=[],p=(C,$,D,z)=>{const T=document.createElement("button");return T.type="button",T.setAttribute("aria-label",C),z?.viewOnly&&T.classList.add("mmd-view-only"),T.textContent=$,T.addEventListener("click",D),m.push(()=>T.removeEventListener("click",D)),d.appendChild(T),T};for(const C of Ef)p(t.labels[C.key],C.glyph,$=>{$.stopPropagation(),C.factor===0?s.reset():di(s,u.getBoundingClientRect(),C.factor),l()},{viewOnly:!0});p(t.labels.fullscreen,"⤢",C=>{C.stopPropagation(),t.onExpand()},{viewOnly:!0});let g=!1;const x=p(t.labels.source,"</>",C=>{C.stopPropagation(),g=!g,e.classList.toggle("mmd-source-mode",g),x.setAttribute("aria-pressed",String(g))});x.setAttribute("aria-pressed","false"),p(t.labels.download,"⬇",C=>{C.stopPropagation(),wf(n,{background:Af(u),fileName:kf(r)})}),e.replaceChildren(u,o,d);const b=Fa(n);b&&(n.style.maxWidth="none",n.setAttribute("width",String(b.width)),n.setAttribute("height",String(b.height)));let E=0;function S(){if(!b)return;const C=u.clientWidth||u.getBoundingClientRect().width,$=ci(C,_f(),b.width,b.height,{align:"top"});$&&(E=C,u.style.height=`${Math.round(b.height*$.scale)}px`,s.setHome($.scale,$.x,$.y),l())}S();let R=null;b&&typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{const C=u.clientWidth;C>0&&C!==E&&s.atHome()&&S()}),R.observe(u));const I=hi(u,s,l,{wheelRequiresModifier:!0});return()=>{R?.disconnect(),I();for(const C of m)C()}}const If=["innerHTML"],Sf={class:"mv-controls"},Tf=He({__name:"MermaidViewer",props:{svg:{}},emits:["close"],setup(e,{emit:t}){const n=t,u=j(null),a=j(null),r=j("translate(0px, 0px) scale(1)"),o=fi();function i(){r.value=o.toTransform()}zi(u,()=>n("close"));let s=null;Ct(()=>{if(a.value){s=hi(a.value,o,i,{oneFingerTouchPan:!0});const b=a.value.querySelector("svg"),E=b?Fa(b):null;b&&E&&(b.style.maxWidth="none",b.setAttribute("width",String(E.width)),b.setAttribute("height",String(E.height)));const S=a.value.getBoundingClientRect(),R=E?ci(S.width,S.height,E.width,E.height,{align:"center"}):null;R&&(o.setHome(R.scale,R.x,R.y),i())}}),rn(()=>{s?.()});function l(b){const E=a.value?.getBoundingClientRect()??{width:0,height:0};di(o,E,b),i()}function d(){o.reset(),i()}let m=0,p=0;function g(b){m=b.clientX,p=b.clientY}function x(b){b.target===a.value&&(Math.abs(b.clientX-m)>4||Math.abs(b.clientY-p)>4||Du())}return(b,E)=>(y(),Ue(Pi,{to:"body"},[c("div",{ref_key:"dialogEl",ref:u,class:"mermaid-viewer",tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":"Diagram viewer"},[c("div",{ref_key:"stageEl",ref:a,class:"mv-stage",onPointerdown:g,onClick:x},[c("div",{class:"mv-content",style:ha({transform:r.value}),innerHTML:e.svg},null,12,If)],544),c("div",Sf,[c("button",{type:"button","aria-label":"Zoom out",onClick:E[0]||(E[0]=S=>l(H(li)))},[ae(H(g0),{size:18})]),c("button",{type:"button","aria-label":"Reset",onClick:E[1]||(E[1]=S=>d())},[ae(H(pa),{size:18})]),c("button",{type:"button","aria-label":"Zoom in",onClick:E[2]||(E[2]=S=>l(H(si)))},[ae(H(b0),{size:18})]),c("button",{type:"button","aria-label":"Close",onClick:E[3]||(E[3]=(...S)=>H(Du)&&H(Du)(...S))},[ae(H(fn),{size:18})])])],512)]))}}),Df=nt(Tf,[["__scopeId","data-v-67b3b8b2"]]),Ff=["innerHTML"],Xr=He({inheritAttrs:!1,__name:"StreamMarkdown",props:{text:{},renderedHtml:{},streaming:{type:Boolean}},setup(e){const{t}=Ni(),n=e,u=Ki(),a=j(null),r=j("");let o=null,i=!1;function s(){o!==null&&(cancelAnimationFrame(o),o=null)}function l($){const D=($.getAttribute("src")??"").trim().toLowerCase();return/^(https?:)?\/\//.test(D)||D.startsWith("data:")||D.startsWith("blob:")}function d(){const $=a.value;return $?Array.from($.querySelectorAll("img")).filter(l):[]}function m($){const D=$.target;if(!D||D.tagName!=="IMG")return;const z=D;if(!l(z))return;$.preventDefault();const T=d(),W=Math.max(0,T.indexOf(z)),G=T.map(U=>({src:U.getAttribute("src")??"",alt:U.alt||void 0}));qi(G,W)}let p=Promise.resolve();const g=j(null);let x=[];function b(){for(const $ of x)$();x=[]}function E($){$.querySelectorAll("pre.mermaid-block.mermaid-rendered:not([data-mmd-enhanced])").forEach(D=>{D.setAttribute("data-mmd-enhanced","1"),x.push(Cf(D,{onExpand:()=>{g.value=D.querySelector("svg")?.outerHTML??null},labels:{zoomOut:t("chat.mermaidZoomOut"),reset:t("chat.mermaidReset"),zoomIn:t("chat.mermaidZoomIn"),fullscreen:t("chat.mermaidFullscreen"),source:t("chat.mermaidSource"),download:t("chat.mermaidDownload")}}))})}function S($){$.querySelectorAll("pre.mermaid-block.mermaid-error:not([data-mmd-error-label])").forEach(D=>D.setAttribute("data-mmd-error-label",t("chat.mermaidError")))}function R(){return i||n.streaming===!0||a.value===null}function I($){n.streaming||(p=p.then(async()=>{if(await pu(),R())return;const D=a.value;D!==null&&($&&(b(),D.querySelectorAll("pre.mermaid-block[data-mmd-enhanced]").forEach(z=>z.removeAttribute("data-mmd-enhanced")),bf(D)),await mf(D,u.mode,R),R()||(E(D),S(D)))}).catch(()=>{}))}function C(){b(),r.value=n.renderedHtml??sf(n.text??"",{streaming:n.streaming}),I(!1)}return C(),Ct(()=>{I(!1),a.value?.addEventListener("click",m)}),Pe(()=>[n.text,n.renderedHtml],()=>{if(n.renderedHtml!==void 0||!n.streaming||typeof requestAnimationFrame!="function"){s(),C();return}o===null&&(o=requestAnimationFrame(()=>{o=null,C()}))}),Pe(()=>n.streaming,()=>{s(),C()}),Pe(()=>u.mode,()=>I(!0)),rn(()=>{i=!0,s(),b(),a.value?.removeEventListener("click",m)}),($,D)=>(y(),_(xe,null,[c("div",Bi({ref_key:"rootEl",ref:a,class:"stream-md text-sm"},$.$attrs,{innerHTML:r.value}),null,16,Ff),g.value?(y(),Ue(Df,{key:0,svg:g.value,onClose:D[0]||(D[0]=z=>g.value=null)},null,8,["svg"])):ee("",!0)],64))}}),$f={class:"thread-timeline","data-test":"thread-timeline","aria-live":"polite"},Mf=["disabled"],Rf={key:1,class:"thread-timeline-empty","data-test":"thread-timeline-loading"},Lf={key:2,class:"thread-timeline-empty","data-test":"thread-timeline-empty"},Of={key:3,class:"thread-timeline-list"},zf=["data-event-id","data-event-seq"],Pf={key:1,class:"thread-event","data-test":"thread-event"},Nf={class:"thread-event-summary"},Bf={class:"thread-event-kind"},qf={class:"thread-event-title"},jf={class:"thread-event-source"},Uf={class:"thread-event-seq"},Hf={class:"thread-event-payload"},Vf={key:4,class:"thread-command-notices","data-test":"thread-command-replies"},Wf={class:"thread-command-notice-label"},Gf=He({__name:"ThreadTimeline",props:{events:{},notices:{},scope:{},thread:{},kind:{},driver:{},loading:{type:Boolean},loadingOlder:{type:Boolean},hasMore:{type:Boolean},locale:{}},emits:["loadOlder"],setup(e,{emit:t}){const n=e,u=t,a=Cn(mn,null),r=pe(()=>a?.adapterFor(n.kind)??va(n.kind)),o=b=>Le(b,ht(n.locale));function i(b){return typeof b.payload=="object"&&b.payload!==null&&!Array.isArray(b.payload)?b.payload:{}}function s(b){const E=i(b).text;return typeof E=="string"?E:""}function l(b){const E=i(b).speaker??i(b).author;return typeof E=="string"&&E?E:void 0}function d(b){return i(b).role==="user"||i(b).own===!0}function m(b){const E=i(b),S=E.title??E.summary??E.label;return typeof S=="string"&&S?S:b.kind}function p(b){const E=i(b),S=E.agent??E.source??E.from;return typeof S=="string"?S:"thread"}function g(b){try{return JSON.stringify(b.payload,null,2)}catch{return String(b.payload)}}function x(b,E){return E===n.events.length-1&&b.kind==="message"&&i(b).streaming===!0}return(b,E)=>(y(),_("section",$f,[ae(Be,{name:"timeline.before",context:{scope:e.scope,thread:e.thread,threadId:e.events[0]?.threadId}},null,8,["context"]),e.hasMore||e.loadingOlder?(y(),_("button",{key:0,type:"button",class:"thread-timeline-older","data-test":"thread-timeline-older",disabled:e.loadingOlder,onClick:E[0]||(E[0]=S=>u("loadOlder"))},A(e.loadingOlder?o("loading"):o("loadEarlier")),9,Mf)):ee("",!0),e.loading&&e.events.length===0?(y(),_("div",Rf,A(o("loading")),1)):e.events.length===0&&!e.notices?.length?(y(),_("div",Lf,A(o("noMessages")),1)):(y(),_("ol",Of,[(y(!0),_(xe,null,Se(e.events,(S,R)=>(y(),_("li",{key:S.id,"data-event-id":S.id,"data-event-seq":S.seq},[ae(Be,{name:S.kind,message:"",context:{scope:e.scope,thread:e.thread,event:S}},{default:Pn(()=>[S.kind==="message"?(y(),Ue(Al,{key:0,"row-id":S.id,driver:e.driver??void 0,speaker:d(S)?void 0:l(S),own:d(S),"hide-identity-on-mobile":r.value.kind==="session"||r.value.kind==="direct"},{default:Pn(()=>[ae(Xr,{text:s(S),streaming:x(S,R)},null,8,["text","streaming"])]),_:2},1032,["row-id","driver","speaker","own","hide-identity-on-mobile"])):(y(),_("details",Pf,[c("summary",Nf,[c("span",Bf,A(S.kind),1),c("span",qf,A(m(S)),1),c("span",jf,A(p(S)),1),c("span",Uf,"#"+A(S.seq),1)]),c("pre",Hf,A(g(S)),1)]))]),_:2},1032,["name","context"]),ae(Be,{name:"timeline.message-actions",context:{scope:e.scope,thread:e.thread,event:S}},null,8,["context"])],8,zf))),128))])),e.notices?.length?(y(),_("ul",Vf,[(y(!0),_(xe,null,Se(e.notices,S=>(y(),_("li",{key:S.id,class:"thread-command-notice","data-test":"thread-command-reply"},[c("span",Wf,A(o("commandResult")),1),ae(Xr,{text:S.text},null,8,["text"])]))),128))])):ee("",!0),ae(Be,{name:"timeline.after",context:{scope:e.scope,thread:e.thread,threadId:e.events[0]?.threadId}},null,8,["context"])]))}}),pi=nt(Gf,[["__scopeId","data-v-9e35c8e8"]]),Kf={key:0,class:"thread-composer-attachments"},Zf={class:"thread-composer-input"},Yf=["aria-label"],Xf=["aria-selected","onMousedown"],Jf={class:"thread-command-name"},Qf={class:"thread-command-description"},eh={key:0,class:"thread-command-usage"},th=["placeholder","disabled"],nh={class:"thread-composer-actions"},uh=["disabled"],ah="xacpx.thread.draft:",rh=He({__name:"ThreadComposer",props:{adapter:{},disabled:{type:Boolean},streaming:{type:Boolean},placeholder:{},draftKey:{},commands:{},scope:{},thread:{},locale:{}},emits:["send","stop","stopAll","commandsNeeded"],setup(e,{emit:t}){const n=e,u=t,a=j(""),r=j(null),o=j(0),i=j(!1),s=z=>Le(z,ht(n.locale)),l=pe(()=>n.placeholder??n.adapter.composer.placeholder),d=pe(()=>!n.disabled&&a.value.trim().length>0),m=pe(()=>{const T=(a.value.split(`
|
|
231
|
+
`,1)[0]??"").trimStart();if(!T.startsWith("/"))return"";const W=T.split(/\s+/,1)[0]??"";return W===T?W:""}),p=pe(()=>{const z=m.value.toLowerCase();return z?(n.commands??[]).filter(T=>T.name.toLowerCase().startsWith(z)||T.aliases.some(W=>W.toLowerCase().startsWith(z))).slice(0,8):[]}),g=pe(()=>!n.disabled&&!i.value&&m.value.length>0&&p.value.length>0);function x(){u("commandsNeeded")}function b(z){const T=m.value,W=T?a.value.slice(a.value.indexOf(T)+T.length).trimStart():"";a.value=`${z.name}${W?` ${W}`:" "}`,i.value=!0,o.value=0,pu(()=>{r.value?.focus();const G=a.value.length;r.value?.setSelectionRange(G,G)})}function E(){if(g.value){if(p.value.find(W=>W.name.toLowerCase()===m.value.toLowerCase())){i.value=!0,D();return}const T=p.value[o.value];if(T){b(T);return}}D()}function S(z){return z.key==="Enter"&&!z.shiftKey&&!z.ctrlKey&&!z.metaKey&&!z.altKey}function R(z){if(!z.isComposing){if(!g.value){S(z)&&(z.preventDefault(),D());return}if(z.key==="ArrowDown"||z.key==="ArrowUp"){z.preventDefault();const T=z.key==="ArrowDown"?1:-1;o.value=(o.value+T+p.value.length)%p.value.length;return}if(z.key==="Tab"){z.preventDefault();const T=p.value[o.value];T&&b(T);return}if(z.key==="Escape"){z.preventDefault(),i.value=!0;return}S(z)&&(z.preventDefault(),E())}}function I(){return n.draftKey?`${ah}${n.draftKey}`:void 0}function C(){const z=I();if(!z)return"";try{return localStorage.getItem(z)??""}catch{return""}}Pe(()=>n.draftKey,()=>{a.value=C()},{immediate:!0}),Pe(a,z=>{i.value=!1,o.value=0,z.trimStart().startsWith("/")&&x();const T=I();if(T)try{z.length>0?localStorage.setItem(T,z):localStorage.removeItem(T)}catch{}});function $(z){if(!n.adapter.composer.showMentions)return;const T=[];for(const W of z.matchAll(/@([a-zA-Z0-9][a-zA-Z0-9_.-]*)/g)){const G=W.index;G!==void 0&&T.push({range:[G,G+W[0].length],handle:W[1]})}return T.length?T:void 0}function D(){if(!d.value)return;const z=a.value;a.value="";const T=I();if(T)try{localStorage.removeItem(T)}catch{}u("send",{text:z,mentions:$(z)})}return(z,T)=>(y(),_("form",{class:"thread-composer","data-test":"thread-composer",onSubmit:Ne(D,["prevent"])},[ae(Be,{name:"composer.above",context:{scope:e.scope,thread:e.thread,draftKey:e.draftKey}},null,8,["context"]),z.$slots.attachments?(y(),_("div",Kf,[pn(z.$slots,"attachments",{},void 0,!0)])):ee("",!0),c("div",Zf,[g.value?(y(),_("div",{key:0,class:"thread-command-menu","data-test":"thread-command-menu",role:"listbox","aria-label":s("commands")},[(y(!0),_(xe,null,Se(p.value,(W,G)=>(y(),_("button",{key:W.name,type:"button",role:"option",class:"thread-command-item","data-test":"thread-command-item","aria-selected":G===o.value,onMousedown:Ne(U=>b(W),["prevent"])},[c("span",Jf,A(W.name),1),c("span",Qf,A(W.description),1),W.usage?(y(),_("span",eh,A(W.usage),1)):ee("",!0)],40,Xf))),128))],8,Yf)):ee("",!0),Ce(c("textarea",{ref_key:"textarea",ref:r,"onUpdate:modelValue":T[0]||(T[0]=W=>a.value=W),class:"thread-composer-text","data-test":"thread-composer-text",placeholder:l.value,disabled:e.disabled,rows:"2",onKeydown:R},null,40,th),[[Ke,a.value]]),c("div",nh,[ae(Be,{name:"composer.toolbar",context:{scope:e.scope,thread:e.thread,draftKey:e.draftKey,disabled:e.disabled??!1,streaming:e.streaming??!1}},null,8,["context"]),e.streaming?(y(),_("button",{key:0,type:"button",class:"thread-composer-secondary","data-test":"thread-composer-stop",onClick:T[1]||(T[1]=W=>u("stop"))},A(s("stop")),1)):ee("",!0),e.streaming&&e.adapter.capabilities.stopAll?(y(),_("button",{key:1,type:"button",class:"thread-composer-secondary","data-test":"thread-composer-stop-all",onClick:T[2]||(T[2]=W=>u("stopAll"))},A(s("stopAll")),1)):ee("",!0),c("button",{type:"submit",class:"thread-composer-send","data-test":"thread-composer-send",disabled:!d.value},A(s("send")),9,uh)])]),ae(Be,{name:"composer.below",context:{scope:e.scope,thread:e.thread,draftKey:e.draftKey}},null,8,["context"])],32))}}),oh=nt(rh,[["__scopeId","data-v-ad56455f"]]),ih={class:"thread-interaction","data-test":"thread-interaction"},sh={key:0,class:"thread-permission","data-test":"thread-permission"},lh={class:"thread-interaction-prompt"},ch={class:"thread-permission-actions"},dh=["data-test","disabled","onClick"],fh={key:0,class:"thread-interaction-error",role:"alert","data-test":"thread-interaction-error"},hh={key:1,class:"thread-interaction-outcome","data-test":"thread-interaction-outcome"},ph={class:"thread-interaction-prompt"},mh={class:"thread-agent"},bh=["aria-label","disabled"],gh={key:0,class:"thread-interaction-error",role:"alert","data-test":"thread-interaction-error"},vh={key:1,class:"thread-interaction-outcome","data-test":"thread-interaction-outcome"},yh={class:"thread-question-actions"},kh=["disabled"],xh=["disabled"],wh=["disabled"],_h=He({__name:"ThreadInteractionForm",props:{interaction:{},agentName:{},locale:{}},emits:["submit","decline","cancel"],setup(e,{expose:t,emit:n}){const u=e,a=n,r=S=>Le(S,ht(u.locale)),o=j(""),i=j(!1),s=j(null),l=j(null),d=pe(()=>u.interaction.kind==="permission"||u.interaction.kind==="approval"),m=pe(()=>[{value:"allow_once",label:r("permissionAllowOnce")},{value:"allow_always",label:r("permissionAllowAlways")},{value:"reject_once",label:r("permissionRejectOnce")},{value:"reject_always",label:r("permissionRejectAlways")},{value:"cancel",label:r("permissionCancel")}]);Pe(()=>[u.interaction.id,u.interaction.prompt],()=>{o.value="",i.value=!1,s.value=null,l.value=null});function p(){const S=o.value.trim();!S||i.value||(i.value=!0,l.value=null,a("submit",S))}function g(S){i.value||(i.value=!0,l.value=null,a("submit",S))}function x(S){i.value||(i.value=!0,l.value=null,a(S==="declined"?"decline":"cancel"))}function b(S){i.value=!1,s.value=S}function E(S){i.value=!1,l.value=S}return t({finish:b,fail:E}),(S,R)=>(y(),_("div",ih,[d.value?(y(),_("div",sh,[c("p",lh,A(e.interaction.prompt||r("permissionRequired")),1),c("div",ch,[(y(!0),_(xe,null,Se(m.value,I=>(y(),_("button",{key:I.value,type:"button",class:De(["thread-permission-action",{allow:I.value.startsWith("allow")}]),"data-test":`thread-permission-${I.value}`,disabled:i.value,onClick:C=>g(I.value)},A(I.label),11,dh))),128))]),l.value?(y(),_("p",fh,A(l.value),1)):s.value?(y(),_("p",hh,A(s.value),1)):ee("",!0)])):(y(),_("form",{key:1,class:"thread-question","data-test":"thread-question",onSubmit:Ne(p,["prevent"])},[c("p",ph,A(e.interaction.prompt),1),c("p",mh,A(e.agentName),1),Ce(c("input",{"onUpdate:modelValue":R[0]||(R[0]=I=>o.value=I),class:"thread-interaction-input","data-test":"thread-question-answer","aria-label":r("answer"),disabled:i.value||s.value!==null,maxlength:"4000"},null,8,bh),[[Ke,o.value]]),l.value?(y(),_("p",gh,A(l.value),1)):s.value?(y(),_("p",vh,A(s.value),1)):ee("",!0),c("div",yh,[c("button",{type:"button",class:"thread-interaction-primary","data-test":"thread-question-submit",disabled:i.value||!o.value.trim(),onClick:p},A(r("submitAnswer")),9,kh),c("button",{type:"button",class:"thread-interaction-secondary","data-test":"thread-question-decline",disabled:i.value,onClick:R[1]||(R[1]=I=>x("declined"))},A(r("declineAction")),9,xh),c("button",{type:"button",class:"thread-interaction-secondary","data-test":"thread-question-cancel",disabled:i.value,onClick:R[2]||(R[2]=I=>x("cancelled"))},A(r("cancel")),9,wh)])],32))]))}}),Eh=nt(_h,[["__scopeId","data-v-e87f5ce0"]]),Ah=["aria-label"],Ch={class:"thread-trace-bar"},Ih={key:0,class:"thread-trace-state"},Sh={key:1,class:"thread-trace-completeness"},Th=["aria-label"],Dh={key:0,class:"thread-trace-error",role:"alert","data-test":"thread-trace-error"},Fh={key:2,class:"thread-trace-loading","data-test":"thread-trace-loading"},$h=He({__name:"ThreadTraceDrawer",props:{open:{type:Boolean},trace:{},kind:{},driver:{default:null},loading:{type:Boolean,default:!1},error:{default:null},locale:{}},emits:["close","loadOlder"],setup(e,{emit:t}){const n=e,u=t,a=r=>Le(r,ht(n.locale));return(r,o)=>e.open?(y(),_("div",{key:0,class:"thread-trace-backdrop","data-test":"thread-trace-backdrop",onClick:o[2]||(o[2]=Ne(i=>u("close"),["self"]))},[c("aside",{class:"thread-trace","data-test":"thread-trace",role:"dialog","aria-modal":"true","aria-label":a("trace")},[c("header",Ch,[c("strong",null,A(a("trace")),1),e.trace?(y(),_("span",Ih,A(e.trace.recordingState),1)):ee("",!0),e.trace?(y(),_("span",Sh,A(e.trace.completenessReason??""),1)):ee("",!0),c("button",{type:"button",class:"thread-trace-close","data-test":"thread-trace-close","aria-label":a("closeTrace"),onClick:o[0]||(o[0]=i=>u("close"))},[ae(H(fn),{size:15})],8,Th)]),e.error?(y(),_("p",Dh,A(e.error),1)):(y(),Ue(pi,{key:1,events:e.trace?.events??[],kind:e.kind,driver:e.driver,loading:e.loading,"has-more":e.trace?.hasMore??!1,"loading-older":e.loading,locale:e.locale,onLoadOlder:o[1]||(o[1]=i=>u("loadOlder"))},null,8,["events","kind","driver","loading","has-more","loading-older","locale"])),e.loading&&!e.trace?(y(),_("p",Fh,A(a("loadingTrace")),1)):ee("",!0)],8,Ah)])):ee("",!0)}}),Mh=nt($h,[["__scopeId","data-v-4aeec1d2"]]),Rh=["data-thread-key"],Lh={key:0,class:"thread-pane-error",role:"alert","data-test":"thread-pane-error"},Oh={key:1,class:"thread-pane-error",role:"alert","data-test":"thread-timeline-error"},zh={key:2,class:"thread-pane-panel","data-test":"thread-persona-panel"},Ph={class:"thread-pane-muted"},Nh={key:3,class:"thread-pane-panel","data-test":"thread-topic-panel"},Bh={class:"thread-pane-muted"},qh={key:4,class:"thread-pane-panel","data-test":"thread-worktree-panel"},jh={class:"thread-pane-muted"},Uh={key:5,class:"thread-pane-panel","data-test":"thread-roundtable-panel"},Hh={key:6,class:"thread-pane-panel","data-test":"thread-members-panel"},Vh={key:0,class:"thread-pane-muted"},Wh={key:1},Gh={key:7,class:"thread-pane-panel","data-test":"thread-policy-panel"},Kh={key:0,class:"thread-pane-muted"},Zh={key:1},Yh=He({__name:"ThreadPane",props:{scope:{},store:{},autoLoad:{type:Boolean},locale:{}},setup(e){const t=e,n=t.store??Vn(),u=Cn(mn,null),a=j(null),r=j(null),o=j(!1),i=j(!1),s=j(!1),l=j(!1),d=j(!1),m=j(!1),p=j(!1),g=j(!1),x=j(null),b=pe(()=>n.pane(t.scope)),E=pe(()=>n.commandsFor(t.scope.instanceId)),S=pe(()=>b.value?.thread?.kind??"session"),R=pe(()=>u?.adapterFor(S.value)??va(S.value)),I=pe(()=>b.value?.interactions.find(se=>se.status==="open")??null),C=pe(()=>[...b.value?.turns??[]].reverse().find(se=>se.state!=="terminal")??null),$=pe(()=>{const se=n.executionInstanceIdFor(t.scope);return se===t.scope.instanceId?void 0:se});async function D(){if(n.ensurePane(t.scope),t.autoLoad===!1)return;await Promise.allSettled([n.loadThread(t.scope),n.loadTimeline(t.scope)]);const se=[n.loadInteractions(t.scope)];R.value.capabilities.participants&&se.push(n.loadMembers(t.scope)),R.value.capabilities.policies&&se.push(n.loadPolicy(t.scope)),await Promise.allSettled(se)}Ct(()=>{D()}),Pe(()=>[t.scope.instanceId,t.scope.threadId],()=>{D()});async function z(se){a.value=null;const O=se.text.trim();if(O.startsWith("/"))try{if((await n.execCommand(t.scope,O)).handled){await Promise.allSettled([n.loadThread(t.scope),n.loadTimeline(t.scope)]);return}}catch(K){a.value=K instanceof Error?K.message:String(K);return}const Y={text:O,...se.mentions?{mentions:se.mentions}:{}};try{await n.send(t.scope,Y)}catch(K){a.value=K instanceof Error?K.message:String(K)}}async function T(){const se=C.value;if(se)try{await n.cancel(t.scope,{runId:se.id})}catch(O){a.value=O instanceof Error?O.message:String(O)}}async function W(se){try{await n.switchSet(t.scope,se,b.value?.thread?.revision)}catch{}}async function G(se){try{await n.switchCancel(t.scope,se)}catch{}}async function U(se){try{await n.archiveThread(t.scope,se,b.value?.thread?.revision)}catch{}}async function J(){try{await n.forkThread(t.scope)}catch{}}async function q(){try{await n.clearThread(t.scope)}catch{}}async function ue(se){const O=I.value;if(O)try{await n.respondInteraction(t.scope,O.id,se),r.value?.finish("accepted")}catch(Y){r.value?.fail(Y instanceof Error?Y.message:String(Y)),a.value=Y instanceof Error?Y.message:String(Y)}}async function de(se){const O=I.value;if(O)try{await n.respondInteraction(t.scope,O.id,{action:se}),r.value?.finish(se==="decline"?"declined":"cancelled")}catch(Y){r.value?.fail(Y instanceof Error?Y.message:String(Y)),a.value=Y instanceof Error?Y.message:String(Y)}}async function be(){p.value=!0,g.value=!0;try{let se=b.value?.runs[0]??C.value;if(se||(se=(await n.loadRuns(t.scope,{limit:20}))[0]),!se)return;x.value=se.id,await n.loadTrace(t.scope,se.id,{limit:200})}catch(se){a.value=se instanceof Error?se.message:String(se)}finally{g.value=!1}}async function ge(){const se=b.value?.trace;if(!(!x.value||se?.nextSeq===void 0)){g.value=!0;try{await n.loadTrace(t.scope,x.value,{cursor:se.nextSeq,limit:200})}catch(O){a.value=O instanceof Error?O.message:String(O)}finally{g.value=!1}}}return(se,O)=>(y(),_("article",{class:"thread-pane","data-test":"thread-pane","data-thread-key":b.value?.key??""},[ae(Ws,{scope:e.scope,store:H(n),thread:b.value?.thread??null,adapter:R.value,driver:H(n).driverFor(e.scope),"execution-label":$.value,"switch-pending":b.value?.switchPending??null,"switch-error":b.value?.switchError??b.value?.error??null,onSwitch:W,onCancelSwitch:G,onArchive:U,onFork:J,onClear:q,onMembers:O[0]||(O[0]=Y=>o.value=!o.value),onPolicy:O[1]||(O[1]=Y=>i.value=!i.value),onPersona:O[2]||(O[2]=Y=>s.value=!s.value),onTopic:O[3]||(O[3]=Y=>l.value=!l.value),onWorktree:O[4]||(O[4]=Y=>d.value=!d.value),onRoundtable:O[5]||(O[5]=Y=>m.value=!m.value),onTrace:be,locale:e.locale},null,8,["scope","store","thread","adapter","driver","execution-label","switch-pending","switch-error","locale"]),ae(Be,{name:"pane.banner",context:{scope:e.scope,thread:b.value?.thread??void 0}},null,8,["context"]),a.value?(y(),_("p",Lh,A(a.value),1)):b.value?.timelineError?(y(),_("p",Oh,A(b.value.timelineError),1)):ee("",!0),s.value?(y(),_("aside",zh,[O[11]||(O[11]=c("h2",null,"Persona",-1)),c("p",Ph,A(b.value?.thread?.profileId??"No profile attached."),1)])):ee("",!0),l.value?(y(),_("aside",Nh,[O[12]||(O[12]=c("h2",null,"Topics",-1)),c("p",Bh,A(b.value?.thread?.parentThreadId?`Parent: ${b.value.thread.parentThreadId}`:"Root thread"),1)])):ee("",!0),d.value?(y(),_("aside",qh,[O[13]||(O[13]=c("h2",null,"Worktree",-1)),c("p",jh,A(b.value?.thread?.workspaceId??"No worktree attached."),1)])):ee("",!0),m.value?(y(),_("aside",Uh,[...O[14]||(O[14]=[c("h2",null,"Roundtable",-1),c("p",{class:"thread-pane-muted"},"Roundtable turns appear as trace events in this timeline.",-1)])])):ee("",!0),o.value?(y(),_("aside",Hh,[O[15]||(O[15]=c("h2",null,"Participants",-1)),b.value?.members.length?(y(),_("ul",Wh,[(y(!0),_(xe,null,Se(b.value.members,Y=>(y(),_("li",{key:Y.id},A(Y.profileId)+" · "+A(Y.role)+A(Y.enabled?"":" · disabled"),1))),128))])):(y(),_("p",Vh,"No participants loaded."))])):ee("",!0),i.value?(y(),_("aside",Gh,[O[20]||(O[20]=c("h2",null,"Policy",-1)),b.value?.policy?(y(),_("dl",Zh,[O[16]||(O[16]=c("dt",null,"Routing",-1)),c("dd",null,A(b.value.policy.routing),1),O[17]||(O[17]=c("dt",null,"Collaboration",-1)),c("dd",null,A(b.value.policy.collaboration),1),O[18]||(O[18]=c("dt",null,"Memory",-1)),c("dd",null,A(b.value.policy.memory),1),O[19]||(O[19]=c("dt",null,"Isolation",-1)),c("dd",null,A(b.value.policy.isolation),1)])):(y(),_("p",Kh,"No policy loaded."))])):ee("",!0),b.value?.events.length?ee("",!0):(y(),Ue(Be,{key:8,name:"pane.empty",context:{scope:e.scope,thread:b.value?.thread??void 0}},null,8,["context"])),ae(pi,{events:b.value?.events??[],notices:b.value?.commandReplies??[],scope:e.scope,thread:b.value?.thread??void 0,kind:S.value,driver:H(n).driverFor(e.scope),loading:b.value?.timelineLoading??!1,"loading-older":b.value?.loadingOlder??!1,"has-more":b.value?.hasMore??!1,locale:e.locale,onLoadOlder:O[6]||(O[6]=Y=>H(n).loadOlder(e.scope))},null,8,["events","notices","scope","thread","kind","driver","loading","loading-older","has-more","locale"]),I.value?(y(),Ue(Eh,{key:9,ref_key:"interactionForm",ref:r,interaction:I.value,"agent-name":"Agent",locale:e.locale,onSubmit:ue,onDecline:O[7]||(O[7]=Y=>de("decline")),onCancel:O[8]||(O[8]=Y=>de("cancel"))},null,8,["interaction","locale"])):ee("",!0),ae(oh,{adapter:R.value,commands:E.value,scope:e.scope,thread:b.value?.thread??void 0,"draft-key":`${e.scope.instanceId}:${e.scope.threadId}`,locale:e.locale,disabled:!b.value?.thread,streaming:!!C.value,onSend:z,onStop:T,onStopAll:T,onCommandsNeeded:O[9]||(O[9]=Y=>H(n).loadCommands(e.scope.instanceId))},null,8,["adapter","commands","scope","thread","draft-key","locale","disabled","streaming"]),ae(Mh,{open:p.value,trace:b.value?.trace??null,kind:S.value,driver:H(n).driverFor(e.scope),loading:g.value,error:b.value?.error??null,locale:e.locale,onClose:O[10]||(O[10]=Y=>p.value=!1),onLoadOlder:ge},null,8,["open","trace","kind","driver","loading","error","locale"])],8,Rh))}}),Xh=nt(Yh,[["__scopeId","data-v-72635fe4"]]),Jh={class:"thread-sidebar","data-test":"thread-sidebar"},Qh={class:"thread-sidebar-header"},ep={class:"thread-sidebar-eyebrow"},tp={class:"thread-sidebar-title"},np=["aria-label","disabled"],up={class:"thread-sidebar-search"},ap=["placeholder","aria-label"],rp=["aria-label"],op={value:"active"},ip={value:"archived"},sp={value:"all"},lp={key:0,class:"thread-sidebar-error",role:"alert"},cp={key:1,class:"thread-sidebar-empty","data-test":"thread-sidebar-empty"},dp={class:"thread-sidebar-scroll"},fp=["data-instance-id"],hp={class:"thread-instance-header"},pp=["onClick"],mp={class:"thread-instance-name"},bp=["data-test","aria-label","onClick"],gp=["data-test"],vp=["data-test","onClick"],yp=["data-test"],kp={class:"thread-workspaces-title"},xp=["title"],wp={key:1,class:"thread-instance-empty"},_p={class:"thread-list"},Ep=["data-test"],Ap=["onClick"],Cp=["data-test"],Ip={key:0,class:"thread-row-title"},Sp=["onKeydown","onBlur"],Tp={class:"thread-row-actions"},Dp=["aria-label","onClick"],Fp=["aria-label","onClick"],$p=["aria-label","onClick"],Mp=["aria-label","onClick"],Rp=He({__name:"ThreadSidebar",props:{store:{},activeScope:{},locale:{}},emits:["open","create"],setup(e,{emit:t}){const n=e,u=t,a=n.store??Vn(),r=Cn(mn,null),o=pe(()=>r?.creatableKinds.value??as()),i=O=>Le(O,ht(n.locale)),s=j(""),l=j("active"),d=j({}),m=j(null),p=j(""),g=j(null),x=j(null),b=j(!1),E=j(null),S=j(0),R=pe(()=>{const O=new Set(a.data.remoteInstances.map(Y=>Y.instanceId));for(const Y of Object.values(a.data.lists))Y.query.instanceId&&O.add(Y.query.instanceId);return[...O].sort()}),I=pe(()=>new Set(a.data.remoteInstances.filter(O=>O.online).map(O=>O.instanceId)));function C(O){S.value;const Y=s.value.trim().toLowerCase();return a.threadsFor(O).filter(K=>l.value==="active"&&K.status!=="active"||l.value==="archived"&&K.status!=="archived"?!1:Y?K.id.toLowerCase().includes(Y)||(K.title??"").toLowerCase().includes(Y):!0)}function $(O){return a.workspacesForInstance(O)}function D(O){return d.value[O]!==!1}function z(O){d.value={...d.value,[O]:!D(O)}}function T(O,Y){return`${O}:${Y.id}`}function W(O,Y){return n.activeScope?.instanceId===O&&n.activeScope.threadId===Y.id}function G(O,Y,K){u("open",{scope:{instanceId:O,threadId:Y.id},split:K})}function U(O,Y){m.value=T(O,Y),p.value=Y.title??""}async function J(O,Y){if(m.value!==T(O,Y))return;const K=p.value.trim();if(m.value=null,!(!K||K===Y.title))try{await a.updateThread({instanceId:O,threadId:Y.id},{title:K}),S.value+=1}catch(X){E.value=X instanceof Error?X.message:String(X)}}async function q(O,Y){g.value=null;try{await a.archiveThread({instanceId:O,threadId:Y.id},Y.status!=="archived",Y.revision),S.value+=1}catch(K){E.value=K instanceof Error?K.message:String(K)}}async function ue(O,Y){const K=T(O,Y);if(g.value!==K){g.value=K;return}g.value=null;try{await a.deleteThread({instanceId:O,threadId:Y.id},"detach",Y.revision),S.value+=1}catch(X){E.value=X instanceof Error?X.message:String(X)}}function de(O,Y){x.value=null,u("create",{instanceId:O,kind:Y})}async function be(){b.value=!0,E.value=null;try{await a.loadRemoteInstances(!0),await Promise.allSettled(R.value.flatMap(O=>[a.loadThreads({instanceId:O}),a.loadInstanceWorkspaces(O)]))}catch(O){E.value=O instanceof Error?O.message:String(O)}finally{b.value=!1,S.value+=1}}Ct(()=>{be()});function ge(O){return O==="session"?i("kindSession"):O==="direct"?i("kindDirect"):O==="group"?i("kindGroup"):O==="topic"?i("kindTopic"):r?.adapterFor(O).fallbackTitle??va(O).fallbackTitle}function se(O){return O.pluginId==="builtin"?ge(O.kind):O.label}return(O,Y)=>(y(),_("aside",Jh,[c("header",Qh,[c("div",null,[c("p",ep,A(i("sidebarEyebrow")),1),c("h2",tp,A(i("threads")),1)]),c("button",{type:"button",class:"thread-sidebar-icon","data-test":"thread-sidebar-refresh","aria-label":i("refreshThreads"),disabled:b.value,onClick:be},[ae(H(Ju),{size:16,class:De({spinning:b.value})},null,8,["class"])],8,np)]),ae(Be,{name:"sidebar.top",context:{scope:e.activeScope??void 0}},null,8,["context"]),ae(Be,{name:"sidebar.sections",context:{scope:e.activeScope??void 0}},{default:Pn(()=>[c("label",up,[ae(H(d0),{size:15,"aria-hidden":"true"}),Ce(c("input",{"onUpdate:modelValue":Y[0]||(Y[0]=K=>s.value=K),"data-test":"thread-sidebar-search",type:"search",placeholder:i("searchThreads"),"aria-label":i("searchThreads")},null,8,ap),[[Ke,s.value]])]),Ce(c("select",{"onUpdate:modelValue":Y[1]||(Y[1]=K=>l.value=K),class:"thread-sidebar-filter","data-test":"thread-sidebar-filter","aria-label":i("statusFilter")},[c("option",op,A(i("filterActive")),1),c("option",ip,A(i("filterArchived")),1),c("option",sp,A(i("filterAll")),1)],8,rp),[[vt,l.value]]),E.value?(y(),_("p",lp,A(E.value),1)):ee("",!0),R.value.length===0&&!b.value?(y(),_("div",cp,A(i("noInstances")),1)):ee("",!0),c("div",dp,[(y(!0),_(xe,null,Se(R.value,K=>(y(),_("section",{key:K,class:"thread-instance","data-instance-id":K},[c("div",hp,[c("button",{type:"button",class:"thread-instance-toggle",onClick:X=>z(K)},[c("span",{class:De(["thread-instance-dot",{online:I.value.has(K)}]),"aria-hidden":"true"},null,2),c("span",mp,A(K),1)],8,pp),c("button",{type:"button",class:"thread-sidebar-icon","data-test":`thread-sidebar-new-${K}`,"aria-label":i("newThreadAria"),onClick:X=>x.value=x.value===K?null:K},[ae(H(Xu),{size:15})],8,bp)]),x.value===K?(y(),_("div",{key:0,class:"thread-create-menu","data-test":`thread-create-menu-${K}`},[(y(!0),_(xe,null,Se(o.value,X=>(y(),_("button",{key:X.kind,type:"button","data-test":`thread-create-${X.kind}`,onClick:Oe=>de(K,X.kind)},A(se(X)),9,vp))),128))],8,gp)):ee("",!0),D(K)?(y(),_(xe,{key:1},[$(K).length?(y(),_("div",{key:0,class:"thread-workspaces","data-test":`thread-workspaces-${K}`},[c("p",kp,[ae(H(n0),{size:13}),$e(" "+A(i("workspaces")),1)]),c("ul",null,[(y(!0),_(xe,null,Se($(K),X=>(y(),_("li",{key:X.id,title:X.cwd},A(X.name),9,xp))),128))])],8,yp)):ee("",!0),C(K).length===0?(y(),_("p",wp,A(i("noThreadsMatch")),1)):ee("",!0),c("ul",_p,[(y(!0),_(xe,null,Se(C(K),X=>(y(),_("li",{key:X.id,class:De(["thread-row",{active:W(K,X),archived:X.status==="archived"}]),"data-test":`thread-row-${X.id}`},[c("button",{type:"button",class:"thread-row-main",onClick:Oe=>G(K,X,!1)},[c("span",{class:"thread-kind","data-test":`thread-kind-${X.id}`},A(ge(X.kind)),9,Cp),m.value!==T(K,X)?(y(),_("span",Ip,A(X.title||X.id),1)):Ce((y(),_("input",{key:1,"onUpdate:modelValue":Y[2]||(Y[2]=Oe=>p.value=Oe),class:"thread-rename","data-test":"thread-rename-input",onClick:Y[3]||(Y[3]=Ne(()=>{},["stop"])),onKeydown:[Yu(Ne(Oe=>J(K,X),["prevent"]),["enter"]),Y[4]||(Y[4]=Yu(Ne(Oe=>m.value=null,["prevent"]),["esc"]))],onBlur:Oe=>J(K,X)},null,40,Sp)),[[Ke,p.value]])],8,Ap),c("div",Tp,[c("button",{type:"button","data-test":"thread-rename","aria-label":i("renameThread"),onClick:Ne(Oe=>U(K,X),["stop"])},A(i("rename")),9,Dp),c("button",{type:"button","data-test":"thread-split","aria-label":i("openInSplit"),onClick:Ne(Oe=>G(K,X,!0),["stop"])},[ae(H(h0),{size:14})],8,Fp),c("button",{type:"button","data-test":"thread-archive","aria-label":X.status==="archived"?i("unarchiveThread"):i("archiveThread"),onClick:Ne(Oe=>q(K,X),["stop"])},[ae(H(ro),{size:14})],8,$p),c("button",{type:"button",class:"danger","data-test":"thread-delete","aria-label":g.value===T(K,X)?i("confirmDeleteThread"):i("deleteThread"),onClick:Ne(Oe=>ue(K,X),["stop"])},[ae(H(lo),{size:14})],8,Mp),ae(Be,{name:"sidebar.thread-actions",context:{scope:{instanceId:K,threadId:X.id},thread:X}},null,8,["context"])])],10,Ep))),128))])],64)):ee("",!0)],8,fp))),128))])]),_:1},8,["context"]),ae(Be,{name:"sidebar.bottom",context:{scope:e.activeScope??void 0}},null,8,["context"])]))}}),Lp=nt(Rp,[["__scopeId","data-v-c4eaf70c"]]),Op=["aria-label"],zp={class:"thread-dialog-header"},Pp={class:"thread-dialog-eyebrow"},Np={class:"thread-dialog-title"},Bp=["disabled"],qp={key:0,class:"thread-dialog-error",role:"alert"},jp={class:"thread-field"},Up=["disabled"],Hp=["value"],Vp={class:"thread-field"},Wp=["value","disabled"],Gp={class:"thread-field"},Kp={id:"thread-agent-options"},Zp=["value"],Yp={class:"thread-field"},Xp={value:"",disabled:""},Jp=["value"],Qp={class:"thread-field-grid"},e3={class:"thread-field"},t3={value:""},n3=["value"],u3=["placeholder"],a3={class:"thread-field"},r3={value:""},o3=["value"],i3=["placeholder"],s3={class:"thread-field"},l3={class:"thread-field"},c3={class:"thread-field"},d3={class:"thread-field"},f3={class:"thread-field"},h3={class:"thread-field"},p3={class:"thread-field"},m3={class:"thread-field-grid"},b3={class:"thread-field"},g3={value:"lead"},v3={value:"automatic"},y3={value:"manual"},k3={class:"thread-field"},x3={value:"none"},w3={value:"roundtable"},_3={value:"dispatch"},E3={class:"thread-field"},A3={value:"on"},C3={value:"off"},I3={class:"thread-field"},S3={value:"shared"},T3={value:"dedicated"},D3={value:"worktree"},F3={class:"thread-dialog-footer"},$3=["disabled"],M3=["disabled"],R3=He({__name:"ThreadDialog",props:{open:{type:Boolean},kind:{},instanceId:{},store:{},locale:{}},emits:["close","created"],setup(e,{emit:t}){const n=e,u=t,a=n.store??Vn(),r=ce=>Le(ce,ht(n.locale)),o=j(n.instanceId??""),i=j(""),s=j(""),l=j(""),d=j(""),m=j(""),p=j(""),g=j(""),x=j(""),b=j(""),E=j(""),S=j(""),R=j(""),I=ru({routing:"lead",collaboration:"roundtable",memory:"on",isolation:"worktree"}),C=j(!1),$=j(!1),D=j(!1),z=j(null),T=j([]),W=j([]),G=j([]),U=j([]),J=j(null);let q=!1;const ue=pe(()=>o.value||n.instanceId||""),de=pe(()=>{const ce=new Set;o.value&&ce.add(o.value);for(const Z of a.data.remoteInstances)ce.add(Z.instanceId);return[...ce]}),be=pe(()=>new Set(a.data.remoteInstances.filter(ce=>ce.online).map(ce=>ce.instanceId))),ge=pe(()=>T.value),se=pe(()=>W.value),O=pe(()=>G.value),Y=pe(()=>U.value),K=pe(()=>n.kind==="group"),X=pe(()=>n.kind==="direct"),Oe=pe(()=>n.kind==="session"?r("kindSession"):n.kind==="direct"?r("kindDirect"):n.kind==="group"?r("kindGroup"):r("kindTopic")),xt=pe(()=>!!(ue.value&&l.value.trim()&&p.value.trim()&&!D.value));function Tt(){s.value="",l.value="",d.value="",m.value="",p.value="",g.value="",x.value="",b.value="",E.value="",S.value="",R.value="",J.value=null,I.routing="lead",I.collaboration="roundtable",I.memory="on",I.isolation="worktree",z.value=null}async function mt(){const ce=i.value||ue.value;if(!ce||!l.value.trim()||!p.value.trim()){G.value=[],U.value=[],d.value="",m.value="";return}$.value=!0,G.value=[],U.value=[];try{G.value=await a.loadExecutionModels(ue.value,ce,l.value.trim(),p.value.trim()),d.value&&!G.value.some(Z=>Z.modelId===d.value)&&(d.value="");try{const Z=await a.loadExecutionCapabilities(ue.value,ce,l.value.trim(),p.value.trim());U.value=Object.keys(Z.efforts??{}),m.value&&!U.value.includes(m.value)&&(m.value="")}catch{U.value=[],m.value=""}}catch(Z){G.value=[],U.value=[],d.value="",m.value="",z.value=Z instanceof Error?Z.message:String(Z)}finally{$.value=!1}}async function dt(ce){const Z=i.value||ue.value;if(Z){C.value=!0;try{T.value=[],W.value=[],ce||(l.value="",p.value="",d.value="",m.value="");const[Q,ve]=await Promise.all([a.loadRemoteAgents(Z),a.loadInstanceWorkspaces(ue.value,Z)]);T.value=Q,W.value=ve,q=!0,(ce||!Q.some(ut=>ut.name===l.value))&&(l.value=Q[0]?.name??""),(ce||!ve.some(ut=>ut.id===p.value))&&(p.value=ve[0]?.id??""),q=!1,await mt()}catch(Q){z.value=Q instanceof Error?Q.message:String(Q)}finally{q=!1,C.value=!1}}}async function bt(){Tt(),C.value=!0;try{await a.loadRemoteInstances(!0),o.value||(o.value=n.instanceId??a.data.remoteInstances[0]?.instanceId??""),i.value=o.value,await dt(!0)}catch(ce){z.value=ce instanceof Error?ce.message:String(ce)}finally{C.value=!1}}Pe(()=>n.open,ce=>{ce&&bt()},{immediate:!0}),Pe(i,(ce,Z)=>{n.open&&Z&&ce!==Z&&dt(!1)}),Pe([l,p],()=>{n.open&&!q&&mt()});function gt(){return[...new Set(b.value.split(/[\s,]+/).map(ce=>ce.trim()).filter(Boolean))]}async function ft(){if(xt.value){D.value=!0,z.value=null;try{const ce=i.value||ue.value,Z=J.value??await a.createThread({instanceId:ue.value,kind:n.kind,...l.value.trim()?{agent:l.value.trim()}:{},...p.value.trim()?{workspace:p.value.trim()}:{},...s.value.trim()?{title:s.value.trim()}:{},...X.value&&g.value.trim()?{botId:g.value.trim()}:{},...K.value&&x.value.trim()?{groupId:x.value.trim()}:{},...ce===ue.value?{}:{executionInstanceId:ce}});J.value=Z;const Q={instanceId:ue.value,threadId:Z.id};if((d.value.trim()||m.value.trim())&&await a.switchSet(Q,{agent:l.value.trim(),...d.value.trim()?{model:d.value.trim()}:{},...m.value.trim()?{effort:m.value.trim()}:{},...ce===ue.value?{}:{executionInstanceId:ce}},Z.revision),X.value&&(E.value||S.value||R.value)&&await a.updateThread(Q,{settings:{...E.value?{persona:E.value}:{},...S.value?{avatar:S.value}:{},...R.value?{instructions:R.value}:{}}}),K.value){for(const ve of gt())await a.mutateParticipant(Q,{action:"add",botId:ve});await a.updatePolicy(Q,{routing:I.routing,collaboration:I.collaboration,memory:I.memory,isolation:I.isolation})}u("created",{thread:Z,scope:Q}),u("close")}catch(ce){z.value=ce instanceof Error?ce.message:String(ce)}finally{D.value=!1}}}function _e(){D.value||u("close")}return(ce,Z)=>e.open?(y(),_("div",{key:0,class:"thread-dialog-backdrop","data-test":"thread-dialog",onClick:Ne(_e,["self"]),onKeydown:Yu(_e,["esc"])},[c("section",{class:"thread-dialog",role:"dialog","aria-modal":"true","aria-label":r("newThreadAria")},[c("header",zp,[c("div",null,[c("p",Pp,A(r("dialogEyebrow")),1),c("h2",Np,A(Oe.value),1)]),c("button",{type:"button",class:"thread-dialog-close","data-test":"thread-dialog-close","aria-label":"Close",disabled:D.value,onClick:_e},[ae(H(fn),{size:18})],8,Bp)]),c("form",{class:"thread-dialog-body",onSubmit:Ne(ft,["prevent"])},[z.value?(y(),_("p",qp,A(z.value),1)):ee("",!0),c("label",jp,[c("span",null,A(r("instance")),1),Ce(c("select",{"onUpdate:modelValue":Z[0]||(Z[0]=Q=>o.value=Q),"data-test":"thread-dialog-instance",disabled:!!n.instanceId,onChange:Z[1]||(Z[1]=Q=>i.value=o.value)},[(y(!0),_(xe,null,Se(de.value,Q=>(y(),_("option",{key:Q,value:Q},A(Q),9,Hp))),128))],40,Up),[[vt,o.value]])]),c("label",Vp,[c("span",null,A(r("executionMachine")),1),Ce(c("select",{"onUpdate:modelValue":Z[2]||(Z[2]=Q=>i.value=Q),"data-test":"thread-dialog-execution"},[(y(!0),_(xe,null,Se(de.value,Q=>(y(),_("option",{key:Q,value:Q,disabled:!be.value.has(Q)&&Q!==ue.value},A(Q),9,Wp))),128))],512),[[vt,i.value]])]),c("label",Gp,[c("span",null,A(r("agent")),1),Ce(c("input",{"onUpdate:modelValue":Z[3]||(Z[3]=Q=>l.value=Q),"data-test":"thread-dialog-agent",list:"thread-agent-options",placeholder:"Agent name"},null,512),[[Ke,l.value]]),c("datalist",Kp,[(y(!0),_(xe,null,Se(ge.value,Q=>(y(),_("option",{key:Q.name,value:Q.name},A(Q.driver),9,Zp))),128))])]),c("label",Yp,[c("span",null,A(r("workspace")),1),Ce(c("select",{"onUpdate:modelValue":Z[4]||(Z[4]=Q=>p.value=Q),"data-test":"thread-dialog-workspace"},[c("option",Xp,A(r("selectWorkspace")),1),(y(!0),_(xe,null,Se(se.value,Q=>(y(),_("option",{key:Q.id,value:Q.id},A(Q.name)+" — "+A(Q.cwd),9,Jp))),128))],512),[[vt,p.value]])]),c("div",Qp,[c("label",e3,[c("span",null,A(r("model")),1),O.value.length?Ce((y(),_("select",{key:0,"onUpdate:modelValue":Z[5]||(Z[5]=Q=>d.value=Q),"data-test":"thread-dialog-model"},[c("option",t3,A(r("defaultOption")),1),(y(!0),_(xe,null,Se(O.value,Q=>(y(),_("option",{key:Q.modelId,value:Q.modelId},A(Q.name??Q.modelId),9,n3))),128))],512)),[[vt,d.value]]):Ce((y(),_("input",{key:1,"onUpdate:modelValue":Z[6]||(Z[6]=Q=>d.value=Q),"data-test":"thread-dialog-model",placeholder:r("defaultOption")},null,8,u3)),[[Ke,d.value]])]),c("label",a3,[c("span",null,A(r("effort")),1),Y.value.length?Ce((y(),_("select",{key:0,"onUpdate:modelValue":Z[7]||(Z[7]=Q=>m.value=Q),"data-test":"thread-dialog-effort"},[c("option",r3,A(r("defaultOption")),1),(y(!0),_(xe,null,Se(Y.value,Q=>(y(),_("option",{key:Q,value:Q},A(Q),9,o3))),128))],512)),[[vt,m.value]]):Ce((y(),_("input",{key:1,"onUpdate:modelValue":Z[8]||(Z[8]=Q=>m.value=Q),"data-test":"thread-dialog-effort",placeholder:r("defaultOption")},null,8,i3)),[[Ke,m.value]])])]),c("label",s3,[c("span",null,A(r("title")),1),Ce(c("input",{"onUpdate:modelValue":Z[9]||(Z[9]=Q=>s.value=Q),"data-test":"thread-dialog-title",maxlength:"500",placeholder:"Optional title"},null,512),[[Ke,s.value]])]),X.value?(y(),_(xe,{key:1},[c("label",l3,[c("span",null,A(r("botProfile")),1),Ce(c("input",{"onUpdate:modelValue":Z[10]||(Z[10]=Q=>g.value=Q),"data-test":"thread-dialog-bot",placeholder:"Bot id (optional)"},null,512),[[Ke,g.value]])]),c("label",c3,[c("span",null,A(r("persona")),1),Ce(c("input",{"onUpdate:modelValue":Z[11]||(Z[11]=Q=>E.value=Q),"data-test":"thread-dialog-persona",placeholder:"Short persona"},null,512),[[Ke,E.value]])]),c("label",d3,[c("span",null,A(r("avatar")),1),Ce(c("input",{"onUpdate:modelValue":Z[12]||(Z[12]=Q=>S.value=Q),"data-test":"thread-dialog-avatar",placeholder:"Emoji, URL, or JSON"},null,512),[[Ke,S.value]])]),c("label",f3,[c("span",null,A(r("instructions")),1),Ce(c("textarea",{"onUpdate:modelValue":Z[13]||(Z[13]=Q=>R.value=Q),"data-test":"thread-dialog-instructions",rows:"3",placeholder:"System instructions"},null,512),[[Ke,R.value]])])],64)):ee("",!0),K.value?(y(),_(xe,{key:2},[c("label",h3,[c("span",null,A(r("groupProfile")),1),Ce(c("input",{"onUpdate:modelValue":Z[14]||(Z[14]=Q=>x.value=Q),"data-test":"thread-dialog-group",placeholder:"Group id (optional)"},null,512),[[Ke,x.value]])]),c("label",p3,[c("span",null,A(r("members")),1),Ce(c("textarea",{"onUpdate:modelValue":Z[15]||(Z[15]=Q=>b.value=Q),"data-test":"thread-dialog-members",rows:"2",placeholder:"Bot ids, separated by commas or spaces"},null,512),[[Ke,b.value]])]),c("div",m3,[c("label",b3,[c("span",null,A(r("routing")),1),Ce(c("select",{"onUpdate:modelValue":Z[16]||(Z[16]=Q=>I.routing=Q),"data-test":"thread-dialog-routing"},[c("option",g3,A(r("routingLead")),1),c("option",v3,A(r("routingAutomatic")),1),c("option",y3,A(r("routingManual")),1)],512),[[vt,I.routing]])]),c("label",k3,[c("span",null,A(r("collaboration")),1),Ce(c("select",{"onUpdate:modelValue":Z[17]||(Z[17]=Q=>I.collaboration=Q),"data-test":"thread-dialog-collaboration"},[c("option",x3,A(r("collaborationNone")),1),c("option",w3,A(r("collaborationRoundtable")),1),c("option",_3,A(r("collaborationDispatch")),1)],512),[[vt,I.collaboration]])]),c("label",E3,[c("span",null,A(r("memory")),1),Ce(c("select",{"onUpdate:modelValue":Z[18]||(Z[18]=Q=>I.memory=Q),"data-test":"thread-dialog-memory"},[c("option",A3,A(r("memoryOn")),1),c("option",C3,A(r("memoryOff")),1)],512),[[vt,I.memory]])]),c("label",I3,[c("span",null,A(r("isolation")),1),Ce(c("select",{"onUpdate:modelValue":Z[19]||(Z[19]=Q=>I.isolation=Q),"data-test":"thread-dialog-isolation"},[c("option",S3,A(r("isolationShared")),1),c("option",T3,A(r("isolationDedicated")),1),c("option",D3,A(r("isolationWorktree")),1)],512),[[vt,I.isolation]])])])],64)):ee("",!0),c("footer",F3,[c("button",{type:"button",class:"thread-dialog-secondary",disabled:D.value,onClick:_e},A(r("cancel")),9,$3),c("button",{type:"submit",class:"thread-dialog-primary","data-test":"thread-dialog-submit",disabled:!xt.value},[D.value||C.value||$.value?(y(),Ue(H(io),{key:0,size:15,class:"spinning"})):ee("",!0),$e(" "+A(D.value?r("creating"):r("create")),1)],8,M3)])],32)],8,Op)],32)):ee("",!0)}}),L3=nt(R3,[["__scopeId","data-v-bbc310f4"]]);function O3(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function z3(e){const t=e.rpcs.find(n=>/(^|\.)(config|configure|configuration|settings|options)$/i.test(n.name));return O3(t?.input)?t.input:null}function P3(e){return(e.enum??e.anyOf?.find(n=>n.enum)?.enum??e.oneOf?.find(n=>n.enum)?.enum)?.length?"enum":e.type==="boolean"?"boolean":e.type==="number"||e.type==="integer"?"number":e.type==="object"||e.type==="array"?"json":"string"}function uu(e){const t=z3(e);if(!t?.properties)return[];const n=new Set(t.required??[]);return Object.entries(t.properties).map(([u,a])=>{const r=a.enum??a.anyOf?.find(o=>o.enum)?.enum??a.oneOf?.find(o=>o.enum)?.enum;return{key:u,label:a.title??u,type:P3(a),required:n.has(u),...a.description?{description:a.description}:{},...r?.length?{options:r}:{}}})}function N3(e){return typeof e!="object"||e===null||Array.isArray(e)?{}:{...e}}class Zu extends Error{constructor(t,n,u){super(u||t),this.code=t,this.status=n,this.detail=u,this.name="XacpxRpcError"}}function xn(e){return typeof e=="object"&&e!==null}function B3(e){if(xn(e)){if(typeof e.instanceId=="string"&&e.instanceId)return e.instanceId;if(typeof e.executionInstanceId=="string"&&e.executionInstanceId)return e.executionInstanceId}}function mi(e={}){const t=e.fetch??globalThis.fetch?.bind(globalThis),n=e.WebSocket??globalThis.WebSocket,u=(e.baseUrl??"").replace(/\/+$/,""),a=e.location??(typeof globalThis.location>"u"?void 0:globalThis.location);let r=e.token,o=null,i=!1,s=null,l=null,d=0;const m=new Map,p=e.reconnect?.baseDelayMs??250,g=e.reconnect?.maxDelayMs??8e3;function x(q){return`${u}${q}`}function b(){const q=x("/ws/rpc");if(/^wss?:\/\//.test(q))return E(q);const de=(u||(a?`${a.protocol}//${a.host}`:"")).replace(/^http:/,"ws:").replace(/^https:/,"wss:");return E(`${de}/ws/rpc`)}function E(q){return r?`${q}${q.includes("?")?"&":"?"}token=${encodeURIComponent(r)}`:q}async function S(q,ue={}){if(!t)throw new Error("fetch is unavailable in this environment");const de=new Headers(ue.headers);de.set("accept","application/json"),r&&de.set("authorization",`Bearer ${r}`),ue.body!==void 0&&de.set("content-type","application/json");const be=await t(x(q),{...ue,headers:de,credentials:"include"});if(be.status===204)return;const ge=await be.json().catch(()=>{});if(!be.ok){const se=xn(ge)?ge:{},O=typeof se.code=="string"?se.code:typeof se.error=="string"?se.error:`http-${be.status}`,Y=typeof se.message=="string"?se.message:typeof se.error=="string"?se.error:void 0;throw new Zu(O,be.status,Y)}if(xn(ge)&&ge.ok===!1){const se=typeof ge.code=="string"?ge.code:typeof ge.error=="string"?ge.error:"rpc-failed",O=typeof ge.message=="string"?ge.message:typeof ge.error=="string"?ge.error:void 0;throw new Zu(se,be.status,O)}return xn(ge)&&ge.ok===!0&&"data"in ge?ge.data:ge}async function R(q,ue){return S(q,{method:"POST",body:JSON.stringify(ue??{})})}function I(){return o||(o=S("/api/config").then(q=>{const ue=xn(q)?q:{};return{...ue,hostMode:ue.hostMode==="local"?"local":"relay",...typeof ue.defaultInstanceId=="string"?{defaultInstanceId:ue.defaultInstanceId}:{}}})),o}async function C(q,ue){const de=B3(ue);if(q||de||e.instanceId)return q||de||e.instanceId;const be=await I();if(be.defaultInstanceId)return be.defaultInstanceId;const ge=await S("/api/instances"),se=ge.instances?.find(O=>O.online!==!1)??ge.instances?.[0];if(!se?.id)throw new Zu("instance-required",400,"Relay mode requires an instance id");return se.id}async function $(q,ue={},de={}){const ge=(await I()).hostMode==="relay"?`/api/instances/${encodeURIComponent(await C(de.instanceId,ue))}/rpc`:"/api/rpc";return await R(ge,{name:q,input:ue})}async function D(q){const de=(await I()).hostMode==="relay"&&q?`?instanceId=${encodeURIComponent(q)}`:"";return await S(`/api/rpc/schema${de}`)}function z(q){if(xn(q))return typeof q.type=="string"?q.type:z(q.data??q.event)}function T(q){const ue=z(q);if(ue){for(const[de,be]of m)if(!(de!=="*"&&de!==ue))for(const ge of[...be])ge(q)}}function W(){if(i||m.size===0||l)return;d=Math.min(d+1,6);const q=Math.min(p*2**(d-1),g);l=setTimeout(()=>{l=null,G()},q)}function G(){if(i||s||m.size===0||!n)return;const q=new n(b());s=q,q.onopen=()=>{s===q&&(d=0)},q.onmessage=ue=>{if(s!==q)return;let de=ue.data;if(typeof de=="string")try{de=JSON.parse(de)}catch{return}else if(de instanceof Blob){de.text().then(be=>{try{T(JSON.parse(be))}catch{}});return}else if(de instanceof ArrayBuffer)try{de=JSON.parse(new TextDecoder().decode(de))}catch{return}T(de)},q.onclose=()=>{s===q&&(s=null,W())},q.onerror=()=>{}}function U(q,ue){if(i)return()=>{};const de=m.get(q)??new Set;return de.add(ue),m.set(q,de),G(),()=>{de.delete(ue),de.size===0&&m.delete(q),m.size===0&&(l&&clearTimeout(l),l=null,s?.close(),s=null)}}const J={config:I,me:()=>S("/api/me"),login:async q=>{const ue=await R("/api/login",{token:q});return r=q,o=null,ue},logout:async()=>{const q=await R("/api/logout",{});return r=void 0,q},instances:async()=>await S("/api/instances"),rpc:$,schema:D,on:U,ready:()=>{typeof window<"u"&&window.__xacpxWebReady?.()},rescueUrl:()=>`${u}/?safe=1`,webShell:{status:()=>$("plugin.web_shell.status",{}),activate:q=>$("plugin.web_shell.activate",{dir:q}),preview:q=>$("plugin.web_shell.preview",{dir:q}),reset:()=>$("plugin.web_shell.reset",{}),scaffold:q=>$("plugin.web_shell.scaffold",q),relayStatus:async()=>await S("/api/account/web-shell"),setRelayMode:q=>S("/api/account/web-shell",{method:"PUT",body:JSON.stringify(q)}),uploadRelayBundle:q=>S("/api/account/web-shell/bundle",{method:"PUT",body:JSON.stringify(q)}),resetRelay:()=>S("/api/account/web-shell",{method:"DELETE"})},dispose:()=>{i=!0,l&&clearTimeout(l),l=null,s?.close(),s=null,m.clear()}};return e.autoReady&&J.ready(),J}const q3={class:"plugins-panel","data-test":"plugins-panel"},j3={class:"plugins-panel-header"},U3={class:"plugins-panel-title"},H3=["disabled"],V3={key:0,class:"plugins-panel-error",role:"alert"},W3={key:0,class:"plugins-panel-empty"},G3={key:1,class:"plugins-panel-empty"},K3=["data-test"],Z3={class:"plugin-card-header"},Y3={class:"plugin-card-identity"},X3={key:0,class:"plugin-badge","data-test":"plugin-web-ui-badge"},J3={class:"plugin-card-tools"},Q3=["data-test","disabled","onClick"],e4=["data-test","disabled","onClick"],t4=["aria-checked","aria-label","data-test","disabled","onClick"],n4=["data-test"],u4=["data-test"],a4=["onSubmit"],r4={key:0},o4=["checked","data-test","onChange"],i4=["value","data-test","onChange"],s4={key:0,value:""},l4=["value"],c4=["value","data-test","onInput"],d4=["value","data-test","onInput"],f4=["value","data-test","onInput"],h4={key:5},p4={class:"plugin-config-actions"},m4={key:0,class:"plugin-saved","data-test":"plugin-saved"},b4=["data-test","disabled"],g4={key:3,class:"plugin-no-config"},v4={key:2,class:"plugin-market","data-test":"plugin-market"},y4=["disabled"],k4={key:0,class:"plugins-panel-empty"},x4={key:1,class:"plugins-panel-empty"},w4={class:"plugin-card-header"},_4={class:"plugin-card-identity"},E4=["data-test","disabled","onClick"],A4={key:3,class:"plugin-local","data-test":"plugin-local"},C4=["disabled"],I4={key:4,class:"plugin-web-shell","data-test":"web-shell-panel"},S4={class:"web-shell-head"},T4=["aria-label","disabled"],D4={class:"web-shell-copy"},F4={key:0,class:"plugins-panel-empty"},$4={key:1,class:"plugins-panel-error",role:"alert","data-test":"web-shell-error"},M4={key:2,class:"web-shell-status","data-test":"web-shell-status"},R4={"data-test":"web-shell-mode"},L4={key:0,"data-test":"web-shell-directory"},O4={class:"web-shell-field"},z4=["placeholder"],P4={class:"web-shell-actions"},N4=["disabled"],B4=["disabled"],q4={class:"web-shell-field"},j4=["disabled"],U4=["value"],H4={key:0,class:"plugins-panel-empty"},V4={class:"web-shell-actions"},W4=["disabled"],G4=["disabled"],K4=He({__name:"PluginsPanel",props:{store:{},instanceId:{},webShellEnabled:{type:Boolean},hostMode:{},authToken:{}},emits:["createWithAgent","createWebShellWithAgent"],setup(e,{emit:t}){const n=e,u=t,a=n.store??Vn(),r=Cn(mn,null),o=pe(()=>a.data.plugins),i=j("installed"),s=j(!1),l=j(!1),d=j(null),m=j(null),p=ru({}),g=ru({}),x=ru({}),b=j(""),E=j(""),S=j([]),R=j(!1),I=j(null),C=j(null),$=j(n.hostMode??"local"),D=j(""),z=j([]),T=j(n.instanceId??""),W=j(!1);let G=null;function U(P){return`plugin.${P.id}`}function J(P,B){return`${P.id}:${B.key}`}function q(P){return g[P.id]??={},g[P.id]}function ue(P,B){const N=q(P)[B.key];return B.type==="boolean"?!!N:N==null?"":typeof N=="string"||typeof N=="number"||typeof N=="boolean"?N:""}function de(P,B,N){q(P)[B.key]=N}function be(P,B,N){const le=N.target;B.type==="boolean"?de(P,B,le.checked):B.type==="number"?de(P,B,le.value===""?null:Number(le.value)):de(P,B,le.value)}function ge(P,B,N){x[J(P,B)]=N.target.value}function se(P){const B=q(P);for(const N of uu(P)){if(N.type!=="json")continue;const le=B[N.key];x[J(P,N)]=le===void 0?"":JSON.stringify(le,null,2)}}async function O(){l.value=!0;try{const P=await a.rpc("plugin.market.catalog",{});S.value=Array.isArray(P)?P:P.plugins??P.catalog??[]}catch{S.value=[]}finally{l.value=!1}}async function Y(){s.value=!0,d.value=null,m.value=null;for(const P of Object.keys(g))delete g[P];for(const P of Object.keys(x))delete x[P];try{const P=await a.listPlugins();for(const B of P){if(q(B),n.instanceId)try{const N=await a.getSetting({scope:"instance",instanceId:n.instanceId,key:U(B)});g[B.id]=N3(N)}catch{}se(B)}await O()}catch(P){d.value=P instanceof Error?P.message:String(P)}finally{s.value=!1}}async function K(){await r?.refresh()}async function X(P){p[P.id]=!0,d.value=null;try{await a.setPlugin(P.id,!P.enabled),await K()}catch(B){d.value=B instanceof Error?B.message:String(B)}finally{p[P.id]=!1}}function Oe(P){const B=q(P),N={};for(const le of uu(P))if(le.type==="json"){if(!Object.prototype.hasOwnProperty.call(B,le.key))continue;const Ie=x[J(P,le)]?.trim()??"";N[le.key]=Ie?JSON.parse(Ie):null}else Object.prototype.hasOwnProperty.call(B,le.key)&&(N[le.key]=B[le.key]);return N}async function xt(P){p[P.id]=!0,d.value=null,m.value=null;try{const B=Oe(P);await a.setPlugin(P.id,P.enabled,B),n.instanceId&&await a.updateSetting({scope:"instance",instanceId:n.instanceId,key:U(P),value:B}),m.value=P.id,await K()}catch(B){d.value=B instanceof Error?B.message:JSON.stringify(B)}finally{p[P.id]=!1}}async function Tt(P){p[P.id]=!0,d.value=null;try{await a.rpc("plugin.market.reload",{pluginId:P.id}),await Y(),await K()}catch(B){d.value=B instanceof Error?B.message:String(B)}finally{p[P.id]=!1}}async function mt(P){p[P.id]=!0,d.value=null;try{await a.rpc("plugin.market.uninstall",{pluginId:P.id}),await Y(),await K()}catch(B){d.value=B instanceof Error?B.message:String(B)}finally{p[P.id]=!1}}async function dt(P){const B=P.trim();if(B){p.market=!0,d.value=null;try{await a.rpc("plugin.market.install",{kind:"npm",spec:B}),b.value="",await Y(),await K()}catch(N){d.value=N instanceof Error?N.message:String(N)}finally{p.market=!1}}}async function bt(){const P=E.value.trim();if(P){p.local=!0,d.value=null;try{await a.rpc("plugin.market.install",{kind:"local",path:P}),E.value="",await Y(),await K()}catch(B){d.value=B instanceof Error?B.message:String(B)}finally{p.local=!1}}}function gt(P){return P.rpcs.map(B=>B.name).filter(B=>B.startsWith(`plugin.${P.id}.`))}function ft(P){return P.spec??P.id??P.name??""}function _e(P){const B=ft(P);return o.value.some(N=>N.id===P.id||N.id===B)}function ce(P){return jt.global.t(`webShell.${P}`)}function Z(){const P=C.value;return P?.activeDir??P?.previewDir??P?.directory??P?.dir??P?.path??P?.sourcePath??""}function Q(){const P=C.value?.mode??"builtin";return ce(P==="custom"||P==="directory"||P==="local"?"customDirectory":P==="instance"?"boundInstance":P==="bundle"||P==="uploaded"?"personalBundle":"builtin")}async function ve(){R.value=!0,I.value=null,G??=mi({instanceId:n.instanceId,token:n.authToken});try{const P=await G.config();if($.value=P.hostMode,P.hostMode==="relay"){const[B,N]=await Promise.all([G.webShell.relayStatus(),G.instances()]);C.value=B,z.value=N.instances.filter(le=>le.online!==!1),T.value=B.instanceId||T.value||z.value[0]?.id||""}else z.value=[],C.value=await G.webShell.status()}catch(P){I.value=P instanceof Error?P.message:String(P)}finally{R.value=!1}}async function ut(){const P=D.value.trim()||Z();if(!(!P||!G)){W.value=!0,I.value=null;try{await G.webShell.activate(P),await ve()}catch(B){I.value=B instanceof Error?B.message:String(B)}finally{W.value=!1}}}async function Vt(){if(G){W.value=!0,I.value=null;try{const B=(D.value.trim().split(/[\\/]/).filter(Boolean).at(-1)??"").toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"custom-web",N=await G.webShell.scaffold({name:B,template:"minimal"});D.value=N.dir??D.value,await ve()}catch(P){I.value=P instanceof Error?P.message:String(P)}finally{W.value=!1}}}async function et(){W.value=!0,I.value=null;let P=null;try{if($.value==="local"&&G){const wt=D.value.trim()||Z();wt&&await G.webShell.preview(wt),window.open("/__preview/","_blank","noopener,noreferrer");return}const B=C.value?.previewMode;if(!($.value==="relay"&&(B===void 0||B==="none"||B===""))){window.open("/__preview/","_blank","noopener,noreferrer");return}if(!G)throw new Error("Web Shell is still loading");const le=T.value.trim(),Ie=typeof C.value?.bundleFiles=="number"&&C.value.bundleFiles>0;if(!le&&!Ie)throw new Error("Select an online instance before previewing");const at=window.open("about:blank","_blank");P=at,at&&(at.opener=null),await G.webShell.setRelayMode(Ie&&!le?{previewMode:"bundle"}:{previewMode:"instance",previewInstanceId:le}),await ve(),at?at.location.href="/__preview/":window.open("/__preview/","_blank","noopener,noreferrer"),P=null}catch(B){P?.close(),I.value=B instanceof Error?B.message:String(B)}finally{W.value=!1}}async function Wt(){if(G){W.value=!0,I.value=null;try{$.value==="relay"?await G.webShell.resetRelay():await G.webShell.reset(),await ve()}catch(P){I.value=P instanceof Error?P.message:String(P)}finally{W.value=!1}}}async function $t(){if(!(!G||!T.value)){W.value=!0,I.value=null;try{await G.webShell.setRelayMode({mode:"instance",instanceId:T.value}),await ve()}catch(P){I.value=P instanceof Error?P.message:String(P)}finally{W.value=!1}}}return rn(()=>G?.dispose()),Ct(()=>{Y()}),Pe(()=>n.instanceId,()=>{G?.dispose(),G=null,C.value=null,D.value="",z.value=[],T.value=n.instanceId??"",I.value=null,Y()}),Pe(()=>n.authToken,()=>{G?.dispose(),G=null,i.value==="web-shell"&&ve()}),(P,B)=>(y(),_("section",q3,[c("header",j3,[c("div",null,[B[12]||(B[12]=c("p",{class:"plugins-panel-eyebrow"},"Cordis Kernel",-1)),c("h2",U3,[ae(H(l0),{size:17}),B[11]||(B[11]=$e(" Plugin Center",-1))])]),c("button",{type:"button",class:"plugins-panel-icon","data-test":"plugins-refresh","aria-label":"Refresh plugins",disabled:s.value,onClick:Y},[ae(H(Ju),{size:16,class:De({spinning:s.value})},null,8,["class"])],8,H3)]),c("nav",{class:De(["plugins-tabs",{"has-web-shell":e.webShellEnabled}]),"aria-label":"Plugin center sections"},[c("button",{type:"button","data-test":"plugins-tab-installed",class:De({active:i.value==="installed"}),onClick:B[0]||(B[0]=N=>i.value="installed")},"Installed",2),c("button",{type:"button","data-test":"plugins-tab-market",class:De({active:i.value==="market"}),onClick:B[1]||(B[1]=N=>i.value="market")},"Marketplace",2),c("button",{type:"button","data-test":"plugins-tab-local",class:De({active:i.value==="local"}),onClick:B[2]||(B[2]=N=>i.value="local")},"Local private",2),e.webShellEnabled?(y(),_("button",{key:0,type:"button","data-test":"plugins-tab-web-shell",class:De({active:i.value==="web-shell"}),onClick:B[3]||(B[3]=N=>{i.value="web-shell",ve()})},"Web Shell",2)):ee("",!0)],2),d.value?(y(),_("p",V3,A(d.value),1)):ee("",!0),i.value==="installed"?(y(),_(xe,{key:1},[s.value&&o.value.length===0?(y(),_("p",W3,"Loading plugins…")):o.value.length===0?(y(),_("p",G3,"No Cordis plugins loaded.")):ee("",!0),(y(!0),_(xe,null,Se(o.value,N=>(y(),_("article",{key:N.id,class:"plugin-card","data-test":`plugin-card-${N.id}`},[c("header",Z3,[c("div",Y3,[c("h3",null,[$e(A(N.name)+" ",1),N.webAssetUrl?(y(),_("span",X3,"Web UI")):ee("",!0)]),c("p",null,[c("code",null,A(N.id),1),$e(" · v"+A(N.version),1)])]),c("div",J3,[c("button",{type:"button",class:"plugins-panel-icon","data-test":`plugin-reload-${N.id}`,"aria-label":"Reload plugin",disabled:p[N.id],onClick:le=>Tt(N)},[ae(H(c0),{size:15})],8,Q3),c("button",{type:"button",class:"plugins-panel-icon danger","data-test":`plugin-uninstall-${N.id}`,"aria-label":"Uninstall plugin",disabled:p[N.id],onClick:le=>mt(N)},[ae(H(lo),{size:15})],8,e4),c("button",{type:"button",role:"switch",class:De(["plugin-switch",{on:N.enabled}]),"aria-checked":N.enabled,"aria-label":`${N.enabled?"Disable":"Enable"} ${N.name}`,"data-test":`plugin-toggle-${N.id}`,disabled:p[N.id],onClick:le=>X(N)},[...B[13]||(B[13]=[c("span",null,null,-1)])],10,t4)])]),N.loadError?(y(),_("p",{key:0,class:"plugin-load-error",role:"alert","data-test":`plugin-load-error-${N.id}`},A(N.loadError),9,n4)):ee("",!0),gt(N).length?(y(),_("div",{key:1,class:"plugin-extensions","data-test":`plugin-extensions-${N.id}`},[B[14]||(B[14]=c("p",null,"Registered capabilities",-1)),c("ul",null,[(y(!0),_(xe,null,Se(gt(N),le=>(y(),_("li",{key:le},[c("code",null,A(le),1)]))),128))])],8,u4)):ee("",!0),H(uu)(N).length?(y(),_("form",{key:2,class:"plugin-config",onSubmit:Ne(le=>xt(N),["prevent"])},[B[16]||(B[16]=c("p",{class:"plugin-config-title"},"Configuration",-1)),(y(!0),_(xe,null,Se(H(uu)(N),le=>(y(),_("label",{key:le.key,class:"plugin-field"},[c("span",null,[$e(A(le.label),1),le.required?(y(),_("em",r4,"*")):ee("",!0)]),le.type==="boolean"?(y(),_("input",{key:0,type:"checkbox",checked:!!ue(N,le),"data-test":`plugin-field-${N.id}-${le.key}`,onChange:Ie=>be(N,le,Ie)},null,40,o4)):le.type==="enum"?(y(),_("select",{key:1,value:ue(N,le),"data-test":`plugin-field-${N.id}-${le.key}`,onChange:Ie=>be(N,le,Ie)},[le.required?ee("",!0):(y(),_("option",s4,"Default")),(y(!0),_(xe,null,Se(le.options,Ie=>(y(),_("option",{key:String(Ie),value:Ie},A(Ie),9,l4))),128))],40,i4)):le.type==="number"?(y(),_("input",{key:2,type:"number",value:ue(N,le),"data-test":`plugin-field-${N.id}-${le.key}`,onInput:Ie=>be(N,le,Ie)},null,40,c4)):le.type==="json"?(y(),_("textarea",{key:3,value:x[J(N,le)],rows:"3","data-test":`plugin-field-${N.id}-${le.key}`,placeholder:"{ }",onInput:Ie=>ge(N,le,Ie)},null,40,d4)):(y(),_("input",{key:4,type:"text",value:ue(N,le),"data-test":`plugin-field-${N.id}-${le.key}`,onInput:Ie=>be(N,le,Ie)},null,40,f4)),le.description?(y(),_("small",h4,A(le.description),1)):ee("",!0)]))),128)),c("div",p4,[m.value===N.id?(y(),_("span",m4,"Saved")):ee("",!0),c("button",{type:"submit","data-test":`plugin-save-${N.id}`,disabled:p[N.id]||s.value},[p[N.id]?(y(),Ue(H(io),{key:0,size:14,class:"spinning"})):ee("",!0),B[15]||(B[15]=$e("Save configuration",-1))],8,b4)])],40,a4)):(y(),_("p",g4,"This plugin declares no configuration schema."))],8,K3))),128)),B[17]||(B[17]=c("p",{class:"plugin-cli-hint","data-test":"plugin-cli-recovery"},[$e("CLI recovery: "),c("code",null,"xacpx plugin remove <id>"),$e(" · "),c("code",null,"xacpx plugin disable <id>")],-1))],64)):i.value==="market"?(y(),_("div",v4,[c("form",{class:"plugin-install-row",onSubmit:B[5]||(B[5]=Ne(N=>dt(b.value),["prevent"]))},[Ce(c("input",{"onUpdate:modelValue":B[4]||(B[4]=N=>b.value=N),"data-test":"market-npm-spec","aria-label":"npm package spec",placeholder:"@scope/xacpx-plugin or package@version"},null,512),[[Ke,b.value]]),c("button",{type:"submit","data-test":"market-install-custom",disabled:p.market||!b.value.trim()},[ae(H(Va),{size:14}),B[18]||(B[18]=$e(" Install npm",-1))],8,y4)],32),l.value?(y(),_("p",k4,"Loading marketplace…")):S.value.length?ee("",!0):(y(),_("p",x4,"Marketplace catalog is unavailable.")),(y(!0),_(xe,null,Se(S.value,N=>(y(),_("article",{key:ft(N),class:"plugin-card"},[c("header",w4,[c("div",_4,[c("h3",null,A(N.name??N.id),1),c("p",null,A(N.description??N.spec??N.id),1)]),c("button",{type:"button",class:"plugin-install-button","data-test":`market-install-${N.id??ft(N)}`,disabled:p.market||_e(N),onClick:le=>dt(ft(N))},[ae(H(Va),{size:14}),$e(" "+A(_e(N)?"Installed":"Install"),1)],8,E4)])]))),128))])):i.value==="local"?(y(),_("div",A4,[c("button",{type:"button",class:"plugin-agent-button","data-test":"plugin-create-with-agent",onClick:B[6]||(B[6]=N=>u("createWithAgent"))},[ae(H(Fu),{size:16}),B[19]||(B[19]=$e(" Create a plugin with Agent",-1))]),B[21]||(B[21]=c("p",{class:"plugin-local-copy"},[$e("The Agent will read "),c("code",null,"plugin_sdk_docs"),$e(", scaffold with "),c("code",null,"plugin_scaffold"),$e(", write the code, and hot-install it with "),c("code",null,"plugin_install_local"),$e(".")],-1)),c("form",{class:"plugin-install-row",onSubmit:Ne(bt,["prevent"])},[Ce(c("input",{"onUpdate:modelValue":B[7]||(B[7]=N=>E.value=N),"data-test":"local-plugin-path","aria-label":"Local plugin directory",placeholder:"D:/path/to/my-plugin"},null,512),[[Ke,E.value]]),c("button",{type:"submit","data-test":"local-plugin-install",disabled:p.local||!E.value.trim()},[ae(H(t0),{size:14}),B[20]||(B[20]=$e(" Install local",-1))],8,C4)],32)])):i.value==="web-shell"?(y(),_("div",I4,[c("header",S4,[c("div",null,[ae(H(Qi),{size:17}),c("h3",null,A(ce("title")),1)]),c("button",{type:"button",class:"plugins-panel-icon","data-test":"web-shell-refresh","aria-label":ce("refresh"),disabled:R.value,onClick:ve},[ae(H(Ju),{size:15,class:De({spinning:R.value})},null,8,["class"])],8,T4)]),c("p",D4,A($.value==="relay"?ce("relayCopy"):ce("localCopy")),1),R.value?(y(),_("p",F4,A(ce("loading")),1)):ee("",!0),I.value?(y(),_("p",$4,A(I.value),1)):ee("",!0),C.value?(y(),_("div",M4,[c("span",null,A(ce("currentMode")),1),c("strong",R4,A(Q()),1),Z()?(y(),_("code",L4,A(Z()),1)):ee("",!0)])):ee("",!0),$.value==="local"?(y(),_(xe,{key:3},[c("label",O4,[c("span",null,A(ce("directory")),1),Ce(c("input",{"onUpdate:modelValue":B[8]||(B[8]=N=>D.value=N),"data-test":"web-shell-directory-input",placeholder:Z()||ce("directoryPlaceholder")},null,8,z4),[[Ke,D.value]])]),c("div",P4,[c("button",{type:"button","data-test":"web-shell-activate",disabled:W.value||!(D.value.trim()||Z()),onClick:ut},[ae(H(Ji),{size:14}),$e(" "+A(ce("activate")),1)],8,N4),c("button",{type:"button","data-test":"web-shell-scaffold",disabled:W.value,onClick:Vt},[ae(H(Fu),{size:14}),$e(" "+A(ce("scaffold")),1)],8,B4)])],64)):(y(),_(xe,{key:4},[c("label",q4,[c("span",null,A(ce("onlineInstance")),1),Ce(c("select",{"onUpdate:modelValue":B[9]||(B[9]=N=>T.value=N),"data-test":"web-shell-instance",disabled:W.value||!z.value.length,onChange:$t},[(y(!0),_(xe,null,Se(z.value,N=>(y(),_("option",{key:N.id,value:N.id},A(N.name??N.id),9,U4))),128))],40,j4),[[vt,T.value]])]),z.value.length?ee("",!0):(y(),_("p",H4,A(ce("noInstances")),1))],64)),c("div",V4,[c("button",{type:"button","data-test":"web-shell-preview",disabled:W.value,onClick:et},[ae(H(e0),{size:14}),$e(" "+A(ce("preview")),1)],8,W4),c("button",{type:"button",class:"danger","data-test":"web-shell-reset",disabled:W.value,onClick:Wt},[ae(H(pa),{size:14}),$e(" "+A(ce("reset")),1)],8,G4)]),c("button",{type:"button",class:"plugin-agent-button","data-test":"web-shell-create-with-agent",onClick:B[10]||(B[10]=N=>u("createWebShellWithAgent"))},[ae(H(Fu),{size:16}),$e(" "+A(ce("agent")),1)])])):ee("",!0)]))}}),Z4=nt(K4,[["__scopeId","data-v-a12798df"]]),Jr="https://cdn.jsdmirror.com/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/fonts",su="JetBrainsMono NFM";let Qr=!1,au;function Y4(){return au||(au=(async()=>{try{if(typeof document>"u")return;if(!Qr){Qr=!0;const t=document.createElement("style");t.dataset.terminalFont="1",t.textContent=`
|
|
232
|
+
@font-face{font-family:"${su}";font-weight:400;font-style:normal;font-display:swap;
|
|
233
|
+
src:url("${Jr}/JetBrainsMonoNerdFontMono-Regular.woff2") format("woff2");}
|
|
234
|
+
@font-face{font-family:"${su}";font-weight:700;font-style:normal;font-display:swap;
|
|
235
|
+
src:url("${Jr}/JetBrainsMonoNerdFontMono-Bold.woff2") format("woff2");}`,document.head.appendChild(t)}const e=document.fonts;if(e?.load){let t;const n=new Promise(u=>{t=setTimeout(u,4e3)});await Promise.race([Promise.resolve(e.load(`13px "${su}"`)).then(()=>{},()=>{}),n]),t&&clearTimeout(t)}}catch{}})(),au)}const eo="",hu="[relay-web] xterm iOS IME insertText patch failed: private _core/_keyUp/_compositionHelper surface missing";function bi(e,t){let n=0;for(;n<e.length&&n<t.length&&e.charCodeAt(n)===t.charCodeAt(n);)n++;return n}function X4(e,t){if(t===e)return;if(t.length<e.length)return eo;const n=bi(e,t),u=e.length-n,a=t.slice(n);return`${eo.repeat(u)}${a}`}function to(e){return e?!!(e.isComposing||e._isComposing):!1}function J4(e){return!!e?._isSendingComposition}function Q4(e){const t=e,n=t._core;if(!n||typeof n._keyUp!="function"||typeof n._inputEvent!="function"||!n.coreService||typeof n.coreService.triggerDataEvent!="function"||typeof t.open!="function")return!1;if(n.__xacpxIosImePatched)return!0;const u={baseline:void 0,timer:void 0,timerFired:!1,keyupFired:!1,cycleActive:!1},a=()=>t.textarea??n.textarea,r=()=>{u.timer!==void 0&&(clearTimeout(u.timer),u.timer=void 0),u.baseline=void 0,u.timerFired=!1,u.keyupFired=!1,u.cycleActive=!1},o=g=>{const x=n._compositionHelper;if(g==="timer"?u.timerFired=!0:u.keyupFired=!0,!(u.baseline===void 0&&!u.cycleActive)){if(to(x)){r();return}if(u.baseline!==void 0){const b=a();if(b){const E=u.baseline,S=b.value,R=X4(E,S);R!==void 0&&(n.coreService.triggerDataEvent(R,!0),x&&(x._dataAlreadySent=S.length<E.length?S:S.slice(bi(E,S))),u.baseline=void 0)}}u.timerFired&&u.keyupFired&&r()}},i=()=>{u.timer===void 0&&(u.timerFired=!1,u.timer=setTimeout(()=>{u.timer=void 0,o("timer")},0))},s=()=>{const g=a();u.baseline===void 0&&(u.baseline=g?.value??"",u.keyupFired=!1),u.cycleActive=!0,i()},l=n._keyUp.bind(n);n._keyUp=function(x){l(x),o("keyup")};const d=n._inputEvent.bind(n);n._inputEvent=function(x){return u.cycleActive?!1:d(x)};const m=()=>{const g=n._compositionHelper,x=a();if(!g||typeof g.keydown!="function"||!x||typeof g.compositionstart!="function")return!1;if(g.__xacpxIosImePatched)return!0;const b=g.keydown.bind(g);g.keydown=function(R){return to(this)||J4(this)?b(R):R.keyCode===229?(s(),!1):b(R)};const E=g.compositionstart.bind(g);return g.compositionstart=function(){r(),E()},g.__xacpxIosImePatched=!0,!0},p=t.open.bind(t);return t.open=g=>{if(p(g),!m())throw console.error(hu),new Error(hu)},n.__xacpxIosImePatched=!0,n._compositionHelper?m():!0}function e6(e){if(!Q4(e))throw console.error(hu),new Error(hu)}let t6;const gi=14;async function n6(e,t,n,u,a){const[{Terminal:r}]=await Promise.all([lu(()=>import("./xterm-CASmyfyk.js"),[]),t6??=lu(()=>Promise.resolve({}),__vite__mapDeps([3]))]);await Y4();const o=new r({cols:e,rows:t,fontFamily:n,fontSize:u,...a?{theme:a}:{}});return e6(o),{open:i=>o.open(i),write:i=>new Promise(s=>{o.write(i,s)}),resize:(i,s)=>o.resize(i,s),reset:()=>o.reset(),dispose:()=>o.dispose(),onData:i=>{o.onData(i)},onBinary:i=>{o.onBinary(i)},focus:()=>o.focus(),paste:i=>o.paste(i),getSelection:()=>o.getSelection(),setTheme:i=>{o.options.theme=i},scrollLines:i=>o.scrollLines(i),scrollBarWidth:()=>o.options.scrollback===0?0:o.options.overviewRuler?.width||gi,get buffer(){return o.buffer},get element(){return o.element},get cols(){return o.cols},get rows(){return o.rows}}}function u6(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n)&255;return t}function a6(e,t){let n,u=!1;const a=t.fontFamily??`"${su}", monospace`,r=t.fontSize??13;let o,i;const s=new Promise((b,E)=>{o=b,i=E});s.catch(()=>{});let l;const d=new Promise(b=>{l=b}),m=t.factory?t.factory(t.cols,t.rows):n6(t.cols,t.rows,a,r,t.theme);Promise.resolve(m).then(b=>{if(u){b.dispose();return}n=b,b.open(e),b.onData(t.onData),t.onBinary&&b.onBinary?.(E=>{u||t.onBinary(u6(E))}),o()},b=>{u||i(b)});let g=s.catch(()=>{});function x(b){const E=g.then(async()=>{u||!n||await Promise.race([b(n),d])});return g=E.catch(()=>{}),E}return{ready:()=>u?Promise.reject(new Error("terminal adapter disposed")):s,write:b=>x(E=>E.write(b)),resize:(b,E)=>{x(S=>{S.resize(b,E)})},resetAndReplay:(b,E,S)=>x(async R=>{R.reset(),R.resize(E,S),await R.write(b)}),dispose:()=>{u||(u=!0,l(),i(new Error("terminal adapter disposed")),n?.dispose(),n=void 0)},focus:()=>{x(b=>{b.focus?.()})},getSelection:()=>n?.getSelection?.()??"",setTheme:b=>{x(E=>{E.setTheme?.(b)})},scrollLines:b=>n?.scrollLines?.(b),fit:(b=0)=>{if(!n?.element||!n.cols||!n.rows)return null;const E=n.element.querySelector(".xterm-screen");if(!E)return null;const S=E.getBoundingClientRect(),R=S.width/n.cols,I=S.height/n.rows;if(!(R>0)||!(I>0))return null;const C=n.scrollBarWidth?.()??gi;return{cols:Math.max(2,Math.floor((e.clientWidth-C)/R)),rows:Math.max(1,Math.floor((e.clientHeight+b)/I))}},localGeometry:()=>{if(!n?.element||!n.rows)return null;const b=n.element.querySelector(".xterm-screen");if(!b)return null;const E=b.getBoundingClientRect();return E.height>0?{cellHeight:E.height/n.rows,screenHeight:E.height,cursorY:n.buffer?.active?.cursorY??0}:null},cols:()=>n?.cols??t.cols,rows:()=>n?.rows??t.rows}}const r6={class:"thread-terminal","data-test":"thread-terminal"},o6={class:"thread-terminal-bar"},i6={class:"thread-terminal-title"},s6=["data-status"],l6={class:"thread-terminal-actions"},c6=["aria-label"],d6=["aria-label"],f6=He({__name:"ThreadTerminal",props:{store:{},scope:{},active:{type:Boolean,default:!0},locale:{}},setup(e){const t=e,n=j(null),u=j("idle"),a=j(""),r=j(null);let o=null,i=null,s=null,l=null,d="",m=-1,p=0,g=[];const x=pe(()=>{const U=ht(t.locale);return u.value==="open"?Le("connected",U):u.value==="connecting"?Le("opening",U):u.value==="closed"?Le("closed",U):u.value==="error"?a.value||Le("terminalUnavailable",U):Le("terminal",U)}),b=U=>Le(U,ht(t.locale));function E(){if(typeof getComputedStyle!="function")return;const U=getComputedStyle(document.documentElement),J=U.getPropertyValue("--bg").trim(),q=U.getPropertyValue("--fg").trim();return{...J?{background:J}:{},...q?{foreground:q}:{}}}function S(U){let J="";for(let ue=0;ue<U.length;ue+=32768)J+=String.fromCharCode(...U.subarray(ue,ue+32768));return btoa(J)}function R(U){const J=atob(U),q=new Uint8Array(J.length);for(let ue=0;ue<J.length;ue++)q[ue]=J.charCodeAt(ue);return q}function I(U){const J=r.value;!J||u.value!=="open"||U.length===0||t.store.client.rpc["terminal.input"]({instanceId:t.scope.instanceId,terminalId:J,dataBase64:S(U)}).catch(q=>{a.value=q instanceof Error?q.message:String(q)})}function C(U){if(U.type!=="terminal.output"||U.instanceId!==t.scope.instanceId)return;const J=r.value;if(!J){g.length<100&&g.push(U);return}if(U.terminalId===J){if(U.generation!==d){d=U.generation,m=U.sequence;const q=o?.cols()??80,ue=o?.rows()??24;o?.resetAndReplay(R(U.dataBase64),q,ue);return}U.sequence<=m||(m=U.sequence,o?.write(R(U.dataBase64)))}}function $(){const U=g;g=[];for(const J of U)C(J)}async function D(){if(!t.active||!n.value)return;await T();const U=++p;u.value="connecting",a.value="",r.value=null,m=-1,g=[];const J=a6(n.value,{cols:80,rows:24,theme:E(),onData:q=>I(new TextEncoder().encode(q)),onBinary:q=>I(q)});o=J,i=t.store.client.subscribe(C),s=t.store.client.onReconnect(()=>{D()});try{if(await J.ready(),U!==p)return;const q=J.fit()??{cols:80,rows:24};J.resize(q.cols,q.rows);const ue=await t.store.client.rpc["terminal.open"]({instanceId:t.scope.instanceId,threadId:t.scope.threadId,cols:q.cols,rows:q.rows});if(U!==p){t.store.client.rpc["terminal.close"]({instanceId:t.scope.instanceId,terminalId:ue.terminalId}).catch(()=>{});return}r.value=ue.terminalId,d=ue.generation,u.value="open",$(),J.focus(),z(J)}catch(q){if(U!==p)return;u.value="error",a.value=q instanceof Error?q.message:String(q),J.dispose(),o===J&&(o=null),i?.(),i=null,s?.(),s=null}}function z(U){if(l?.disconnect(),typeof ResizeObserver>"u"||!n.value)return;let J=!1;l=new ResizeObserver(()=>{if(J)return;J=!0;const q=()=>{if(J=!1,o!==U||u.value!=="open")return;const ue=U.fit();if(!ue||ue.cols===U.cols()&&ue.rows===U.rows())return;U.resize(ue.cols,ue.rows);const de=r.value;de&&t.store.client.rpc["terminal.resize"]({instanceId:t.scope.instanceId,terminalId:de,cols:ue.cols,rows:ue.rows}).catch(()=>{})};typeof requestAnimationFrame=="function"?requestAnimationFrame(q):setTimeout(q,0)}),l.observe(n.value)}async function T(U=!0){p++,l?.disconnect(),l=null,i?.(),i=null,s?.(),s=null,o?.dispose(),o=null,g=[];const J=r.value;r.value=null,u.value="closed",!(!U||!J)&&await t.store.client.rpc["terminal.close"]({instanceId:t.scope.instanceId,terminalId:J}).catch(()=>{})}async function W(){const U=o?.getSelection()??"";if(U)try{await navigator.clipboard?.writeText(U)}catch{}}async function G(){if(u.value==="open")try{const U=await navigator.clipboard?.readText();U&&I(new TextEncoder().encode(U))}catch{}}return Pe(()=>[t.scope.instanceId,t.scope.threadId,t.active],([,,U])=>{U?D():T()}),Ct(()=>{t.active&&D()}),rn(()=>{T()}),(U,J)=>(y(),_("section",r6,[c("header",o6,[ae(H(so),{size:14}),c("span",i6,A(e.scope.threadId),1),c("span",{class:"thread-terminal-status","data-status":u.value},A(x.value),9,s6),c("div",l6,[u.value==="error"?(y(),_("button",{key:0,type:"button",class:"thread-terminal-retry","data-test":"thread-terminal-retry",onClick:J[0]||(J[0]=q=>void D())},A(b("retry")),1)):ee("",!0),c("button",{type:"button","data-test":"thread-terminal-copy","aria-label":b("copySelection"),onClick:J[1]||(J[1]=q=>void W())},[ae(H(Gi),{size:14})],8,c6),c("button",{type:"button","data-test":"thread-terminal-paste","aria-label":b("pasteClipboard"),onClick:J[2]||(J[2]=q=>void G())},[ae(H(Xi),{size:14})],8,d6)])]),c("div",{ref_key:"host",ref:n,class:"thread-terminal-host","data-test":"thread-terminal-host"},null,512)]))}}),h6=nt(f6,[["__scopeId","data-v-b0662b36"]]),p6="xacpx.desktop.diagnostics",m6={0:"Raw",1:"CopyRect",2:"RRE",5:"Hextile",6:"Zlib",7:"Tight",16:"ZRLE",21:"JPEG",50:"H.264",[-260]:"TightPNG"};function b6(){try{return localStorage.getItem(p6)==="1"}catch{return!1}}class g6{counts=new Map;rects=0;unavailableReason;base;rfb;constructor(t){this.rfb=t??{};const n=this.rfb._handleDataRect;if(typeof n!="function"){this.unavailableReason="noVNC _handleDataRect missing";return}if(!this.rfb._FBU||typeof this.rfb._FBU!="object"){this.unavailableReason="noVNC _FBU missing";return}this.base=n.bind(this.rfb);const u=this.base;this.rfb._handleDataRect=()=>{const a=u();if(a===!0){const r=this.rfb._FBU?.encoding;typeof r=="number"&&(this.counts.set(r,(this.counts.get(r)??0)+1),this.rects+=1)}return a}}get available(){return this.unavailableReason===void 0}summary(t){const n=[...this.counts.entries()].map(([r,o])=>({encoding:r,name:m6[r]??`unknown(${r})`,count:o})).sort((r,o)=>r.encoding-o.encoding),u=typeof this.rfb._qualityLevel=="number"?this.rfb._qualityLevel:void 0,a=typeof this.rfb._compressionLevel=="number"?this.rfb._compressionLevel:void 0;return{available:this.available,...this.unavailableReason!==void 0?{unavailableReason:this.unavailableReason}:{},rects:this.rects,encodings:n,smoothFirst:t,...u!==void 0?{qualityLevel:u}:{},...a!==void 0?{compressionLevel:a}:{}}}}const v6={"vnc-auth":2,ard:1},no=3,uo=7,y6=6,k6=2;function x6(e,t){const n=e.summary(t);if(!n.available){console.info("xacpx desktop encoding diagnostics unavailable:",n.unavailableReason);return}console.info("xacpx desktop encoding diagnostics",{smoothFirstRequested:n.smoothFirst,qualityLevel:n.qualityLevel,compressionLevel:n.compressionLevel,rects:n.rects,encodings:n.encodings})}async function w6(){return await lu(()=>import("./rfb-6tS6afZT.js"),[])}function _6(e){const t=e.hooks??{};let n=null,u=!1,a=!1,r=e.fit??!1,o=e.smooth??!1,i=null;const s=e.target??document.createElement("div");e.target||(s.style.position="absolute",s.style.inset="0",s.style.width="100%",s.style.height="100%");const l=[],d=(p,g)=>{l.push([p,g]),n?.addEventListener(p,g)};let m=!1;return(e.loadNoVnc??w6)().then(p=>{if(u)return;const g=p.default??p.RFB;if(!g){t.onSecurityFailure?.({reason:"noVNC failed to load"});return}const x=v6[e.security],b=new g(s,e.url,{credentials:{},repeaterID:"",shared:!0,wsProtocols:["binary"]});try{b.scaleViewport=r}catch{}if(o){try{b.qualityLevel=no}catch{}try{b.compressionLevel=uo}catch{}}if(b6()&&(i=new g6(b),typeof window<"u")){const I=i;window.__xacpxDesktopDiag=()=>I.summary(o)}const E=b;if(typeof E._isSupportedSecurityType!="function"||typeof E._negotiateAuthentication!="function"||typeof E._fail!="function"){try{b.disconnect()}catch{}t.onSecurityFailure?.({reason:"desktop auth guard unavailable (noVNC internals changed)"});return}const S=E._isSupportedSecurityType.bind(b);E._isSupportedSecurityType=I=>I===x&&S(I);const R=E._negotiateAuthentication.bind(b);E._negotiateAuthentication=()=>E._rfbAuthScheme!==x?E._fail?.(`Refusing desktop auth scheme ${String(E._rfbAuthScheme)}`)??!1:R(),n=b,d("connect",()=>{a=!0,t.onConnect?.()}),d("disconnect",I=>{const C=a&&I instanceof Object&&I.detail?.clean!==!1,$=typeof I.detail=="string"?String(I.detail):"disconnected";i&&x6(i,o),t.onDisconnect?.({clean:C,reason:$})}),d("credentialsrequired",()=>{m=!0,t.onCredentialsRequired?.()}),d("securityfailure",I=>{const C=I.detail,$=typeof C?.status=="number"?C.status:void 0,D=typeof C?.reason=="string"&&C.reason.length>0?C.reason:void 0;t.onSecurityFailure?.({status:$,reason:D,credentialsSubmitted:m})})}).catch(p=>{t.onSecurityFailure?.({reason:p instanceof Error?p.message:"noVNC failed to load"})}),{sendCredentials(p){m=!0;try{n?.sendCredentials({password:p})}catch{}},setScaleViewport(p){if(r=p,n)try{n.scaleViewport=p}catch{}},setSmoothFirst(p){if(o=p,!!n){try{n.qualityLevel=p?no:y6}catch{}try{n.compressionLevel=p?uo:k6}catch{}}},dispose(){u=!0;for(const[p,g]of l)try{n?.removeEventListener(p,g)}catch{}l.length=0;try{n?.disconnect()}catch{}n=null,i=null,typeof window<"u"&&window.__xacpxDesktopDiag&&delete window.__xacpxDesktopDiag}}}const E6={class:"thread-desktop","data-test":"thread-desktop"},A6={class:"thread-desktop-bar"},C6={class:"thread-desktop-title"},I6=["data-status"],S6={class:"thread-desktop-actions"},T6=["aria-pressed","aria-label"],D6=["aria-label"],F6={for:"thread-desktop-password"},$6=["disabled"],M6=He({__name:"ThreadDesktop",props:{store:{},scope:{},active:{type:Boolean,default:!0},locale:{}},setup(e){const t=e,n=j(null),u=j("idle"),a=j(""),r=j(""),o=j(!0);let i=null,s=null,l=0,d=null;const m=pe(()=>{const C=ht(t.locale);switch(u.value){case"opening":return Le("opening",C);case"auth":return Le("passwordRequired",C);case"connecting":return Le("connecting",C);case"open":return Le("connected",C);case"closed":return Le("closed",C);case"error":return a.value||Le("desktopUnavailable",C);default:return Le("desktop",C)}}),p=C=>Le(C,ht(t.locale));function g(C){return C==="password"?"vnc-auth":"ard"}function x(C){return/^wss?:\/\//.test(C)||typeof location>"u"?C:`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${C.startsWith("/")?C:`/${C}`}`}async function b(){if(!t.active||!n.value)return;await E();const C=++l;u.value="opening",a.value="",r.value="";try{const $=await t.store.client.rpc["desktop.open"]({instanceId:t.scope.instanceId});if(C!==l){t.store.client.rpc["desktop.close"]({instanceId:t.scope.instanceId,streamId:$.streamId}).catch(()=>{});return}s=$.streamId,u.value="connecting",i=_6({url:x($.wsPath),security:g($.security),target:n.value,fit:o.value,hooks:{onConnect:()=>{u.value="open"},onDisconnect:D=>{u.value==="open"&&(u.value="closed",D.clean||(a.value=D.reason||p("desktopDisconnected")))},onCredentialsRequired:()=>{u.value="auth"},onSecurityFailure:D=>{D.credentialsSubmitted?(u.value="auth",a.value=p("passwordRejected")):(u.value="error",a.value=D.reason||p("securityUnsupported"))}}})}catch($){if(C!==l)return;u.value="error",a.value=$ instanceof Error?$.message:String($)}}async function E(){l++,i?.dispose(),i=null;const C=s;s=null,u.value="closed",C&&await t.store.client.rpc["desktop.close"]({instanceId:t.scope.instanceId,streamId:C}).catch(()=>{})}function S(){!i||!r.value||(i.sendCredentials(r.value),r.value="",u.value="connecting")}function R(){o.value=!o.value,i?.setScaleViewport(o.value)}async function I(){const C=n.value?.closest("[data-test='thread-desktop']");if(C)try{document.fullscreenElement?await document.exitFullscreen():await C.requestFullscreen()}catch{}}return Pe(()=>[t.scope.instanceId,t.active],([,C])=>{C?b():E()}),Ct(()=>{d=t.store.client.onReconnect(()=>{b()}),t.active&&b()}),rn(()=>{d?.(),d=null,E()}),(C,$)=>(y(),_("section",E6,[c("header",A6,[ae(H(r0),{size:14}),c("span",C6,A(e.scope.instanceId),1),c("span",{class:"thread-desktop-status","data-test":"thread-desktop-status","data-status":u.value},A(m.value),9,I6),c("div",S6,[u.value==="error"?(y(),_("button",{key:0,type:"button",class:"thread-desktop-retry","data-test":"thread-desktop-retry",onClick:$[0]||($[0]=D=>void b())},A(p("retry")),1)):ee("",!0),c("button",{type:"button","data-test":"thread-desktop-fit","aria-pressed":o.value,"aria-label":p("fitDesktop"),onClick:R},[ae(H(Wa),{size:14})],8,T6),c("button",{type:"button","data-test":"thread-desktop-fullscreen","aria-label":p("fullscreenDesktop"),onClick:$[1]||($[1]=D=>void I())},[ae(H(Wa),{size:14})],8,D6)])]),u.value==="auth"?(y(),_("form",{key:0,class:"thread-desktop-auth","data-test":"thread-desktop-auth",onSubmit:Ne(S,["prevent"])},[c("label",F6,A(p("vncPassword")),1),Ce(c("input",{id:"thread-desktop-password","onUpdate:modelValue":$[2]||($[2]=D=>r.value=D),type:"password",autocomplete:"off","data-test":"thread-desktop-password"},null,512),[[Ke,r.value]]),c("button",{type:"submit",disabled:!r.value},A(p("connect")),9,$6)],32)):ee("",!0),Ce(c("div",{ref_key:"host",ref:n,class:"thread-desktop-host","data-test":"thread-desktop-host"},null,512),[[ao,u.value!=="auth"]])]))}}),R6=nt(M6,[["__scopeId","data-v-17160249"]]),L6={key:0,"data-test":"workbench-auth"},O6={key:1,class:"workbench-root-app","data-test":"root-app"},z6={class:"workbench-root-escape","data-test":"root-app-escape"},P6=["aria-expanded"],N6={key:0,class:"workbench-root-escape-actions"},B6={key:0,class:"workbench-web-shell-rollback","data-test":"web-shell-rollback",role:"alert"},q6={key:0,class:"workbench-web-shell-reason"},j6={class:"workbench-web-shell-rollback-actions"},U6={key:1,class:"workbench-safe","data-test":"workbench-safe-mode",role:"status"},H6={key:2,class:"workbench-plugin-failures","data-test":"plugin-load-failures"},V6={class:"workbench-plugin-failure-message"},W6=["onClick"],G6=["onClick"],K6={class:"workbench-main"},Z6={class:"workbench-toolbar"},Y6={class:"workbench-toolbar-group"},X6=["aria-label"],J6={class:"workbench-title","data-test":"workbench-title"},Q6={key:0,class:"workbench-pane-tabs","aria-label":"Plugin views","data-test":"plugin-view-tabs"},em=["data-test","onClick"],tm=["aria-label"],nm=["data-test","onClick"],um={class:"workbench-toolbar-group"},am=["aria-label"],rm=["aria-label"],om=["aria-label"],im=["aria-label"],sm=["aria-label"],lm=["aria-label"],cm={class:"workbench-body"},dm={key:0,class:"workbench-empty","data-test":"workbench-empty"},fm=["data-test","onClick","onDrop"],hm=["onDragstart"],pm={class:"workbench-pane-title"},mm=["data-test","aria-label","onClick"],bm=["data-test"],gm={class:"workbench-tool-panel-header"},vm=["aria-label"],ym={class:"workbench-tool-panel-body"},km={key:4,class:"workbench-plugins","data-test":"workbench-plugins"},xm=["aria-label"],wm={key:5,class:"workbench-extension-drawer","data-test":"plugin-drawer"},_m={class:"workbench-toasts","aria-live":"polite","data-test":"plugin-toasts"},Em=["onClick"],Am=["onClick"],Cm=He({__name:"WorkbenchShell",props:{store:{},initialPanes:{},autoLoad:{type:Boolean,default:!0},authenticate:{type:Boolean},authToken:{},locale:{}},emits:["active-scope","locale-change"],setup(e,{emit:t}){const n=e,u=t,a=n.store??Vn(),r=j(n.initialPanes?[...n.initialPanes]:[]),o=n.authenticate?ji():null,i=n.authenticate?Ui():null,s=j(!n.authenticate),l=j(ht(n.locale));function d(te){jt.global.locale.value=te==="zh"?"zh-CN":"en",typeof document<"u"&&(document.documentElement.lang=te)}d(l.value);const m=j(typeof document>"u"?!0:document.documentElement.classList.contains("dark")),p=te=>Le(te,l.value),g=pe(()=>!!(n.authenticate&&(!s.value||!o?.account||a.data.authRequired)));function x(te){if(m.value=te,!(typeof document>"u")){document.documentElement.classList.toggle("dark",te),document.documentElement.style.colorScheme=te?"dark":"light";try{localStorage.setItem("relay-theme",te?"dark":"light")}catch{}document.querySelectorAll('meta[name="theme-color"]').forEach(ne=>{ne.setAttribute("content",te?"#0E0F12":"#F5F6F8")})}}function b(){x(!m.value)}function E(){const te=l.value==="zh"?"en":"zh";l.value=te,d(te);try{localStorage.setItem("relay-locale",te)}catch{}u("locale-change",te)}Pe(()=>n.locale,te=>{te&&(l.value=ht(te),d(l.value))}),Pe(()=>n.authToken,te=>a.setAuthToken(te),{immediate:!0}),Pe(()=>o?.account,te=>{te&&(a.data.authRequired=!1),n.authenticate&&(s.value=!0)}),Ct(async()=>{if(!(!o||!i))try{await i.ensure(),await o.fetchMe()}catch{}finally{s.value=!0}}),Ct(()=>{!be&&!g.value&&X.refresh(),ft=X.subscribe(()=>{}),_e=a.onReconnect(()=>{X.refresh()})}),Pe(g,te=>{te?X.sync([]):be||X.refresh()});const S=ns(),R=j(0),I=j(!1),C=j(!1),$=j(!1),D=j(null),z=j(null),T=j(!1),W=j("session"),G=pe(()=>X.creatableKinds.value[0]?.kind??null),U=j(""),J=pe(()=>r.value[R.value]??null),q=pe(()=>{const te=J.value;return te?a.pane(te)?.thread?.title??te.threadId:"Workbench"}),ue=pe(()=>r.value.length>0),de=pe(()=>S.value?C.value:!I.value),be=typeof window<"u"&&(new URLSearchParams(window.location.search).get("safe")==="1"||window.location.pathname==="/__rescue"||window.location.pathname.startsWith("/__rescue/")),ge=typeof window<"u"?new URLSearchParams(window.location.search):new URLSearchParams,se=pe(()=>be&&ge.get("webShellRollback")==="1"),O=ge.get("reason")??"",Y=pe(()=>({safeMode:be,activeScope:J.value,activeView:X.activeView.value,locale:l.value,theme:m.value?"dark":"light"})),K=pe(()=>({state:Y.value,scope:J.value??void 0,thread:J.value?a.pane(J.value)?.thread:void 0})),X=new os({store:a,safeMode:be,getState:()=>Y.value,onDisable:B,onRepair:N});Hi(mn,X);const Oe=j(null),xt=j(null),Tt=j(null),mt=j(!0);let dt,bt,gt,ft,_e;Pe(J,te=>u("active-scope",te),{immediate:!0}),Pe(S,te=>{te||(C.value=!1)});function ce(te,ne){return hn(te)===hn(ne)}function Z(te){te<0||te>=r.value.length||(R.value=te)}function Q(te,ne){const ie=r.value.findIndex(ke=>ce(ke,te));if(ie>=0)Z(ie);else if(ne||r.value.length===0)r.value=[...r.value,te],R.value=r.value.length-1;else{const ke=[...r.value];ke[R.value]=te,r.value=ke}S.value&&(C.value=!1)}function ve(te){const ne=r.value.filter((ie,ke)=>ke!==te);r.value=ne,ne.length===0?R.value=0:te<R.value?R.value-=1:R.value>=ne.length&&(R.value=ne.length-1)}function ut(te){z.value=te}function Vt(te){const ne=z.value;if(z.value=null,ne===null||ne===te)return;const ie=[...r.value],[ke]=ie.splice(ne,1);ie.splice(te,0,ke),r.value=ie,R.value=te}function et(te=G.value,ne){te&&(W.value=te,U.value=ne??J.value?.instanceId??a.data.remoteInstances[0]?.instanceId??"",T.value=!0)}function Wt(te){Q(te.scope,!0),T.value=!1}function $t(te){D.value=D.value===te?null:te}async function P(te,ne){const ie=J.value?.instanceId??a.data.remoteInstances[0]?.instanceId;if(!ie){X.toast("No instance is available for the Agent.");return}try{const ke=await a.createThread({instanceId:ie,kind:"direct",title:te}),rt={instanceId:ie,threadId:ke.id};Q(rt,!0),await a.send(rt,{text:ne})}catch(ke){X.toast(ke instanceof Error?ke.message:String(ke))}}async function B(te){try{await a.setPlugin(te,!1),await X.refresh(),X.toast(`Disabled ${te}`)}catch(ne){X.toast(ne instanceof Error?ne.message:String(ne))}}async function N(te,ne){const ie=ne instanceof Error?ne.stack??ne.message:String(ne);await P(`Fix plugin ${te}`,`Repair the xacpx Web UI plugin "${te}". Its frontend activation or slot renderer failed. Use plugin_sdk_docs and the local plugin tools, fix the code, then reinstall/reload it and verify the workbench.
|
|
236
|
+
|
|
237
|
+
Error stack:
|
|
238
|
+
${ie}`)}function le(){P("Create an xacpx plugin","Help me create a private xacpx plugin with a Web workbench UI. First call plugin_sdk_docs, then plugin_scaffold, write the plugin code, and use plugin_install_local to install it from a local directory so it hot-loads immediately. Ask me for the plugin purpose and local path if they are not clear. Verify the installed plugin in the workbench when done.")}function Ie(){P("Rebuild the xacpx Web","Help me replace the entire xacpx Web workbench with a custom frontend. First inspect the current Web Shell status and SDK, then scaffold or edit the custom Web bundle. Use the Web Shell tools to preview and activate it, and verify that the custom UI calls the browser SDK ready() after mounting. Keep the built-in workbench and ?safe=1 recovery path available.")}function at(te=!1){X.clearRootApp(),te&&($.value=!0)}function wt(te){te.key==="Escape"&&X.hasRootApp&&at()}async function Mt(){const te=mi({token:n.authToken});try{(await te.config()).hostMode==="relay"?await te.webShell.resetRelay():await te.webShell.reset(),X.toast(jt.global.t("webShell.resetDone"))}catch(ne){X.toast(ne instanceof Error?ne.message:String(ne))}finally{te.dispose()}}function Gt(){P("Repair the custom xacpx Web",`The custom Web Shell failed to start and xacpx fell back to the built-in workbench. Reason: ${O||"startup failed or timed out"}. Inspect the Web Shell status and bundle, fix the startup or ready() heartbeat, preview it, and only activate it after the custom UI mounts successfully.`)}function Kt(){dt?.(),bt?.(),gt?.(),dt=void 0,bt=void 0,gt=void 0,X.activeView.value&&Oe.value&&(dt=X.render("view",X.activeView.value,Oe.value,K.value)),X.drawer.value&&xt.value&&(bt=X.render("drawer",String(X.drawer.value.id),xt.value,K.value)),X.hasRootApp&&Tt.value&&(gt=X.renderRoot(Tt.value,K.value))}return Pe([()=>X.activeView.value,()=>X.drawer.value?.id,()=>X.rootApp.value,()=>X.revision.value,()=>J.value?.threadId,()=>l.value,()=>m.value,()=>J.value?a.pane(J.value)?.thread?.revision:void 0],()=>{pu(Kt)},{flush:"post"}),Ct(()=>{window.addEventListener("keydown",wt)}),rn(()=>{window.removeEventListener("keydown",wt),ft?.(),_e?.(),dt?.(),bt?.(),gt?.(),X.dispose()}),(te,ne)=>g.value?(y(),_("div",L6,[ae(Vi)])):H(X).hasRootApp?(y(),_("div",O6,[c("div",{ref_key:"rootAppHost",ref:Tt,class:"workbench-root-app-host"},null,512),c("div",z6,[c("button",{type:"button",class:"workbench-root-escape-toggle","aria-expanded":!mt.value,onClick:ne[0]||(ne[0]=ie=>mt.value=!mt.value)}," xacpx ",8,P6),mt.value?ee("",!0):(y(),_("div",N6,[c("button",{type:"button",onClick:ne[1]||(ne[1]=ie=>at())},A(H(jt).global.t("webShell.builtinWorkbench")),1),c("button",{type:"button",onClick:ne[2]||(ne[2]=ie=>at(!0))},A(H(jt).global.t("webShell.pluginCenter")),1),ne[18]||(ne[18]=c("kbd",null,"Esc",-1))]))])])):(y(),_("div",{key:2,class:De(["workbench-shell",{"sidebar-collapsed":I.value&&!H(S)}]),"data-test":"workbench-shell"},[se.value?(y(),_("div",B6,[c("div",null,[c("strong",null,A(H(jt).global.t("webShell.rollbackTitle")),1),c("p",null,A(H(jt).global.t("webShell.rollbackBody")),1),H(O)?(y(),_("p",q6,[c("code",null,A(H(O)),1)])):ee("",!0)]),c("div",j6,[c("button",{type:"button","data-test":"web-shell-reset",onClick:Mt},A(H(jt).global.t("webShell.resetBuiltin")),1),c("button",{type:"button","data-test":"web-shell-repair",onClick:Gt},A(H(jt).global.t("webShell.repair")),1)])])):ee("",!0),H(be)?(y(),_("div",U6,[...ne[19]||(ne[19]=[$e(" Safe mode is on. Plugin scripts and styles are skipped. CLI recovery: ",-1),c("code",null,"xacpx plugin remove <id>",-1)])])):ee("",!0),H(X).failures.value.length?(y(),_("div",H6,[(y(!0),_(xe,null,Se(H(X).failures.value,ie=>(y(),_("div",{key:ie.pluginId},[c("span",null,[ne[20]||(ne[20]=$e("Plugin ",-1)),c("code",null,A(ie.pluginId),1),ne[21]||(ne[21]=$e(" failed to load.",-1))]),c("p",V6,A(ie.message),1),c("button",{type:"button",onClick:ke=>B(ie.pluginId)},"Disable",8,W6),c("button",{type:"button",onClick:ke=>N(ie.pluginId,ie.message)},"Ask Agent",8,G6)]))),128))])):ee("",!0),H(S)&&C.value?(y(),_("div",{key:3,class:"workbench-backdrop","data-test":"workbench-sidebar-backdrop",onClick:ne[3]||(ne[3]=ie=>C.value=!1)})):ee("",!0),c("div",{class:De(["workbench-sidebar",{"is-open":de.value,"is-mobile":H(S)}]),"data-test":"workbench-sidebar-host"},[ae(Lp,{store:H(a),"active-scope":J.value,locale:l.value,onOpen:ne[4]||(ne[4]=ie=>Q(ie.scope,ie.split)),onCreate:ne[5]||(ne[5]=ie=>et(ie.kind,ie.instanceId))},null,8,["store","active-scope","locale"])],2),c("main",K6,[c("header",Z6,[c("div",Y6,[c("button",{type:"button",class:"workbench-icon","data-test":"workbench-sidebar-toggle","aria-label":de.value?p("hideSidebar"):p("showSidebar"),onClick:ne[6]||(ne[6]=ie=>H(S)?C.value=!C.value:I.value=!I.value)},[de.value?(y(),Ue(H(i0),{key:0,size:17})):(y(),Ue(H(s0),{key:1,size:17}))],8,X6),c("span",J6,A(q.value),1),ae(Be,{name:"topbar.left",context:K.value},null,8,["context"])]),ae(Be,{name:"topbar.center",context:K.value},{default:Pn(()=>[H(X).views.value.length?(y(),_("nav",Q6,[(y(!0),_(xe,null,Se(H(X).views.value,ie=>(y(),_("button",{key:ie.id,type:"button",class:De(["workbench-pane-tab",{active:H(X).activeView.value===ie.id}]),"data-test":`plugin-view-${ie.id}`,onClick:ke=>H(X).setActiveView(H(X).activeView.value===ie.id?null:ie.id)},A(ie.icon)+" "+A(ie.title),11,em))),128))])):ee("",!0),r.value.length>1?(y(),_("nav",{key:1,class:"workbench-pane-tabs","aria-label":p("openPanes")},[(y(!0),_(xe,null,Se(r.value,(ie,ke)=>(y(),_("button",{key:H(hn)(ie),type:"button",class:De(["workbench-pane-tab",{active:R.value===ke}]),"data-test":`workbench-pane-tab-${ke}`,onClick:rt=>Z(ke)},A(H(a).pane(ie)?.thread?.title??ie.threadId),11,nm))),128))],8,tm)):ee("",!0)]),_:1},8,["context"]),c("div",um,[J.value||te.$slots.terminal?(y(),_("button",{key:0,type:"button",class:De(["workbench-icon",{active:D.value==="terminal"}]),"data-test":"workbench-tool-terminal","aria-label":p("toggleTerminal"),onClick:ne[7]||(ne[7]=ie=>$t("terminal"))},[ae(H(so),{size:16})],10,am)):ee("",!0),J.value||te.$slots.desktop?(y(),_("button",{key:1,type:"button",class:De(["workbench-icon",{active:D.value==="desktop"}]),"data-test":"workbench-tool-desktop","aria-label":p("toggleDesktop"),onClick:ne[8]||(ne[8]=ie=>$t("desktop"))},[ae(H(Ha),{size:16})],10,rm)):ee("",!0),c("button",{type:"button",class:De(["workbench-icon",{active:$.value}]),"data-test":"workbench-plugins-toggle","aria-label":p("togglePlugins"),onClick:ne[9]||(ne[9]=ie=>$.value=!$.value)},[ae(H(Ha),{size:16})],10,om),c("button",{type:"button",class:"workbench-icon","data-test":"workbench-theme-toggle","aria-label":p("switchTheme"),onClick:b},[m.value?(y(),Ue(H(p0),{key:0,size:16})):(y(),Ue(H(o0),{key:1,size:16}))],8,im),c("button",{type:"button",class:"workbench-icon","data-test":"workbench-language-toggle","aria-label":p("switchLanguage"),onClick:E},[ae(H(a0),{size:16})],8,sm),c("a",{class:"workbench-icon","data-test":"workbench-settings",href:"/settings","aria-label":p("settings")},[ae(H(f0),{size:16})],8,lm),G.value?(y(),_("button",{key:2,type:"button",class:"workbench-new","data-test":"workbench-new",onClick:ne[10]||(ne[10]=ie=>et(G.value))},[ae(H(Xu),{size:15}),$e(" "+A(p("newThread")),1)])):ee("",!0),ae(Be,{name:"topbar.right",context:K.value},null,8,["context"])])]),ae(Be,{name:"workbench.view",context:K.value},{default:Pn(()=>[c("div",cm,[H(X).activeView.value?(y(),_("div",{key:0,ref_key:"viewHost",ref:Oe,class:"workbench-plugin-view","data-test":"plugin-view-surface"},null,512)):(y(),_(xe,{key:1},[!ue.value&&!D.value?(y(),_("div",dm,[c("h2",null,A(p("emptyTitle")),1),c("p",null,A(p("emptyBody")),1),G.value?(y(),_("button",{key:0,type:"button",class:"workbench-new",onClick:ne[11]||(ne[11]=ie=>et(G.value))},[ae(H(Xu),{size:15}),$e(" "+A(p("newThread")),1)])):ee("",!0)])):ue.value&&!D.value?(y(),_("div",{key:1,class:De(["workbench-panes",{"is-mobile":H(S)}])},[(y(!0),_(xe,null,Se(r.value,(ie,ke)=>(y(),_("section",{key:H(hn)(ie),class:De(["workbench-pane",{focused:R.value===ke,dragging:z.value===ke}]),"data-test":`workbench-pane-${ke}`,onClick:rt=>Z(ke),onDragover:ne[13]||(ne[13]=Ne(()=>{},["prevent"])),onDrop:Ne(rt=>Vt(ke),["prevent"])},[c("header",{class:"workbench-pane-bar",draggable:"true",onDragstart:rt=>ut(ke),onDragend:ne[12]||(ne[12]=rt=>z.value=null)},[ne[22]||(ne[22]=c("span",{class:"workbench-drag","aria-hidden":"true"},"⋮⋮",-1)),c("span",pm,A(H(a).pane(ie)?.thread?.title??ie.threadId),1),c("button",{type:"button",class:"workbench-icon danger","data-test":`workbench-pane-close-${ke}`,"aria-label":p("closePane"),onClick:Ne(rt=>ve(ke),["stop"])},[ae(H(fn),{size:14})],8,mm)],40,hm),ae(Xh,{scope:ie,store:H(a),"auto-load":n.autoLoad!==!1,locale:l.value},null,8,["scope","store","auto-load","locale"])],42,fm))),128))],2)):ee("",!0),D.value?(y(),_("section",{key:2,class:"workbench-tool-panel","data-test":`workbench-tool-panel-${D.value}`},[c("header",gm,[c("strong",null,A(D.value==="terminal"?p("terminal"):p("desktop")),1),c("button",{type:"button",class:"workbench-icon","aria-label":p("closeTool"),onClick:ne[14]||(ne[14]=ie=>D.value=null)},[ae(H(fn),{size:14})],8,vm)]),c("div",ym,[D.value==="terminal"&&te.$slots.terminal?pn(te.$slots,"terminal",{key:0,scope:J.value},void 0,!0):D.value==="terminal"&&J.value?(y(),Ue(h6,{key:1,store:H(a),scope:J.value,locale:l.value},null,8,["store","scope","locale"])):D.value==="desktop"&&te.$slots.desktop?pn(te.$slots,"desktop",{key:2,scope:J.value},void 0,!0):D.value==="desktop"&&J.value?(y(),Ue(R6,{key:3,store:H(a),scope:J.value,locale:l.value},null,8,["store","scope","locale"])):ee("",!0)])],8,bm)):ee("",!0)],64)),ae(Be,{name:"panel.bottom",context:K.value},null,8,["context"])])]),_:3},8,["context"])]),$.value?(y(),_("aside",km,[c("button",{type:"button",class:"workbench-plugins-close","aria-label":p("closePlugins"),onClick:ne[15]||(ne[15]=ie=>$.value=!1)},[ae(H(fn),{size:16})],8,xm),ae(Be,{name:"drawer.right",context:K.value},null,8,["context"]),ae(Z4,{store:H(a),"instance-id":J.value?.instanceId,"web-shell-enabled":H(i)?.config.capabilities.webShell??!1,"host-mode":H(i)?.config.hostMode,"auth-token":e.authToken,onCreateWithAgent:le,onCreateWebShellWithAgent:Ie},null,8,["store","instance-id","web-shell-enabled","host-mode","auth-token"])])):ee("",!0),H(X).drawer.value?(y(),_("div",wm,[c("header",null,[c("strong",null,A(H(X).drawer.value.title),1),c("button",{type:"button",class:"workbench-icon","aria-label":"Close plugin drawer",onClick:ne[16]||(ne[16]=ie=>H(X).closeDrawer())},[ae(H(fn),{size:15})])]),c("div",{ref_key:"drawerHost",ref:xt,class:"workbench-extension-drawer-body"},null,512)])):ee("",!0),c("div",_m,[(y(!0),_(xe,null,Se(H(X).toasts.value,ie=>(y(),_("div",{key:ie.id,class:"workbench-toast"},[c("span",null,A(ie.text),1),ie.action?(y(),_("button",{key:0,type:"button",onClick:ke=>H(X).runToastAction(ie.id)},A(ie.action.label),9,Em)):ee("",!0),c("button",{type:"button","aria-label":"Dismiss notification",onClick:ke=>H(X).dismissToast(ie.id)},"×",8,Am)]))),128))]),ae(Be,{name:"modal.overlay",context:K.value},null,8,["context"]),ae(L3,{open:T.value,kind:W.value,"instance-id":U.value||void 0,store:H(a),locale:l.value,onClose:ne[17]||(ne[17]=ie=>T.value=!1),onCreated:Wt},null,8,["open","kind","instance-id","store","locale"])],2))}}),Im=nt(Cm,[["__scopeId","data-v-426be8d9"]]),Sm=He({__name:"WorkbenchView",setup(e){return(t,n)=>(y(),Ue(Im,{authenticate:""}))}}),Rm=Object.freeze(Object.defineProperty({__proto__:null,default:Sm},Symbol.toStringTag,{value:"Module"}));export{Rm as W,Ia as p};
|