@yorz/cli 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +57 -51
- package/dist/cli/serve-launcher.cjs +56 -0
- package/dist/gui/assets/{abnfDiagram-VRR7QNED-CvFCe3r_.js → abnfDiagram-VRR7QNED-BXdYbq3y.js} +1 -1
- package/dist/{gui-mobile/assets/arc-BBWQwcOX.js → gui/assets/arc-BDaL1Z0T.js} +1 -1
- package/dist/{gui-mobile/assets/architectureDiagram-ZJ3FMSHR-BdDouhRk.js → gui/assets/architectureDiagram-ZJ3FMSHR-DBV2eI0R.js} +1 -1
- package/dist/{gui-mobile/assets/blockDiagram-677ZJIJ3-CyfQcEAp.js → gui/assets/blockDiagram-677ZJIJ3-BukUw8ke.js} +1 -1
- package/dist/gui/assets/{c4Diagram-LMCZKHZV-Cgt15wDO.js → c4Diagram-LMCZKHZV-BQRLrFmd.js} +1 -1
- package/dist/gui/assets/channel-CmM-rnSu.js +1 -0
- package/dist/gui/assets/{chunk-2Q5K7J3B-ByMpzo_7.js → chunk-2Q5K7J3B-Bb01F4JY.js} +1 -1
- package/dist/gui/assets/{chunk-32BRIVSS-LHwTDCaD.js → chunk-32BRIVSS-D_fmYp0w.js} +1 -1
- package/dist/gui/assets/{chunk-5VM5RSS4-CXrS6z-4.js → chunk-5VM5RSS4-CSVRyWUl.js} +1 -1
- package/dist/gui/assets/{chunk-EX3LRPZG-Bw7a0zH3.js → chunk-EX3LRPZG-0tMlNePS.js} +1 -1
- package/dist/gui/assets/{chunk-JWPE2WC7-wFaiogOx.js → chunk-JWPE2WC7-BjMvMllJ.js} +1 -1
- package/dist/gui/assets/{chunk-MOJQB5TN-CC4tXc_1.js → chunk-MOJQB5TN-kCAEgJRp.js} +1 -1
- package/dist/gui/assets/{chunk-RYQCIY6F-BzMRf9sh.js → chunk-RYQCIY6F-Bux4XgPK.js} +1 -1
- package/dist/gui/assets/{chunk-V7JOEXUC-DXF9bAuV.js → chunk-V7JOEXUC-BP87KF_P.js} +1 -1
- package/dist/gui/assets/{chunk-VR4S4FIN-DlTRKb1a.js → chunk-VR4S4FIN-DTiqIx-p.js} +1 -1
- package/dist/gui/assets/{chunk-XXDRQBXY-kVTuzkcL.js → chunk-XXDRQBXY-B7k8EFM_.js} +1 -1
- package/dist/gui/assets/classDiagram-OUVF2IWQ-foBbbuIG.js +1 -0
- package/dist/gui/assets/classDiagram-v2-EOCWNBFH-foBbbuIG.js +1 -0
- package/dist/{gui-mobile/assets/cose-bilkent-JH36ORCC-k5DcB7wy.js → gui/assets/cose-bilkent-JH36ORCC-BaKMo0vy.js} +1 -1
- package/dist/gui/assets/{cynefin-VYW2F7L2-BKxPBlKv.js → cynefin-VYW2F7L2-DzMBSujh.js} +1 -1
- package/dist/{gui-mobile/assets/cynefinDiagram-TSTJHNR4-CfH5z8jt.js → gui/assets/cynefinDiagram-TSTJHNR4-BeUiEs05.js} +1 -1
- package/dist/gui/assets/{dagre-VKFMJZFB-B_6xJi_I.js → dagre-VKFMJZFB-Ds02vw0z.js} +1 -1
- package/dist/gui/assets/{diagram-FQU43EPY-DSPwTKxt.js → diagram-FQU43EPY-CMCJAQGZ.js} +1 -1
- package/dist/{gui-mobile/assets/diagram-G47NLZAW-CJFcYT7j.js → gui/assets/diagram-G47NLZAW-BsBRMo6j.js} +1 -1
- package/dist/gui/assets/{diagram-NH7WQ7WH-Dz_3pmyJ.js → diagram-NH7WQ7WH-C4WG9hEr.js} +1 -1
- package/dist/{gui-mobile/assets/diagram-OA4YK3LP-c_vARYuP.js → gui/assets/diagram-OA4YK3LP-BA2cjwAc.js} +1 -1
- package/dist/gui/assets/{diagram-WEI45ONY-Dq-7pg1u.js → diagram-WEI45ONY-DE9_2qZ8.js} +1 -1
- package/dist/gui/assets/{ebnfDiagram-CCIWWBDH-DqkXLemr.js → ebnfDiagram-CCIWWBDH-BL7vwncJ.js} +1 -1
- package/dist/{gui-mobile/assets/erDiagram-Q63AITRT-BosAgKfh.js → gui/assets/erDiagram-Q63AITRT-rCrtODep.js} +1 -1
- package/dist/gui/assets/{flowDiagram-23GEKE2U-BItXJm0z.js → flowDiagram-23GEKE2U-DcgdUDC_.js} +1 -1
- package/dist/{gui-mobile/assets/ganttDiagram-NO4QXBWP-CJGUZTqX.js → gui/assets/ganttDiagram-NO4QXBWP-BsWsRaQX.js} +1 -1
- package/dist/gui/assets/{gitGraphDiagram-IHSO6WYX-DOTmWDXD.js → gitGraphDiagram-IHSO6WYX-Bh16bq4A.js} +1 -1
- package/dist/gui/assets/{index-CkGO8Fpq.js → index-oIjkNbg4.js} +21 -21
- package/dist/gui/assets/{infoDiagram-FWYZ7A6U-CH94-RWl.js → infoDiagram-FWYZ7A6U-CKRUUIby.js} +1 -1
- package/dist/gui/assets/{ishikawaDiagram-FXEZZL3T-DnPsPjhE.js → ishikawaDiagram-FXEZZL3T-CEMvAMgC.js} +1 -1
- package/dist/{gui-mobile/assets/journeyDiagram-5HDEW3XC-B4ejke91.js → gui/assets/journeyDiagram-5HDEW3XC-hPSE5KSG.js} +1 -1
- package/dist/gui/assets/{kanban-definition-HUTT4EX6-CnEFBR_5.js → kanban-definition-HUTT4EX6-D2JIKO0d.js} +1 -1
- package/dist/gui/assets/{linear-C76lB0Op.js → linear-1sIzYuR6.js} +1 -1
- package/dist/gui/assets/{mermaid.core-rkuoyu1Y.js → mermaid.core-_0eTmAI-.js} +4 -4
- package/dist/gui/assets/{mindmap-definition-LN4V7U3C-Cp4m5M8t.js → mindmap-definition-LN4V7U3C-Pci6rYHR.js} +1 -1
- package/dist/gui/assets/{pegDiagram-2B236MQR-OpqvRJRn.js → pegDiagram-2B236MQR-q2F8rPpc.js} +1 -1
- package/dist/gui/assets/{pieDiagram-ENE6RG2P-CA2NTDmg.js → pieDiagram-ENE6RG2P-Bxs2H0I9.js} +1 -1
- package/dist/{gui-mobile/assets/quadrantDiagram-ABIIQ3AL-CpOioe7x.js → gui/assets/quadrantDiagram-ABIIQ3AL-jhiPHiLV.js} +1 -1
- package/dist/gui/assets/{railroadDiagram-RFXS5EU6-D8sNxc-D.js → railroadDiagram-RFXS5EU6-DLkA9HFf.js} +1 -1
- package/dist/gui/assets/{requirementDiagram-TGXJPOKE-B_BAewjP.js → requirementDiagram-TGXJPOKE-DmqV2XMZ.js} +1 -1
- package/dist/{gui-mobile/assets/sankeyDiagram-HTMAVEWB-6gqAXG6C.js → gui/assets/sankeyDiagram-HTMAVEWB-DKKUsQKC.js} +1 -1
- package/dist/{gui-mobile/assets/sequenceDiagram-DBY2YBRQ-D-7-OUF6.js → gui/assets/sequenceDiagram-DBY2YBRQ-DFX-fI6J.js} +1 -1
- package/dist/gui/assets/{sizeCapture-X5ZJPWSS-uA8UtQtp.js → sizeCapture-X5ZJPWSS-dcpaI63h.js} +1 -1
- package/dist/{gui-mobile/assets/stateDiagram-2N3HPSRC-CBem3dqE.js → gui/assets/stateDiagram-2N3HPSRC-DOBn8whp.js} +1 -1
- package/dist/gui/assets/stateDiagram-v2-6OUMAXLB-CSydFa0j.js +1 -0
- package/dist/{gui-mobile/assets/swimlanes-5IMT3BWC-CTxpjyu6.js → gui/assets/swimlanes-5IMT3BWC-CrvE3E_z.js} +2 -2
- package/dist/gui/assets/swimlanesDiagram-G3AALYLV-CqM-5nJs.js +8 -0
- package/dist/{gui-mobile/assets/timeline-definition-FHXFAJF6-sxn38dUp.js → gui/assets/timeline-definition-FHXFAJF6-Cg8Rxg6S.js} +1 -1
- package/dist/gui/assets/{vennDiagram-L72KCM5P-B29R19dw.js → vennDiagram-L72KCM5P-CgwpgHPj.js} +1 -1
- package/dist/gui/assets/{wardleyDiagram-EHGQE667-B5eqpyg8.js → wardleyDiagram-EHGQE667-Cnc-fgIC.js} +1 -1
- package/dist/{gui-mobile/assets/xychartDiagram-FW5EYKEG-AmEku7SD.js → gui/assets/xychartDiagram-FW5EYKEG-Do9QbE6u.js} +1 -1
- package/dist/gui/index.html +1 -1
- package/dist/gui-mobile/assets/{abnfDiagram-VRR7QNED-dO2fe8On.js → abnfDiagram-VRR7QNED-3aNc_9tC.js} +1 -1
- package/dist/{gui/assets/arc-BR65Sp8N.js → gui-mobile/assets/arc-BinP16HO.js} +1 -1
- package/dist/{gui/assets/architectureDiagram-ZJ3FMSHR-AiVGAt8P.js → gui-mobile/assets/architectureDiagram-ZJ3FMSHR-DPaYnoe2.js} +1 -1
- package/dist/{gui/assets/blockDiagram-677ZJIJ3-HuFROz1l.js → gui-mobile/assets/blockDiagram-677ZJIJ3-CcdgoWjg.js} +1 -1
- package/dist/gui-mobile/assets/{c4Diagram-LMCZKHZV-BDwCd8AJ.js → c4Diagram-LMCZKHZV-Dt-ebUaz.js} +1 -1
- package/dist/gui-mobile/assets/channel-BwGfICk5.js +1 -0
- package/dist/gui-mobile/assets/{chunk-2Q5K7J3B-C21jFDT7.js → chunk-2Q5K7J3B-Dkn1JJmn.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-32BRIVSS-DYcgMwLC.js → chunk-32BRIVSS-Cou5wk8N.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-5VM5RSS4-DHUChIkE.js → chunk-5VM5RSS4-DE1VWYBj.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-EX3LRPZG-BsiOO0cg.js → chunk-EX3LRPZG-DIJfdh0r.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-JWPE2WC7-DwRFcp8M.js → chunk-JWPE2WC7-DMTNZnRa.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-MOJQB5TN-CZAIa8xj.js → chunk-MOJQB5TN-C37wZo1y.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-RYQCIY6F-CjiSByKd.js → chunk-RYQCIY6F-B00F7z4X.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-V7JOEXUC-C5X5gobg.js → chunk-V7JOEXUC-BBhJsm6x.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-VR4S4FIN-BG4Ho3oM.js → chunk-VR4S4FIN-BaRfY0Qz.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-XXDRQBXY-Cy55QGn1.js → chunk-XXDRQBXY-DLP_jCaJ.js} +1 -1
- package/dist/gui-mobile/assets/classDiagram-OUVF2IWQ-BC5JEZFR.js +1 -0
- package/dist/gui-mobile/assets/classDiagram-v2-EOCWNBFH-BC5JEZFR.js +1 -0
- package/dist/{gui/assets/cose-bilkent-JH36ORCC-BAqcUvRT.js → gui-mobile/assets/cose-bilkent-JH36ORCC--rhAXZui.js} +1 -1
- package/dist/gui-mobile/assets/{cynefin-VYW2F7L2-D0zs5vNv.js → cynefin-VYW2F7L2-DP4VQrg7.js} +1 -1
- package/dist/{gui/assets/cynefinDiagram-TSTJHNR4-B30nmSKx.js → gui-mobile/assets/cynefinDiagram-TSTJHNR4-CQ3yGfYY.js} +1 -1
- package/dist/gui-mobile/assets/{dagre-VKFMJZFB-WliPW3Tx.js → dagre-VKFMJZFB-BbgmZx8f.js} +1 -1
- package/dist/gui-mobile/assets/{diagram-FQU43EPY-CdurYY3r.js → diagram-FQU43EPY-B3ayJYFS.js} +1 -1
- package/dist/{gui/assets/diagram-G47NLZAW-CE6kku8E.js → gui-mobile/assets/diagram-G47NLZAW-CqXfBP6i.js} +1 -1
- package/dist/gui-mobile/assets/{diagram-NH7WQ7WH-Covs7EOO.js → diagram-NH7WQ7WH-DPg20-Zs.js} +1 -1
- package/dist/{gui/assets/diagram-OA4YK3LP-9K6njZVx.js → gui-mobile/assets/diagram-OA4YK3LP-DF9IybfH.js} +1 -1
- package/dist/gui-mobile/assets/{diagram-WEI45ONY-B8DLNiMy.js → diagram-WEI45ONY-BSAcECq5.js} +1 -1
- package/dist/gui-mobile/assets/{ebnfDiagram-CCIWWBDH-dOuQRK-3.js → ebnfDiagram-CCIWWBDH-BhJETAAk.js} +1 -1
- package/dist/{gui/assets/erDiagram-Q63AITRT-DwCKeJjN.js → gui-mobile/assets/erDiagram-Q63AITRT-DWpkkPmJ.js} +1 -1
- package/dist/gui-mobile/assets/{flowDiagram-23GEKE2U-HWFThTdv.js → flowDiagram-23GEKE2U-CHAjzU36.js} +1 -1
- package/dist/{gui/assets/ganttDiagram-NO4QXBWP-B7F8aBqd.js → gui-mobile/assets/ganttDiagram-NO4QXBWP-B3b1yqDR.js} +1 -1
- package/dist/gui-mobile/assets/{gitGraphDiagram-IHSO6WYX-D1j9Ff_z.js → gitGraphDiagram-IHSO6WYX-BqRTGYY0.js} +1 -1
- package/dist/gui-mobile/assets/{index-BWC60m5U.js → index-BwPHOQF7.js} +15 -15
- package/dist/gui-mobile/assets/{infoDiagram-FWYZ7A6U-5Gq_R5ny.js → infoDiagram-FWYZ7A6U-4PN9nRxs.js} +1 -1
- package/dist/gui-mobile/assets/{ishikawaDiagram-FXEZZL3T-DZAckb0K.js → ishikawaDiagram-FXEZZL3T-wzGQWfQz.js} +1 -1
- package/dist/{gui/assets/journeyDiagram-5HDEW3XC-IxNPj9DL.js → gui-mobile/assets/journeyDiagram-5HDEW3XC-C0pTHZiP.js} +1 -1
- package/dist/gui-mobile/assets/{kanban-definition-HUTT4EX6-CKIlESkz.js → kanban-definition-HUTT4EX6-D_XwIFzm.js} +1 -1
- package/dist/gui-mobile/assets/{linear-DjghM5B6.js → linear-DHPIiHoC.js} +1 -1
- package/dist/gui-mobile/assets/{mermaid.core-Cery4OJZ.js → mermaid.core-DWa29NaI.js} +4 -4
- package/dist/gui-mobile/assets/{mindmap-definition-LN4V7U3C-Bb9PmQcE.js → mindmap-definition-LN4V7U3C-BsAz9DiI.js} +1 -1
- package/dist/gui-mobile/assets/{pegDiagram-2B236MQR-Dk6yxZPA.js → pegDiagram-2B236MQR-k9xbtGjh.js} +1 -1
- package/dist/gui-mobile/assets/{pieDiagram-ENE6RG2P-9qPsJCKZ.js → pieDiagram-ENE6RG2P-vrMiQFQU.js} +1 -1
- package/dist/{gui/assets/quadrantDiagram-ABIIQ3AL-1wgAkd5_.js → gui-mobile/assets/quadrantDiagram-ABIIQ3AL-C0mOJrSQ.js} +1 -1
- package/dist/gui-mobile/assets/{railroadDiagram-RFXS5EU6-CYnrq0_H.js → railroadDiagram-RFXS5EU6-BuXb1GwD.js} +1 -1
- package/dist/gui-mobile/assets/{requirementDiagram-TGXJPOKE-Dan1m7mP.js → requirementDiagram-TGXJPOKE-zuyAg5UY.js} +1 -1
- package/dist/{gui/assets/sankeyDiagram-HTMAVEWB-D5yRszAY.js → gui-mobile/assets/sankeyDiagram-HTMAVEWB-C5rsz_9V.js} +1 -1
- package/dist/{gui/assets/sequenceDiagram-DBY2YBRQ-xLRttR6a.js → gui-mobile/assets/sequenceDiagram-DBY2YBRQ-CJPJqG5C.js} +1 -1
- package/dist/gui-mobile/assets/{sizeCapture-X5ZJPWSS-Cf4atOsc.js → sizeCapture-X5ZJPWSS-Dfmt1n7j.js} +1 -1
- package/dist/{gui/assets/stateDiagram-2N3HPSRC-JLfWMf-y.js → gui-mobile/assets/stateDiagram-2N3HPSRC-CcuZbZ-q.js} +1 -1
- package/dist/gui-mobile/assets/stateDiagram-v2-6OUMAXLB-D1oP_d1q.js +1 -0
- package/dist/{gui/assets/swimlanes-5IMT3BWC-DzNlggdg.js → gui-mobile/assets/swimlanes-5IMT3BWC-C3tNR3sN.js} +2 -2
- package/dist/gui-mobile/assets/swimlanesDiagram-G3AALYLV-auRnO-sL.js +8 -0
- package/dist/{gui/assets/timeline-definition-FHXFAJF6-DisxBENp.js → gui-mobile/assets/timeline-definition-FHXFAJF6-DJxPM33l.js} +1 -1
- package/dist/gui-mobile/assets/{vennDiagram-L72KCM5P-BI_Xsfbx.js → vennDiagram-L72KCM5P-C95GuO2U.js} +1 -1
- package/dist/gui-mobile/assets/{wardleyDiagram-EHGQE667-1DzhpDmv.js → wardleyDiagram-EHGQE667-ULJzIJRO.js} +1 -1
- package/dist/{gui/assets/xychartDiagram-FW5EYKEG-BFhk2kj2.js → gui-mobile/assets/xychartDiagram-FW5EYKEG-X6HGdnuS.js} +1 -1
- package/dist/gui-mobile/index.html +1 -1
- package/dist/gui-mobile/sw.js +1 -1
- package/package.json +1 -1
- package/dist/gui/assets/channel-DWjIfFiO.js +0 -1
- package/dist/gui/assets/classDiagram-OUVF2IWQ-I21k2As-.js +0 -1
- package/dist/gui/assets/classDiagram-v2-EOCWNBFH-I21k2As-.js +0 -1
- package/dist/gui/assets/stateDiagram-v2-6OUMAXLB-m9lGgZDF.js +0 -1
- package/dist/gui/assets/swimlanesDiagram-G3AALYLV-67oDFDZ3.js +0 -8
- package/dist/gui-mobile/assets/channel-BH91jO0g.js +0 -1
- package/dist/gui-mobile/assets/classDiagram-OUVF2IWQ-DI_HWJF7.js +0 -1
- package/dist/gui-mobile/assets/classDiagram-v2-EOCWNBFH-DI_HWJF7.js +0 -1
- package/dist/gui-mobile/assets/stateDiagram-v2-6OUMAXLB-BQUCaoqO.js +0 -1
- package/dist/gui-mobile/assets/swimlanesDiagram-G3AALYLV-B6OThFgb.js +0 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const $d=!1,Id=(e,t)=>e===t,Ir=Symbol("solid-proxy"),sc=typeof Proxy=="function",ac=Symbol("solid-track"),Mr={equals:Id};let uc=hc;const Zt=1,Lr=2,cc={owned:null,cleanups:null,context:null,owner:null},xi={};var Ie=null;let _i=null,Md=null,Ue=null,gt=null,Wt=null,Xr=0;function an(e,t){const n=Ue,r=Ie,i=e.length===0,o=t===void 0?r:t,s=i?cc:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=i?e:()=>e(()=>ot(()=>nr(s)));Ie=s,Ue=null;try{return Ft(a,!0)}finally{Ue=n,Ie=r}}function G(e,t){t=t?Object.assign({},Mr,t):Mr;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),gc(n,i));return[pc.bind(n),r]}function Ld(e,t,n){const r=ei(e,t,!0,Zt);Bn(r)}function Z(e,t,n){const r=ei(e,t,!1,Zt);Bn(r)}function Ae(e,t,n){uc=zd;const r=ei(e,t,!1,Zt);r.user=!0,Wt?Wt.push(r):Bn(r)}function ge(e,t,n){n=n?Object.assign({},Mr,n):Mr;const r=ei(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Bn(r),pc.bind(r)}function Fd(e){return e&&typeof e=="object"&&"then"in e}function nt(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=!0,i=e,o=t||{});let s=null,a=xi,u=!1,c="initialValue"in o,l=typeof r=="function"&&ge(r);const d=new Set,[p,g]=(o.storage||G)(o.initialValue),[f,h]=G(void 0),[b,v]=G(void 0,{equals:!1}),[x,E]=G(c?"ready":"unresolved");function w(M,j,F,P){return s===M&&(s=null,P!==void 0&&(c=!0),(M===a||j===a)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(P,{value:j})),a=xi,C(j,F)),j}function C(M,j){Ft(()=>{j===void 0&&g(()=>M),E(j!==void 0?"errored":c?"ready":"unresolved"),h(j);for(const F of d.keys())F.decrement();d.clear()},!1)}function O(){const M=Pd,j=p(),F=f();if(F!==void 0&&!s)throw F;return Ue&&Ue.user,j}function $(M=!0){if(M!==!1&&u)return;u=!1;const j=l?l():r;if(j==null||j===!1){w(s,ot(p));return}let F;const P=a!==xi?a:ot(()=>{try{return i(j,{value:p(),refetching:M})}catch(z){F=z}});if(F!==void 0){w(s,void 0,Or(F),j);return}else if(!Fd(P))return w(s,P,void 0,j),P;return s=P,"v"in P?(P.s===1?w(s,P.v,void 0,j):w(s,void 0,Or(P.v),j),P):(u=!0,queueMicrotask(()=>u=!1),Ft(()=>{E(c?"refreshing":"pending"),v()},!1),P.then(z=>w(P,z,void 0,j),z=>w(P,void 0,Or(z),j)))}Object.defineProperties(O,{state:{get:()=>x()},error:{get:()=>f()},loading:{get(){const M=x();return M==="pending"||M==="refreshing"}},latest:{get(){if(!c)return O();const M=f();if(M&&!s)throw M;return p()}}});let A=Ie;return l?Ld(()=>(A=Ie,$(!1))):$(!1),[O,{refetch:M=>Yo(A,()=>$(M)),mutate:g}]}function lc(e){return Ft(e,!1)}function ot(e){if(Ue===null)return e();const t=Ue;Ue=null;try{return e()}finally{Ue=t}}function Qr(e,t,n){const r=Array.isArray(e);let i,o=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(o)return o=!1,s;const u=ot(()=>t(a,i,s));return i=a,u}}function Me(e){return Ie===null||(Ie.cleanups===null?Ie.cleanups=[e]:Ie.cleanups.push(e)),e}function dc(){return Ie}function Yo(e,t){const n=Ie,r=Ue;Ie=e,Ue=null;try{return Ft(t,!0)}catch(i){Jo(i)}finally{Ie=n,Ue=r}}function fc(e){const t=Ue,n=Ie;return Promise.resolve().then(()=>{Ue=t,Ie=n;let r;return Ft(e,!1),Ue=Ie=null,r?r.done:void 0})}const[Hw,jw]=G(!1);function Xo(e,t){const n=Symbol("context");return{id:n,Provider:qd(n),defaultValue:e}}function Jr(e){let t;return Ie&&Ie.context&&(t=Ie.context[e.id])!==void 0?t:e.defaultValue}function Qo(e){const t=ge(e),n=ge(()=>Ro(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let Pd;function pc(){if(this.sources&&this.state)if(this.state===Zt)Bn(this);else{const e=gt;gt=null,Ft(()=>Pr(this),!1),gt=e}if(Ue){const e=this.observers;if(!e||e[e.length-1]!==Ue){const t=e?e.length:0;Ue.sources?(Ue.sources.push(this),Ue.sourceSlots.push(t)):(Ue.sources=[this],Ue.sourceSlots=[t]),e?(e.push(Ue),this.observerSlots.push(Ue.sources.length-1)):(this.observers=[Ue],this.observerSlots=[Ue.sources.length-1])}}return this.value}function gc(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Ft(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],s=_i&&_i.running;s&&_i.disposed.has(o),(s?!o.tState:!o.state)&&(o.pure?gt.push(o):Wt.push(o),o.observers&&mc(o)),s||(o.state=Zt)}if(gt.length>1e6)throw gt=[],new Error},!1)),t}function Bn(e){if(!e.fn)return;nr(e);const t=Xr;Bd(e,e.value,t)}function Bd(e,t,n){let r;const i=Ie,o=Ue;Ue=Ie=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=Zt,e.owned&&e.owned.forEach(nr),e.owned=null),e.updatedAt=n+1,Jo(s)}finally{Ue=o,Ie=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?gc(e,r):e.value=r,e.updatedAt=n)}function ei(e,t,n,r=Zt,i){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ie,context:Ie?Ie.context:null,pure:n};return Ie===null||Ie!==cc&&(Ie.owned?Ie.owned.push(o):Ie.owned=[o]),o}function Fr(e){if(e.state===0)return;if(e.state===Lr)return Pr(e);if(e.suspense&&ot(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Xr);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Zt)Bn(e);else if(e.state===Lr){const r=gt;gt=null,Ft(()=>Pr(e,t[0]),!1),gt=r}}function Ft(e,t){if(gt)return e();let n=!1;t||(gt=[]),Wt?n=!0:Wt=[],Xr++;try{const r=e();return Ud(n),r}catch(r){n||(Wt=null),gt=null,Jo(r)}}function Ud(e){if(gt&&(hc(gt),gt=null),e)return;const t=Wt;Wt=null,t.length&&Ft(()=>uc(t),!1)}function hc(e){for(let t=0;t<e.length;t++)Fr(e[t])}function zd(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Fr(r)}for(t=0;t<n;t++)Fr(e[t])}function Pr(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const i=r.state;i===Zt?r!==t&&(!r.updatedAt||r.updatedAt<Xr)&&Fr(r):i===Lr&&Pr(r,t)}}}function mc(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Lr,n.pure?gt.push(n):Wt.push(n),n.observers&&mc(n))}}function nr(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),s=n.observerSlots.pop();r<i.length&&(o.sourceSlots[s]=r,i[r]=o,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)nr(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)nr(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Or(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Jo(e,t=Ie){throw Or(e)}function Ro(e){if(typeof e=="function"&&!e.length)return Ro(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Ro(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let i=0;i<r.length;i++)t.push(r[i]);else t.push(r)}return t}return e}function qd(e,t){return function(r){let i;return Z(()=>i=ot(()=>(Ie.context={...Ie.context,[e]:r.value},Qo(()=>r.children))),void 0),i}}const Do=Symbol("fallback");function Br(e){for(let t=0;t<e.length;t++)e[t]()}function Hd(e,t,n={}){let r=[],i=[],o=[],s=0,a=t.length>1?[]:null;return Me(()=>Br(o)),()=>{let u=e()||[],c=u.length,l,d;return u[ac],ot(()=>{let g,f,h,b,v,x,E,w,C;if(c===0)s!==0&&(Br(o),o=[],r=[],i=[],s=0,a&&(a=[])),n.fallback&&(r=[Do],i[0]=an(O=>(o[0]=O,n.fallback())),s=1);else if(s===0){for(i=new Array(c),d=0;d<c;d++)r[d]=u[d],i[d]=an(p);s=c}else{for(h=new Array(c),b=new Array(c),a&&(v=new Array(c)),x=0,E=Math.min(s,c);x<E&&r[x]===u[x];x++);for(E=s-1,w=c-1;E>=x&&w>=x&&r[E]===u[w];E--,w--)h[w]=i[E],b[w]=o[E],a&&(v[w]=a[E]);for(g=new Map,f=new Array(w+1),d=w;d>=x;d--)C=u[d],l=g.get(C),f[d]=l===void 0?-1:l,g.set(C,d);for(l=x;l<=E;l++)C=r[l],d=g.get(C),d!==void 0&&d!==-1?(h[d]=i[l],b[d]=o[l],a&&(v[d]=a[l]),d=f[d],g.set(C,d)):o[l]();for(d=x;d<c;d++)d in h?(i[d]=h[d],o[d]=b[d],a&&(a[d]=v[d],a[d](d))):i[d]=an(p);i=i.slice(0,s=c),r=u.slice(0)}return i});function p(g){if(o[d]=g,a){const[f,h]=G(d);return a[d]=h,t(u[d],f)}return t(u[d])}}}function jd(e,t,n={}){let r=[],i=[],o=[],s=[],a=0,u;return Me(()=>Br(o)),()=>{const c=e()||[],l=c.length;return c[ac],ot(()=>{if(l===0)return a!==0&&(Br(o),o=[],r=[],i=[],a=0,s=[]),n.fallback&&(r=[Do],i[0]=an(p=>(o[0]=p,n.fallback())),a=1),i;for(r[0]===Do&&(o[0](),o=[],r=[],i=[],a=0),u=0;u<l;u++)u<r.length&&r[u]!==c[u]?s[u](()=>c[u]):u>=r.length&&(i[u]=an(d));for(;u<r.length;u++)o[u]();return a=s.length=o.length=l,r=c.slice(0),i=i.slice(0,a)});function d(p){o[u]=p;const[g,f]=G(c[u]);return s[u]=f,t(g,u)}}}function m(e,t){return ot(()=>e(t||{}))}function Er(){return!0}const Oo={get(e,t,n){return t===Ir?n:e.get(t)},has(e,t){return t===Ir?!0:e.has(t)},set:Er,deleteProperty:Er,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Er,deleteProperty:Er}},ownKeys(e){return e.keys()}};function yi(e){return(e=typeof e=="function"?e():e)?e:{}}function Kd(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function ze(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&Ir in a,e[s]=typeof a=="function"?(t=!0,ge(a)):a}if(sc&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const u=yi(e[a])[s];if(u!==void 0)return u}},has(s){for(let a=e.length-1;a>=0;a--)if(s in yi(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(yi(e[a])));return[...new Set(s)]}},Oo);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const u=Object.getOwnPropertyNames(a);for(let c=u.length-1;c>=0;c--){const l=u[c];if(l==="__proto__"||l==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,l);if(!r[l])r[l]=d.get?{enumerable:!0,configurable:!0,get:Kd.bind(n[l]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const p=n[l];p&&(d.get?p.push(d.get.bind(a)):d.value!==void 0&&p.push(()=>d.value))}}}const i={},o=Object.keys(r);for(let s=o.length-1;s>=0;s--){const a=o[s],u=r[a];u&&u.get?Object.defineProperty(i,a,u):i[a]=u?u.value:void 0}return i}function es(e,...t){const n=t.length;if(sc&&Ir in e){const i=n>1?t.flat():t[0],o=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},Oo));return o.push(new Proxy({get(s){return i.includes(s)?void 0:e[s]},has(s){return i.includes(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!i.includes(s))}},Oo)),o}const r=[];for(let i=0;i<=n;i++)r[i]={};for(const i of Object.getOwnPropertyNames(e)){let o=n;for(let u=0;u<t.length;u++)if(t[u].includes(i)){o=u;break}const s=Object.getOwnPropertyDescriptor(e,i);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[o][i]=s.value:Object.defineProperty(r[o],i,s)}return r}const Gd=e=>`Stale read from <${e}>.`;function Ke(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ge(Hd(()=>e.each,e.children,t||void 0))}function $o(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ge(jd(()=>e.each,e.children,t||void 0))}function I(e){const t=e.keyed,n=ge(()=>e.when,void 0,void 0),r=t?n:ge(n,void 0,{equals:(i,o)=>!i==!o});return ge(()=>{const i=r();if(i){const o=e.children;return typeof o=="function"&&o.length>0?ot(()=>o(t?i:()=>{if(!ot(r))throw Gd("Show");return n()})):o}return e.fallback},void 0,void 0)}const Wd=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Vd=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Wd]),Zd=new Set(["innerHTML","textContent","innerText","children"]),Yd=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Xd=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Qd(e,t){const n=Xd[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Jd=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),ef=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","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","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),tf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Fe=e=>ge(()=>e());function nf(e,t,n){let r=n.length,i=t.length,o=r,s=0,a=0,u=t[i-1].nextSibling,c=null;for(;s<i||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===s){const l=o<r?a?n[a-1].nextSibling:n[o-a]:u;for(;a<o;)e.insertBefore(n[a++],l)}else if(o===a)for(;s<i;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[i-1]){const l=t[--i].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],l),t[i]=n[o]}else{if(!c){c=new Map;let d=a;for(;d<o;)c.set(n[d],d++)}const l=c.get(t[s]);if(l!=null)if(a<l&&l<o){let d=s,p=1,g;for(;++d<i&&d<o&&!((g=c.get(t[d]))==null||g!==l+p);)p++;if(p>l-a){const f=t[s];for(;a<l;)e.insertBefore(n[a++],f)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const Rs="_$DX_DELEGATE";function rf(e,t,n,r={}){let i;return an(o=>{i=o,t===document?e():_(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=""}}function N(e,t,n,r){let i;const o=()=>{const a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(i||(i=o())).cloneNode(!0);return s.cloneNode=s,s}function qe(e,t=window.document){const n=t[Rs]||(t[Rs]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,df))}}function te(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function of(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function sf(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function Le(e,t){t==null?e.removeAttribute("class"):e.className=t}function bc(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n,typeof n!="function"&&n)}function af(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,s;for(o=0,s=i.length;o<s;o++){const a=i[o];!a||a==="undefined"||t[a]||(Ds(e,a,!1),delete n[a])}for(o=0,s=r.length;o<s;o++){const a=r[o],u=!!t[a];!a||a==="undefined"||n[a]===u||!u||(Ds(e,a,!0),n[a]=u)}return n}function uf(e,t,n){if(!t)return n?te(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function dr(e,t={},n,r){const i={};return r||Z(()=>i.children=rr(e,t.children,i.children)),Z(()=>typeof t.ref=="function"&&Vt(t.ref,e)),Z(()=>cf(e,t,n,!0,i,!0)),i}function Vt(e,t,n){return ot(()=>e(t,n))}function _(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return rr(e,t,r,n);Z(i=>rr(e,t(),i,n),r)}function cf(e,t,n,r,i={},o=!1){t||(t={});for(const s in i)if(!(s in t)){if(s==="children")continue;i[s]=Os(e,s,null,i[s],n,o,t)}for(const s in t){if(s==="children")continue;const a=t[s];i[s]=Os(e,s,a,i[s],n,o,t)}}function lf(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ds(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function Os(e,t,n,r,i,o,s){let a,u,c,l,d;if(t==="style")return uf(e,n,r);if(t==="classList")return af(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0)}else if(t.slice(0,2)==="on"){const p=t.slice(2).toLowerCase(),g=Jd.has(p);if(!g&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f)}(g||n)&&(bc(e,p,n,g),g&&qe([p]))}else if(t.slice(0,5)==="attr:")te(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")sf(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=Zd.has(t))||!i&&((l=Qd(t,e.tagName))||(u=Vd.has(t)))||(a=e.nodeName.includes("-")||"is"in s))d&&(t=t.slice(5),u=!0),t==="class"||t==="className"?Le(e,n):a&&!u&&!c?e[lf(t)]=n:e[l||t]=n;else{const p=i&&t.indexOf(":")>-1&&tf[t.split(":")[0]];p?of(e,p,t,n):te(e,Yd[t]||t,n)}return n}function df(e){let t=e.target;const n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=u=>Object.defineProperty(e,"target",{configurable:!0,value:u}),s=()=>{const u=t[n];if(u&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?u.call(t,c,e):u.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const u=e.composedPath();o(u[0]);for(let c=0;c<u.length-2&&(t=u[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===i)break}}else a();o(r)}function rr(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(o==="number"&&(t=t.toString(),t===n))return n;if(s){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=An(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean")n=An(e,n,r);else{if(o==="function")return Z(()=>{let a=t();for(;typeof a=="function";)a=a();n=rr(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],u=n&&Array.isArray(n);if(Io(a,t,n,i))return Z(()=>n=rr(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=An(e,n,r),s)return n}else u?n.length===0?$s(e,a,r):nf(e,n,a):(n&&An(e),$s(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=An(e,n,r,t);An(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Io(e,t,n,r){let i=!1;for(let o=0,s=t.length;o<s;o++){let a=t[o],u=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))i=Io(e,a,u)||i;else if(c==="function")if(r){for(;typeof a=="function";)a=a();i=Io(e,Array.isArray(a)?a:[a],Array.isArray(u)?u:[u])||i}else e.push(a),i=!0;else{const l=String(a);u&&u.nodeType===3&&u.data===l?e.push(u):e.push(document.createTextNode(l))}}return i}function $s(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function An(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(i!==a){const u=a.parentNode===e;!o&&!s?u?e.replaceChild(i,a):e.insertBefore(i,n):u&&a.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}const ff=!1,pf="http://www.w3.org/2000/svg";function gf(e,t=!1,n=void 0){return t?document.createElementNS(pf,e):document.createElement(e,{is:n})}function hf(e,t){const n=ge(e);return ge(()=>{const r=n();switch(typeof r){case"function":return ot(()=>r(t));case"string":const i=ef.has(r),o=gf(r,i,ot(()=>t.is));return dr(o,t,i),o}})}function mf(e){const[,t]=es(e,["component"]);return hf(()=>e.component,t)}function xc(){let e=new Set;function t(i){return e.add(i),()=>e.delete(i)}let n=!1;function r(i,o){if(n)return!(n=!1);const s={to:i,options:o,defaultPrevented:!1,preventDefault:()=>s.defaultPrevented=!0};for(const a of e)a.listener({...s,from:a.location,retry:u=>{u&&(n=!0),a.navigate(i,{...o,resolve:!1})}});return!s.defaultPrevented}return{subscribe:t,confirm:r}}let Mo;function ts(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),Mo=window.history.state._depth}ts();function bf(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function xf(e,t){let n=!1;return()=>{const r=Mo;ts();const i=r==null?null:Mo-r;if(n){n=!1;return}i&&t(i)?(n=!0,window.history.go(-i)):e()}}const _f=/^(?:[a-z0-9]+:)?\/\//i,yf=/^\/+|(\/)\/+$/g,_c="http://sr";function _n(e,t=!1){const n=e.replace(yf,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function $r(e,t,n){if(_f.test(t))return;const r=_n(e),i=n&&_n(n);let o="";return!i||t.startsWith("/")?o=r:i.toLowerCase().indexOf(r.toLowerCase())!==0?o=r+i:o=i,(o||"/")+_n(t,!o)}function vf(e,t){if(e==null)throw new Error(t);return e}function Ef(e,t){return _n(e).replace(/\/*(\*.*)?$/g,"")+_n(t)}function yc(e){const t={};return e.searchParams.forEach((n,r)=>{r in t?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n}),t}function wf(e,t,n){const[r,i]=e.split("/*",2),o=r.split("/").filter(Boolean),s=o.length;return a=>{const u=a.split("/").filter(Boolean),c=u.length-s;if(c<0||c>0&&i===void 0&&!t)return null;const l={path:s?"":"/",params:{}},d=p=>n===void 0?void 0:n[p];for(let p=0;p<s;p++){const g=o[p],f=g[0]===":",h=f?u[p]:u[p].toLowerCase(),b=f?g.slice(1):g.toLowerCase();if(f&&vi(h,d(b)))l.params[b]=h;else if(f||!vi(h,b))return null;l.path+=`/${h}`}if(i){const p=c?u.slice(-c).join("/"):"";if(vi(p,d(i)))l.params[i]=p;else return null}return l}}function vi(e,t){const n=r=>r===e;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function kf(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((i,o)=>i+(o.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function vc(e){const t=new Map,n=dc();return new Proxy({},{get(r,i){return t.has(i)||Yo(n,()=>t.set(i,ge(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(r,i){return i in e()}})}function Ec(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return Ec(r).reduce((o,s)=>[...o,...i.map(a=>a+s)],[])}const Sf=100,wc=Xo(),ns=Xo(),yn=()=>vf(Jr(wc),"<A> and 'use' router primitives can be only used inside a Route."),Cf=()=>Jr(ns)||yn().base,Af=e=>{const t=Cf();return ge(()=>t.resolvePath(e()))},Tf=e=>{const t=yn();return ge(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},ht=()=>yn().navigatorFactory(),fr=()=>yn().location,Nf=()=>yn().isRouting,pr=()=>yn().params,Rf=e=>{const t=yn().beforeLeave.subscribe({listener:e,location:fr(),navigate:ht()});Me(t)};function Df(e,t=""){const{component:n,preload:r,load:i,children:o,info:s}=e,a=!o||Array.isArray(o)&&!o.length,u={key:e,component:n,preload:r||i,info:s};return kc(e.path).reduce((c,l)=>{for(const d of Ec(l)){const p=Ef(t,d);let g=a?p:p.split("/*",1)[0];g=g.split("/").map(f=>f.startsWith(":")||f.startsWith("*")?f:encodeURIComponent(f)).join("/"),c.push({...u,originalPath:l,pattern:g,matcher:wf(g,!a,e.matchFilters)})}return c},[])}function Of(e,t=0){return{routes:e,score:kf(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let i=e.length-1;i>=0;i--){const o=e[i],s=o.matcher(n);if(!s)return null;r.unshift({...s,route:o})}return r}}}function kc(e){return Array.isArray(e)?e:[e]}function Sc(e,t="",n=[],r=[]){const i=kc(e);for(let o=0,s=i.length;o<s;o++){const a=i[o];if(a&&typeof a=="object"){a.hasOwnProperty("path")||(a.path="");const u=Df(a,t);for(const c of u){n.push(c);const l=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!l)Sc(a.children,c.pattern,n,r);else{const d=Of([...n],r.length);r.push(d)}n.pop()}}}return n.length?r:r.sort((o,s)=>s.score-o.score)}function Ei(e,t){for(let n=0,r=e.length;n<r;n++){const i=e[n].matcher(t);if(i)return i}return[]}function $f(e,t,n){const r=new URL(_c),i=ge(l=>{const d=e();try{return new URL(d,r)}catch{return console.error(`Invalid path ${d}`),l}},r,{equals:(l,d)=>l.href===d.href}),o=ge(()=>i().pathname),s=ge(()=>i().search,!0),a=ge(()=>i().hash),u=()=>"",c=Qr(s,()=>yc(i()));return{get pathname(){return o()},get search(){return s()},get hash(){return a()},get state(){return t()},get key(){return u()},query:n?n(c):vc(c)}}let xn;function If(){return xn}function Mf(e,t,n,r={}){const{signal:[i,o],utils:s={}}=e,a=s.parsePath||(B=>B),u=s.renderPath||(B=>B),c=s.beforeLeave||xc(),l=$r("",r.base||"");if(l===void 0)throw new Error(`${l} is not a valid base path`);l&&!i().value&&o({value:l,replace:!0,scroll:!1});const[d,p]=G(!1);let g;const f=(B,T)=>{T.value===h()&&T.state===v()||(g===void 0&&p(!0),xn=B,g=T,fc(()=>{g===T&&(b(g.value),x(g.state),C[1](D=>D.filter(X=>X.pending)))}).finally(()=>{g===T&&lc(()=>{xn=void 0,B==="navigate"&&P(g),p(!1),g=void 0})}))},[h,b]=G(i().value),[v,x]=G(i().state),E=$f(h,v,s.queryWrapper),w=[],C=G([]),O=ge(()=>typeof r.transformUrl=="function"?Ei(t(),r.transformUrl(E.pathname)):Ei(t(),E.pathname)),$=()=>{const B=O(),T={};for(let D=0;D<B.length;D++)Object.assign(T,B[D].params);return T},A=s.paramsWrapper?s.paramsWrapper($,t):vc($),M={pattern:l,path:()=>l,outlet:()=>null,resolvePath(B){return $r(l,B)}};return Z(Qr(i,B=>f("native",B),{defer:!0})),{base:M,location:E,params:A,isRouting:d,renderPath:u,parsePath:a,navigatorFactory:F,matches:O,beforeLeave:c,preloadRoute:z,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:C};function j(B,T,D){ot(()=>{if(typeof T=="number"){T&&(s.go?s.go(T):console.warn("Router integration does not support relative routing"));return}const X=!T||T[0]==="?",{replace:pe,resolve:Q,scroll:L,state:ne}={replace:!1,resolve:!X,scroll:!0,...D},H=Q?B.resolvePath(T):$r(X&&E.pathname||"",T);if(H===void 0)throw new Error(`Path '${T}' is not a routable path`);if(w.length>=Sf)throw new Error("Too many redirects");const S=h();(H!==S||ne!==v())&&(ff||c.confirm(H,D)&&(w.push({value:S,replace:pe,scroll:L,state:v()}),f("navigate",{value:H,state:ne})))})}function F(B){return B=B||Jr(ns)||M,(T,D)=>j(B,T,D)}function P(B){const T=w[0];T&&(o({...B,replace:T.replace,scroll:T.scroll}),w.length=0)}function z(B,T){const D=Ei(t(),B.pathname),X=xn;xn="preload";for(let pe in D){const{route:Q,params:L}=D[pe];Q.component&&Q.component.preload&&Q.component.preload();const{preload:ne}=Q;T&&ne&&Yo(n(),()=>ne({params:L,location:{pathname:B.pathname,search:B.search,hash:B.hash,query:yc(B),state:null,key:""},intent:"preload"}))}xn=X}}function Lf(e,t,n,r){const{base:i,location:o,params:s}=e,{pattern:a,component:u,preload:c}=r().route,l=ge(()=>r().path);u&&u.preload&&u.preload();const d=c?c({params:s,location:o,intent:xn||"initial"}):void 0;return{parent:t,pattern:a,path:l,outlet:()=>u?m(u,{params:s,location:o,data:d,get children(){return n()}}):n(),resolvePath(g){return $r(i.path(),g,l())}}}const Ff=e=>t=>{const{base:n}=t,r=Qo(()=>t.children),i=ge(()=>Sc(r(),t.base||""));let o;const s=Mf(e,i,()=>o,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(s),m(wc.Provider,{value:s,get children(){return m(Pf,{routerState:s,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[Fe(()=>(o=dc())&&null),m(Bf,{routerState:s,get branches(){return i()}})]}})}})};function Pf(e){const t=e.routerState.location,n=e.routerState.params,r=ge(()=>e.preload&&ot(()=>{e.preload({params:n,location:t,intent:If()||"initial"})}));return m(I,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>m(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function Bf(e){const t=[];let n;const r=ge(Qr(e.routerState.matches,(i,o,s)=>{let a=o&&i.length===o.length;const u=[];for(let c=0,l=i.length;c<l;c++){const d=o&&o[c],p=i[c];s&&d&&p.route.key===d.route.key?u[c]=s[c]:(a=!1,t[c]&&t[c](),an(g=>{t[c]=g,u[c]=Lf(e.routerState,u[c-1]||e.routerState.base,Is(()=>r()[c+1]),()=>{const f=e.routerState.matches();return f[c]??f[0]})}))}return t.splice(i.length).forEach(c=>c()),s&&a?s:(n=u[0],u)}));return Is(()=>r()&&n)()}const Is=e=>()=>m(I,{get when(){return e()},keyed:!0,children:t=>m(ns.Provider,{value:t,get children(){return t.outlet()}})}),mt=e=>{const t=Qo(()=>e.children);return ze(e,{get children(){return t()}})};function Uf([e,t],n,r){return[e,r?i=>t(r(i)):t]}function zf(e){let t=!1;const n=i=>typeof i=="string"?{value:i}:i,r=Uf(G(n(e.get()),{equals:(i,o)=>i.value===o.value&&i.state===o.state}),void 0,i=>(!t&&e.set(i),i));return e.init&&Me(e.init((i=e.get())=>{t=!0,r[1](n(i)),t=!1})),Ff({signal:r,create:e.create,utils:e.utils})}function qf(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function Hf(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}const jf=new Map;function Kf({preload:e=!0,explicitLinks:t=!1,actionBase:n="/_server",transformUrl:r}={}){return i=>{const o=i.base.path(),s=i.navigatorFactory(i.base);let a,u;function c(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function l(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const b=h.composedPath().find(O=>O instanceof Node&&O.nodeName.toUpperCase()==="A");if(!b||t&&!b.hasAttribute("link"))return;const v=c(b),x=v?b.href.baseVal:b.href;if((v?b.target.baseVal:b.target)||!x&&!b.hasAttribute("state"))return;const w=(b.getAttribute("rel")||"").split(/\s+/);if(b.hasAttribute("download")||w&&w.includes("external"))return;const C=v?new URL(x,document.baseURI):new URL(x);if(!(C.origin!==window.location.origin||o&&C.pathname&&!C.pathname.toLowerCase().startsWith(o.toLowerCase())))return[b,C]}function d(h){const b=l(h);if(!b)return;const[v,x]=b,E=i.parsePath(x.pathname+x.search+x.hash),w=v.getAttribute("state");h.preventDefault(),s(E,{resolve:!1,replace:v.hasAttribute("replace"),scroll:!v.hasAttribute("noscroll"),state:w?JSON.parse(w):void 0})}function p(h){const b=l(h);if(!b)return;const[v,x]=b;r&&(x.pathname=r(x.pathname)),i.preloadRoute(x,v.getAttribute("preload")!=="false")}function g(h){clearTimeout(a);const b=l(h);if(!b)return u=null;const[v,x]=b;u!==v&&(r&&(x.pathname=r(x.pathname)),a=setTimeout(()=>{i.preloadRoute(x,v.getAttribute("preload")!=="false"),u=v},20))}function f(h){if(h.defaultPrevented)return;let b=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!b)return;if(!b.startsWith("https://action/")){const x=new URL(b,_c);if(b=i.parsePath(x.pathname+x.search),!b.startsWith(n))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const v=jf.get(b);if(v){h.preventDefault();const x=new FormData(h.target,h.submitter);v.call({r:i,f:h.target},h.target.enctype==="multipart/form-data"?x:new URLSearchParams(x))}}qe(["click","submit"]),document.addEventListener("click",d),e&&(document.addEventListener("mousemove",g,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",f),Me(()=>{document.removeEventListener("click",d),e&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",f)})}}function Gf(e){const t=()=>{const r=window.location.pathname.replace(/^\/+/,"/")+window.location.search,i=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:r+window.location.hash,state:i}},n=xc();return zf({get:t,set({value:r,replace:i,scroll:o,state:s}){i?window.history.replaceState(bf(s),"",r):window.history.pushState(s,"",r),Hf(decodeURIComponent(window.location.hash.slice(1)),o),ts()},init:r=>qf(window,"popstate",xf(r,i=>{if(i)return!n.confirm(i);{const o=t();return!n.confirm(o.value,{state:o.state})}})),create:Kf({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl}),utils:{go:r=>window.history.go(r),beforeLeave:n}})(e)}var Wf=N("<a>");function Cc(e){e=ze({inactiveClass:"inactive",activeClass:"active"},e);const[,t]=es(e,["href","state","class","activeClass","inactiveClass","end"]),n=Af(()=>e.href),r=Tf(n),i=fr(),o=ge(()=>{const s=n();if(s===void 0)return[!1,!1];const a=_n(s.split(/[?#]/,1)[0]).toLowerCase(),u=decodeURI(_n(i.pathname).toLowerCase());return[e.end?a===u:u.startsWith(a+"/")||u===a,a===u]});return(()=>{var s=Wf();return dr(s,ze(t,{get href(){return r()||e.href},get state(){return JSON.stringify(e.state)},get classList(){return{...e.class&&{[e.class]:!0},[e.inactiveClass]:!o()[0],[e.activeClass]:o()[0],...t.classList}},link:"",get"aria-current"(){return o()[1]?"page":void 0}}),!1,!1),s})()}const xe=e=>typeof e=="string",Kn=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},Ms=e=>e==null?"":String(e),Vf=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Zf=/###/g,Ls=e=>e&&e.includes("###")?e.replace(Zf,"."):e,Fs=e=>!e||xe(e),Xn=(e,t,n)=>{const r=xe(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Fs(e))return{};const o=Ls(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return Fs(e)?{}:{obj:e,k:Ls(r[i])}},Ps=(e,t,n)=>{const{obj:r,k:i}=Xn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=Xn(e,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=Xn(e,s,Object),a?.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},Yf=(e,t,n,r)=>{const{obj:i,k:o}=Xn(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Ur=(e,t)=>{const{obj:n,k:r}=Xn(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Xf=(e,t,n)=>{const r=Ur(e,n);return r!==void 0?r:Ur(t,n)},Ac=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,r)?xe(e[r])||e[r]instanceof String||xe(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ac(e[r],t[r],n):e[r]=t[r]);return e},jt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Qf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Jf=e=>xe(e)?e.replace(/[&<>"'\/]/g,t=>Qf[t]):e;class e0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const t0=[" ",",","?","!",";"],n0=new e0(20),r0=(e,t,n)=>{t=t||"",n=n||"";const r=t0.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const i=n0.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o},Lo=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let s,a="";for(let u=o;u<r.length;++u)if(u!==o&&(a+=n),a+=r[u],s=i[a],s!==void 0){if(["string","number","boolean"].includes(typeof s)&&u<r.length-1)continue;o+=u-o+1;break}i=s}return i},ir=e=>e?.replace(/_/g,"-"),i0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class zr{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||i0,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(t=t.map(o=>xe(o)?o.replace(/[\r\n\x00-\x1F\x7F]/g," "):o),xe(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zr(this.logger,t)}}var It=new zr;class ti{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...i)=>{n(...i),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i(t,...n)})}}class Bs extends ti{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.includes(".")?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):xe(r)&&o?a.push(...r.split(o)):a.push(r)));const u=Ur(this.data,a);return!u&&!n&&!r&&t.includes(".")&&(t=a[0],n=a[1],r=a.slice(2).join(".")),u||!s||!xe(r)?u:Lo(this.data?.[t]?.[n],r,o)}addResource(t,n,r,i,o={silent:!1}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.includes(".")&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),Ps(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const o in r)(xe(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,s={silent:!1,skipCopy:!1}){let a=[t,n];t.includes(".")&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let u=Ur(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Ac(u,r,o):u={...u,...r},Ps(this.data,a,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Tc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{t=this.processors[o]?.process(t,n,r,i)??t}),t}};const Nc=Symbol("i18next/PATH_KEY");function o0(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===Nc?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function In(e,t){const{[Nc]:n}=e(o0()),r=t?.keySeparator??".",i=t?.nsSeparator??":",o=t?.enableSelector==="strict";if(n.length>1&&i){const s=t?.ns,a=o?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(a&&(o?a:a.length>1?a.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const wi=e=>!xe(e)&&typeof e!="boolean"&&typeof e!="number";class qr extends ti{constructor(t,n={}){super(),Vf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=It.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if(i?.res===void 0)return!1;const o=wi(i.res);return!(r.returnObjects===!1&&o)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.includes(r),a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!r0(t,r,i);if(s&&!a){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:xe(o)?[o]:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.includes(c[0]))&&(o=c.shift()),t=c.join(i)}return{key:t,namespaces:xe(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=In(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(z=>typeof z=="function"?In(z,{...this.options,...i}):String(z));const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:a,namespaces:u}=this.extractFromKey(t[t.length-1],i),c=u[u.length-1];let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const d=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return p?o?{res:`${c}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${l}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:a;const g=this.resolve(t,i);let f=g?.res;const h=g?.usedKey||a,b=g?.exactUsedKey||a,v=["[object Number]","[object Function]","[object RegExp]"],x=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,w=i.count!==void 0&&!xe(i.count),C=qr.hasDefaultValue(i),O=w?this.pluralResolver.getSuffix(d,i.count,i):"",$=i.ordinal&&w?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",A=w&&!i.ordinal&&i.count===0,M=A&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${O}`]||i[`defaultValue${$}`]||i.defaultValue;let j=f;E&&!f&&C&&(j=M);const F=wi(j),P=Object.prototype.toString.apply(j);if(E&&j&&F&&!v.includes(P)&&!(xe(x)&&Array.isArray(j))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,j,{...i,ns:u}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(g.res=z,g.usedParams=this.getUsedParamsDetails(i),g):z}if(s){const z=Array.isArray(j),B=z?[]:{},T=z?b:h;for(const D in j)if(Object.prototype.hasOwnProperty.call(j,D)){const X=`${T}${s}${D}`;C&&!f?B[D]=this.translate(X,{...i,defaultValue:wi(M)?M[D]:void 0,joinArrays:!1,ns:u}):B[D]=this.translate(X,{...i,joinArrays:!1,ns:u}),B[D]===X&&(B[D]=j[D])}f=B}}else if(E&&xe(x)&&Array.isArray(f))f=f.join(x),f&&(f=this.extendTranslation(f,t,i,r));else{let z=!1,B=!1;!this.isValidLookup(f)&&C&&(z=!0,f=M),this.isValidLookup(f)||(B=!0,f=a);const D=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:f,X=C&&M!==f&&this.options.updateMissing;if(B||z||X){if(this.logger.log(X?"updateKey":"missingKey",d,c,w&&!X?`${a}${this.pluralResolver.getSuffix(d,i.count,i)}`:a,X?M:f),s){const ne=this.resolve(a,{...i,keySeparator:!1});ne&&ne.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let pe=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ne=0;ne<Q.length;ne++)pe.push(Q[ne]);else this.options.saveMissingTo==="all"?pe=this.languageUtils.toResolveHierarchy(i.lng||this.language):pe.push(i.lng||this.language);const L=(ne,H,S)=>{const R=C&&S!==f?S:D;this.options.missingKeyHandler?this.options.missingKeyHandler(ne,c,H,R,X,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ne,c,H,R,X,i),this.emit("missingKey",ne,c,H,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?pe.forEach(ne=>{const H=this.pluralResolver.getSuffixes(ne,i);A&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!H.includes(`${this.options.pluralSeparator}zero`)&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(S=>{L([ne],a+S,i[`defaultValue${S}`]||M)})}):L(pe,a,M))}f=this.extendTranslation(f,t,i,g,r),B&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${c}${l}${a}`),(B||z)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${a}`:a,z?f:void 0,i))}return o?(g.res=f,g.usedParams=this.getUsedParamsDetails(i),g):f}extendTranslation(t,n,r,i,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=xe(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let l=r.replace&&!xe(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,r.lng||this.language||i.usedLng,r),u){const d=t.match(this.interpolator.nestingRegexp),p=d&&d.length;c<p&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>o?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${n[0]}`),null):this.translate(...d,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=xe(s)?[s]:s;return t!=null&&a?.length&&r.applyPostProcessor!==!1&&(t=Tc.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,o,s,a;return xe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(u=>typeof u=="function"?In(u,{...this.options,...n}):u)),t.forEach(u=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(u,n),l=c.key;i=l;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&!xe(n.count),g=p&&!n.ordinal&&n.count===0,f=n.context!==void 0&&(xe(n.context)||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(b=>{this.isValidLookup(r)||(a=b,!this.checkedLoadedFor[`${h[0]}-${b}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${h[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(v=>{if(this.isValidLookup(r))return;s=v;const x=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(x,l,v,b,n);else{let w;p&&(w=this.pluralResolver.getSuffix(v,n.count,n));const C=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&w.startsWith(O)&&x.push(l+w.replace(O,this.options.pluralSeparator)),x.push(l+w),g&&x.push(l+C)),f){const $=`${l}${this.options.contextSeparator||"_"}${n.context}`;x.push($),p&&(n.ordinal&&w.startsWith(O)&&x.push($+w.replace(O,this.options.pluralSeparator)),x.push($+w),g&&x.push($+C))}}let E;for(;E=x.pop();)this.isValidLookup(r)||(o=E,r=this.getResource(v,b,E,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!xe(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i={...i,count:t.count}),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r.startsWith(n)&&t[r]!==void 0)return!0;return!1}}class Us{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=It.create("languageUtils")}getScriptPartFromCode(t){if(t=ir(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ir(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(xe(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>s===o?!0:!s.includes("-")&&!o.includes("-")?!1:!!(s.includes("-")&&!o.includes("-")&&s.slice(0,s.indexOf("-"))===o||s.startsWith(o)&&o.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),xe(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return xe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):xe(t)&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.includes(s)||o(this.formatLanguageCode(s))}),i}}const zs={zero:0,one:1,two:2,few:3,many:4,other:5},qs={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class s0{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=It.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ir(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),qs;if(!t.match(/-|_/))return qs;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[o]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>zs[i]-zs[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Hs=(e,t,n,r=".",i=!0)=>{let o=Xf(e,t,n);return!o&&i&&xe(n)&&(o=Lo(e,n,r),o===void 0&&(o=Lo(t,n,r))),o},a0=e=>e.replace(/\$/g,"$$$$");class js{constructor(t={}){this.logger=It.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:u,formatSeparator:c,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:b,maxReplaces:v,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:Jf,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?jt(o):s||"{{",this.suffix=a?jt(a):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":d?jt(d):"-",this.unescapeSuffix=this.unescapePrefix?"":l?jt(l):"",this.nestingPrefix=p?jt(p):g||jt("$t("),this.nestingSuffix=f?jt(f):h||jt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=v||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,a;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(!g.includes(this.formatSeparator)){const v=Hs(n,u,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:g}):v}const f=g.split(this.formatSeparator),h=f.shift().trim(),b=f.join(this.formatSeparator).trim();return this.format(Hs(n,u,h,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:h})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const l=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>g},{regex:this.regexp,safeValue:g=>this.escapeValue?this.escape(g):g}].forEach(g=>{for(a=0;o=g.regex.exec(t);){const f=o[1].trim();if(s=c(f),s===void 0)if(typeof l=="function"){const b=l(t,o,i);s=xe(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,f))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),s="";else!xe(s)&&!this.useRawValueToEscape&&(s=Ms(s));const h=g.safeValue(s);if(t=t.replace(o[0],a0(h)),d?(g.regex.lastIndex+=h.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,s;const a=(u,c)=>{const l=this.nestingOptionsSeparator;if(!u.includes(l))return u;const d=u.split(new RegExp(`${jt(l)}[ ]*{`));let p=`{${d[1]}`;u=d[0],p=this.interpolate(p,s);const g=p.match(/'/g),f=p.match(/"/g);((g?.length??0)%2===0&&!f||(f?.length??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,h),`${u}${l}${p}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,u};for(;i=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!xe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(c!==-1&&(u=i[1].slice(c).split(this.formatSeparator).map(l=>l.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),o=n(a.call(this,i[1].trim(),s),s),o&&i[0]===t&&!xe(o))return o;xe(o)||(o=Ms(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u.length&&(o=u.reduce((l,d)=>this.format(l,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const u0=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].slice(0,-1);t==="currency"&&!i.includes(":")?n.currency||(n.currency=i.trim()):t==="relativetime"&&!i.includes(":")?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[a,...u]=s.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),l=a.trim();n[l]||(n[l]=c),c==="false"&&(n[l]=!1),c==="true"&&(n[l]=!0),isNaN(c)||(n[l]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Ks=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=r+JSON.stringify(o);let a=t[s];return a||(a=e(ir(r),i),t[s]=a),a(n)}},c0=e=>(t,n,r)=>e(ir(n),r)(t);class l0{constructor(t={}){this.logger=It.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Ks:c0;this.formats={number:r((i,o)=>{const s=new Intl.NumberFormat(i,{...o});return a=>s.format(a)}),currency:r((i,o)=>{const s=new Intl.NumberFormat(i,{...o,style:"currency"});return a=>s.format(a)}),datetime:r((i,o)=>{const s=new Intl.DateTimeFormat(i,{...o});return a=>s.format(a)}),relativetime:r((i,o)=>{const s=new Intl.RelativeTimeFormat(i,{...o});return a=>s.format(a,o.range||"day")}),list:r((i,o)=>{const s=new Intl.ListFormat(i,{...o});return a=>s.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ks(n)}format(t,n,r,i={}){if(!n||t==null)return t;const o=n.split(this.formatSeparator),s=[];for(let u=0;u<o.length;u++){let c=o[u];for(;c.indexOf("(")>-1&&!c.includes(")")&&u+1<o.length;)c=`${c}${this.formatSeparator}${o[++u]}`;s.push(c)}return s.reduce((u,c)=>{const{formatName:l,formatOptions:d}=u0(c);if(this.formats[l]){let p=u;try{const g=i?.formatParams?.[i.interpolationkey]||{},f=g.locale||g.lng||i.locale||i.lng||r;p=this.formats[l](u,f,{...d,...i,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${l}`);return u},t)}}const d0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class f0 extends ti{constructor(t,n,r,i={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=It.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},a={},u={};return t.forEach(c=>{let l=!0;n.forEach(d=>{const p=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,l=!1,s[p]===void 0&&(s[p]=!0),o[p]===void 0&&(o[p]=!0),u[d]===void 0&&(u[d]=!0)))}),l||(a[c]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),!n&&r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(u=>{Yf(u.loaded,[o],s),d0(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{a[c]||(a[c]={});const l=u.loaded[c];l.length&&l.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r,i=0,o=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const a=(c,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&l&&i<this.maxRetries){setTimeout(()=>{this.read(t,n,r,i+1,o*2,s)},o);return}s(c,l)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(t,n);c&&typeof c.then=="function"?c.then(l=>a(null,l)).catch(a):a(null,c)}catch(c){a(c)}return}return u(t,n,a)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();xe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),xe(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,i,o,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...s,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let l;c.length===5?l=c(t,n,r,i,u):l=c(t,n,r,i),l&&typeof l.then=="function"?l.then(d=>a(null,d)).catch(a):a(null,l)}catch(l){a(l)}else c(t,n,r,i,a,u)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const ki=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),xe(e[1])&&(t.defaultValue=e[1]),xe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Gs=e=>(xe(e.ns)&&(e.ns=[e.ns]),xe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),xe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),wr=()=>{},p0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Qn extends ti{constructor(t={},n){if(super(),this.options=Gs(t),this.services={},this.logger=It,this.modules={external:[]},p0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(xe(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=ki();this.options={...r,...this.options,...Gs(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?It.init(i(this.modules.logger),this.options):It.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=l0;const l=new Us(this.options);this.store=new Bs(this.options.resources,this.options);const d=this.services;d.logger=It,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new s0(l,{prepend:this.options.pluralSeparator}),c&&(d.formatter=i(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new js(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new f0(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...g)=>{this.emit(p,...g)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new qr(this.services,this.options),this.translator.on("*",(p,...g)=>{this.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=wr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...l)=>this.store[c](...l)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...l)=>(this.store[c](...l),this)});const a=Kn(),u=()=>{const c=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),n(l,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),a}loadResources(t,n=wr){let r=n;const i=xe(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&(o.includes(c)||o.push(c))})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Kn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=wr),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Tc.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Kn();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?this.isLanguageChangingTo===t&&(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(a,(...c)=>this.t(...c))},s=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=xe(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(xe(a)?[a]:a);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,l=>{o(l,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r,i){const o=i?.scopeNs,s=(a,u,...c)=>{let l;typeof u!="object"?l=this.options.overloadTranslationOptionHandler([a,u].concat(c)):l={...u},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs;const d=l.ns!==void 0&&l.ns!==null;l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const p={...this.options,...l};Array.isArray(o)&&!d&&(p.ns=o),typeof l.keyPrefix=="function"&&(l.keyPrefix=In(l.keyPrefix,p));const g=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(h=>(typeof h=="function"&&(h=In(h,p)),`${l.keyPrefix}${g}${h}`)):(typeof a=="function"&&(a=In(a,p)),f=l.keyPrefix?`${l.keyPrefix}${g}${a}`:a),this.t(f,l)};return xe(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,u)=>{const c=this.services.backendConnector.state[`${a}|${u}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=Kn();return this.options.ns?(xe(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Kn();xe(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>!i.includes(s)&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new Us(ki());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Qn(t,n);return r.createInstance=Qn.createInstance,r}cloneInstance(t={},n=wr){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Qn(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const a=Object.keys(this.store.data).reduce((u,c)=>(u[c]={...this.store.data[c]},u[c]=Object.keys(u[c]).reduce((l,d)=>(l[d]={...u[c][d]},l),u[c]),u),{});o.store=new Bs(a,i),o.services.resourceStore=o.store}if(t.interpolation){const u={...ki().interpolation,...this.options.interpolation,...t.interpolation},c={...i,interpolation:u};o.services.interpolator=new js(c)}return o.translator=new qr(o.services,i),o.translator.on("*",(a,...u)=>{o.emit(a,...u)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Qe=Qn.createInstance();Qe.createInstance;Qe.dir;Qe.init;Qe.loadResources;Qe.reloadResources;Qe.use;Qe.changeLanguage;Qe.getFixedT;Qe.t;Qe.exists;Qe.setDefaultNamespace;Qe.hasLoadedNamespace;Qe.loadNamespaces;Qe.loadLanguages;const{slice:g0,forEach:h0}=[];function m0(e){return h0.call(g0.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function b0(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const Ws=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,x0=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!Ws.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!Ws.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},Vs={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=x0(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var _0={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Vs.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&Vs.create(n,e,r,i,o)}},y0={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let s=0;s<o.length;s++){const a=o[s].indexOf("=");a>0&&o[s].substring(0,a)===t&&(n=o[s].substring(a+1))}}return n}},v0={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const s=o.split("&");for(let a=0;a<s.length;a++){const u=s[a].indexOf("=");u>0&&s[a].substring(0,u)===t&&(r=s[a].substring(u+1))}}if(r)return r;if(!r&&n>-1){const s=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Tn=null;const Zs=()=>{if(Tn!==null)return Tn;try{if(Tn=typeof window<"u"&&window.localStorage!==null,!Tn)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Tn=!1}return Tn};var E0={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Zs())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Zs()&&window.localStorage.setItem(n,e)}};let Nn=null;const Ys=()=>{if(Nn!==null)return Nn;try{if(Nn=typeof window<"u"&&window.sessionStorage!==null,!Nn)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Nn=!1}return Nn};var w0={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Ys())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Ys()&&window.sessionStorage.setItem(n,e)}},k0={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},S0={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},C0={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},A0={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Rc=!1;try{document.cookie,Rc=!0}catch{}const Dc=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Rc||Dc.splice(1,1);const T0=()=>({order:Dc,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=m0(n,this.options||{},T0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(_0),this.addDetector(y0),this.addDetector(E0),this.addDetector(w0),this.addDetector(k0),this.addDetector(S0),this.addDetector(C0),this.addDetector(A0),this.addDetector(v0)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!b0(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Oc.type="languageDetector";function N0(e,t={}){const{fallbackLng:n="zh-CN",persistKey:r}=t,i=Qe.use(Oc).init({resources:e,fallbackLng:n,detection:{order:r?["localStorage","navigator"]:["navigator"],caches:r?["localStorage"]:[],...r?{lookupLocalStorage:r}:{}},interpolation:{escapeValue:!1}}),[o,s]=G(Qe.language||n),[a,u]=G(Qe.isInitialized);i.then(()=>{s(Qe.language||n),u(!0)}),Qe.on("languageChanged",d=>s(d));const c=(d,p)=>(o(),Qe.t(d,p));return{i18next:Qe,initPromise:i,t:c,useTranslation:()=>({t:c,lng:ge(()=>o()),ready:ge(()=>a()),changeLanguage:d=>{Qe.changeLanguage(d)}})}}const R0={app:{name:"YorZ",tagline:"移动端"},nav:{sessions:"会话",specs:"Spec",ext:"扩展",projects:"项目"},common:{loading:"加载中…",retry:"重试",error:"加载失败",comingSoon:"即将支持",noProject:"尚未选择项目",noProjectHint:"到「项目」页选择一个项目后再回来。",emptyProjects:"还没有项目",emptyProjectsHint:"请在桌面端添加项目——添加需要填写绝对路径,手机上无法选择目录。",save:"保存",saving:"保存中…",saved:"已保存",back:"返回",cancel:"取消",close:"关闭",confirm:"确定",pendingAgent:"待 agent 补充"},sessions:{title:"会话",empty:"还没有会话",new:"新建会话",running:"运行中"},specs:{title:"Spec",empty:"还没有 spec",new:"新建 spec",copyPath:"复制路径",pathCopied:"已复制路径",copyFailed:"复制失败",delete:"删除",deleteConfirm:"确认删除",deleteHint:"删除后不可恢复",deleted:"已删除"},ext:{title:"扩展",scripts:"脚本管理",scriptsDesc:"新增、删除与运行项目脚本",runningEmpty:"当前没有运行中的脚本",git:"Git",gitDesc:"查看改动、提交与分支操作",restart:"重启",stop:"终止",stopConfirm:"确认终止",stopHint:"终止后需重新运行脚本",restarted:"已重启",stopped:"已终止"},scripts:{title:"脚本管理",empty:"还没有脚本",add:"新增脚本",addTitle:"新增脚本",name:"名称",namePlaceholder:"例如:构建",cli:"命令行",cliPlaceholder:"例如:pnpm build",submit:"创建",created:"已创建",run:"运行",running:"运行中",delete:"删除",deleteConfirm:"确认删除",deleteHint:"只删除脚本定义,不会终止已在运行的进程",deleted:"已删除",runFailed:"运行失败"},runOutput:{title:"运行输出",notFound:"这次运行不存在或记录已被清除",statusRunning:"运行中",statusExited:"已结束",statusKilled:"已终止",statusFailed:"失败",outputEmpty:"暂无输出",truncated:"输出过长,仅显示末尾部分",copyOutput:"复制输出",copyPath:"复制日志路径",copied:"已复制",copyFailed:"复制失败",exitCode:"退出码",signal:"信号",stop:"终止",stopConfirm:"确认终止",stopHint:"终止后保留输出,可继续查看",stopped:"已终止"},git:{title:"Git",empty:"工作区干净,没有改动",branch:"分支",diffLoading:"加载 diff…",diffEmpty:"没有可显示的差异",diffTruncated:"diff 过大,已截断",binaryFile:"二进制文件,不显示差异",commit:"提交",commitPlaceholder:"提交信息",committing:"提交中…",committed:"已提交",discard:"丢弃",discarding:"丢弃中…",discardConfirm:"确认丢弃",discardHint:"所选文件的改动将被永久丢弃,不可恢复",discarded:"已丢弃",selectAtLeastOne:"请先选择至少一个文件",enterCommitMsg:"请填写提交信息",fileCount:"已选 {{selected}} / {{total}}",selectAll:"全选",deselectAll:"取消全选",switchBranch:"切换分支",branchFilterPlaceholder:"筛选分支",noBranches:"没有匹配的分支",switched:"已切换到 {{branch}}",mergeBranch:"合并分支",mergeAction:"合并",merging:"合并中…",merged:"已把 {{branch}} 合并进 {{current}}",mergeUpToDate:"{{current}} 已包含 {{branch}}",mergeSelfHint:"不能合并当前分支",push:"推送",pushed:"已推送 {{branch}}",pull:"拉取",pulled:"已拉取 {{branch}}",upToDate:"已是最新",more:"更多",fileSelectMode:"文件范围",manualSelect:"手动选择",agentSelect:"交给 Agent",agentScope:"Agent 将处理 {{total}} 个改动",agentModeHint:"由 Agent 决定处理哪些改动",agentDispatched:"已交给 Agent 处理",discardAllHint:"Agent 将丢弃工作区的全部改动,不可恢复"},projects:{title:"项目",empty:"还没有项目",globalSettings:"全局设置",projectSettings:"项目设置",switched:"已切换项目"},globalSettings:{title:"全局设置",agent:"Agent",defaultKind:"默认 Agent",notifications:"通知",sessionEndBanner:"会话结束横幅",sessionEndSound:"会话结束提示音",appearance:"外观",themeMode:"亮暗模式",themeName:"主题风格",language:"语言",about:"关于",version:"版本",installState:"安装状态",installed:"已安装到主屏",browser:"浏览器内运行"},projectSettings:{title:"项目设置",agent:"Agent",kind:"Agent 类型",inherit:"跟随全局",custom:"自定义命令",cmd:"命令",args:"参数",argsHint:"空格分隔",cmdRequired:"自定义 Agent 需要填写命令"},chat:{untitled:"未命名会话",empty:"这个会话还没有消息",draftEmpty:"说点什么,开始新会话",usageLoading:"正在查询当前模型剩余用量…",usageUnavailable:"{{kind}} 暂不支持查询剩余用量。",usageInstallHint:"{{kind}} 需要安装 opencode-quota 后才能查询剩余用量:{{command}}",usageError:"{{kind}} 剩余用量查询失败。",usageAvailableNoDetails:"{{kind}} 已连接,但未返回可展示的剩余用量明细。",usageSummary:"{{kind}} 用量:{{details}}",usageWindow:"{{label}} 剩余约 {{remaining}}%(已用 {{used}}%,重置:{{reset}})",usageWindowUnknown:"{{label}} 剩余用量未知",usageResetUnknown:"未知",usageSeparator:" · ",placeholder:"/ 触发候选指令,@ 引用文件",send:"发送",abort:"中断",slashCommandNoMatch:"没有匹配的指令",slashCommandYorzDebug:"启动 debug 模式,尝试解决疑难问题",slashCommandYorzSpec:"基于上下文启动 spec 驱动开发",customSlashCommandNoDescription:"自定义指令",attach:"添加附件",attachmentLimit:"附件总数不能超过 {{max}} 个",attachUnsupported:"不支持的文件类型:{{name}}",attachUnsupportedMime:"不支持的 MIME:{{mime}}",attachTooBig:"{{name}} 超过 5 MB 限制",attachTooMany:"只能再添加 {{room}} 个附件(当前 {{current}}/{{max}})",attachFailed:"附件上传失败,请移除后重试",attachUploading:"附件还在上传中",toolCollapsed:"工具调用 ×{{count}}",toolTextExpand:"展开",toolTextCollapse:"收起",agentContextCollapsed:"上下文",sessionDivider:"新一轮",errorMessage:"[错误] {{message}}",copyFilePath:"复制路径",filePathCopied:"路径已复制",filePathCopyFailed:"复制失败",sendFailed:"发送失败",openSpec:"查看 spec"},specDetail:{notFound:"spec 不存在或已被删除",running:"运行中",openSession:"查看会话",appendTask:"追加任务",debug:"Debug 文档",git:"git",more:"更多",copySpecPath:"复制 spec 路径",specPathCopied:"路径已复制",questions:"待确认项",questionsBadge:"{{count}} 项待确认",questionsEmpty:"没有待确认项",submit:"提交",submitting:"提交中…",submitted:"已提交,agent 开始处理",submitFailed:"提交失败",unanswered:"还有 {{count}} 项未作答",reasonRequired:"否决必须填写理由",appendSaved:"已追加,agent 开始处理",appendSavedSpecBusy:"已记录,spec 正忙,稍后自动处理",appendFailed:"追加失败",appendKindFeat:"新功能",appendKindRefct:"重构",appendKindFix:"缺陷",appendDescription:"描述",appendDescriptionHint:"描述要追加的内容",decisionAccept:"确认,按此推进",decisionReject:"否决",decisionAlternative:"换方案",decisionConstraint:"补约束",decisionDropGoal:"弃目标",decisionDropCurrent:"废弃当前目标,继续其余",decisionDropSpec:"放弃整个 spec",rejectReason:"理由",rejectReasonHint:"说明否决的原因",freeformOther:"其它(自由文本)",freeformHint:"写下你的想法",plan:"方案",impact:"影响",viewDiagram:"查看图表",noSection:"(无章节)",annotate:"批注",annotateTitle:"添加批注",annotateInSection:"章节:{{section}}",annotatePlaceholder:"写下你对这段的意见",annotateSubmit:"添加",annotationSaved:"已加入待确认项,提交后生效",annotationDraft:"选区批注",annotationQuoteConnector:"中",removeAnnotation:"删除批注",explain:"解释",explainTooLong:"选中内容超过 {{max}} 字,请选少一点",explainFailed:"解释失败",selectionClose:"取消选择"},specDebug:{empty:"暂无 debug.md 记录"},newSpec:{title:"新建 spec",type:"类型",typeFeat:"新功能",typeFeatHint:"新增能力或扩展现有能力",typeRefct:"重构",typeRefctHint:"不改变外部行为的内部调整",typeFix:"缺陷",typeFixHint:"修复错误行为",requirement:"需求",requirementHint:"描述你想做什么,agent 会据此起草 spec",requirementTooShort:"至少写 5 个字",attachments:"附件",create:"创建",creating:"创建中…",createFailed:"创建失败",drafting:"agent 正在起草…"},theme:{system:"跟随系统",light:"亮色",dark:"暗色",terminal:"Terminal",graphite:"Graphite",paper:"Paper"},pwa:{offlineReady:"已可离线使用",needRefresh:"有新版本",refresh:"刷新",offline:"当前离线,展示的是缓存内容"},notFound:{title:"页面不存在",back:"返回首页"}},D0={app:{name:"YorZ",tagline:"Mobile"},nav:{sessions:"Sessions",specs:"Specs",ext:"Extensions",projects:"Projects"},common:{loading:"Loading…",retry:"Retry",error:"Failed to load",comingSoon:"Coming soon",noProject:"No project selected",noProjectHint:"Pick one on the Projects tab, then come back.",emptyProjects:"No projects yet",emptyProjectsHint:"Add one from the desktop app — it needs an absolute path, which a phone cannot browse to.",save:"Save",saving:"Saving…",saved:"Saved",back:"Back",cancel:"Cancel",close:"Close",confirm:"Confirm",pendingAgent:"Pending agent"},sessions:{title:"Sessions",empty:"No sessions yet",new:"New session",running:"Running"},specs:{title:"Specs",empty:"No specs yet",new:"New spec",copyPath:"Copy path",pathCopied:"Path copied",copyFailed:"Copy failed",delete:"Delete",deleteConfirm:"Delete spec",deleteHint:"This cannot be undone",deleted:"Deleted"},ext:{title:"Extensions",scripts:"Scripts",scriptsDesc:"Add, remove and run project scripts",runningEmpty:"Nothing is running",git:"Git",gitDesc:"Changes, commits and branches",restart:"Restart",stop:"Stop",stopConfirm:"Stop script",stopHint:"It stops immediately and needs a rerun",restarted:"Restarted",stopped:"Stopped"},scripts:{title:"Scripts",empty:"No scripts yet",add:"Add script",addTitle:"Add script",name:"Name",namePlaceholder:"e.g. Build",cli:"Command",cliPlaceholder:"e.g. pnpm build",submit:"Create",created:"Created",run:"Run",running:"Running",delete:"Delete",deleteConfirm:"Delete script",deleteHint:"Removes the definition only; a running process keeps going",deleted:"Deleted",runFailed:"Failed to run"},runOutput:{title:"Output",notFound:"This run no longer exists",statusRunning:"Running",statusExited:"Exited",statusKilled:"Killed",statusFailed:"Failed",outputEmpty:"No output yet",truncated:"Output is long; showing the tail only",copyOutput:"Copy output",copyPath:"Copy log path",copied:"Copied",copyFailed:"Copy failed",exitCode:"Exit code",signal:"Signal",stop:"Stop",stopConfirm:"Stop run",stopHint:"The output is kept and stays readable",stopped:"Stopped"},git:{title:"Git",empty:"Working tree is clean",branch:"Branch",diffLoading:"Loading diff…",diffEmpty:"Nothing to show",diffTruncated:"Diff too large, truncated",binaryFile:"Binary file, no diff shown",commit:"Commit",commitPlaceholder:"Commit message",committing:"Committing…",committed:"Committed",discard:"Discard",discarding:"Discarding…",discardConfirm:"Discard changes",discardHint:"Changes in the selected files are lost for good",discarded:"Discarded",selectAtLeastOne:"Select at least one file",enterCommitMsg:"Enter a commit message",fileCount:"{{selected}} / {{total}} selected",selectAll:"Select all",deselectAll:"Deselect all",switchBranch:"Switch branch",branchFilterPlaceholder:"Filter branches",noBranches:"No matching branches",switched:"Switched to {{branch}}",mergeBranch:"Merge branch",mergeAction:"Merge",merging:"Merging…",merged:"Merged {{branch}} into {{current}}",mergeUpToDate:"{{current}} already contains {{branch}}",mergeSelfHint:"Cannot merge the current branch",push:"Push",pushed:"Pushed {{branch}}",pull:"Pull",pulled:"Pulled {{branch}}",upToDate:"Already up to date",more:"More",fileSelectMode:"File scope",manualSelect:"Pick manually",agentSelect:"Let the Agent decide",agentScope:"The Agent will handle {{total}} change(s)",agentModeHint:"The Agent decides which changes to handle",agentDispatched:"Dispatched to the Agent",discardAllHint:"The Agent will discard every change in the working tree — not recoverable"},projects:{title:"Projects",empty:"No projects yet",globalSettings:"Global settings",projectSettings:"Project settings",switched:"Project switched"},globalSettings:{title:"Global settings",agent:"Agent",defaultKind:"Default agent",notifications:"Notifications",sessionEndBanner:"Session end banner",sessionEndSound:"Session end sound",appearance:"Appearance",themeMode:"Light / dark",themeName:"Theme",language:"Language",about:"About",version:"Version",installState:"Install state",installed:"Installed to home screen",browser:"Running in browser"},projectSettings:{title:"Project settings",agent:"Agent",kind:"Agent kind",inherit:"Inherit global",custom:"Custom command",cmd:"Command",args:"Arguments",argsHint:"Space separated",cmdRequired:"A custom agent needs a command"},chat:{untitled:"Untitled session",empty:"No messages in this session yet",draftEmpty:"Say something to start a new session",usageLoading:"Checking current model usage…",usageUnavailable:"{{kind}} does not support remaining usage queries yet.",usageInstallHint:"{{kind}} requires opencode-quota before remaining usage can be queried: {{command}}",usageError:"Failed to query {{kind}} remaining usage.",usageAvailableNoDetails:"{{kind}} is connected, but returned no displayable usage details.",usageSummary:"{{kind}} usage: {{details}}",usageWindow:"{{label}} about {{remaining}}% remaining ({{used}}% used, resets: {{reset}})",usageWindowUnknown:"{{label}} remaining usage unknown",usageResetUnknown:"unknown",usageSeparator:" · ",placeholder:"/ for commands, @ to reference files",send:"Send",abort:"Stop",slashCommandNoMatch:"No matching command",slashCommandYorzDebug:"Start debug mode to troubleshoot difficult issues",slashCommandYorzSpec:"Start spec-driven development from the current context",customSlashCommandNoDescription:"Custom command",attach:"Add attachment",attachmentLimit:"Cannot exceed {{max}} attachments",attachUnsupported:"Unsupported file type: {{name}}",attachUnsupportedMime:"Unsupported MIME: {{mime}}",attachTooBig:"{{name}} exceeds the 5 MB limit",attachTooMany:"Can only add {{room}} more ({{current}}/{{max}})",attachFailed:"Attachment upload failed — remove it and retry",attachUploading:"Attachments are still uploading",toolCollapsed:"Tool calls ×{{count}}",toolTextExpand:"Expand",toolTextCollapse:"Collapse",agentContextCollapsed:"Context",sessionDivider:"New round",errorMessage:"[Error] {{message}}",copyFilePath:"Copy path",filePathCopied:"Path copied",filePathCopyFailed:"Copy failed",sendFailed:"Send failed",openSpec:"Open spec"},specDetail:{notFound:"This spec no longer exists",running:"Running",openSession:"Open session",appendTask:"Append task",debug:"Debug document",git:"git",more:"More",copySpecPath:"Copy spec path",specPathCopied:"Path copied",questions:"Open questions",questionsBadge:"{{count}} to confirm",questionsEmpty:"Nothing to confirm",submit:"Submit",submitting:"Submitting…",submitted:"Submitted — the agent is on it",submitFailed:"Submit failed",unanswered:"{{count}} still unanswered",reasonRequired:"A rejection needs a reason",appendSaved:"Appended — the agent is on it",appendSavedSpecBusy:"Saved; the spec is busy and will pick it up later",appendFailed:"Append failed",appendKindFeat:"Feature",appendKindRefct:"Refactor",appendKindFix:"Fix",appendDescription:"Description",appendDescriptionHint:"What should be appended",decisionAccept:"Accept, proceed",decisionReject:"Reject",decisionAlternative:"Different approach",decisionConstraint:"Add a constraint",decisionDropGoal:"Drop the goal",decisionDropCurrent:"Drop this goal, keep the rest",decisionDropSpec:"Abandon the whole spec",rejectReason:"Reason",rejectReasonHint:"Why are you rejecting this?",freeformOther:"Other (free text)",freeformHint:"Write your thoughts",plan:"Plan",impact:"Impact",viewDiagram:"View diagram",noSection:"(no section)",annotate:"Annotate",annotateTitle:"Add annotation",annotateInSection:"Section: {{section}}",annotatePlaceholder:"Write your note on this passage",annotateSubmit:"Add",annotationSaved:"Added to pending items; submit to apply",annotationDraft:"Selection annotation",annotationQuoteConnector:"in",removeAnnotation:"Remove annotation",explain:"Explain",explainTooLong:"Selection exceeds {{max}} characters — please select less",explainFailed:"Explain failed",selectionClose:"Clear selection"},specDebug:{empty:"No debug.md records yet"},newSpec:{title:"New spec",type:"Type",typeFeat:"Feature",typeFeatHint:"New capability, or an extension of one",typeRefct:"Refactor",typeRefctHint:"Internal change with no external behaviour change",typeFix:"Fix",typeFixHint:"Correct wrong behaviour",requirement:"Requirement",requirementHint:"Describe what you want; the agent drafts the spec from it",requirementTooShort:"At least 5 characters",attachments:"Attachments",create:"Create",creating:"Creating…",createFailed:"Create failed",drafting:"The agent is drafting…"},theme:{system:"System",light:"Light",dark:"Dark",terminal:"Terminal",graphite:"Graphite",paper:"Paper"},pwa:{offlineReady:"Ready to work offline",needRefresh:"Update available",refresh:"Reload",offline:"Offline — showing cached content"},notFound:{title:"Page not found",back:"Back to home"}},$c=N0({"zh-CN":{translation:R0},en:{translation:D0}},{persistKey:"yorz.m.lang"}),Ic=["system","light","dark"],Mc=["terminal","graphite","paper"],Lc="(prefers-color-scheme: dark)",Fc="yorz.appearanceHint";function O0(e){return Ic.includes(e)}function $0(e){return Mc.includes(e)}function I0(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(Fc);if(!e)return null;const t=JSON.parse(e);if(!t||typeof t!="object")return null;const{mode:n,name:r}=t;return!O0(n)||!$0(r)?null:{mode:n,name:r}}catch{return null}}function M0(e,t){if(!(typeof window>"u"))try{window.localStorage.setItem(Fc,JSON.stringify({mode:e,name:t}))}catch{}}function Pc(){return typeof window>"u"||!window.matchMedia?"light":window.matchMedia(Lc).matches?"dark":"light"}function Bc(e,t){return e==="light"||e==="dark"?e:t?"dark":"light"}const rs=I0(),[Hr,L0]=G(rs?.mode??"system"),[jr,F0]=G(rs?.name??"paper"),[P0,B0]=G(Bc(rs?.mode??"system",Pc()==="dark"));let Uc=!1;function U0(e,t){typeof document>"u"||(document.documentElement.setAttribute("data-kb-theme",e),document.documentElement.setAttribute("data-kb-theme-name",t),document.documentElement.style.colorScheme=e)}function Kr(e,t){const n=Bc(e,Pc()==="dark");B0(n),U0(n,t),Uc&&M0(e,t)}function z0(e){L0(e),Kr(e,jr())}function q0(e){F0(e),Kr(Hr(),e)}let Xs=!1;function H0(e={}){Xs||(Xs=!0,Uc=e.persistHint??!1,Kr(Hr(),jr()),!(typeof window>"u"||!window.matchMedia)&&window.matchMedia(Lc).addEventListener("change",()=>{Hr()==="system"&&Kr("system",jr())}))}const Fo="/m",j0=["/","/specs","/ext","/projects"];function Gr(e){return(e.startsWith(Fo)?e.slice(Fo.length):e).replace(/\/+$/,"")||"/"}function Po(e){return j0.includes(Gr(e))}const K0="modulepreload",G0=function(e){return"/m/"+e},Qs={},zc=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(l=>Promise.resolve(l).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");i=s(n.map(c=>{if(c=G0(c),c in Qs)return;Qs[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=l?"stylesheet":K0,l||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),l)return new Promise((g,f)=>{p.addEventListener("load",g),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};function W0(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:o,onRegisteredSW:s,onRegisterError:a}=e;let u,c;const l=async(p=!0)=>{await c};async function d(){if("serviceWorker"in navigator){if(u=await zc(async()=>{const{Workbox:p}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:p}},[]).then(({Workbox:p})=>new p("/m/sw.js",{scope:"/m/",type:"classic"})).catch(p=>{a?.(p)}),!u)return;u.addEventListener("activated",p=>{(p.isUpdate||p.isExternal)&&(n?n():window.location.reload())}),u.addEventListener("installed",p=>{p.isUpdate||i?.()}),u.register({immediate:t}).then(p=>{s?s("/m/sw.js",p):o?.(p)}).catch(p=>{a?.(p)})}}return c=d(),l}const[Kw,V0]=G(!1),[Z0,Y0]=G(!1);let qc=null;function X0(){qc?.(!0)}let Js=!1;function Q0(e){const t=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!t)return null;const n=Number(t[1]),r=Number(t[2])/100,i=Number(t[3])/100;if(![n,r,i].every(Number.isFinite))return null;const o=r*Math.min(i,1-i),s=a=>{const u=(a+n/30)%12,c=i-o*Math.max(Math.min(u-3,9-u,1),-1);return Math.round(255*c).toString(16).padStart(2,"0")};return`#${s(0)}${s(8)}${s(4)}`}function J0(){if(typeof window>"u"||typeof document>"u")return;const e=document.documentElement,t=window.getComputedStyle(e).getPropertyValue("--background").trim(),n=Q0(t)??"#f2f2e9";let r=document.querySelector('meta[name="theme-color"]');r||(r=document.createElement("meta"),r.name="theme-color",document.head.append(r)),r.content=n}function ep(){if(typeof window>"u"||typeof document>"u")return;const e=()=>window.requestAnimationFrame(J0);e(),new window.MutationObserver(e).observe(document.documentElement,{attributes:!0,attributeFilter:["data-kb-theme","data-kb-theme-name"]})}function tp(){Js||(Js=!0,ep(),!(typeof navigator>"u"||!("serviceWorker"in navigator))&&(qc=W0({immediate:!0,onOfflineReady(){V0(!0)},onNeedRefresh(){Y0(!0)},onRegisterError(e){console.error("[pwa] service worker 注册失败",e)}})))}function np(){if(typeof window>"u")return!1;const e=window.navigator.standalone;return window.matchMedia("(display-mode: standalone)").matches||e===!0}const ea="data-vt";function rp(){return typeof document<"u"&&typeof document.startViewTransition=="function"}function ip(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ta(e){return e.split("/").filter(Boolean).length}function op(e,t){const n=ta(e),r=ta(t);return r>n?"forward":r<n?"back":"lateral"}function Hc(e){const t=typeof window>"u"?"http://localhost":window.location.origin;try{return new URL(e,t).pathname}catch{return e}}function na(e,t=600){return e()?Promise.resolve():new Promise(n=>{let r=!1,i;const o=setTimeout(s,t);function s(){r||(r=!0,clearTimeout(o),i?.(),n())}an(a=>{i=a,Ae(()=>{e()&&s()})})})}let kr=null;function sp(e,t){const n=document.documentElement;kr?.skipTransition(),n.setAttribute(ea,e);const r=document.startViewTransition(async()=>{await t()});kr=r,r.finished.catch(()=>{}).finally(()=>{kr===r&&(kr=null,n.removeAttribute(ea))})}function ap(e,t){return e.defaultPrevented||e.enabled===!1||e.replace||typeof e.to=="string"&&Hc(e.to)===e.fromPathname?null:t(e.fromPathname,e.to)}function up(e){const t=fr(),n=Nf();Rf(r=>{const i=t.pathname,o=ap({fromPathname:i,to:r.to,replace:r.options?.replace,defaultPrevented:r.defaultPrevented,enabled:rp()&&!ip()},e.resolveDirection);if(!o)return;const s=typeof r.to=="number";r.preventDefault(),sp(o,async()=>{r.retry(!0),s&&await na(()=>t.pathname!==i),await na(()=>!n())})})}/**
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const Od=!1,$d=(e,t)=>e===t,Ir=Symbol("solid-proxy"),oc=typeof Proxy=="function",sc=Symbol("solid-track"),Mr={equals:$d};let ac=gc;const Zt=1,Lr=2,uc={owned:null,cleanups:null,context:null,owner:null},xi={};var Ie=null;let _i=null,Id=null,Be=null,gt=null,Wt=null,Xr=0;function an(e,t){const n=Be,r=Ie,i=e.length===0,o=t===void 0?r:t,s=i?uc:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=i?e:()=>e(()=>ot(()=>nr(s)));Ie=s,Be=null;try{return Ft(a,!0)}finally{Be=n,Ie=r}}function G(e,t){t=t?Object.assign({},Mr,t):Mr;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),pc(n,i));return[fc.bind(n),r]}function Md(e,t,n){const r=ei(e,t,!0,Zt);Bn(r)}function Z(e,t,n){const r=ei(e,t,!1,Zt);Bn(r)}function Ae(e,t,n){ac=Ud;const r=ei(e,t,!1,Zt);r.user=!0,Wt?Wt.push(r):Bn(r)}function ge(e,t,n){n=n?Object.assign({},Mr,n):Mr;const r=ei(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Bn(r),fc.bind(r)}function Ld(e){return e&&typeof e=="object"&&"then"in e}function nt(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=!0,i=e,o=t||{});let s=null,a=xi,u=!1,c="initialValue"in o,l=typeof r=="function"&&ge(r);const d=new Set,[p,g]=(o.storage||G)(o.initialValue),[f,h]=G(void 0),[b,y]=G(void 0,{equals:!1}),[x,E]=G(c?"ready":"unresolved");function w(I,j,F,P){return s===I&&(s=null,P!==void 0&&(c=!0),(I===a||j===a)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(P,{value:j})),a=xi,C(j,F)),j}function C(I,j){Ft(()=>{j===void 0&&g(()=>I),E(j!==void 0?"errored":c?"ready":"unresolved"),h(j);for(const F of d.keys())F.decrement();d.clear()},!1)}function O(){const I=Fd,j=p(),F=f();if(F!==void 0&&!s)throw F;return Be&&Be.user,j}function $(I=!0){if(I!==!1&&u)return;u=!1;const j=l?l():r;if(j==null||j===!1){w(s,ot(p));return}let F;const P=a!==xi?a:ot(()=>{try{return i(j,{value:p(),refetching:I})}catch(z){F=z}});if(F!==void 0){w(s,void 0,Or(F),j);return}else if(!Ld(P))return w(s,P,void 0,j),P;return s=P,"v"in P?(P.s===1?w(s,P.v,void 0,j):w(s,void 0,Or(P.v),j),P):(u=!0,queueMicrotask(()=>u=!1),Ft(()=>{E(c?"refreshing":"pending"),y()},!1),P.then(z=>w(P,z,void 0,j),z=>w(P,void 0,Or(z),j)))}Object.defineProperties(O,{state:{get:()=>x()},error:{get:()=>f()},loading:{get(){const I=x();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return O();const I=f();if(I&&!s)throw I;return p()}}});let A=Ie;return l?Md(()=>(A=Ie,$(!1))):$(!1),[O,{refetch:I=>Yo(A,()=>$(I)),mutate:g}]}function cc(e){return Ft(e,!1)}function ot(e){if(Be===null)return e();const t=Be;Be=null;try{return e()}finally{Be=t}}function Qr(e,t,n){const r=Array.isArray(e);let i,o=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(o)return o=!1,s;const u=ot(()=>t(a,i,s));return i=a,u}}function Me(e){return Ie===null||(Ie.cleanups===null?Ie.cleanups=[e]:Ie.cleanups.push(e)),e}function lc(){return Ie}function Yo(e,t){const n=Ie,r=Be;Ie=e,Be=null;try{return Ft(t,!0)}catch(i){Jo(i)}finally{Ie=n,Be=r}}function dc(e){const t=Be,n=Ie;return Promise.resolve().then(()=>{Be=t,Ie=n;let r;return Ft(e,!1),Be=Ie=null,r?r.done:void 0})}const[Uw,zw]=G(!1);function Xo(e,t){const n=Symbol("context");return{id:n,Provider:zd(n),defaultValue:e}}function Jr(e){let t;return Ie&&Ie.context&&(t=Ie.context[e.id])!==void 0?t:e.defaultValue}function Qo(e){const t=ge(e),n=ge(()=>Ro(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let Fd;function fc(){if(this.sources&&this.state)if(this.state===Zt)Bn(this);else{const e=gt;gt=null,Ft(()=>Pr(this),!1),gt=e}if(Be){const e=this.observers;if(!e||e[e.length-1]!==Be){const t=e?e.length:0;Be.sources?(Be.sources.push(this),Be.sourceSlots.push(t)):(Be.sources=[this],Be.sourceSlots=[t]),e?(e.push(Be),this.observerSlots.push(Be.sources.length-1)):(this.observers=[Be],this.observerSlots=[Be.sources.length-1])}}return this.value}function pc(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Ft(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],s=_i&&_i.running;s&&_i.disposed.has(o),(s?!o.tState:!o.state)&&(o.pure?gt.push(o):Wt.push(o),o.observers&&hc(o)),s||(o.state=Zt)}if(gt.length>1e6)throw gt=[],new Error},!1)),t}function Bn(e){if(!e.fn)return;nr(e);const t=Xr;Pd(e,e.value,t)}function Pd(e,t,n){let r;const i=Ie,o=Be;Be=Ie=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=Zt,e.owned&&e.owned.forEach(nr),e.owned=null),e.updatedAt=n+1,Jo(s)}finally{Be=o,Ie=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?pc(e,r):e.value=r,e.updatedAt=n)}function ei(e,t,n,r=Zt,i){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ie,context:Ie?Ie.context:null,pure:n};return Ie===null||Ie!==uc&&(Ie.owned?Ie.owned.push(o):Ie.owned=[o]),o}function Fr(e){if(e.state===0)return;if(e.state===Lr)return Pr(e);if(e.suspense&&ot(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Xr);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Zt)Bn(e);else if(e.state===Lr){const r=gt;gt=null,Ft(()=>Pr(e,t[0]),!1),gt=r}}function Ft(e,t){if(gt)return e();let n=!1;t||(gt=[]),Wt?n=!0:Wt=[],Xr++;try{const r=e();return Bd(n),r}catch(r){n||(Wt=null),gt=null,Jo(r)}}function Bd(e){if(gt&&(gc(gt),gt=null),e)return;const t=Wt;Wt=null,t.length&&Ft(()=>ac(t),!1)}function gc(e){for(let t=0;t<e.length;t++)Fr(e[t])}function Ud(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Fr(r)}for(t=0;t<n;t++)Fr(e[t])}function Pr(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const i=r.state;i===Zt?r!==t&&(!r.updatedAt||r.updatedAt<Xr)&&Fr(r):i===Lr&&Pr(r,t)}}}function hc(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Lr,n.pure?gt.push(n):Wt.push(n),n.observers&&hc(n))}}function nr(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),s=n.observerSlots.pop();r<i.length&&(o.sourceSlots[s]=r,i[r]=o,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)nr(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)nr(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Or(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Jo(e,t=Ie){throw Or(e)}function Ro(e){if(typeof e=="function"&&!e.length)return Ro(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Ro(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let i=0;i<r.length;i++)t.push(r[i]);else t.push(r)}return t}return e}function zd(e,t){return function(r){let i;return Z(()=>i=ot(()=>(Ie.context={...Ie.context,[e]:r.value},Qo(()=>r.children))),void 0),i}}const Do=Symbol("fallback");function Br(e){for(let t=0;t<e.length;t++)e[t]()}function qd(e,t,n={}){let r=[],i=[],o=[],s=0,a=t.length>1?[]:null;return Me(()=>Br(o)),()=>{let u=e()||[],c=u.length,l,d;return u[sc],ot(()=>{let g,f,h,b,y,x,E,w,C;if(c===0)s!==0&&(Br(o),o=[],r=[],i=[],s=0,a&&(a=[])),n.fallback&&(r=[Do],i[0]=an(O=>(o[0]=O,n.fallback())),s=1);else if(s===0){for(i=new Array(c),d=0;d<c;d++)r[d]=u[d],i[d]=an(p);s=c}else{for(h=new Array(c),b=new Array(c),a&&(y=new Array(c)),x=0,E=Math.min(s,c);x<E&&r[x]===u[x];x++);for(E=s-1,w=c-1;E>=x&&w>=x&&r[E]===u[w];E--,w--)h[w]=i[E],b[w]=o[E],a&&(y[w]=a[E]);for(g=new Map,f=new Array(w+1),d=w;d>=x;d--)C=u[d],l=g.get(C),f[d]=l===void 0?-1:l,g.set(C,d);for(l=x;l<=E;l++)C=r[l],d=g.get(C),d!==void 0&&d!==-1?(h[d]=i[l],b[d]=o[l],a&&(y[d]=a[l]),d=f[d],g.set(C,d)):o[l]();for(d=x;d<c;d++)d in h?(i[d]=h[d],o[d]=b[d],a&&(a[d]=y[d],a[d](d))):i[d]=an(p);i=i.slice(0,s=c),r=u.slice(0)}return i});function p(g){if(o[d]=g,a){const[f,h]=G(d);return a[d]=h,t(u[d],f)}return t(u[d])}}}function Hd(e,t,n={}){let r=[],i=[],o=[],s=[],a=0,u;return Me(()=>Br(o)),()=>{const c=e()||[],l=c.length;return c[sc],ot(()=>{if(l===0)return a!==0&&(Br(o),o=[],r=[],i=[],a=0,s=[]),n.fallback&&(r=[Do],i[0]=an(p=>(o[0]=p,n.fallback())),a=1),i;for(r[0]===Do&&(o[0](),o=[],r=[],i=[],a=0),u=0;u<l;u++)u<r.length&&r[u]!==c[u]?s[u](()=>c[u]):u>=r.length&&(i[u]=an(d));for(;u<r.length;u++)o[u]();return a=s.length=o.length=l,r=c.slice(0),i=i.slice(0,a)});function d(p){o[u]=p;const[g,f]=G(c[u]);return s[u]=f,t(g,u)}}}function m(e,t){return ot(()=>e(t||{}))}function Er(){return!0}const Oo={get(e,t,n){return t===Ir?n:e.get(t)},has(e,t){return t===Ir?!0:e.has(t)},set:Er,deleteProperty:Er,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Er,deleteProperty:Er}},ownKeys(e){return e.keys()}};function yi(e){return(e=typeof e=="function"?e():e)?e:{}}function jd(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function Ue(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&Ir in a,e[s]=typeof a=="function"?(t=!0,ge(a)):a}if(oc&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const u=yi(e[a])[s];if(u!==void 0)return u}},has(s){for(let a=e.length-1;a>=0;a--)if(s in yi(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(yi(e[a])));return[...new Set(s)]}},Oo);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const u=Object.getOwnPropertyNames(a);for(let c=u.length-1;c>=0;c--){const l=u[c];if(l==="__proto__"||l==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,l);if(!r[l])r[l]=d.get?{enumerable:!0,configurable:!0,get:jd.bind(n[l]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const p=n[l];p&&(d.get?p.push(d.get.bind(a)):d.value!==void 0&&p.push(()=>d.value))}}}const i={},o=Object.keys(r);for(let s=o.length-1;s>=0;s--){const a=o[s],u=r[a];u&&u.get?Object.defineProperty(i,a,u):i[a]=u?u.value:void 0}return i}function es(e,...t){const n=t.length;if(oc&&Ir in e){const i=n>1?t.flat():t[0],o=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},Oo));return o.push(new Proxy({get(s){return i.includes(s)?void 0:e[s]},has(s){return i.includes(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!i.includes(s))}},Oo)),o}const r=[];for(let i=0;i<=n;i++)r[i]={};for(const i of Object.getOwnPropertyNames(e)){let o=n;for(let u=0;u<t.length;u++)if(t[u].includes(i)){o=u;break}const s=Object.getOwnPropertyDescriptor(e,i);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[o][i]=s.value:Object.defineProperty(r[o],i,s)}return r}const Kd=e=>`Stale read from <${e}>.`;function Ke(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ge(qd(()=>e.each,e.children,t||void 0))}function $o(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ge(Hd(()=>e.each,e.children,t||void 0))}function M(e){const t=e.keyed,n=ge(()=>e.when,void 0,void 0),r=t?n:ge(n,void 0,{equals:(i,o)=>!i==!o});return ge(()=>{const i=r();if(i){const o=e.children;return typeof o=="function"&&o.length>0?ot(()=>o(t?i:()=>{if(!ot(r))throw Kd("Show");return n()})):o}return e.fallback},void 0,void 0)}const Gd=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Wd=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Gd]),Vd=new Set(["innerHTML","textContent","innerText","children"]),Zd=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Yd=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Xd(e,t){const n=Yd[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Qd=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Jd=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","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","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ef={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},ze=e=>ge(()=>e());function tf(e,t,n){let r=n.length,i=t.length,o=r,s=0,a=0,u=t[i-1].nextSibling,c=null;for(;s<i||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===s){const l=o<r?a?n[a-1].nextSibling:n[o-a]:u;for(;a<o;)e.insertBefore(n[a++],l)}else if(o===a)for(;s<i;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[i-1]){const l=t[--i].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],l),t[i]=n[o]}else{if(!c){c=new Map;let d=a;for(;d<o;)c.set(n[d],d++)}const l=c.get(t[s]);if(l!=null)if(a<l&&l<o){let d=s,p=1,g;for(;++d<i&&d<o&&!((g=c.get(t[d]))==null||g!==l+p);)p++;if(p>l-a){const f=t[s];for(;a<l;)e.insertBefore(n[a++],f)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const Rs="_$DX_DELEGATE";function nf(e,t,n,r={}){let i;return an(o=>{i=o,t===document?e():_(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=""}}function N(e,t,n,r){let i;const o=()=>{const a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(i||(i=o())).cloneNode(!0);return s.cloneNode=s,s}function qe(e,t=window.document){const n=t[Rs]||(t[Rs]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,lf))}}function te(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function rf(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function of(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function Le(e,t){t==null?e.removeAttribute("class"):e.className=t}function mc(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n,typeof n!="function"&&n)}function sf(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,s;for(o=0,s=i.length;o<s;o++){const a=i[o];!a||a==="undefined"||t[a]||(Ds(e,a,!1),delete n[a])}for(o=0,s=r.length;o<s;o++){const a=r[o],u=!!t[a];!a||a==="undefined"||n[a]===u||!u||(Ds(e,a,!0),n[a]=u)}return n}function af(e,t,n){if(!t)return n?te(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function dr(e,t={},n,r){const i={};return r||Z(()=>i.children=rr(e,t.children,i.children)),Z(()=>typeof t.ref=="function"&&Vt(t.ref,e)),Z(()=>uf(e,t,n,!0,i,!0)),i}function Vt(e,t,n){return ot(()=>e(t,n))}function _(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return rr(e,t,r,n);Z(i=>rr(e,t(),i,n),r)}function uf(e,t,n,r,i={},o=!1){t||(t={});for(const s in i)if(!(s in t)){if(s==="children")continue;i[s]=Os(e,s,null,i[s],n,o,t)}for(const s in t){if(s==="children")continue;const a=t[s];i[s]=Os(e,s,a,i[s],n,o,t)}}function cf(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ds(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function Os(e,t,n,r,i,o,s){let a,u,c,l,d;if(t==="style")return af(e,n,r);if(t==="classList")return sf(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0)}else if(t.slice(0,2)==="on"){const p=t.slice(2).toLowerCase(),g=Qd.has(p);if(!g&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f)}(g||n)&&(mc(e,p,n,g),g&&qe([p]))}else if(t.slice(0,5)==="attr:")te(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")of(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=Vd.has(t))||!i&&((l=Xd(t,e.tagName))||(u=Wd.has(t)))||(a=e.nodeName.includes("-")||"is"in s))d&&(t=t.slice(5),u=!0),t==="class"||t==="className"?Le(e,n):a&&!u&&!c?e[cf(t)]=n:e[l||t]=n;else{const p=i&&t.indexOf(":")>-1&&ef[t.split(":")[0]];p?rf(e,p,t,n):te(e,Zd[t]||t,n)}return n}function lf(e){let t=e.target;const n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=u=>Object.defineProperty(e,"target",{configurable:!0,value:u}),s=()=>{const u=t[n];if(u&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?u.call(t,c,e):u.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const u=e.composedPath();o(u[0]);for(let c=0;c<u.length-2&&(t=u[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===i)break}}else a();o(r)}function rr(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(o==="number"&&(t=t.toString(),t===n))return n;if(s){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=An(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean")n=An(e,n,r);else{if(o==="function")return Z(()=>{let a=t();for(;typeof a=="function";)a=a();n=rr(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],u=n&&Array.isArray(n);if(Io(a,t,n,i))return Z(()=>n=rr(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=An(e,n,r),s)return n}else u?n.length===0?$s(e,a,r):tf(e,n,a):(n&&An(e),$s(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=An(e,n,r,t);An(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Io(e,t,n,r){let i=!1;for(let o=0,s=t.length;o<s;o++){let a=t[o],u=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))i=Io(e,a,u)||i;else if(c==="function")if(r){for(;typeof a=="function";)a=a();i=Io(e,Array.isArray(a)?a:[a],Array.isArray(u)?u:[u])||i}else e.push(a),i=!0;else{const l=String(a);u&&u.nodeType===3&&u.data===l?e.push(u):e.push(document.createTextNode(l))}}return i}function $s(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function An(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(i!==a){const u=a.parentNode===e;!o&&!s?u?e.replaceChild(i,a):e.insertBefore(i,n):u&&a.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}const df=!1,ff="http://www.w3.org/2000/svg";function pf(e,t=!1,n=void 0){return t?document.createElementNS(ff,e):document.createElement(e,{is:n})}function gf(e,t){const n=ge(e);return ge(()=>{const r=n();switch(typeof r){case"function":return ot(()=>r(t));case"string":const i=Jd.has(r),o=pf(r,i,ot(()=>t.is));return dr(o,t,i),o}})}function hf(e){const[,t]=es(e,["component"]);return gf(()=>e.component,t)}function bc(){let e=new Set;function t(i){return e.add(i),()=>e.delete(i)}let n=!1;function r(i,o){if(n)return!(n=!1);const s={to:i,options:o,defaultPrevented:!1,preventDefault:()=>s.defaultPrevented=!0};for(const a of e)a.listener({...s,from:a.location,retry:u=>{u&&(n=!0),a.navigate(i,{...o,resolve:!1})}});return!s.defaultPrevented}return{subscribe:t,confirm:r}}let Mo;function ts(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),Mo=window.history.state._depth}ts();function mf(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function bf(e,t){let n=!1;return()=>{const r=Mo;ts();const i=r==null?null:Mo-r;if(n){n=!1;return}i&&t(i)?(n=!0,window.history.go(-i)):e()}}const xf=/^(?:[a-z0-9]+:)?\/\//i,_f=/^\/+|(\/)\/+$/g,xc="http://sr";function _n(e,t=!1){const n=e.replace(_f,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function $r(e,t,n){if(xf.test(t))return;const r=_n(e),i=n&&_n(n);let o="";return!i||t.startsWith("/")?o=r:i.toLowerCase().indexOf(r.toLowerCase())!==0?o=r+i:o=i,(o||"/")+_n(t,!o)}function yf(e,t){if(e==null)throw new Error(t);return e}function vf(e,t){return _n(e).replace(/\/*(\*.*)?$/g,"")+_n(t)}function _c(e){const t={};return e.searchParams.forEach((n,r)=>{r in t?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n}),t}function Ef(e,t,n){const[r,i]=e.split("/*",2),o=r.split("/").filter(Boolean),s=o.length;return a=>{const u=a.split("/").filter(Boolean),c=u.length-s;if(c<0||c>0&&i===void 0&&!t)return null;const l={path:s?"":"/",params:{}},d=p=>n===void 0?void 0:n[p];for(let p=0;p<s;p++){const g=o[p],f=g[0]===":",h=f?u[p]:u[p].toLowerCase(),b=f?g.slice(1):g.toLowerCase();if(f&&vi(h,d(b)))l.params[b]=h;else if(f||!vi(h,b))return null;l.path+=`/${h}`}if(i){const p=c?u.slice(-c).join("/"):"";if(vi(p,d(i)))l.params[i]=p;else return null}return l}}function vi(e,t){const n=r=>r===e;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function wf(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((i,o)=>i+(o.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function yc(e){const t=new Map,n=lc();return new Proxy({},{get(r,i){return t.has(i)||Yo(n,()=>t.set(i,ge(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(r,i){return i in e()}})}function vc(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return vc(r).reduce((o,s)=>[...o,...i.map(a=>a+s)],[])}const kf=100,Ec=Xo(),ns=Xo(),yn=()=>yf(Jr(Ec),"<A> and 'use' router primitives can be only used inside a Route."),Sf=()=>Jr(ns)||yn().base,Cf=e=>{const t=Sf();return ge(()=>t.resolvePath(e()))},Af=e=>{const t=yn();return ge(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},ht=()=>yn().navigatorFactory(),fr=()=>yn().location,Tf=()=>yn().isRouting,pr=()=>yn().params,Nf=e=>{const t=yn().beforeLeave.subscribe({listener:e,location:fr(),navigate:ht()});Me(t)};function Rf(e,t=""){const{component:n,preload:r,load:i,children:o,info:s}=e,a=!o||Array.isArray(o)&&!o.length,u={key:e,component:n,preload:r||i,info:s};return wc(e.path).reduce((c,l)=>{for(const d of vc(l)){const p=vf(t,d);let g=a?p:p.split("/*",1)[0];g=g.split("/").map(f=>f.startsWith(":")||f.startsWith("*")?f:encodeURIComponent(f)).join("/"),c.push({...u,originalPath:l,pattern:g,matcher:Ef(g,!a,e.matchFilters)})}return c},[])}function Df(e,t=0){return{routes:e,score:wf(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let i=e.length-1;i>=0;i--){const o=e[i],s=o.matcher(n);if(!s)return null;r.unshift({...s,route:o})}return r}}}function wc(e){return Array.isArray(e)?e:[e]}function kc(e,t="",n=[],r=[]){const i=wc(e);for(let o=0,s=i.length;o<s;o++){const a=i[o];if(a&&typeof a=="object"){a.hasOwnProperty("path")||(a.path="");const u=Rf(a,t);for(const c of u){n.push(c);const l=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!l)kc(a.children,c.pattern,n,r);else{const d=Df([...n],r.length);r.push(d)}n.pop()}}}return n.length?r:r.sort((o,s)=>s.score-o.score)}function Ei(e,t){for(let n=0,r=e.length;n<r;n++){const i=e[n].matcher(t);if(i)return i}return[]}function Of(e,t,n){const r=new URL(xc),i=ge(l=>{const d=e();try{return new URL(d,r)}catch{return console.error(`Invalid path ${d}`),l}},r,{equals:(l,d)=>l.href===d.href}),o=ge(()=>i().pathname),s=ge(()=>i().search,!0),a=ge(()=>i().hash),u=()=>"",c=Qr(s,()=>_c(i()));return{get pathname(){return o()},get search(){return s()},get hash(){return a()},get state(){return t()},get key(){return u()},query:n?n(c):yc(c)}}let xn;function $f(){return xn}function If(e,t,n,r={}){const{signal:[i,o],utils:s={}}=e,a=s.parsePath||(B=>B),u=s.renderPath||(B=>B),c=s.beforeLeave||bc(),l=$r("",r.base||"");if(l===void 0)throw new Error(`${l} is not a valid base path`);l&&!i().value&&o({value:l,replace:!0,scroll:!1});const[d,p]=G(!1);let g;const f=(B,T)=>{T.value===h()&&T.state===y()||(g===void 0&&p(!0),xn=B,g=T,dc(()=>{g===T&&(b(g.value),x(g.state),C[1](D=>D.filter(X=>X.pending)))}).finally(()=>{g===T&&cc(()=>{xn=void 0,B==="navigate"&&P(g),p(!1),g=void 0})}))},[h,b]=G(i().value),[y,x]=G(i().state),E=Of(h,y,s.queryWrapper),w=[],C=G([]),O=ge(()=>typeof r.transformUrl=="function"?Ei(t(),r.transformUrl(E.pathname)):Ei(t(),E.pathname)),$=()=>{const B=O(),T={};for(let D=0;D<B.length;D++)Object.assign(T,B[D].params);return T},A=s.paramsWrapper?s.paramsWrapper($,t):yc($),I={pattern:l,path:()=>l,outlet:()=>null,resolvePath(B){return $r(l,B)}};return Z(Qr(i,B=>f("native",B),{defer:!0})),{base:I,location:E,params:A,isRouting:d,renderPath:u,parsePath:a,navigatorFactory:F,matches:O,beforeLeave:c,preloadRoute:z,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:C};function j(B,T,D){ot(()=>{if(typeof T=="number"){T&&(s.go?s.go(T):console.warn("Router integration does not support relative routing"));return}const X=!T||T[0]==="?",{replace:pe,resolve:Q,scroll:L,state:ne}={replace:!1,resolve:!X,scroll:!0,...D},H=Q?B.resolvePath(T):$r(X&&E.pathname||"",T);if(H===void 0)throw new Error(`Path '${T}' is not a routable path`);if(w.length>=kf)throw new Error("Too many redirects");const S=h();(H!==S||ne!==y())&&(df||c.confirm(H,D)&&(w.push({value:S,replace:pe,scroll:L,state:y()}),f("navigate",{value:H,state:ne})))})}function F(B){return B=B||Jr(ns)||I,(T,D)=>j(B,T,D)}function P(B){const T=w[0];T&&(o({...B,replace:T.replace,scroll:T.scroll}),w.length=0)}function z(B,T){const D=Ei(t(),B.pathname),X=xn;xn="preload";for(let pe in D){const{route:Q,params:L}=D[pe];Q.component&&Q.component.preload&&Q.component.preload();const{preload:ne}=Q;T&&ne&&Yo(n(),()=>ne({params:L,location:{pathname:B.pathname,search:B.search,hash:B.hash,query:_c(B),state:null,key:""},intent:"preload"}))}xn=X}}function Mf(e,t,n,r){const{base:i,location:o,params:s}=e,{pattern:a,component:u,preload:c}=r().route,l=ge(()=>r().path);u&&u.preload&&u.preload();const d=c?c({params:s,location:o,intent:xn||"initial"}):void 0;return{parent:t,pattern:a,path:l,outlet:()=>u?m(u,{params:s,location:o,data:d,get children(){return n()}}):n(),resolvePath(g){return $r(i.path(),g,l())}}}const Lf=e=>t=>{const{base:n}=t,r=Qo(()=>t.children),i=ge(()=>kc(r(),t.base||""));let o;const s=If(e,i,()=>o,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(s),m(Ec.Provider,{value:s,get children(){return m(Ff,{routerState:s,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[ze(()=>(o=lc())&&null),m(Pf,{routerState:s,get branches(){return i()}})]}})}})};function Ff(e){const t=e.routerState.location,n=e.routerState.params,r=ge(()=>e.preload&&ot(()=>{e.preload({params:n,location:t,intent:$f()||"initial"})}));return m(M,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>m(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function Pf(e){const t=[];let n;const r=ge(Qr(e.routerState.matches,(i,o,s)=>{let a=o&&i.length===o.length;const u=[];for(let c=0,l=i.length;c<l;c++){const d=o&&o[c],p=i[c];s&&d&&p.route.key===d.route.key?u[c]=s[c]:(a=!1,t[c]&&t[c](),an(g=>{t[c]=g,u[c]=Mf(e.routerState,u[c-1]||e.routerState.base,Is(()=>r()[c+1]),()=>{const f=e.routerState.matches();return f[c]??f[0]})}))}return t.splice(i.length).forEach(c=>c()),s&&a?s:(n=u[0],u)}));return Is(()=>r()&&n)()}const Is=e=>()=>m(M,{get when(){return e()},keyed:!0,children:t=>m(ns.Provider,{value:t,get children(){return t.outlet()}})}),mt=e=>{const t=Qo(()=>e.children);return Ue(e,{get children(){return t()}})};function Bf([e,t],n,r){return[e,r?i=>t(r(i)):t]}function Uf(e){let t=!1;const n=i=>typeof i=="string"?{value:i}:i,r=Bf(G(n(e.get()),{equals:(i,o)=>i.value===o.value&&i.state===o.state}),void 0,i=>(!t&&e.set(i),i));return e.init&&Me(e.init((i=e.get())=>{t=!0,r[1](n(i)),t=!1})),Lf({signal:r,create:e.create,utils:e.utils})}function zf(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function qf(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}const Hf=new Map;function jf({preload:e=!0,explicitLinks:t=!1,actionBase:n="/_server",transformUrl:r}={}){return i=>{const o=i.base.path(),s=i.navigatorFactory(i.base);let a,u;function c(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function l(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const b=h.composedPath().find(O=>O instanceof Node&&O.nodeName.toUpperCase()==="A");if(!b||t&&!b.hasAttribute("link"))return;const y=c(b),x=y?b.href.baseVal:b.href;if((y?b.target.baseVal:b.target)||!x&&!b.hasAttribute("state"))return;const w=(b.getAttribute("rel")||"").split(/\s+/);if(b.hasAttribute("download")||w&&w.includes("external"))return;const C=y?new URL(x,document.baseURI):new URL(x);if(!(C.origin!==window.location.origin||o&&C.pathname&&!C.pathname.toLowerCase().startsWith(o.toLowerCase())))return[b,C]}function d(h){const b=l(h);if(!b)return;const[y,x]=b,E=i.parsePath(x.pathname+x.search+x.hash),w=y.getAttribute("state");h.preventDefault(),s(E,{resolve:!1,replace:y.hasAttribute("replace"),scroll:!y.hasAttribute("noscroll"),state:w?JSON.parse(w):void 0})}function p(h){const b=l(h);if(!b)return;const[y,x]=b;r&&(x.pathname=r(x.pathname)),i.preloadRoute(x,y.getAttribute("preload")!=="false")}function g(h){clearTimeout(a);const b=l(h);if(!b)return u=null;const[y,x]=b;u!==y&&(r&&(x.pathname=r(x.pathname)),a=setTimeout(()=>{i.preloadRoute(x,y.getAttribute("preload")!=="false"),u=y},20))}function f(h){if(h.defaultPrevented)return;let b=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!b)return;if(!b.startsWith("https://action/")){const x=new URL(b,xc);if(b=i.parsePath(x.pathname+x.search),!b.startsWith(n))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const y=Hf.get(b);if(y){h.preventDefault();const x=new FormData(h.target,h.submitter);y.call({r:i,f:h.target},h.target.enctype==="multipart/form-data"?x:new URLSearchParams(x))}}qe(["click","submit"]),document.addEventListener("click",d),e&&(document.addEventListener("mousemove",g,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",f),Me(()=>{document.removeEventListener("click",d),e&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",f)})}}function Kf(e){const t=()=>{const r=window.location.pathname.replace(/^\/+/,"/")+window.location.search,i=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:r+window.location.hash,state:i}},n=bc();return Uf({get:t,set({value:r,replace:i,scroll:o,state:s}){i?window.history.replaceState(mf(s),"",r):window.history.pushState(s,"",r),qf(decodeURIComponent(window.location.hash.slice(1)),o),ts()},init:r=>zf(window,"popstate",bf(r,i=>{if(i)return!n.confirm(i);{const o=t();return!n.confirm(o.value,{state:o.state})}})),create:jf({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl}),utils:{go:r=>window.history.go(r),beforeLeave:n}})(e)}var Gf=N("<a>");function Sc(e){e=Ue({inactiveClass:"inactive",activeClass:"active"},e);const[,t]=es(e,["href","state","class","activeClass","inactiveClass","end"]),n=Cf(()=>e.href),r=Af(n),i=fr(),o=ge(()=>{const s=n();if(s===void 0)return[!1,!1];const a=_n(s.split(/[?#]/,1)[0]).toLowerCase(),u=decodeURI(_n(i.pathname).toLowerCase());return[e.end?a===u:u.startsWith(a+"/")||u===a,a===u]});return(()=>{var s=Gf();return dr(s,Ue(t,{get href(){return r()||e.href},get state(){return JSON.stringify(e.state)},get classList(){return{...e.class&&{[e.class]:!0},[e.inactiveClass]:!o()[0],[e.activeClass]:o()[0],...t.classList}},link:"",get"aria-current"(){return o()[1]?"page":void 0}}),!1,!1),s})()}const xe=e=>typeof e=="string",Kn=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},Ms=e=>e==null?"":String(e),Wf=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Vf=/###/g,Ls=e=>e&&e.includes("###")?e.replace(Vf,"."):e,Fs=e=>!e||xe(e),Xn=(e,t,n)=>{const r=xe(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Fs(e))return{};const o=Ls(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return Fs(e)?{}:{obj:e,k:Ls(r[i])}},Ps=(e,t,n)=>{const{obj:r,k:i}=Xn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=Xn(e,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=Xn(e,s,Object),a?.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},Zf=(e,t,n,r)=>{const{obj:i,k:o}=Xn(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Ur=(e,t)=>{const{obj:n,k:r}=Xn(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Yf=(e,t,n)=>{const r=Ur(e,n);return r!==void 0?r:Ur(t,n)},Cc=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,r)?xe(e[r])||e[r]instanceof String||xe(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Cc(e[r],t[r],n):e[r]=t[r]);return e},jt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Xf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Qf=e=>xe(e)?e.replace(/[&<>"'\/]/g,t=>Xf[t]):e;class Jf{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const e0=[" ",",","?","!",";"],t0=new Jf(20),n0=(e,t,n)=>{t=t||"",n=n||"";const r=e0.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const i=t0.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o},Lo=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let s,a="";for(let u=o;u<r.length;++u)if(u!==o&&(a+=n),a+=r[u],s=i[a],s!==void 0){if(["string","number","boolean"].includes(typeof s)&&u<r.length-1)continue;o+=u-o+1;break}i=s}return i},ir=e=>e?.replace(/_/g,"-"),r0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class zr{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||r0,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(t=t.map(o=>xe(o)?o.replace(/[\r\n\x00-\x1F\x7F]/g," "):o),xe(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zr(this.logger,t)}}var It=new zr;class ti{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...i)=>{n(...i),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i(t,...n)})}}class Bs extends ti{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.includes(".")?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):xe(r)&&o?a.push(...r.split(o)):a.push(r)));const u=Ur(this.data,a);return!u&&!n&&!r&&t.includes(".")&&(t=a[0],n=a[1],r=a.slice(2).join(".")),u||!s||!xe(r)?u:Lo(this.data?.[t]?.[n],r,o)}addResource(t,n,r,i,o={silent:!1}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.includes(".")&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),Ps(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const o in r)(xe(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,s={silent:!1,skipCopy:!1}){let a=[t,n];t.includes(".")&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let u=Ur(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Cc(u,r,o):u={...u,...r},Ps(this.data,a,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Ac={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{t=this.processors[o]?.process(t,n,r,i)??t}),t}};const Tc=Symbol("i18next/PATH_KEY");function i0(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===Tc?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function In(e,t){const{[Tc]:n}=e(i0()),r=t?.keySeparator??".",i=t?.nsSeparator??":",o=t?.enableSelector==="strict";if(n.length>1&&i){const s=t?.ns,a=o?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(a&&(o?a:a.length>1?a.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const wi=e=>!xe(e)&&typeof e!="boolean"&&typeof e!="number";class qr extends ti{constructor(t,n={}){super(),Wf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=It.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if(i?.res===void 0)return!1;const o=wi(i.res);return!(r.returnObjects===!1&&o)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.includes(r),a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!n0(t,r,i);if(s&&!a){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:xe(o)?[o]:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.includes(c[0]))&&(o=c.shift()),t=c.join(i)}return{key:t,namespaces:xe(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=In(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(z=>typeof z=="function"?In(z,{...this.options,...i}):String(z));const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:a,namespaces:u}=this.extractFromKey(t[t.length-1],i),c=u[u.length-1];let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const d=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return p?o?{res:`${c}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${l}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:a;const g=this.resolve(t,i);let f=g?.res;const h=g?.usedKey||a,b=g?.exactUsedKey||a,y=["[object Number]","[object Function]","[object RegExp]"],x=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,w=i.count!==void 0&&!xe(i.count),C=qr.hasDefaultValue(i),O=w?this.pluralResolver.getSuffix(d,i.count,i):"",$=i.ordinal&&w?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",A=w&&!i.ordinal&&i.count===0,I=A&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${O}`]||i[`defaultValue${$}`]||i.defaultValue;let j=f;E&&!f&&C&&(j=I);const F=wi(j),P=Object.prototype.toString.apply(j);if(E&&j&&F&&!y.includes(P)&&!(xe(x)&&Array.isArray(j))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,j,{...i,ns:u}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(g.res=z,g.usedParams=this.getUsedParamsDetails(i),g):z}if(s){const z=Array.isArray(j),B=z?[]:{},T=z?b:h;for(const D in j)if(Object.prototype.hasOwnProperty.call(j,D)){const X=`${T}${s}${D}`;C&&!f?B[D]=this.translate(X,{...i,defaultValue:wi(I)?I[D]:void 0,joinArrays:!1,ns:u}):B[D]=this.translate(X,{...i,joinArrays:!1,ns:u}),B[D]===X&&(B[D]=j[D])}f=B}}else if(E&&xe(x)&&Array.isArray(f))f=f.join(x),f&&(f=this.extendTranslation(f,t,i,r));else{let z=!1,B=!1;!this.isValidLookup(f)&&C&&(z=!0,f=I),this.isValidLookup(f)||(B=!0,f=a);const D=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:f,X=C&&I!==f&&this.options.updateMissing;if(B||z||X){if(this.logger.log(X?"updateKey":"missingKey",d,c,w&&!X?`${a}${this.pluralResolver.getSuffix(d,i.count,i)}`:a,X?I:f),s){const ne=this.resolve(a,{...i,keySeparator:!1});ne&&ne.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let pe=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ne=0;ne<Q.length;ne++)pe.push(Q[ne]);else this.options.saveMissingTo==="all"?pe=this.languageUtils.toResolveHierarchy(i.lng||this.language):pe.push(i.lng||this.language);const L=(ne,H,S)=>{const R=C&&S!==f?S:D;this.options.missingKeyHandler?this.options.missingKeyHandler(ne,c,H,R,X,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ne,c,H,R,X,i),this.emit("missingKey",ne,c,H,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?pe.forEach(ne=>{const H=this.pluralResolver.getSuffixes(ne,i);A&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!H.includes(`${this.options.pluralSeparator}zero`)&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(S=>{L([ne],a+S,i[`defaultValue${S}`]||I)})}):L(pe,a,I))}f=this.extendTranslation(f,t,i,g,r),B&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${c}${l}${a}`),(B||z)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${a}`:a,z?f:void 0,i))}return o?(g.res=f,g.usedParams=this.getUsedParamsDetails(i),g):f}extendTranslation(t,n,r,i,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=xe(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let l=r.replace&&!xe(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,r.lng||this.language||i.usedLng,r),u){const d=t.match(this.interpolator.nestingRegexp),p=d&&d.length;c<p&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>o?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${n[0]}`),null):this.translate(...d,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=xe(s)?[s]:s;return t!=null&&a?.length&&r.applyPostProcessor!==!1&&(t=Ac.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,o,s,a;return xe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(u=>typeof u=="function"?In(u,{...this.options,...n}):u)),t.forEach(u=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(u,n),l=c.key;i=l;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&!xe(n.count),g=p&&!n.ordinal&&n.count===0,f=n.context!==void 0&&(xe(n.context)||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(b=>{this.isValidLookup(r)||(a=b,!this.checkedLoadedFor[`${h[0]}-${b}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${h[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(y=>{if(this.isValidLookup(r))return;s=y;const x=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(x,l,y,b,n);else{let w;p&&(w=this.pluralResolver.getSuffix(y,n.count,n));const C=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&w.startsWith(O)&&x.push(l+w.replace(O,this.options.pluralSeparator)),x.push(l+w),g&&x.push(l+C)),f){const $=`${l}${this.options.contextSeparator||"_"}${n.context}`;x.push($),p&&(n.ordinal&&w.startsWith(O)&&x.push($+w.replace(O,this.options.pluralSeparator)),x.push($+w),g&&x.push($+C))}}let E;for(;E=x.pop();)this.isValidLookup(r)||(o=E,r=this.getResource(y,b,E,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!xe(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i={...i,count:t.count}),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r.startsWith(n)&&t[r]!==void 0)return!0;return!1}}class Us{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=It.create("languageUtils")}getScriptPartFromCode(t){if(t=ir(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ir(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(xe(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>s===o?!0:!s.includes("-")&&!o.includes("-")?!1:!!(s.includes("-")&&!o.includes("-")&&s.slice(0,s.indexOf("-"))===o||s.startsWith(o)&&o.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),xe(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return xe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):xe(t)&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.includes(s)||o(this.formatLanguageCode(s))}),i}}const zs={zero:0,one:1,two:2,few:3,many:4,other:5},qs={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class o0{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=It.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ir(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),qs;if(!t.match(/-|_/))return qs;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[o]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>zs[i]-zs[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Hs=(e,t,n,r=".",i=!0)=>{let o=Yf(e,t,n);return!o&&i&&xe(n)&&(o=Lo(e,n,r),o===void 0&&(o=Lo(t,n,r))),o},s0=e=>e.replace(/\$/g,"$$$$");class js{constructor(t={}){this.logger=It.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:u,formatSeparator:c,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:Qf,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?jt(o):s||"{{",this.suffix=a?jt(a):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":d?jt(d):"-",this.unescapeSuffix=this.unescapePrefix?"":l?jt(l):"",this.nestingPrefix=p?jt(p):g||jt("$t("),this.nestingSuffix=f?jt(f):h||jt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,a;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(!g.includes(this.formatSeparator)){const y=Hs(n,u,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...i,...n,interpolationkey:g}):y}const f=g.split(this.formatSeparator),h=f.shift().trim(),b=f.join(this.formatSeparator).trim();return this.format(Hs(n,u,h,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:h})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const l=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>g},{regex:this.regexp,safeValue:g=>this.escapeValue?this.escape(g):g}].forEach(g=>{for(a=0;o=g.regex.exec(t);){const f=o[1].trim();if(s=c(f),s===void 0)if(typeof l=="function"){const b=l(t,o,i);s=xe(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,f))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),s="";else!xe(s)&&!this.useRawValueToEscape&&(s=Ms(s));const h=g.safeValue(s);if(t=t.replace(o[0],s0(h)),d?(g.regex.lastIndex+=h.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,s;const a=(u,c)=>{const l=this.nestingOptionsSeparator;if(!u.includes(l))return u;const d=u.split(new RegExp(`${jt(l)}[ ]*{`));let p=`{${d[1]}`;u=d[0],p=this.interpolate(p,s);const g=p.match(/'/g),f=p.match(/"/g);((g?.length??0)%2===0&&!f||(f?.length??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,h),`${u}${l}${p}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,u};for(;i=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!xe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(c!==-1&&(u=i[1].slice(c).split(this.formatSeparator).map(l=>l.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),o=n(a.call(this,i[1].trim(),s),s),o&&i[0]===t&&!xe(o))return o;xe(o)||(o=Ms(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u.length&&(o=u.reduce((l,d)=>this.format(l,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const a0=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].slice(0,-1);t==="currency"&&!i.includes(":")?n.currency||(n.currency=i.trim()):t==="relativetime"&&!i.includes(":")?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[a,...u]=s.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),l=a.trim();n[l]||(n[l]=c),c==="false"&&(n[l]=!1),c==="true"&&(n[l]=!0),isNaN(c)||(n[l]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Ks=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=r+JSON.stringify(o);let a=t[s];return a||(a=e(ir(r),i),t[s]=a),a(n)}},u0=e=>(t,n,r)=>e(ir(n),r)(t);class c0{constructor(t={}){this.logger=It.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Ks:u0;this.formats={number:r((i,o)=>{const s=new Intl.NumberFormat(i,{...o});return a=>s.format(a)}),currency:r((i,o)=>{const s=new Intl.NumberFormat(i,{...o,style:"currency"});return a=>s.format(a)}),datetime:r((i,o)=>{const s=new Intl.DateTimeFormat(i,{...o});return a=>s.format(a)}),relativetime:r((i,o)=>{const s=new Intl.RelativeTimeFormat(i,{...o});return a=>s.format(a,o.range||"day")}),list:r((i,o)=>{const s=new Intl.ListFormat(i,{...o});return a=>s.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ks(n)}format(t,n,r,i={}){if(!n||t==null)return t;const o=n.split(this.formatSeparator),s=[];for(let u=0;u<o.length;u++){let c=o[u];for(;c.indexOf("(")>-1&&!c.includes(")")&&u+1<o.length;)c=`${c}${this.formatSeparator}${o[++u]}`;s.push(c)}return s.reduce((u,c)=>{const{formatName:l,formatOptions:d}=a0(c);if(this.formats[l]){let p=u;try{const g=i?.formatParams?.[i.interpolationkey]||{},f=g.locale||g.lng||i.locale||i.lng||r;p=this.formats[l](u,f,{...d,...i,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${l}`);return u},t)}}const l0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class d0 extends ti{constructor(t,n,r,i={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=It.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},a={},u={};return t.forEach(c=>{let l=!0;n.forEach(d=>{const p=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,l=!1,s[p]===void 0&&(s[p]=!0),o[p]===void 0&&(o[p]=!0),u[d]===void 0&&(u[d]=!0)))}),l||(a[c]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),!n&&r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(u=>{Zf(u.loaded,[o],s),l0(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{a[c]||(a[c]={});const l=u.loaded[c];l.length&&l.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r,i=0,o=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const a=(c,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&l&&i<this.maxRetries){setTimeout(()=>{this.read(t,n,r,i+1,o*2,s)},o);return}s(c,l)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(t,n);c&&typeof c.then=="function"?c.then(l=>a(null,l)).catch(a):a(null,c)}catch(c){a(c)}return}return u(t,n,a)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();xe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),xe(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,i,o,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...s,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let l;c.length===5?l=c(t,n,r,i,u):l=c(t,n,r,i),l&&typeof l.then=="function"?l.then(d=>a(null,d)).catch(a):a(null,l)}catch(l){a(l)}else c(t,n,r,i,a,u)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const ki=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),xe(e[1])&&(t.defaultValue=e[1]),xe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Gs=e=>(xe(e.ns)&&(e.ns=[e.ns]),xe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),xe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),wr=()=>{},f0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Qn extends ti{constructor(t={},n){if(super(),this.options=Gs(t),this.services={},this.logger=It,this.modules={external:[]},f0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(xe(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=ki();this.options={...r,...this.options,...Gs(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?It.init(i(this.modules.logger),this.options):It.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=c0;const l=new Us(this.options);this.store=new Bs(this.options.resources,this.options);const d=this.services;d.logger=It,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new o0(l,{prepend:this.options.pluralSeparator}),c&&(d.formatter=i(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new js(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new d0(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...g)=>{this.emit(p,...g)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new qr(this.services,this.options),this.translator.on("*",(p,...g)=>{this.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=wr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...l)=>this.store[c](...l)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...l)=>(this.store[c](...l),this)});const a=Kn(),u=()=>{const c=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),n(l,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),a}loadResources(t,n=wr){let r=n;const i=xe(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&(o.includes(c)||o.push(c))})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Kn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=wr),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Ac.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Kn();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?this.isLanguageChangingTo===t&&(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(a,(...c)=>this.t(...c))},s=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=xe(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(xe(a)?[a]:a);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,l=>{o(l,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r,i){const o=i?.scopeNs,s=(a,u,...c)=>{let l;typeof u!="object"?l=this.options.overloadTranslationOptionHandler([a,u].concat(c)):l={...u},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs;const d=l.ns!==void 0&&l.ns!==null;l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const p={...this.options,...l};Array.isArray(o)&&!d&&(p.ns=o),typeof l.keyPrefix=="function"&&(l.keyPrefix=In(l.keyPrefix,p));const g=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(h=>(typeof h=="function"&&(h=In(h,p)),`${l.keyPrefix}${g}${h}`)):(typeof a=="function"&&(a=In(a,p)),f=l.keyPrefix?`${l.keyPrefix}${g}${a}`:a),this.t(f,l)};return xe(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,u)=>{const c=this.services.backendConnector.state[`${a}|${u}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=Kn();return this.options.ns?(xe(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Kn();xe(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>!i.includes(s)&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new Us(ki());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Qn(t,n);return r.createInstance=Qn.createInstance,r}cloneInstance(t={},n=wr){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Qn(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const a=Object.keys(this.store.data).reduce((u,c)=>(u[c]={...this.store.data[c]},u[c]=Object.keys(u[c]).reduce((l,d)=>(l[d]={...u[c][d]},l),u[c]),u),{});o.store=new Bs(a,i),o.services.resourceStore=o.store}if(t.interpolation){const u={...ki().interpolation,...this.options.interpolation,...t.interpolation},c={...i,interpolation:u};o.services.interpolator=new js(c)}return o.translator=new qr(o.services,i),o.translator.on("*",(a,...u)=>{o.emit(a,...u)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Qe=Qn.createInstance();Qe.createInstance;Qe.dir;Qe.init;Qe.loadResources;Qe.reloadResources;Qe.use;Qe.changeLanguage;Qe.getFixedT;Qe.t;Qe.exists;Qe.setDefaultNamespace;Qe.hasLoadedNamespace;Qe.loadNamespaces;Qe.loadLanguages;const{slice:p0,forEach:g0}=[];function h0(e){return g0.call(p0.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function m0(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const Ws=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,b0=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!Ws.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!Ws.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},Vs={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=b0(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var x0={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Vs.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&Vs.create(n,e,r,i,o)}},_0={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let s=0;s<o.length;s++){const a=o[s].indexOf("=");a>0&&o[s].substring(0,a)===t&&(n=o[s].substring(a+1))}}return n}},y0={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const s=o.split("&");for(let a=0;a<s.length;a++){const u=s[a].indexOf("=");u>0&&s[a].substring(0,u)===t&&(r=s[a].substring(u+1))}}if(r)return r;if(!r&&n>-1){const s=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Tn=null;const Zs=()=>{if(Tn!==null)return Tn;try{if(Tn=typeof window<"u"&&window.localStorage!==null,!Tn)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Tn=!1}return Tn};var v0={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Zs())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Zs()&&window.localStorage.setItem(n,e)}};let Nn=null;const Ys=()=>{if(Nn!==null)return Nn;try{if(Nn=typeof window<"u"&&window.sessionStorage!==null,!Nn)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Nn=!1}return Nn};var E0={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Ys())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Ys()&&window.sessionStorage.setItem(n,e)}},w0={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},k0={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},S0={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},C0={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Nc=!1;try{document.cookie,Nc=!0}catch{}const Rc=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Nc||Rc.splice(1,1);const A0=()=>({order:Rc,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Dc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=h0(n,this.options||{},A0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(x0),this.addDetector(_0),this.addDetector(v0),this.addDetector(E0),this.addDetector(w0),this.addDetector(k0),this.addDetector(S0),this.addDetector(C0),this.addDetector(y0)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!m0(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Dc.type="languageDetector";function T0(e,t={}){const{fallbackLng:n="zh-CN",persistKey:r}=t,i=Qe.use(Dc).init({resources:e,fallbackLng:n,detection:{order:r?["localStorage","navigator"]:["navigator"],caches:r?["localStorage"]:[],...r?{lookupLocalStorage:r}:{}},interpolation:{escapeValue:!1}}),[o,s]=G(Qe.language||n),[a,u]=G(Qe.isInitialized);i.then(()=>{s(Qe.language||n),u(!0)}),Qe.on("languageChanged",d=>s(d));const c=(d,p)=>(o(),Qe.t(d,p));return{i18next:Qe,initPromise:i,t:c,useTranslation:()=>({t:c,lng:ge(()=>o()),ready:ge(()=>a()),changeLanguage:d=>{Qe.changeLanguage(d)}})}}const N0={app:{name:"YorZ",tagline:"移动端"},nav:{sessions:"会话",specs:"Spec",ext:"扩展",projects:"项目"},common:{loading:"加载中…",retry:"重试",error:"加载失败",comingSoon:"即将支持",noProject:"尚未选择项目",noProjectHint:"到「项目」页选择一个项目后再回来。",emptyProjects:"还没有项目",emptyProjectsHint:"请在桌面端添加项目——添加需要填写绝对路径,手机上无法选择目录。",save:"保存",saving:"保存中…",saved:"已保存",back:"返回",cancel:"取消",close:"关闭",confirm:"确定",pendingAgent:"待 agent 补充"},sessions:{title:"会话",empty:"还没有会话",new:"新建会话",running:"运行中"},specs:{title:"Spec",empty:"还没有 spec",new:"新建 spec",copyPath:"复制路径",pathCopied:"已复制路径",copyFailed:"复制失败",delete:"删除",deleteConfirm:"确认删除",deleteHint:"删除后不可恢复",deleted:"已删除"},ext:{title:"扩展",scripts:"脚本管理",scriptsDesc:"新增、删除与运行项目脚本",runningEmpty:"当前没有运行中的脚本",git:"Git",gitDesc:"查看改动、提交与分支操作",restart:"重启",stop:"终止",stopConfirm:"确认终止",stopHint:"终止后需重新运行脚本",restarted:"已重启",stopped:"已终止"},scripts:{title:"脚本管理",empty:"还没有脚本",add:"新增脚本",addTitle:"新增脚本",name:"名称",namePlaceholder:"例如:构建",cli:"命令行",cliPlaceholder:"例如:pnpm build",submit:"创建",created:"已创建",run:"运行",running:"运行中",delete:"删除",deleteConfirm:"确认删除",deleteHint:"只删除脚本定义,不会终止已在运行的进程",deleted:"已删除",runFailed:"运行失败"},runOutput:{title:"运行输出",notFound:"这次运行不存在或记录已被清除",statusRunning:"运行中",statusExited:"已结束",statusKilled:"已终止",statusFailed:"失败",outputEmpty:"暂无输出",truncated:"输出过长,仅显示末尾部分",copyOutput:"复制输出",copyPath:"复制日志路径",copied:"已复制",copyFailed:"复制失败",exitCode:"退出码",signal:"信号",stop:"终止",stopConfirm:"确认终止",stopHint:"终止后保留输出,可继续查看",stopped:"已终止"},git:{title:"Git",empty:"工作区干净,没有改动",branch:"分支",diffLoading:"加载 diff…",diffEmpty:"没有可显示的差异",diffTruncated:"diff 过大,已截断",binaryFile:"二进制文件,不显示差异",commit:"提交",commitPlaceholder:"提交信息",committing:"提交中…",committed:"已提交",discard:"丢弃",discarding:"丢弃中…",discardConfirm:"确认丢弃",discardHint:"所选文件的改动将被永久丢弃,不可恢复",discarded:"已丢弃",selectAtLeastOne:"请先选择至少一个文件",enterCommitMsg:"请填写提交信息",fileCount:"已选 {{selected}} / {{total}}",selectAll:"全选",deselectAll:"取消全选",switchBranch:"切换分支",branchFilterPlaceholder:"筛选分支",noBranches:"没有匹配的分支",switched:"已切换到 {{branch}}",mergeBranch:"合并分支",mergeAction:"合并",merging:"合并中…",merged:"已把 {{branch}} 合并进 {{current}}",mergeUpToDate:"{{current}} 已包含 {{branch}}",mergeSelfHint:"不能合并当前分支",push:"推送",pushed:"已推送 {{branch}}",pull:"拉取",pulled:"已拉取 {{branch}}",upToDate:"已是最新",more:"更多",fileSelectMode:"文件范围",manualSelect:"手动选择",agentSelect:"交给 Agent",agentScope:"Agent 将处理 {{total}} 个改动",agentModeHint:"由 Agent 决定处理哪些改动",agentDispatched:"已交给 Agent 处理",discardAllHint:"Agent 将丢弃工作区的全部改动,不可恢复"},projects:{title:"项目",empty:"还没有项目",globalSettings:"全局设置",projectSettings:"项目设置",switched:"已切换项目"},globalSettings:{title:"全局设置",agent:"Agent",defaultKind:"默认 Agent",notifications:"通知",sessionEndBanner:"会话结束横幅",sessionEndSound:"会话结束提示音",appearance:"外观",themeMode:"亮暗模式",themeName:"主题风格",language:"语言",about:"关于",version:"版本",installState:"安装状态",installed:"已安装到主屏",browser:"浏览器内运行"},projectSettings:{title:"项目设置",agent:"Agent",kind:"Agent 类型",inherit:"跟随全局"},chat:{untitled:"未命名会话",empty:"这个会话还没有消息",draftEmpty:"说点什么,开始新会话",usageLoading:"正在查询当前模型剩余用量…",usageUnavailable:"{{kind}} 暂不支持查询剩余用量。",usageInstallHint:"{{kind}} 需要安装 opencode-quota 后才能查询剩余用量:{{command}}",usageError:"{{kind}} 剩余用量查询失败。",usageAvailableNoDetails:"{{kind}} 已连接,但未返回可展示的剩余用量明细。",usageSummary:"{{kind}} 用量:{{details}}",usageWindow:"{{label}} 剩余约 {{remaining}}%(已用 {{used}}%,重置:{{reset}})",usageWindowUnknown:"{{label}} 剩余用量未知",usageResetUnknown:"未知",usageSeparator:" · ",placeholder:"/ 触发候选指令,@ 引用文件",send:"发送",abort:"中断",slashCommandNoMatch:"没有匹配的指令",slashCommandYorzDebug:"启动 debug 模式,尝试解决疑难问题",slashCommandYorzSpec:"基于上下文启动 spec 驱动开发",customSlashCommandNoDescription:"自定义指令",attach:"添加附件",attachmentLimit:"附件总数不能超过 {{max}} 个",attachUnsupported:"不支持的文件类型:{{name}}",attachUnsupportedMime:"不支持的 MIME:{{mime}}",attachTooBig:"{{name}} 超过 5 MB 限制",attachTooMany:"只能再添加 {{room}} 个附件(当前 {{current}}/{{max}})",attachFailed:"附件上传失败,请移除后重试",attachUploading:"附件还在上传中",toolCollapsed:"工具调用 ×{{count}}",toolTextExpand:"展开",toolTextCollapse:"收起",agentContextCollapsed:"上下文",sessionDivider:"新一轮",errorMessage:"[错误] {{message}}",copyFilePath:"复制路径",filePathCopied:"路径已复制",filePathCopyFailed:"复制失败",sendFailed:"发送失败",openSpec:"查看 spec"},specDetail:{notFound:"spec 不存在或已被删除",running:"运行中",openSession:"查看会话",appendTask:"追加任务",debug:"Debug 文档",git:"git",more:"更多",copySpecPath:"复制 spec 路径",specPathCopied:"路径已复制",questions:"待确认项",questionsBadge:"{{count}} 项待确认",questionsEmpty:"没有待确认项",submit:"提交",submitting:"提交中…",submitted:"已提交,agent 开始处理",submitFailed:"提交失败",unanswered:"还有 {{count}} 项未作答",reasonRequired:"否决必须填写理由",appendSaved:"已追加,agent 开始处理",appendSavedSpecBusy:"已记录,spec 正忙,稍后自动处理",appendFailed:"追加失败",appendKindFeat:"新功能",appendKindRefct:"重构",appendKindFix:"缺陷",appendDescription:"描述",appendDescriptionHint:"描述要追加的内容",decisionAccept:"确认,按此推进",decisionReject:"否决",decisionAlternative:"换方案",decisionConstraint:"补约束",decisionDropGoal:"弃目标",decisionDropCurrent:"废弃当前目标,继续其余",decisionDropSpec:"放弃整个 spec",rejectReason:"理由",rejectReasonHint:"说明否决的原因",freeformOther:"其它(自由文本)",freeformHint:"写下你的想法",plan:"方案",impact:"影响",viewDiagram:"查看图表",noSection:"(无章节)",annotate:"批注",annotateTitle:"添加批注",annotateInSection:"章节:{{section}}",annotatePlaceholder:"写下你对这段的意见",annotateSubmit:"添加",annotationSaved:"已加入待确认项,提交后生效",annotationDraft:"选区批注",annotationQuoteConnector:"中",removeAnnotation:"删除批注",explain:"解释",explainTooLong:"选中内容超过 {{max}} 字,请选少一点",explainFailed:"解释失败",selectionClose:"取消选择"},specDebug:{empty:"暂无 debug.md 记录"},newSpec:{title:"新建 spec",type:"类型",typeFeat:"新功能",typeFeatHint:"新增能力或扩展现有能力",typeRefct:"重构",typeRefctHint:"不改变外部行为的内部调整",typeFix:"缺陷",typeFixHint:"修复错误行为",requirement:"需求",requirementHint:"描述你想做什么,agent 会据此起草 spec",requirementTooShort:"至少写 5 个字",attachments:"附件",create:"创建",creating:"创建中…",createFailed:"创建失败",drafting:"agent 正在起草…"},theme:{system:"跟随系统",light:"亮色",dark:"暗色",terminal:"Terminal",graphite:"Graphite",paper:"Paper"},pwa:{offlineReady:"已可离线使用",needRefresh:"有新版本",refresh:"刷新",offline:"当前离线,展示的是缓存内容"},notFound:{title:"页面不存在",back:"返回首页"}},R0={app:{name:"YorZ",tagline:"Mobile"},nav:{sessions:"Sessions",specs:"Specs",ext:"Extensions",projects:"Projects"},common:{loading:"Loading…",retry:"Retry",error:"Failed to load",comingSoon:"Coming soon",noProject:"No project selected",noProjectHint:"Pick one on the Projects tab, then come back.",emptyProjects:"No projects yet",emptyProjectsHint:"Add one from the desktop app — it needs an absolute path, which a phone cannot browse to.",save:"Save",saving:"Saving…",saved:"Saved",back:"Back",cancel:"Cancel",close:"Close",confirm:"Confirm",pendingAgent:"Pending agent"},sessions:{title:"Sessions",empty:"No sessions yet",new:"New session",running:"Running"},specs:{title:"Specs",empty:"No specs yet",new:"New spec",copyPath:"Copy path",pathCopied:"Path copied",copyFailed:"Copy failed",delete:"Delete",deleteConfirm:"Delete spec",deleteHint:"This cannot be undone",deleted:"Deleted"},ext:{title:"Extensions",scripts:"Scripts",scriptsDesc:"Add, remove and run project scripts",runningEmpty:"Nothing is running",git:"Git",gitDesc:"Changes, commits and branches",restart:"Restart",stop:"Stop",stopConfirm:"Stop script",stopHint:"It stops immediately and needs a rerun",restarted:"Restarted",stopped:"Stopped"},scripts:{title:"Scripts",empty:"No scripts yet",add:"Add script",addTitle:"Add script",name:"Name",namePlaceholder:"e.g. Build",cli:"Command",cliPlaceholder:"e.g. pnpm build",submit:"Create",created:"Created",run:"Run",running:"Running",delete:"Delete",deleteConfirm:"Delete script",deleteHint:"Removes the definition only; a running process keeps going",deleted:"Deleted",runFailed:"Failed to run"},runOutput:{title:"Output",notFound:"This run no longer exists",statusRunning:"Running",statusExited:"Exited",statusKilled:"Killed",statusFailed:"Failed",outputEmpty:"No output yet",truncated:"Output is long; showing the tail only",copyOutput:"Copy output",copyPath:"Copy log path",copied:"Copied",copyFailed:"Copy failed",exitCode:"Exit code",signal:"Signal",stop:"Stop",stopConfirm:"Stop run",stopHint:"The output is kept and stays readable",stopped:"Stopped"},git:{title:"Git",empty:"Working tree is clean",branch:"Branch",diffLoading:"Loading diff…",diffEmpty:"Nothing to show",diffTruncated:"Diff too large, truncated",binaryFile:"Binary file, no diff shown",commit:"Commit",commitPlaceholder:"Commit message",committing:"Committing…",committed:"Committed",discard:"Discard",discarding:"Discarding…",discardConfirm:"Discard changes",discardHint:"Changes in the selected files are lost for good",discarded:"Discarded",selectAtLeastOne:"Select at least one file",enterCommitMsg:"Enter a commit message",fileCount:"{{selected}} / {{total}} selected",selectAll:"Select all",deselectAll:"Deselect all",switchBranch:"Switch branch",branchFilterPlaceholder:"Filter branches",noBranches:"No matching branches",switched:"Switched to {{branch}}",mergeBranch:"Merge branch",mergeAction:"Merge",merging:"Merging…",merged:"Merged {{branch}} into {{current}}",mergeUpToDate:"{{current}} already contains {{branch}}",mergeSelfHint:"Cannot merge the current branch",push:"Push",pushed:"Pushed {{branch}}",pull:"Pull",pulled:"Pulled {{branch}}",upToDate:"Already up to date",more:"More",fileSelectMode:"File scope",manualSelect:"Pick manually",agentSelect:"Let the Agent decide",agentScope:"The Agent will handle {{total}} change(s)",agentModeHint:"The Agent decides which changes to handle",agentDispatched:"Dispatched to the Agent",discardAllHint:"The Agent will discard every change in the working tree — not recoverable"},projects:{title:"Projects",empty:"No projects yet",globalSettings:"Global settings",projectSettings:"Project settings",switched:"Project switched"},globalSettings:{title:"Global settings",agent:"Agent",defaultKind:"Default agent",notifications:"Notifications",sessionEndBanner:"Session end banner",sessionEndSound:"Session end sound",appearance:"Appearance",themeMode:"Light / dark",themeName:"Theme",language:"Language",about:"About",version:"Version",installState:"Install state",installed:"Installed to home screen",browser:"Running in browser"},projectSettings:{title:"Project settings",agent:"Agent",kind:"Agent kind",inherit:"Inherit global"},chat:{untitled:"Untitled session",empty:"No messages in this session yet",draftEmpty:"Say something to start a new session",usageLoading:"Checking current model usage…",usageUnavailable:"{{kind}} does not support remaining usage queries yet.",usageInstallHint:"{{kind}} requires opencode-quota before remaining usage can be queried: {{command}}",usageError:"Failed to query {{kind}} remaining usage.",usageAvailableNoDetails:"{{kind}} is connected, but returned no displayable usage details.",usageSummary:"{{kind}} usage: {{details}}",usageWindow:"{{label}} about {{remaining}}% remaining ({{used}}% used, resets: {{reset}})",usageWindowUnknown:"{{label}} remaining usage unknown",usageResetUnknown:"unknown",usageSeparator:" · ",placeholder:"/ for commands, @ to reference files",send:"Send",abort:"Stop",slashCommandNoMatch:"No matching command",slashCommandYorzDebug:"Start debug mode to troubleshoot difficult issues",slashCommandYorzSpec:"Start spec-driven development from the current context",customSlashCommandNoDescription:"Custom command",attach:"Add attachment",attachmentLimit:"Cannot exceed {{max}} attachments",attachUnsupported:"Unsupported file type: {{name}}",attachUnsupportedMime:"Unsupported MIME: {{mime}}",attachTooBig:"{{name}} exceeds the 5 MB limit",attachTooMany:"Can only add {{room}} more ({{current}}/{{max}})",attachFailed:"Attachment upload failed — remove it and retry",attachUploading:"Attachments are still uploading",toolCollapsed:"Tool calls ×{{count}}",toolTextExpand:"Expand",toolTextCollapse:"Collapse",agentContextCollapsed:"Context",sessionDivider:"New round",errorMessage:"[Error] {{message}}",copyFilePath:"Copy path",filePathCopied:"Path copied",filePathCopyFailed:"Copy failed",sendFailed:"Send failed",openSpec:"Open spec"},specDetail:{notFound:"This spec no longer exists",running:"Running",openSession:"Open session",appendTask:"Append task",debug:"Debug document",git:"git",more:"More",copySpecPath:"Copy spec path",specPathCopied:"Path copied",questions:"Open questions",questionsBadge:"{{count}} to confirm",questionsEmpty:"Nothing to confirm",submit:"Submit",submitting:"Submitting…",submitted:"Submitted — the agent is on it",submitFailed:"Submit failed",unanswered:"{{count}} still unanswered",reasonRequired:"A rejection needs a reason",appendSaved:"Appended — the agent is on it",appendSavedSpecBusy:"Saved; the spec is busy and will pick it up later",appendFailed:"Append failed",appendKindFeat:"Feature",appendKindRefct:"Refactor",appendKindFix:"Fix",appendDescription:"Description",appendDescriptionHint:"What should be appended",decisionAccept:"Accept, proceed",decisionReject:"Reject",decisionAlternative:"Different approach",decisionConstraint:"Add a constraint",decisionDropGoal:"Drop the goal",decisionDropCurrent:"Drop this goal, keep the rest",decisionDropSpec:"Abandon the whole spec",rejectReason:"Reason",rejectReasonHint:"Why are you rejecting this?",freeformOther:"Other (free text)",freeformHint:"Write your thoughts",plan:"Plan",impact:"Impact",viewDiagram:"View diagram",noSection:"(no section)",annotate:"Annotate",annotateTitle:"Add annotation",annotateInSection:"Section: {{section}}",annotatePlaceholder:"Write your note on this passage",annotateSubmit:"Add",annotationSaved:"Added to pending items; submit to apply",annotationDraft:"Selection annotation",annotationQuoteConnector:"in",removeAnnotation:"Remove annotation",explain:"Explain",explainTooLong:"Selection exceeds {{max}} characters — please select less",explainFailed:"Explain failed",selectionClose:"Clear selection"},specDebug:{empty:"No debug.md records yet"},newSpec:{title:"New spec",type:"Type",typeFeat:"Feature",typeFeatHint:"New capability, or an extension of one",typeRefct:"Refactor",typeRefctHint:"Internal change with no external behaviour change",typeFix:"Fix",typeFixHint:"Correct wrong behaviour",requirement:"Requirement",requirementHint:"Describe what you want; the agent drafts the spec from it",requirementTooShort:"At least 5 characters",attachments:"Attachments",create:"Create",creating:"Creating…",createFailed:"Create failed",drafting:"The agent is drafting…"},theme:{system:"System",light:"Light",dark:"Dark",terminal:"Terminal",graphite:"Graphite",paper:"Paper"},pwa:{offlineReady:"Ready to work offline",needRefresh:"Update available",refresh:"Reload",offline:"Offline — showing cached content"},notFound:{title:"Page not found",back:"Back to home"}},Oc=T0({"zh-CN":{translation:N0},en:{translation:R0}},{persistKey:"yorz.m.lang"}),$c=["system","light","dark"],Ic=["terminal","graphite","paper"],Mc="(prefers-color-scheme: dark)",Lc="yorz.appearanceHint";function D0(e){return $c.includes(e)}function O0(e){return Ic.includes(e)}function $0(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(Lc);if(!e)return null;const t=JSON.parse(e);if(!t||typeof t!="object")return null;const{mode:n,name:r}=t;return!D0(n)||!O0(r)?null:{mode:n,name:r}}catch{return null}}function I0(e,t){if(!(typeof window>"u"))try{window.localStorage.setItem(Lc,JSON.stringify({mode:e,name:t}))}catch{}}function Fc(){return typeof window>"u"||!window.matchMedia?"light":window.matchMedia(Mc).matches?"dark":"light"}function Pc(e,t){return e==="light"||e==="dark"?e:t?"dark":"light"}const rs=$0(),[Hr,M0]=G(rs?.mode??"system"),[jr,L0]=G(rs?.name??"paper"),[F0,P0]=G(Pc(rs?.mode??"system",Fc()==="dark"));let Bc=!1;function B0(e,t){typeof document>"u"||(document.documentElement.setAttribute("data-kb-theme",e),document.documentElement.setAttribute("data-kb-theme-name",t),document.documentElement.style.colorScheme=e)}function Kr(e,t){const n=Pc(e,Fc()==="dark");P0(n),B0(n,t),Bc&&I0(e,t)}function U0(e){M0(e),Kr(e,jr())}function z0(e){L0(e),Kr(Hr(),e)}let Xs=!1;function q0(e={}){Xs||(Xs=!0,Bc=e.persistHint??!1,Kr(Hr(),jr()),!(typeof window>"u"||!window.matchMedia)&&window.matchMedia(Mc).addEventListener("change",()=>{Hr()==="system"&&Kr("system",jr())}))}const Fo="/m",H0=["/","/specs","/ext","/projects"];function Gr(e){return(e.startsWith(Fo)?e.slice(Fo.length):e).replace(/\/+$/,"")||"/"}function Po(e){return H0.includes(Gr(e))}const j0="modulepreload",K0=function(e){return"/m/"+e},Qs={},Uc=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(l=>Promise.resolve(l).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");i=s(n.map(c=>{if(c=K0(c),c in Qs)return;Qs[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=l?"stylesheet":j0,l||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),l)return new Promise((g,f)=>{p.addEventListener("load",g),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};function G0(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:o,onRegisteredSW:s,onRegisterError:a}=e;let u,c;const l=async(p=!0)=>{await c};async function d(){if("serviceWorker"in navigator){if(u=await Uc(async()=>{const{Workbox:p}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:p}},[]).then(({Workbox:p})=>new p("/m/sw.js",{scope:"/m/",type:"classic"})).catch(p=>{a?.(p)}),!u)return;u.addEventListener("activated",p=>{(p.isUpdate||p.isExternal)&&(n?n():window.location.reload())}),u.addEventListener("installed",p=>{p.isUpdate||i?.()}),u.register({immediate:t}).then(p=>{s?s("/m/sw.js",p):o?.(p)}).catch(p=>{a?.(p)})}}return c=d(),l}const[qw,W0]=G(!1),[V0,Z0]=G(!1);let zc=null;function Y0(){zc?.(!0)}let Js=!1;function X0(e){const t=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!t)return null;const n=Number(t[1]),r=Number(t[2])/100,i=Number(t[3])/100;if(![n,r,i].every(Number.isFinite))return null;const o=r*Math.min(i,1-i),s=a=>{const u=(a+n/30)%12,c=i-o*Math.max(Math.min(u-3,9-u,1),-1);return Math.round(255*c).toString(16).padStart(2,"0")};return`#${s(0)}${s(8)}${s(4)}`}function Q0(){if(typeof window>"u"||typeof document>"u")return;const e=document.documentElement,t=window.getComputedStyle(e).getPropertyValue("--background").trim(),n=X0(t)??"#f2f2e9";let r=document.querySelector('meta[name="theme-color"]');r||(r=document.createElement("meta"),r.name="theme-color",document.head.append(r)),r.content=n}function J0(){if(typeof window>"u"||typeof document>"u")return;const e=()=>window.requestAnimationFrame(Q0);e(),new window.MutationObserver(e).observe(document.documentElement,{attributes:!0,attributeFilter:["data-kb-theme","data-kb-theme-name"]})}function ep(){Js||(Js=!0,J0(),!(typeof navigator>"u"||!("serviceWorker"in navigator))&&(zc=G0({immediate:!0,onOfflineReady(){W0(!0)},onNeedRefresh(){Z0(!0)},onRegisterError(e){console.error("[pwa] service worker 注册失败",e)}})))}function tp(){if(typeof window>"u")return!1;const e=window.navigator.standalone;return window.matchMedia("(display-mode: standalone)").matches||e===!0}const ea="data-vt";function np(){return typeof document<"u"&&typeof document.startViewTransition=="function"}function rp(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ta(e){return e.split("/").filter(Boolean).length}function ip(e,t){const n=ta(e),r=ta(t);return r>n?"forward":r<n?"back":"lateral"}function qc(e){const t=typeof window>"u"?"http://localhost":window.location.origin;try{return new URL(e,t).pathname}catch{return e}}function na(e,t=600){return e()?Promise.resolve():new Promise(n=>{let r=!1,i;const o=setTimeout(s,t);function s(){r||(r=!0,clearTimeout(o),i?.(),n())}an(a=>{i=a,Ae(()=>{e()&&s()})})})}let kr=null;function op(e,t){const n=document.documentElement;kr?.skipTransition(),n.setAttribute(ea,e);const r=document.startViewTransition(async()=>{await t()});kr=r,r.finished.catch(()=>{}).finally(()=>{kr===r&&(kr=null,n.removeAttribute(ea))})}function sp(e,t){return e.defaultPrevented||e.enabled===!1||e.replace||typeof e.to=="string"&&qc(e.to)===e.fromPathname?null:t(e.fromPathname,e.to)}function ap(e){const t=fr(),n=Tf();Nf(r=>{const i=t.pathname,o=sp({fromPathname:i,to:r.to,replace:r.options?.replace,defaultPrevented:r.defaultPrevented,enabled:np()&&!rp()},e.resolveDirection);if(!o)return;const s=typeof r.to=="number";r.preventDefault(),op(o,async()=>{r.retry(!0),s&&await na(()=>t.pathname!==i),await na(()=>!n())})})}/**
|
|
2
2
|
* @license lucide-solid v1.24.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/var cp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Rn=cp,lp=Xo({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),dp=N("<svg>"),fp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},pp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),gp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ra=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hp=e=>{const t=gp(e);return t.charAt(0).toUpperCase()+t.slice(1)},mp=e=>{const[t,n]=es(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=Jr(lp);return(()=>{var i=dp();return dr(i,ze(Rn,{get width(){return t.size??r.size??Rn.width},get height(){return t.size??r.size??Rn.height},get stroke(){return t.color??r.color??Rn.stroke},get"stroke-width"(){return Fe(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Rn["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Rn["stroke-width"])},get class(){return pp("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${ra(hp(t.name))}`,`lucide-${ra(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!fp(n)?"true":void 0}},n),!0,!0),_(i,m(Ke,{get each(){return t.iconNode},children:([o,s])=>m(mf,ze({component:o},s))})),i})()},Ze=mp,bp=[["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"}]],xp=e=>m(Ze,ze(e,{iconNode:bp,name:"blocks"})),_p=xp,yp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vp=e=>m(Ze,ze(e,{iconNode:yp,name:"check"})),Bo=vp,Ep=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wp=e=>m(Ze,ze(e,{iconNode:Ep,name:"chevron-down"})),jc=wp,kp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Sp=e=>m(Ze,ze(e,{iconNode:kp,name:"chevron-left"})),Cp=Sp,Ap=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Tp=e=>m(Ze,ze(e,{iconNode:Ap,name:"chevron-right"})),Np=Tp,Rp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Dp=e=>m(Ze,ze(e,{iconNode:Rp,name:"circle-question-mark"})),Op=Dp,$p=[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ip=e=>m(Ze,ze(e,{iconNode:$p,name:"cloud-off"})),Mp=Ip,Lp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Fp=e=>m(Ze,ze(e,{iconNode:Lp,name:"ellipsis"})),or=Fp,Pp=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Bp=e=>m(Ze,ze(e,{iconNode:Pp,name:"file-code-corner"})),Up=Bp,zp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],qp=e=>m(Ze,ze(e,{iconNode:zp,name:"file-text"})),Kc=qp,Hp=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],jp=e=>m(Ze,ze(e,{iconNode:Hp,name:"folder-git-2"})),Kp=jp,Gp=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Wp=e=>m(Ze,ze(e,{iconNode:Gp,name:"git-branch"})),is=Wp,Vp=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Zp=e=>m(Ze,ze(e,{iconNode:Vp,name:"message-square"})),Yp=Zp,Xp=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],Qp=e=>m(Ze,ze(e,{iconNode:Xp,name:"messages-square"})),Jp=Qp,eg=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],tg=e=>m(Ze,ze(e,{iconNode:eg,name:"paperclip"})),ng=tg,rg=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ig=e=>m(Ze,ze(e,{iconNode:rg,name:"play"})),og=ig,sg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ag=e=>m(Ze,ze(e,{iconNode:sg,name:"plus"})),os=ag,ug=[["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"}]],cg=e=>m(Ze,ze(e,{iconNode:ug,name:"refresh-cw"})),lg=cg,dg=[["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"}]],fg=e=>m(Ze,ze(e,{iconNode:dg,name:"rotate-ccw"})),pg=fg,gg=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],hg=e=>m(Ze,ze(e,{iconNode:gg,name:"send"})),mg=hg,bg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],xg=e=>m(Ze,ze(e,{iconNode:bg,name:"square"})),_g=xg,yg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],vg=e=>m(Ze,ze(e,{iconNode:yg,name:"terminal"})),Eg=vg,wg=[["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"}]],kg=e=>m(Ze,ze(e,{iconNode:wg,name:"trash-2"})),Sg=kg,Cg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ag=e=>m(Ze,ze(e,{iconNode:Cg,name:"x"})),vn=Ag;const[ia,oa]=G(typeof navigator>"u"?!0:navigator.onLine);function Tg(){if(typeof window>"u")return;const e=()=>oa(!0),t=()=>oa(!1);window.addEventListener("online",e),window.addEventListener("offline",t),Me(()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)})}const y=$c.t,ss=$c.useTranslation;var Ng=N('<div class="flex items-center gap-2 bg-info px-4 py-1.5 text-xs text-info-foreground"><span class=flex-1></span><button type=button class="font-medium underline">'),Rg=N('<div class="flex items-center gap-2 bg-warning px-4 py-1.5 text-xs text-warning-foreground"role=status><span>');const Dg=()=>m(I,{get when(){return!ia()||Z0()},get children(){return m(I,{get when(){return ia()},get fallback(){return(()=>{var e=Rg(),t=e.firstChild;return _(e,m(Mp,{size:14,"aria-hidden":"true"}),t),_(t,()=>y("pwa.offline")),e})()},get children(){var e=Ng(),t=e.firstChild,n=t.nextSibling;return _(e,m(lg,{size:14,"aria-hidden":"true"}),t),_(t,()=>y("pwa.needRefresh")),n.$$click=()=>X0(),_(n,()=>y("pwa.refresh")),e}})}});qe(["click"]);function Gc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Gc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wc(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Gc(e))&&(r&&(r+=" "),r+=t);return r}const Og=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},$g=(e,t)=>({classGroupId:e,validator:t}),Vc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wr="-",sa=[],Ig="arbitrary..",Mg=e=>{const t=Fg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Lg(s);const a=s.split(Wr),u=a[0]===""&&a.length>1?1:0;return Zc(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=r[s],c=n[s];return u?c?Og(c,u):u:c||sa}return n[s]||sa}}},Zc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const c=Zc(e,t+1,o);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Wr):e.slice(t).join(Wr),u=s.length;for(let c=0;c<u;c++){const l=s[c];if(l.validator(a))return l.classGroupId}},Lg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ig+r:void 0})(),Fg=e=>{const{theme:t,classGroups:n}=e;return Pg(n,t)},Pg=(e,t)=>{const n=Vc();for(const r in e){const i=e[r];as(i,n,r,t)}return n},as=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];Bg(s,t,n,r)}},Bg=(e,t,n,r)=>{if(typeof e=="string"){Ug(e,t,n);return}if(typeof e=="function"){zg(e,t,n,r);return}qg(e,t,n,r)},Ug=(e,t,n)=>{const r=e===""?t:Yc(t,e);r.classGroupId=n},zg=(e,t,n,r)=>{if(Hg(e)){as(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push($g(n,e))},qg=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,u]=i[s];as(u,Yc(t,a),n,r)}},Yc=(e,t)=>{let n=e;const r=t.split(Wr),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=Vc(),n.nextPart.set(s,a)),n=a}return n},Hg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},Uo="!",aa=":",Kg=[],ua=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Gg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,u=0,c;const l=i.length;for(let h=0;h<l;h++){const b=i[h];if(s===0&&a===0){if(b===aa){o.push(i.slice(u,h)),u=h+1;continue}if(b==="/"){c=h;continue}}b==="["?s++:b==="]"?s--:b==="("?a++:b===")"&&a--}const d=o.length===0?i:i.slice(u);let p=d,g=!1;d.endsWith(Uo)?(p=d.slice(0,-1),g=!0):d.startsWith(Uo)&&(p=d.slice(1),g=!0);const f=c&&c>u?c-u:void 0;return ua(o,g,p,f)};if(t){const i=t+aa,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):ua(Kg,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Wg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",u=t.has(s);a||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},Vg=e=>({cache:jg(e.cacheSize),parseClassName:Gg(e),sortModifiers:Wg(e),postfixLookupClassGroupIds:Zg(e),...Mg(e)}),Zg=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},Yg=/\s+/,Xg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:s}=t,a=[],u=e.trim().split(Yg);let c="";for(let l=u.length-1;l>=0;l-=1){const d=u[l],{isExternal:p,modifiers:g,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:b}=n(d);if(p){c=d+(c.length>0?" "+c:c);continue}let v=!!b,x;if(v){const $=h.substring(0,b);x=r($);const A=x&&s[x]?r(h):void 0;A&&A!==x&&(x=A,v=!1)}else x=r(h);if(!x){if(!v){c=d+(c.length>0?" "+c:c);continue}if(x=r(h),!x){c=d+(c.length>0?" "+c:c);continue}v=!1}const E=g.length===0?"":g.length===1?g[0]:o(g).join(":"),w=f?E+Uo:E,C=w+x;if(a.indexOf(C)>-1)continue;a.push(C);const O=i(x,v);for(let $=0;$<O.length;++$){const A=O[$];a.push(w+A)}c=d+(c.length>0?" "+c:c)}return c},Qg=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Xc(n))&&(i&&(i+=" "),i+=r);return i},Xc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xc(e[r]))&&(n&&(n+=" "),n+=t);return n},Jg=(e,...t)=>{let n,r,i,o;const s=u=>{const c=t.reduce((l,d)=>d(l),e());return n=Vg(c),r=n.cache.get,i=n.cache.set,o=a,a(u)},a=u=>{const c=r(u);if(c)return c;const l=Xg(u,n);return i(u,l),l};return o=s,(...u)=>o(Qg(...u))},eh=[],it=e=>{const t=n=>n[e]||eh;return t.isThemeGetter=!0,t},Qc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,th=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ih=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oh=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nn=e=>th.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),Si=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),Kt=e=>nh.test(e),el=()=>!0,ah=e=>rh.test(e)&&!ih.test(e),us=()=>!1,uh=e=>oh.test(e),ch=e=>sh.test(e),lh=e=>!re(e)&&!oe(e),dh=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),fh=e=>cn(e,rl,us),re=e=>Qc.test(e),mn=e=>cn(e,il,ah),ca=e=>cn(e,yh,Ne),ph=e=>cn(e,sl,el),gh=e=>cn(e,ol,us),la=e=>cn(e,tl,us),hh=e=>cn(e,nl,ch),Sr=e=>cn(e,al,uh),oe=e=>Jc.test(e),Gn=e=>En(e,il),mh=e=>En(e,ol),da=e=>En(e,tl),bh=e=>En(e,rl),xh=e=>En(e,nl),Cr=e=>En(e,al,!0),_h=e=>En(e,sl,!0),cn=(e,t,n)=>{const r=Qc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},En=(e,t,n=!1)=>{const r=Jc.exec(e);return r?r[1]?t(r[1]):n:!1},tl=e=>e==="position"||e==="percentage",nl=e=>e==="image"||e==="url",rl=e=>e==="length"||e==="size"||e==="bg-size",il=e=>e==="length",yh=e=>e==="number",ol=e=>e==="family-name",sl=e=>e==="number"||e==="weight",al=e=>e==="shadow",vh=()=>{const e=it("color"),t=it("font"),n=it("text"),r=it("font-weight"),i=it("tracking"),o=it("leading"),s=it("breakpoint"),a=it("container"),u=it("spacing"),c=it("radius"),l=it("shadow"),d=it("inset-shadow"),p=it("text-shadow"),g=it("drop-shadow"),f=it("blur"),h=it("perspective"),b=it("aspect"),v=it("ease"),x=it("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...w(),oe,re],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],A=()=>[oe,re,u],M=()=>[nn,"full","auto",...A()],j=()=>[$t,"none","subgrid",oe,re],F=()=>["auto",{span:["full",$t,oe,re]},$t,oe,re],P=()=>[$t,"auto",oe,re],z=()=>["auto","min","max","fr",oe,re],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...A()],X=()=>[nn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],pe=()=>[nn,"screen","full","dvw","lvw","svw","min","max","fit",...A()],Q=()=>[nn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],L=()=>[e,oe,re],ne=()=>[...w(),da,la,{position:[oe,re]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",bh,fh,{size:[oe,re]}],R=()=>[Si,Gn,mn],q=()=>["","none","full",c,oe,re],W=()=>["",Ne,Gn,mn],ie=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[Ne,Si,da,la],ke=()=>["","none",f,oe,re],Oe=()=>["none",Ne,oe,re],Ce=()=>["none",Ne,oe,re],Ye=()=>[Ne,oe,re],st=()=>[nn,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[el],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[lh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ne],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nn,re,oe,b]}],container:["container"],"container-type":[{"@container":["","normal","size",oe,re]}],"container-named":[dh],columns:[{columns:[Ne,re,oe,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",oe,re]}],basis:[{basis:[nn,"full","auto",a,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,nn,"auto","initial","none",re]}],grow:[{grow:["",Ne,oe,re]}],shrink:[{shrink:["",Ne,oe,re]}],order:[{order:[$t,"first","last","none",oe,re]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...pe()]}],"min-inline-size":[{"min-inline":["auto",...pe()]}],"max-inline-size":[{"max-inline":["none",...pe()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Gn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_h,ph]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Si,re]}],"font-family":[{font:[mh,gh,t]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,oe,re]}],"line-clamp":[{"line-clamp":[Ne,"none",oe,ca]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",oe,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",oe,mn]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Ne,"auto",oe,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"tab-size":[{tab:[$t,oe,re]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,oe,re],radial:["",oe,re],conic:[$t,oe,re]},xh,hh]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,oe,re]}],"outline-w":[{outline:["",Ne,Gn,mn]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",l,Cr,Sr]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",d,Cr,Sr]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Ne,mn]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",p,Cr,Sr]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Ne,oe,re]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[oe,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,re]}],filter:[{filter:["","none",oe,re]}],blur:[{blur:ke()}],brightness:[{brightness:[Ne,oe,re]}],contrast:[{contrast:[Ne,oe,re]}],"drop-shadow":[{"drop-shadow":["","none",g,Cr,Sr]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Ne,oe,re]}],"hue-rotate":[{"hue-rotate":[Ne,oe,re]}],invert:[{invert:["",Ne,oe,re]}],saturate:[{saturate:[Ne,oe,re]}],sepia:[{sepia:["",Ne,oe,re]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,re]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,oe,re]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,oe,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,oe,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,oe,re]}],"backdrop-invert":[{"backdrop-invert":["",Ne,oe,re]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,oe,re]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,oe,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,oe,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",oe,re]}],ease:[{ease:["linear","initial",v,oe,re]}],delay:[{delay:[Ne,oe,re]}],animate:[{animate:["none",x,oe,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,oe,re]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[oe,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,oe,re]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe,re]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Ne,Gn,mn,ca]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Eh=Jg(vh);function Xe(...e){return Eh(Wc(e))}var wh=N('<nav class="shrink-0 border-t-[0.5px] border-border bg-card px-safe pb-safe"><ul class="flex items-stretch justify-around">'),kh=N("<span>"),Sh=N("<li class=flex-1>");const Ch=[{href:"/",labelKey:"nav.sessions",icon:Jp,end:!0},{href:"/specs",labelKey:"nav.specs",icon:Kc,end:!1},{href:"/ext",labelKey:"nav.ext",icon:_p,end:!1},{href:"/projects",labelKey:"nav.projects",icon:Kp,end:!1}],Ah=()=>{const e=fr(),t=(n,r)=>{const i=Gr(e.pathname);return r?i===n:i.startsWith(n)};return(()=>{var n=wh(),r=n.firstChild;return _(r,m(Ke,{each:Ch,children:i=>(()=>{var o=Sh();return _(o,m(Cc,{get href(){return i.href},get class(){return Xe("flex h-14 flex-col items-center justify-center gap-0.5 text-[0.68rem] transition-colors",t(i.href,i.end)?"font-semibold text-primary":"text-muted-foreground active:text-foreground")},get"aria-current"(){return t(i.href,i.end)?"page":void 0},get children(){return[m(i.icon,{size:20,"aria-hidden":"true"}),(()=>{var s=kh();return _(s,()=>y(i.labelKey)),s})()]}})),o})()})),Z(()=>te(n,"aria-label",y("nav.sessions"))),n})()};var Th=N('<div class="pointer-events-none fixed inset-x-0 bottom-0 z-50 flex justify-center px-safe pb-safe"role=status aria-live=polite><div>');const Nh=3e3,[Rh,ul]=G(null);let fa=0;function Ee(e,t="default"){fa+=1,ul({message:e,tone:t,seq:fa})}const Dh=()=>{let e;const t=n=>{e&&clearTimeout(e),n&&(e=setTimeout(()=>{ul(r=>r?.seq===n.seq?null:r)},Nh))};return Me(()=>{e&&clearTimeout(e)}),m(I,{get when(){return Rh()},keyed:!0,children:n=>(t(n),(()=>{var r=Th(),i=r.firstChild;return _(i,()=>n.message),Z(()=>Le(i,Xe("mb-[4.25rem] max-w-[85%] rounded-lg px-4 py-2.5 text-sm shadow-lg",n.tone==="error"?"bg-destructive text-destructive-foreground":"bg-foreground text-background"))),r})())})};function Oh(e,t){if(typeof t=="number")return t===0?null:t<0?"back":"forward";const n=Gr(e),r=Gr(Hc(t));return Po(n)&&Po(r)?"lateral":op(n,r)}var $h=N('<main class="vt-page flex min-h-0 flex-1 flex-col">');const Ih=e=>{Tg(),up({resolveDirection:Oh});const t=fr();return[m(Dg,{}),(()=>{var n=$h();return _(n,()=>e.children),n})(),m(I,{get when(){return Po(t.pathname)},get children(){return m(Ah,{})}}),m(Dh,{})]};var Mh=["second","minute","hour","day","week","month","year"];function Lh(e,t){if(t===0)return["just now","right now"];var n=Mh[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}var Fh=["秒","分钟","小时","天","周","个月","年"];function Ph(e,t){if(t===0)return["刚刚","片刻后"];var n=Fh[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}var zo={},ni=function(e,t){zo[e]=t},Bh=function(e){return zo[e]||zo.en_US},Ci=[60,60,24,7,365/7/12,12];function Uh(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function zh(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,i=0;e>=Ci[i]&&i<Ci.length;i++)e/=Ci[i];return e=Math.floor(e),i*=2,e>(i===0?9:1)&&(i+=1),t(e,i,r)[n].replace("%s",e.toString())}function qh(e,t){var n=new Date;return(+n-+Uh(e))/1e3}var Hh=function(e,t,n){var r=qh(e);return zh(r,Bh(t))};ni("en_US",Lh);ni("zh_CN",Ph);function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ar={},pa;function jh(){if(pa)return Ar;pa=1,Object.defineProperty(Ar,"__esModule",{value:!0});var e=["秒","分钟","小时","天","周","个月","年"];function t(n,r){if(r===0)return["刚刚","片刻后"];var i=e[~~(r/2)];return[n+" "+i+"前",n+" "+i+"后"]}return Ar.default=t,Ar}var Kh=jh();const Gh=ri(Kh);function ve(e){return`/api/projects/${encodeURIComponent(e)}`}async function qo(e){const t=await e.text();if(!t)return"";try{return JSON.parse(t).error??t}catch{return t}}async function fe(e,t){const n=await fetch(e,t);if(!n.ok){const r=await qo(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}const ue={listSpecs:e=>fe(`${ve(e)}/specs`),getSpec:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}`),deleteSpec:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}`,{method:"DELETE"}),setStage:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/stage`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({stage:n})}),createSpec:(e,t)=>fetch(`${ve(e)}/specs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).then(async n=>{if(!n.ok){const r=await qo(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}),appendAnnotation:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/inputs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({kind:"annotate",...n})}),submitQuestionAnswers:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/questions/answers`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),runAgent:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/run`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),appendItem:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/appends`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),explain:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/explain`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:n})}),gitOp:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/git`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:n})}),getProjectChanges:e=>fe(`${ve(e)}/git/changes`),getFileDiff:(e,t)=>fe(`${ve(e)}/git/diff?path=${encodeURIComponent(t)}`),getGitBranches:e=>fe(`${ve(e)}/git/branches`),checkoutGitBranch:(e,t)=>fe(`${ve(e)}/git/checkout`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({branch:t})}),mergeGitBranch:(e,t)=>fe(`${ve(e)}/git/merge`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({branch:t})}),projectCommit:(e,t)=>fe(`${ve(e)}/git/commit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),projectDiscard:(e,t)=>fe(`${ve(e)}/git/discard`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),projectPush:e=>fe(`${ve(e)}/git/push`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),projectPull:e=>fe(`${ve(e)}/git/pull`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),getDebug:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/debug`),listProjects:()=>fe("/api/projects"),listSystemNotifications:()=>fe("/api/system-notifications"),deleteSystemNotification:e=>fe(`/api/system-notifications/${encodeURIComponent(e)}`,{method:"DELETE"}),updateSystemNotification:e=>fe(`/api/system-notifications/${encodeURIComponent(e)}/update`,{method:"POST"}),restartSystemNotification:e=>fe(`/api/system-notifications/${encodeURIComponent(e)}/restart`,{method:"POST"}),removeProject:e=>fe(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE"}),removeProjectWithFiles:e=>fe(`/api/projects/${encodeURIComponent(e)}?deleteFiles=true`,{method:"DELETE"}),createWorktree:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/worktrees`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),mergeWorktreeToMain:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/merge-main`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectConfig:e=>fe(`/api/projects/${encodeURIComponent(e)}/config`),updateProjectConfig:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/config`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectCustomInstructions:e=>fe(`/api/projects/${encodeURIComponent(e)}/custom-instructions`),updateProjectCustomInstructions:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/custom-instructions`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({customInstructions:t})}),getGlobalConfig:()=>fe("/api/global-config"),updateGlobalConfig:e=>fe("/api/global-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),createDraft:e=>fe(`${ve(e)}/spec-drafts`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),uploadAttachment:async(e,t,n)=>{const r=new FormData;r.append("file",n,n.name);const i=await fetch(`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments`,{method:"POST",body:r});if(!i.ok){const o=await qo(i);throw new Error(`${i.status} ${o||i.statusText}`)}return i.json()},deleteAttachment:(e,t,n)=>fe(`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"DELETE"}),renameAttachment:(e,t,n,r)=>fe(`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:r})}),draftAttachmentUrl:(e,t,n)=>`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,specAttachmentUrl:(e,t,n)=>`${ve(e)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,listFiles:(e,t,n=50)=>fe(`${ve(e)}/files?query=${encodeURIComponent(t)}&limit=${n}`),listSessions:e=>fe(`${ve(e)}/sessions`),getAgentUsageStatus:e=>fe(`${ve(e)}/agent-usage`),createSession:(e,t={})=>fe(`${ve(e)}/sessions`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getSessionMessages:(e,t)=>fe(`${ve(e)}/sessions/${encodeURIComponent(t)}/messages`),getSpecMessages:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/messages`),sendSessionMessage:(e,t,n,r)=>fe(`${ve(e)}/sessions/${encodeURIComponent(t)}/messages`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r?{prompt:n,draftId:r}:{prompt:n})}),abortSession:(e,t)=>fe(`${ve(e)}/sessions/${encodeURIComponent(t)}/abort`,{method:"POST"}),getSpecSession:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/session`),listCommands:e=>fe(`${ve(e)}/commands`),createCommand:(e,t)=>fe(`${ve(e)}/commands`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),deleteCommand:(e,t)=>fe(`${ve(e)}/commands/${encodeURIComponent(t)}`,{method:"DELETE"}),listCommandRuns:e=>fe(`${ve(e)}/command-runs`),getCommandRun:(e,t)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}`),runCommand:(e,t)=>fe(`${ve(e)}/command-runs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({commandId:t})}),readCommandOutput:(e,t,n)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}/output${n===void 0?"":`?offset=${n}`}`),stopCommandRun:(e,t)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}/stop`,{method:"POST"}),clearCommandRun:(e,t)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}`,{method:"DELETE"})};function Wh(){const e=globalThis;return e.crypto?.randomUUID?e.crypto.randomUUID():`c-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}class Vh{clientId=Wh();source=null;handlers=new Map;syncTimer=null;syncInFlight=!1;syncPending=!1;subscribe(t,n){let r=this.handlers.get(t);return r||(r=new Set,this.handlers.set(t,r)),r.add(n),this.ensureOpen(),this.scheduleSync(),()=>{const i=this.handlers.get(t);i&&(i.delete(n),i.size===0&&this.handlers.delete(t),this.scheduleSync())}}readyState(){return this.source?.readyState??2}ensureOpen(){if(this.source)return;const t=`/api/events/stream?clientId=${encodeURIComponent(this.clientId)}`,n=new EventSource(t);this.source=n,n.addEventListener("open",()=>{this.scheduleSync(!0)}),n.addEventListener("server-heartbeat",r=>{let i={ts:Date.now()};try{i=JSON.parse(r.data)}catch{}for(const o of this.handlers.values())for(const s of o)try{s("server-heartbeat",i)}catch{}}),n.addEventListener("msg",r=>{let i;try{i=JSON.parse(r.data)}catch{return}const o=this.handlers.get(i.topic);if(o)for(const s of o)try{s(i.event,i.data)}catch{}}),n.addEventListener("error",()=>{})}scheduleSync(t=!1){if(this.syncTimer)return;const n=t?0:20;this.syncTimer=setTimeout(()=>{this.syncTimer=null,this.runSync()},n)}async runSync(){if(this.syncInFlight){this.syncPending=!0;return}this.syncInFlight=!0;try{const t=[...this.handlers.keys()].sort();await fetch("/api/events/subscribe",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({clientId:this.clientId,topics:t})})}catch{}finally{this.syncInFlight=!1,this.syncPending&&(this.syncPending=!1,this.scheduleSync(!0))}}}let Yt=new Vh;function ii(e){const t=e;return t.readyState=()=>Yt.readyState(),t}function Zh(e,t,n){if(!e){const o=(()=>{});return o.readyState=()=>2,o}const r=`project:${e}:spec:${t}`,i=Yt.subscribe(r,(o,s)=>{switch(o){case"updated":n.onUpdated?.();break;case"server-heartbeat":n.onServerHeartbeat?.(s);break}});return ii(i)}function oi(e,t,n){if(!e){const o=(()=>{});return o.readyState=()=>2,o}const r=`project:${e}:session:${t}`,i=Yt.subscribe(r,(o,s)=>{o==="session-msg"?n.onEvent?.(s):o==="ready"?n.onReady?.(s):o==="server-heartbeat"&&n.onServerHeartbeat?.(s)});return ii(i)}function cl(e,t){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const n=`project:${e}:sessions`,r=Yt.subscribe(n,(i,o)=>{i==="session-status"?t.onStatus?.(o):i==="server-heartbeat"&&t.onServerHeartbeat?.(o)});return ii(r)}function cs(e,t){if(!e)return()=>{};const n=`project:${e}:specs`;return Yt.subscribe(n,r=>{r==="list-updated"&&t()})}function Yh(e){return Yt.subscribe("projects",t=>{t==="projects-changed"&&e()})}function ll(e,t){if(!e)return()=>{};const n=`project:${e}:commands`;return Yt.subscribe(n,(r,i)=>{r==="runs-updated"&&t(i.runs)})}function Xh(e,t,n){if(!e||!t)return()=>{};const r=`project:${e}:command:${t}`;return Yt.subscribe(r,(i,o)=>{if(i==="output-appended")n.onOutput?.(o);else if(i==="run-updated")n.onRun?.(o.run);else if(i==="ready"){const s=o.run;s&&n.onRun?.(s)}else i==="error"&&n.onError?.(String(o.error??"unknown error"))})}function Qh(e,t){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const n=`project:${e}:changes`,r=Yt.subscribe(n,(i,o)=>{i==="changes-updated"&&t(o.changes)});return ii(r)}function Jh(e,t){const n=[],r=new Map;for(const i of e){const o=t(i.id);if(!i.specId){n.push({key:i.id,sessions:[i],latest:i,updatedAt:i.updatedAt,running:o});continue}const s=r.get(i.specId);if(!s){const a={key:i.specId,specId:i.specId,sessions:[i],latest:i,updatedAt:i.updatedAt,running:o};r.set(i.specId,a),n.push(a);continue}s.sessions.push(i),i.updatedAt>s.latest.updatedAt&&(s.latest=i),s.updatedAt=Math.max(s.updatedAt,i.updatedAt),s.running||=o}for(const i of r.values())i.sessions.sort((o,s)=>o.createdAt-s.createdAt);return n}const ga=[["just now","right now"],["%ss ago","in %ss"],["1m ago","in 1m"],["%sm ago","in %sm"],["1h ago","in 1h"],["%sh ago","in %sh"],["1d ago","in 1d"],["%sd ago","in %sd"],["1w ago","in 1w"],["%sw ago","in %sw"],["1mo ago","in 1mo"],["%smo ago","in %smo"],["1y ago","in 1y"],["%sy ago","in %sy"]];function em(e,t){return ga[t]??ga[0]}var tm=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),nm=N('<header class="shrink-0 border-b-[0.5px] border-border bg-background px-safe pt-safe"><div class="flex h-12 items-center gap-3 px-4"><div class="flex flex-1 items-center justify-start gap-3"></div><h1 class="min-w-0 truncate text-base font-medium"></h1><div class="flex flex-1 items-center justify-end gap-3">');const rm=e=>(()=>{var t=nm(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,o=i.nextSibling;return _(r,m(I,{get when(){return e.onBack},get children(){var s=tm();return s.$$click=()=>e.onBack?.(),_(s,m(Cp,{size:20,"aria-hidden":"true"})),Z(()=>te(s,"aria-label",e.title)),s}}),null),_(r,()=>e.leading,null),_(i,()=>e.title),_(o,()=>e.actions),t})();qe(["click"]);var im=N('<div class="scroll-y min-h-0 flex-1 px-safe"><div>'),om=N('<div class="flex min-h-0 flex-1 flex-col px-safe">');const yt=e=>[m(rm,{get title(){return e.title},get actions(){return e.actions},get leading(){return e.leading},get onBack(){return e.onBack}}),m(I,{get when(){return!e.fill},get fallback(){return(()=>{var t=om();return _(t,()=>e.children),t})()},get children(){var t=im(),n=t.firstChild;bc(t,"scroll",e.onScroll);var r=e.scrollRef;return typeof r=="function"?Vt(r,t):e.scrollRef=t,_(n,()=>e.children),Z(()=>Le(n,e.padded===!1?"":"px-4 py-4")),t}}),Fe(()=>e.footer)],sm=2;function am(e,t){if(!e)return t.t("chat.usageResetUnknown");const n=new Date(e);return Number.isFinite(n.getTime())?t.formatTime(n):t.t("chat.usageResetUnknown")}function um(e,t){if(typeof e.utilization!="number")return t.t("chat.usageWindowUnknown",{label:e.label});const n=Math.min(100,Math.max(0,Math.round(e.utilization)));return t.t("chat.usageWindow",{label:e.label,remaining:Math.max(0,100-n),used:n,reset:am(e.resetsAt,t)})}function cm(e,t,n){if(t)return n.t("chat.usageLoading");if(!e)return"";if(e.status==="error")return n.t("chat.usageError",{kind:e.kind});if(e.status==="unavailable"&&e.installCommand)return n.t("chat.usageInstallHint",{kind:e.kind,command:e.installCommand});if(e.status==="unavailable")return n.t("chat.usageUnavailable",{kind:e.kind});const r=e.windows??[];return r.length===0?n.t("chat.usageAvailableNoDetails",{kind:e.kind}):n.t("chat.usageSummary",{kind:e.kind,details:r.slice(0,sm).map(i=>um(i,n)).join(n.t("chat.usageSeparator"))})}const Ho="yorz.mobile.activeProjectId";function lm(){if(typeof window>"u")return null;try{return window.localStorage.getItem(Ho)}catch{return null}}function dm(e){if(!(typeof window>"u"))try{e?window.localStorage.setItem(Ho,e):window.localStorage.removeItem(Ho)}catch{}}const[_e,fm]=G(lm());function jo(e){fm(e),dm(e)}function pm(e){const t=_e();t&&e.some(n=>n.id===t)||jo(e[0]?.id??null)}const[$n,{refetch:dl}]=nt(async()=>{const e=await ue.listProjects();return pm(e),e});typeof window<"u"&&Yh(()=>void dl());function gm(){const e=_e();if(e)return $n()?.find(t=>t.id===e)}var hm=N('<p class="text-xs text-muted-foreground/80">');const fl=()=>{const{lng:e}=ss(),[t]=nt(()=>_e()||void 0,r=>ue.getAgentUsageStatus(r)),n=ge(()=>(e(),t.error?"":cm(t.latest,t.loading,{t:y,formatTime:r=>r.toLocaleString(e())})));return m(I,{get when(){return n()},children:r=>(()=>{var i=hm();return _(i,r),i})()})};var mm=N('<p class="text-xs text-muted-foreground/80">'),bm=N("<div class=pt-2>"),xm=N('<div class="flex flex-col items-center gap-2 px-8 py-16 text-center"><p class="text-sm text-muted-foreground">'),_m=N('<button type=button class="min-h-11 rounded-md border border-border px-4 text-sm active:bg-accent">');const Tt=e=>(()=>{var t=xm(),n=t.firstChild;return _(n,()=>e.title),_(t,m(I,{get when(){return e.hint},get children(){var r=mm();return _(r,()=>e.hint),r}}),null),_(t,m(I,{get when(){return e.action},get children(){var r=bm();return _(r,()=>e.action),r}}),null),t})(),ln=()=>m(Tt,{get title(){return y("common.loading")}}),Xt=e=>m(Tt,{get title(){return y("common.error")},get hint(){return Fe(()=>e.error instanceof Error)()?e.error.message:String(e.error)},get action(){return(()=>{var t=_m();return t.$$click=()=>e.onRetry(),_(t,()=>y("common.retry")),t})()}}),Pt=()=>m(Tt,{get title(){return y("common.noProject")},get hint(){return y("common.noProjectHint")}});qe(["click"]);const ym="yorz.m.sessions.",vm=30,pl=e=>`${ym}${e}`;function Em(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.title=="string"&&typeof t.kind=="string"&&typeof t.createdAt=="number"&&typeof t.updatedAt=="number"}function gl(e){try{const t=window.localStorage.getItem(pl(e));if(!t)return null;const n=JSON.parse(t);if(!Array.isArray(n))return null;const r=n.filter(Em);return r.length>0?r:null}catch{return null}}function hl(e,t){try{const n=t.slice(0,vm).map(({running:r,...i})=>i);window.localStorage.setItem(pl(e),JSON.stringify(n))}catch{}}const wm="yorz.m.specs.",km=100,Ko=new Map,ml=e=>`${wm}${e}`;function Sm(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.title=="string"&&typeof t.stage=="string"&&typeof t.summary=="string"}function ls(e){const t=Ko.get(e);if(t)return t;try{const n=window.localStorage.getItem(ml(e));if(!n)return null;const r=JSON.parse(n);if(!Array.isArray(r))return null;const i=r.filter(Sm);return i.length===0?null:(Ko.set(e,i),i)}catch{return null}}function ds(e,t){const n=t.slice(0,km);Ko.set(e,n);try{window.localStorage.setItem(ml(e),JSON.stringify(n))}catch{}}var Cm=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),Am=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Tm=N('<span class="mt-0.5 line-clamp-2 min-h-8 break-words text-sm text-muted-foreground">'),Nm=N('<li><button type=button class="flex w-full items-center gap-3 px-4 py-3 text-left active:bg-accent"><span class="min-w-0 flex-1"><span></span><span class="mt-0.5 flex items-center gap-2 text-xs text-muted-foreground"><time></time><span>·</span><span></span></span></span><span>');ni("en",em);ni("zh-CN",Gh);const Rm=()=>{const{lng:e}=ss(),t=ht(),[n,r]=G(null),[i,{refetch:o}]=nt(()=>_e()??void 0,g=>ue.listSessions(g));Ae(()=>{const g=_e();r(g?gl(g):null)}),Ae(()=>{if(i.state!=="ready")return;const g=_e(),f=i();!g||!f||(r(f),hl(g,f))}),Ae(()=>{const g=_e();if(!g)return;const f=cl(g,{onStatus:h=>{r(b=>b&&b.map(v=>v.id===h.sessionId?{...v,running:h.running}:v))}});Me(()=>f())});const s=ge(()=>{const g=n();return g?Jh(g,f=>g.find(h=>h.id===f)?.running===!0):[]}),[a,u]=G(null),[c,{refetch:l}]=nt(()=>_e()??void 0,g=>ue.listSpecs(g));Ae(()=>{const g=_e();u(g?ls(g):null)}),Ae(()=>{if(c.state!=="ready")return;const g=_e(),f=c();!g||!f||(u(f),ds(g,f))}),Ae(()=>{const g=_e();if(!g)return;const f=cs(g,()=>void l());Me(()=>f())});const d=ge(()=>{const g=new Map;for(const f of a()??[])g.set(f.id,f);return g}),p=g=>g?d().get(g):void 0;return m(yt,{get title(){return y("sessions.title")},padded:!1,get actions(){return(()=>{var g=Am();return g.$$click=()=>t("/sessions/new"),_(g,m(os,{size:20,"aria-hidden":"true"})),Z(()=>te(g,"aria-label",y("sessions.new"))),g})()},get children(){return m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(I,{get when(){return n()},get fallback(){return m(I,{get when(){return!i.error},get fallback(){return m(Xt,{get error(){return i.error},onRetry:()=>void o()})},get children(){return m(ln,{})}})},get children(){return m(I,{get when(){return s().length>0},get fallback(){return m(Tt,{get title(){return y("sessions.empty")},get action(){return m(fl,{})}})},get children(){var g=Cm();return _(g,m(Ke,{get each(){return s()},children:f=>(()=>{var h=Nm(),b=h.firstChild,v=b.firstChild,x=v.firstChild,E=x.nextSibling,w=E.firstChild,C=w.nextSibling,O=C.nextSibling,$=v.nextSibling;return b.$$click=()=>t(`/sessions/${encodeURIComponent(f.latest.id)}`),_(x,()=>p(f.specId)?.title||f.latest.title),_(v,m(I,{get when(){return f.specId},get children(){var A=Tm();return _(A,()=>p(f.specId)?.summary),A}}),E),_(w,()=>Hh(f.updatedAt,e())),_(O,()=>f.latest.kind),Z(A=>{var M=Xe("block break-words",f.specId?"line-clamp-1":"line-clamp-3"),j=Xe("size-2 shrink-0 rounded-full",f.running?"bg-primary animate-pulse":"bg-transparent"),F=f.running?y("sessions.running"):void 0;return M!==A.e&&Le(x,A.e=M),j!==A.t&&Le($,A.t=j),F!==A.a&&te($,"aria-label",A.a=F),A},{e:void 0,t:void 0,a:void 0}),h})()})),g}})}})}})}})};qe(["click"]);const ha={plan:"bg-stage-plan/15 text-stage-plan border-stage-plan/30",tasks:"bg-stage-tasks/15 text-stage-tasks border-stage-tasks/30",execute:"bg-stage-execute/15 text-stage-execute border-stage-execute/30",done:"bg-stage-done/15 text-stage-done border-stage-done/30"},Dm={feat:"text-success",refct:"text-info",fix:"text-destructive"};function bl(e){return ha[e]??ha.plan}function xl(e){const[t,n,...r]=e.split(".");return!t||!n||r.length===0?null:{prefix:t,type:n,suffix:r.join(".")}}function Om(e,t){const n=xl(e)?.type??e.split(".")[1]??"feat",r=t?.trim()??"";return r?`${n}: ${r}`:`${n}: update`}function _l(e){return`@.yorz/specs/${e}/spec.md`}function yl(e){if(!e)return"";const t=e.replace(/^['"]|['"]$/g,"").trim();return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(t)||/^\d{4}-\d{2}-\d{2}$/.test(t)?t:t||""}var $m=N('<p class="truncate text-sm font-medium">'),Im=N('<p class="mt-1 text-xs text-muted-foreground">'),Mm=N('<div class="border-b border-border px-4 py-3 text-center">'),Lm=N('<div class="no-callout fixed inset-0 z-[60] flex select-none flex-col justify-end px-safe pb-safe"role=dialog aria-modal=true><button type=button class="absolute inset-0 bg-black/40"></button><div class="animate-in slide-in-from-bottom-4 relative p-2 duration-150"><div class="overflow-hidden rounded-xl bg-card shadow-lg"><div class="divide-y-[0.5px] divide-border"></div></div><button type=button class="mt-2 flex h-12 w-full items-center justify-center rounded-xl bg-card text-sm font-medium shadow-lg active:bg-accent">'),Fm=N("<button type=button>");const Un=e=>{let t=0;Ae(()=>{e.open&&(t=Date.now())});const n=()=>{Date.now()-t<300||e.onClose()};return m(I,{get when(){return e.open},get children(){var r=Lm(),i=r.firstChild,o=i.nextSibling,s=o.firstChild,a=s.firstChild,u=s.nextSibling;return r.$$contextmenu=c=>c.preventDefault(),i.$$click=n,_(s,m(I,{get when(){return e.title||e.description},get children(){var c=Mm();return _(c,m(I,{get when(){return e.title},get children(){var l=$m();return _(l,()=>e.title),l}}),null),_(c,m(I,{get when(){return e.description},get children(){var l=Im();return _(l,()=>e.description),l}}),null),c}}),a),_(a,m(Ke,{get each(){return e.items},children:c=>(()=>{var l=Fm();return l.$$click=()=>c.onSelect(),_(l,()=>c.label),Z(()=>Le(l,Xe("flex h-12 w-full items-center justify-center text-sm active:bg-accent",c.tone==="destructive"&&"text-destructive"))),l})()})),u.$$click=()=>e.onClose(),_(u,()=>y("common.cancel")),Z(()=>te(i,"aria-label",y("common.cancel"))),r}})};qe(["contextmenu","click"]);async function si(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}return Pm(e)}function Pm(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="-9999px",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),t.setSelectionRange(0,e.length),document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}function Bm(e){let t,n=null,r=!1,i;const o=c=>c.preventDefault(),s=()=>{i&&clearTimeout(i),i=void 0,document.removeEventListener("contextmenu",o,!0)},a=()=>{s(),document.addEventListener("contextmenu",o,!0),i=setTimeout(s,700)},u=()=>{t&&clearTimeout(t),t=void 0,n=null};return Me(()=>{u(),s()}),{onPointerDown:c=>{c.button===0&&(r=!1,n={x:c.clientX,y:c.clientY},t&&clearTimeout(t),t=setTimeout(()=>{t=void 0,n=null,r=!0,a(),e.onLongPress()},e.ms??500))},onPointerMove:c=>{if(!n)return;const l=e.moveTolerance??10;(Math.abs(c.clientX-n.x)>l||Math.abs(c.clientY-n.y)>l)&&u()},onPointerUp:u,onPointerCancel:u,onPointerLeave:u,onContextMenu:c=>c.preventDefault(),onClick:c=>{if(r){r=!1,c.preventDefault(),c.stopPropagation();return}e.onClick?.()}}}var Um=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),zm=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),qm=N('<span class="line-clamp-2 text-sm text-muted-foreground">'),Hm=N('<li><button type=button class="no-callout flex w-full select-none flex-col gap-1 px-4 py-3 text-left active:bg-accent"><span class="flex items-center gap-2"><span></span><time class="ml-auto shrink-0 text-xs text-muted-foreground"></time></span><span class=truncate>'),jm=N("<span>");const Km=()=>{const e=ht(),[t,n]=G(null),[r,{refetch:i}]=nt(()=>_e()??void 0,f=>ue.listSpecs(f));Ae(()=>{const f=_e();n(f?ls(f):null)}),Ae(()=>{if(r.state!=="ready")return;const f=_e(),h=r();!f||!h||(n(h),ds(f,h))}),Ae(()=>{const f=_e();if(!f)return;const h=cs(f,()=>void i());Me(()=>h())});const[o,s]=G(null),[a,u]=G(!1),c=()=>{s(null),u(!1)},l=f=>{u(!1),s(f)},d=async f=>{c();const h=await si(_l(f.id));Ee(y(h?"specs.pathCopied":"specs.copyFailed"),h?"default":"error")},p=async f=>{const h=_e();if(h){c();try{await ue.deleteSpec(h,f.id),Ee(y("specs.deleted")),await i()}catch(b){Ee(b instanceof Error?b.message:String(b),"error")}}},g=()=>{const f=o();return f?a()?[{label:y("specs.deleteConfirm"),tone:"destructive",onSelect:()=>void p(f)}]:[{label:y("specs.copyPath"),onSelect:()=>void d(f)},{label:y("specs.delete"),tone:"destructive",onSelect:()=>u(!0)}]:[]};return m(yt,{get title(){return y("specs.title")},padded:!1,get actions(){return(()=>{var f=zm();return f.$$click=()=>e("/specs/new"),_(f,m(os,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",y("specs.new"))),f})()},get children(){return[m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(I,{get when(){return t()},get fallback(){return m(I,{get when(){return!r.error},get fallback(){return m(Xt,{get error(){return r.error},onRetry:()=>void i()})},get children(){return m(ln,{})}})},get children(){return m(I,{get when(){return(t()??[]).length>0},get fallback(){return m(Tt,{get title(){return y("specs.empty")}})},get children(){var f=Um();return _(f,m(Ke,{get each(){return t()},children:h=>{const b=xl(h.id),v=Bm({onLongPress:()=>l(h),onClick:()=>e(`/specs/${encodeURIComponent(h.id)}`)});return(()=>{var x=Hm(),E=x.firstChild,w=E.firstChild,C=w.firstChild,O=C.nextSibling,$=w.nextSibling;return dr(E,v,!1,!0),_(C,()=>h.stage),_(w,m(I,{when:b,children:A=>(()=>{var M=jm();return _(M,()=>A().type),Z(()=>Le(M,Xe("text-[0.65rem] font-medium",Dm[A().type]??"text-muted-foreground"))),M})()}),O),_(O,()=>yl(h.updated_at)),_($,()=>h.title),_(E,m(I,{get when(){return h.summary},get children(){var A=qm();return _(A,()=>h.summary),A}}),null),Z(()=>Le(C,Xe("rounded border px-1.5 py-0.5 text-[0.65rem] font-medium",bl(h.stage)))),x})()}})),f}})}})}}),m(Un,{get open(){return o()!==null},get title(){return o()?.title||o()?.id},get description(){return Fe(()=>!!a())()?y("specs.deleteHint"):void 0},get items(){return g()},onClose:c})]}})};qe(["click"]);const vl=`
|
|
6
|
+
*/var up={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Rn=up,cp=Xo({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),lp=N("<svg>"),dp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},fp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),pp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ra=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gp=e=>{const t=pp(e);return t.charAt(0).toUpperCase()+t.slice(1)},hp=e=>{const[t,n]=es(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=Jr(cp);return(()=>{var i=lp();return dr(i,Ue(Rn,{get width(){return t.size??r.size??Rn.width},get height(){return t.size??r.size??Rn.height},get stroke(){return t.color??r.color??Rn.stroke},get"stroke-width"(){return ze(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Rn["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Rn["stroke-width"])},get class(){return fp("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${ra(gp(t.name))}`,`lucide-${ra(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!dp(n)?"true":void 0}},n),!0,!0),_(i,m(Ke,{get each(){return t.iconNode},children:([o,s])=>m(hf,Ue({component:o},s))})),i})()},Ze=hp,mp=[["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"}]],bp=e=>m(Ze,Ue(e,{iconNode:mp,name:"blocks"})),xp=bp,_p=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],yp=e=>m(Ze,Ue(e,{iconNode:_p,name:"check"})),Bo=yp,vp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ep=e=>m(Ze,Ue(e,{iconNode:vp,name:"chevron-down"})),Hc=Ep,wp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],kp=e=>m(Ze,Ue(e,{iconNode:wp,name:"chevron-left"})),Sp=kp,Cp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ap=e=>m(Ze,Ue(e,{iconNode:Cp,name:"chevron-right"})),Tp=Ap,Np=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Rp=e=>m(Ze,Ue(e,{iconNode:Np,name:"circle-question-mark"})),Dp=Rp,Op=[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],$p=e=>m(Ze,Ue(e,{iconNode:Op,name:"cloud-off"})),Ip=$p,Mp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Lp=e=>m(Ze,Ue(e,{iconNode:Mp,name:"ellipsis"})),or=Lp,Fp=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Pp=e=>m(Ze,Ue(e,{iconNode:Fp,name:"file-code-corner"})),Bp=Pp,Up=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],zp=e=>m(Ze,Ue(e,{iconNode:Up,name:"file-text"})),jc=zp,qp=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],Hp=e=>m(Ze,Ue(e,{iconNode:qp,name:"folder-git-2"})),jp=Hp,Kp=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Gp=e=>m(Ze,Ue(e,{iconNode:Kp,name:"git-branch"})),is=Gp,Wp=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Vp=e=>m(Ze,Ue(e,{iconNode:Wp,name:"message-square"})),Zp=Vp,Yp=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],Xp=e=>m(Ze,Ue(e,{iconNode:Yp,name:"messages-square"})),Qp=Xp,Jp=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],eg=e=>m(Ze,Ue(e,{iconNode:Jp,name:"paperclip"})),tg=eg,ng=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rg=e=>m(Ze,Ue(e,{iconNode:ng,name:"play"})),ig=rg,og=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],sg=e=>m(Ze,Ue(e,{iconNode:og,name:"plus"})),os=sg,ag=[["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"}]],ug=e=>m(Ze,Ue(e,{iconNode:ag,name:"refresh-cw"})),cg=ug,lg=[["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"}]],dg=e=>m(Ze,Ue(e,{iconNode:lg,name:"rotate-ccw"})),fg=dg,pg=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],gg=e=>m(Ze,Ue(e,{iconNode:pg,name:"send"})),hg=gg,mg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],bg=e=>m(Ze,Ue(e,{iconNode:mg,name:"square"})),xg=bg,_g=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],yg=e=>m(Ze,Ue(e,{iconNode:_g,name:"terminal"})),vg=yg,Eg=[["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"}]],wg=e=>m(Ze,Ue(e,{iconNode:Eg,name:"trash-2"})),kg=wg,Sg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cg=e=>m(Ze,Ue(e,{iconNode:Sg,name:"x"})),vn=Cg;const[ia,oa]=G(typeof navigator>"u"?!0:navigator.onLine);function Ag(){if(typeof window>"u")return;const e=()=>oa(!0),t=()=>oa(!1);window.addEventListener("online",e),window.addEventListener("offline",t),Me(()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)})}const v=Oc.t,ss=Oc.useTranslation;var Tg=N('<div class="flex items-center gap-2 bg-info px-4 py-1.5 text-xs text-info-foreground"><span class=flex-1></span><button type=button class="font-medium underline">'),Ng=N('<div class="flex items-center gap-2 bg-warning px-4 py-1.5 text-xs text-warning-foreground"role=status><span>');const Rg=()=>m(M,{get when(){return!ia()||V0()},get children(){return m(M,{get when(){return ia()},get fallback(){return(()=>{var e=Ng(),t=e.firstChild;return _(e,m(Ip,{size:14,"aria-hidden":"true"}),t),_(t,()=>v("pwa.offline")),e})()},get children(){var e=Tg(),t=e.firstChild,n=t.nextSibling;return _(e,m(cg,{size:14,"aria-hidden":"true"}),t),_(t,()=>v("pwa.needRefresh")),n.$$click=()=>Y0(),_(n,()=>v("pwa.refresh")),e}})}});qe(["click"]);function Kc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Kc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gc(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Kc(e))&&(r&&(r+=" "),r+=t);return r}const Dg=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Og=(e,t)=>({classGroupId:e,validator:t}),Wc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wr="-",sa=[],$g="arbitrary..",Ig=e=>{const t=Lg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Mg(s);const a=s.split(Wr),u=a[0]===""&&a.length>1?1:0;return Vc(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=r[s],c=n[s];return u?c?Dg(c,u):u:c||sa}return n[s]||sa}}},Vc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const c=Vc(e,t+1,o);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Wr):e.slice(t).join(Wr),u=s.length;for(let c=0;c<u;c++){const l=s[c];if(l.validator(a))return l.classGroupId}},Mg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?$g+r:void 0})(),Lg=e=>{const{theme:t,classGroups:n}=e;return Fg(n,t)},Fg=(e,t)=>{const n=Wc();for(const r in e){const i=e[r];as(i,n,r,t)}return n},as=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];Pg(s,t,n,r)}},Pg=(e,t,n,r)=>{if(typeof e=="string"){Bg(e,t,n);return}if(typeof e=="function"){Ug(e,t,n,r);return}zg(e,t,n,r)},Bg=(e,t,n)=>{const r=e===""?t:Zc(t,e);r.classGroupId=n},Ug=(e,t,n,r)=>{if(qg(e)){as(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Og(n,e))},zg=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,u]=i[s];as(u,Zc(t,a),n,r)}},Zc=(e,t)=>{let n=e;const r=t.split(Wr),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=Wc(),n.nextPart.set(s,a)),n=a}return n},qg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Hg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},Uo="!",aa=":",jg=[],ua=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Kg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,u=0,c;const l=i.length;for(let h=0;h<l;h++){const b=i[h];if(s===0&&a===0){if(b===aa){o.push(i.slice(u,h)),u=h+1;continue}if(b==="/"){c=h;continue}}b==="["?s++:b==="]"?s--:b==="("?a++:b===")"&&a--}const d=o.length===0?i:i.slice(u);let p=d,g=!1;d.endsWith(Uo)?(p=d.slice(0,-1),g=!0):d.startsWith(Uo)&&(p=d.slice(1),g=!0);const f=c&&c>u?c-u:void 0;return ua(o,g,p,f)};if(t){const i=t+aa,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):ua(jg,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Gg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",u=t.has(s);a||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},Wg=e=>({cache:Hg(e.cacheSize),parseClassName:Kg(e),sortModifiers:Gg(e),postfixLookupClassGroupIds:Vg(e),...Ig(e)}),Vg=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},Zg=/\s+/,Yg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:s}=t,a=[],u=e.trim().split(Zg);let c="";for(let l=u.length-1;l>=0;l-=1){const d=u[l],{isExternal:p,modifiers:g,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:b}=n(d);if(p){c=d+(c.length>0?" "+c:c);continue}let y=!!b,x;if(y){const $=h.substring(0,b);x=r($);const A=x&&s[x]?r(h):void 0;A&&A!==x&&(x=A,y=!1)}else x=r(h);if(!x){if(!y){c=d+(c.length>0?" "+c:c);continue}if(x=r(h),!x){c=d+(c.length>0?" "+c:c);continue}y=!1}const E=g.length===0?"":g.length===1?g[0]:o(g).join(":"),w=f?E+Uo:E,C=w+x;if(a.indexOf(C)>-1)continue;a.push(C);const O=i(x,y);for(let $=0;$<O.length;++$){const A=O[$];a.push(w+A)}c=d+(c.length>0?" "+c:c)}return c},Xg=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Yc(n))&&(i&&(i+=" "),i+=r);return i},Yc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Yc(e[r]))&&(n&&(n+=" "),n+=t);return n},Qg=(e,...t)=>{let n,r,i,o;const s=u=>{const c=t.reduce((l,d)=>d(l),e());return n=Wg(c),r=n.cache.get,i=n.cache.set,o=a,a(u)},a=u=>{const c=r(u);if(c)return c;const l=Yg(u,n);return i(u,l),l};return o=s,(...u)=>o(Xg(...u))},Jg=[],it=e=>{const t=n=>n[e]||Jg;return t.isThemeGetter=!0,t},Xc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eh=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,th=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rh=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ih=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nn=e=>eh.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),Si=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),Kt=e=>th.test(e),Jc=()=>!0,sh=e=>nh.test(e)&&!rh.test(e),us=()=>!1,ah=e=>ih.test(e),uh=e=>oh.test(e),ch=e=>!re(e)&&!oe(e),lh=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),dh=e=>cn(e,nl,us),re=e=>Xc.test(e),mn=e=>cn(e,rl,sh),ca=e=>cn(e,_h,Ne),fh=e=>cn(e,ol,Jc),ph=e=>cn(e,il,us),la=e=>cn(e,el,us),gh=e=>cn(e,tl,uh),Sr=e=>cn(e,sl,ah),oe=e=>Qc.test(e),Gn=e=>En(e,rl),hh=e=>En(e,il),da=e=>En(e,el),mh=e=>En(e,nl),bh=e=>En(e,tl),Cr=e=>En(e,sl,!0),xh=e=>En(e,ol,!0),cn=(e,t,n)=>{const r=Xc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},En=(e,t,n=!1)=>{const r=Qc.exec(e);return r?r[1]?t(r[1]):n:!1},el=e=>e==="position"||e==="percentage",tl=e=>e==="image"||e==="url",nl=e=>e==="length"||e==="size"||e==="bg-size",rl=e=>e==="length",_h=e=>e==="number",il=e=>e==="family-name",ol=e=>e==="number"||e==="weight",sl=e=>e==="shadow",yh=()=>{const e=it("color"),t=it("font"),n=it("text"),r=it("font-weight"),i=it("tracking"),o=it("leading"),s=it("breakpoint"),a=it("container"),u=it("spacing"),c=it("radius"),l=it("shadow"),d=it("inset-shadow"),p=it("text-shadow"),g=it("drop-shadow"),f=it("blur"),h=it("perspective"),b=it("aspect"),y=it("ease"),x=it("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...w(),oe,re],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],A=()=>[oe,re,u],I=()=>[nn,"full","auto",...A()],j=()=>[$t,"none","subgrid",oe,re],F=()=>["auto",{span:["full",$t,oe,re]},$t,oe,re],P=()=>[$t,"auto",oe,re],z=()=>["auto","min","max","fr",oe,re],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...A()],X=()=>[nn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],pe=()=>[nn,"screen","full","dvw","lvw","svw","min","max","fit",...A()],Q=()=>[nn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],L=()=>[e,oe,re],ne=()=>[...w(),da,la,{position:[oe,re]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",mh,dh,{size:[oe,re]}],R=()=>[Si,Gn,mn],q=()=>["","none","full",c,oe,re],W=()=>["",Ne,Gn,mn],ie=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[Ne,Si,da,la],ke=()=>["","none",f,oe,re],Oe=()=>["none",Ne,oe,re],Ce=()=>["none",Ne,oe,re],Ye=()=>[Ne,oe,re],st=()=>[nn,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[Jc],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[ch],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ne],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nn,re,oe,b]}],container:["container"],"container-type":[{"@container":["","normal","size",oe,re]}],"container-named":[lh],columns:[{columns:[Ne,re,oe,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",oe,re]}],basis:[{basis:[nn,"full","auto",a,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,nn,"auto","initial","none",re]}],grow:[{grow:["",Ne,oe,re]}],shrink:[{shrink:["",Ne,oe,re]}],order:[{order:[$t,"first","last","none",oe,re]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...pe()]}],"min-inline-size":[{"min-inline":["auto",...pe()]}],"max-inline-size":[{"max-inline":["none",...pe()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Gn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xh,fh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Si,re]}],"font-family":[{font:[hh,ph,t]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,oe,re]}],"line-clamp":[{"line-clamp":[Ne,"none",oe,ca]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",oe,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",oe,mn]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Ne,"auto",oe,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"tab-size":[{tab:[$t,oe,re]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,oe,re],radial:["",oe,re],conic:[$t,oe,re]},bh,gh]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,oe,re]}],"outline-w":[{outline:["",Ne,Gn,mn]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",l,Cr,Sr]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",d,Cr,Sr]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Ne,mn]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",p,Cr,Sr]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Ne,oe,re]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[oe,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,re]}],filter:[{filter:["","none",oe,re]}],blur:[{blur:ke()}],brightness:[{brightness:[Ne,oe,re]}],contrast:[{contrast:[Ne,oe,re]}],"drop-shadow":[{"drop-shadow":["","none",g,Cr,Sr]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Ne,oe,re]}],"hue-rotate":[{"hue-rotate":[Ne,oe,re]}],invert:[{invert:["",Ne,oe,re]}],saturate:[{saturate:[Ne,oe,re]}],sepia:[{sepia:["",Ne,oe,re]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,re]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,oe,re]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,oe,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,oe,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,oe,re]}],"backdrop-invert":[{"backdrop-invert":["",Ne,oe,re]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,oe,re]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,oe,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,oe,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",oe,re]}],ease:[{ease:["linear","initial",y,oe,re]}],delay:[{delay:[Ne,oe,re]}],animate:[{animate:["none",x,oe,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,oe,re]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[oe,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,oe,re]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe,re]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Ne,Gn,mn,ca]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vh=Qg(yh);function Xe(...e){return vh(Gc(e))}var Eh=N('<nav class="shrink-0 border-t-[0.5px] border-border bg-card px-safe pb-safe"><ul class="flex items-stretch justify-around">'),wh=N("<span>"),kh=N("<li class=flex-1>");const Sh=[{href:"/",labelKey:"nav.sessions",icon:Qp,end:!0},{href:"/specs",labelKey:"nav.specs",icon:jc,end:!1},{href:"/ext",labelKey:"nav.ext",icon:xp,end:!1},{href:"/projects",labelKey:"nav.projects",icon:jp,end:!1}],Ch=()=>{const e=fr(),t=(n,r)=>{const i=Gr(e.pathname);return r?i===n:i.startsWith(n)};return(()=>{var n=Eh(),r=n.firstChild;return _(r,m(Ke,{each:Sh,children:i=>(()=>{var o=kh();return _(o,m(Sc,{get href(){return i.href},get class(){return Xe("flex h-14 flex-col items-center justify-center gap-0.5 text-[0.68rem] transition-colors",t(i.href,i.end)?"font-semibold text-primary":"text-muted-foreground active:text-foreground")},get"aria-current"(){return t(i.href,i.end)?"page":void 0},get children(){return[m(i.icon,{size:20,"aria-hidden":"true"}),(()=>{var s=wh();return _(s,()=>v(i.labelKey)),s})()]}})),o})()})),Z(()=>te(n,"aria-label",v("nav.sessions"))),n})()};var Ah=N('<div class="pointer-events-none fixed inset-x-0 bottom-0 z-50 flex justify-center px-safe pb-safe"role=status aria-live=polite><div>');const Th=3e3,[Nh,al]=G(null);let fa=0;function we(e,t="default"){fa+=1,al({message:e,tone:t,seq:fa})}const Rh=()=>{let e;const t=n=>{e&&clearTimeout(e),n&&(e=setTimeout(()=>{al(r=>r?.seq===n.seq?null:r)},Th))};return Me(()=>{e&&clearTimeout(e)}),m(M,{get when(){return Nh()},keyed:!0,children:n=>(t(n),(()=>{var r=Ah(),i=r.firstChild;return _(i,()=>n.message),Z(()=>Le(i,Xe("mb-[4.25rem] max-w-[85%] rounded-lg px-4 py-2.5 text-sm shadow-lg",n.tone==="error"?"bg-destructive text-destructive-foreground":"bg-foreground text-background"))),r})())})};function Dh(e,t){if(typeof t=="number")return t===0?null:t<0?"back":"forward";const n=Gr(e),r=Gr(qc(t));return Po(n)&&Po(r)?"lateral":ip(n,r)}var Oh=N('<main class="vt-page flex min-h-0 flex-1 flex-col">');const $h=e=>{Ag(),ap({resolveDirection:Dh});const t=fr();return[m(Rg,{}),(()=>{var n=Oh();return _(n,()=>e.children),n})(),m(M,{get when(){return Po(t.pathname)},get children(){return m(Ch,{})}}),m(Rh,{})]};var Ih=["second","minute","hour","day","week","month","year"];function Mh(e,t){if(t===0)return["just now","right now"];var n=Ih[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}var Lh=["秒","分钟","小时","天","周","个月","年"];function Fh(e,t){if(t===0)return["刚刚","片刻后"];var n=Lh[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}var zo={},ni=function(e,t){zo[e]=t},Ph=function(e){return zo[e]||zo.en_US},Ci=[60,60,24,7,365/7/12,12];function Bh(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function Uh(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,i=0;e>=Ci[i]&&i<Ci.length;i++)e/=Ci[i];return e=Math.floor(e),i*=2,e>(i===0?9:1)&&(i+=1),t(e,i,r)[n].replace("%s",e.toString())}function zh(e,t){var n=new Date;return(+n-+Bh(e))/1e3}var qh=function(e,t,n){var r=zh(e);return Uh(r,Ph(t))};ni("en_US",Mh);ni("zh_CN",Fh);function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ar={},pa;function Hh(){if(pa)return Ar;pa=1,Object.defineProperty(Ar,"__esModule",{value:!0});var e=["秒","分钟","小时","天","周","个月","年"];function t(n,r){if(r===0)return["刚刚","片刻后"];var i=e[~~(r/2)];return[n+" "+i+"前",n+" "+i+"后"]}return Ar.default=t,Ar}var jh=Hh();const Kh=ri(jh);function ve(e){return`/api/projects/${encodeURIComponent(e)}`}async function qo(e){const t=await e.text();if(!t)return"";try{return JSON.parse(t).error??t}catch{return t}}async function fe(e,t){const n=await fetch(e,t);if(!n.ok){const r=await qo(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}const ue={listSpecs:e=>fe(`${ve(e)}/specs`),getSpec:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}`),deleteSpec:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}`,{method:"DELETE"}),setStage:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/stage`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({stage:n})}),createSpec:(e,t)=>fetch(`${ve(e)}/specs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).then(async n=>{if(!n.ok){const r=await qo(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}),appendAnnotation:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/inputs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({kind:"annotate",...n})}),submitQuestionAnswers:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/questions/answers`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),runAgent:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/run`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),appendItem:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/appends`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),explain:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/explain`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:n})}),gitOp:(e,t,n)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/git`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:n})}),getProjectChanges:e=>fe(`${ve(e)}/git/changes`),getFileDiff:(e,t)=>fe(`${ve(e)}/git/diff?path=${encodeURIComponent(t)}`),getGitBranches:e=>fe(`${ve(e)}/git/branches`),checkoutGitBranch:(e,t)=>fe(`${ve(e)}/git/checkout`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({branch:t})}),mergeGitBranch:(e,t)=>fe(`${ve(e)}/git/merge`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({branch:t})}),projectCommit:(e,t)=>fe(`${ve(e)}/git/commit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),projectDiscard:(e,t)=>fe(`${ve(e)}/git/discard`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),projectPush:e=>fe(`${ve(e)}/git/push`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),projectPull:e=>fe(`${ve(e)}/git/pull`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),getDebug:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/debug`),listProjects:()=>fe("/api/projects"),listSystemNotifications:()=>fe("/api/system-notifications"),deleteSystemNotification:e=>fe(`/api/system-notifications/${encodeURIComponent(e)}`,{method:"DELETE"}),updateSystemNotification:e=>fe(`/api/system-notifications/${encodeURIComponent(e)}/update`,{method:"POST"}),restartSystemNotification:e=>fe(`/api/system-notifications/${encodeURIComponent(e)}/restart`,{method:"POST"}),removeProject:e=>fe(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE"}),removeProjectWithFiles:e=>fe(`/api/projects/${encodeURIComponent(e)}?deleteFiles=true`,{method:"DELETE"}),createWorktree:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/worktrees`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),mergeWorktreeToMain:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/merge-main`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectConfig:e=>fe(`/api/projects/${encodeURIComponent(e)}/config`),updateProjectConfig:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/config`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectCustomInstructions:e=>fe(`/api/projects/${encodeURIComponent(e)}/custom-instructions`),updateProjectCustomInstructions:(e,t)=>fe(`/api/projects/${encodeURIComponent(e)}/custom-instructions`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({customInstructions:t})}),getGlobalConfig:()=>fe("/api/global-config"),updateGlobalConfig:e=>fe("/api/global-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),createDraft:e=>fe(`${ve(e)}/spec-drafts`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),uploadAttachment:async(e,t,n)=>{const r=new FormData;r.append("file",n,n.name);const i=await fetch(`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments`,{method:"POST",body:r});if(!i.ok){const o=await qo(i);throw new Error(`${i.status} ${o||i.statusText}`)}return i.json()},deleteAttachment:(e,t,n)=>fe(`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"DELETE"}),renameAttachment:(e,t,n,r)=>fe(`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:r})}),draftAttachmentUrl:(e,t,n)=>`${ve(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,specAttachmentUrl:(e,t,n)=>`${ve(e)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,listFiles:(e,t,n=50)=>fe(`${ve(e)}/files?query=${encodeURIComponent(t)}&limit=${n}`),listSessions:e=>fe(`${ve(e)}/sessions`),getAgentUsageStatus:e=>fe(`${ve(e)}/agent-usage`),createSession:(e,t={})=>fe(`${ve(e)}/sessions`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getSessionMessages:(e,t)=>fe(`${ve(e)}/sessions/${encodeURIComponent(t)}/messages`),getSpecMessages:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/messages`),sendSessionMessage:(e,t,n,r)=>fe(`${ve(e)}/sessions/${encodeURIComponent(t)}/messages`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r?{prompt:n,draftId:r}:{prompt:n})}),abortSession:(e,t)=>fe(`${ve(e)}/sessions/${encodeURIComponent(t)}/abort`,{method:"POST"}),getSpecSession:(e,t)=>fe(`${ve(e)}/specs/${encodeURIComponent(t)}/session`),listCommands:e=>fe(`${ve(e)}/commands`),createCommand:(e,t)=>fe(`${ve(e)}/commands`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),deleteCommand:(e,t)=>fe(`${ve(e)}/commands/${encodeURIComponent(t)}`,{method:"DELETE"}),listCommandRuns:e=>fe(`${ve(e)}/command-runs`),getCommandRun:(e,t)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}`),runCommand:(e,t)=>fe(`${ve(e)}/command-runs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({commandId:t})}),readCommandOutput:(e,t,n)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}/output${n===void 0?"":`?offset=${n}`}`),stopCommandRun:(e,t)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}/stop`,{method:"POST"}),clearCommandRun:(e,t)=>fe(`${ve(e)}/command-runs/${encodeURIComponent(t)}`,{method:"DELETE"})};function Gh(){const e=globalThis;return e.crypto?.randomUUID?e.crypto.randomUUID():`c-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}class Wh{clientId=Gh();source=null;handlers=new Map;syncTimer=null;syncInFlight=!1;syncPending=!1;subscribe(t,n){let r=this.handlers.get(t);return r||(r=new Set,this.handlers.set(t,r)),r.add(n),this.ensureOpen(),this.scheduleSync(),()=>{const i=this.handlers.get(t);i&&(i.delete(n),i.size===0&&this.handlers.delete(t),this.scheduleSync())}}readyState(){return this.source?.readyState??2}ensureOpen(){if(this.source)return;const t=`/api/events/stream?clientId=${encodeURIComponent(this.clientId)}`,n=new EventSource(t);this.source=n,n.addEventListener("open",()=>{this.scheduleSync(!0)}),n.addEventListener("server-heartbeat",r=>{let i={ts:Date.now()};try{i=JSON.parse(r.data)}catch{}for(const o of this.handlers.values())for(const s of o)try{s("server-heartbeat",i)}catch{}}),n.addEventListener("msg",r=>{let i;try{i=JSON.parse(r.data)}catch{return}const o=this.handlers.get(i.topic);if(o)for(const s of o)try{s(i.event,i.data)}catch{}}),n.addEventListener("error",()=>{})}scheduleSync(t=!1){if(this.syncTimer)return;const n=t?0:20;this.syncTimer=setTimeout(()=>{this.syncTimer=null,this.runSync()},n)}async runSync(){if(this.syncInFlight){this.syncPending=!0;return}this.syncInFlight=!0;try{const t=[...this.handlers.keys()].sort();await fetch("/api/events/subscribe",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({clientId:this.clientId,topics:t})})}catch{}finally{this.syncInFlight=!1,this.syncPending&&(this.syncPending=!1,this.scheduleSync(!0))}}}let Yt=new Wh;function ii(e){const t=e;return t.readyState=()=>Yt.readyState(),t}function Vh(e,t,n){if(!e){const o=(()=>{});return o.readyState=()=>2,o}const r=`project:${e}:spec:${t}`,i=Yt.subscribe(r,(o,s)=>{switch(o){case"updated":n.onUpdated?.();break;case"server-heartbeat":n.onServerHeartbeat?.(s);break}});return ii(i)}function oi(e,t,n){if(!e){const o=(()=>{});return o.readyState=()=>2,o}const r=`project:${e}:session:${t}`,i=Yt.subscribe(r,(o,s)=>{o==="session-msg"?n.onEvent?.(s):o==="ready"?n.onReady?.(s):o==="server-heartbeat"&&n.onServerHeartbeat?.(s)});return ii(i)}function ul(e,t){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const n=`project:${e}:sessions`,r=Yt.subscribe(n,(i,o)=>{i==="session-status"?t.onStatus?.(o):i==="server-heartbeat"&&t.onServerHeartbeat?.(o)});return ii(r)}function cs(e,t){if(!e)return()=>{};const n=`project:${e}:specs`;return Yt.subscribe(n,r=>{r==="list-updated"&&t()})}function Zh(e){return Yt.subscribe("projects",t=>{t==="projects-changed"&&e()})}function cl(e,t){if(!e)return()=>{};const n=`project:${e}:commands`;return Yt.subscribe(n,(r,i)=>{r==="runs-updated"&&t(i.runs)})}function Yh(e,t,n){if(!e||!t)return()=>{};const r=`project:${e}:command:${t}`;return Yt.subscribe(r,(i,o)=>{if(i==="output-appended")n.onOutput?.(o);else if(i==="run-updated")n.onRun?.(o.run);else if(i==="ready"){const s=o.run;s&&n.onRun?.(s)}else i==="error"&&n.onError?.(String(o.error??"unknown error"))})}function Xh(e,t){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const n=`project:${e}:changes`,r=Yt.subscribe(n,(i,o)=>{i==="changes-updated"&&t(o.changes)});return ii(r)}function Qh(e,t){const n=[],r=new Map;for(const i of e){const o=t(i.id);if(!i.specId){n.push({key:i.id,sessions:[i],latest:i,updatedAt:i.updatedAt,running:o});continue}const s=r.get(i.specId);if(!s){const a={key:i.specId,specId:i.specId,sessions:[i],latest:i,updatedAt:i.updatedAt,running:o};r.set(i.specId,a),n.push(a);continue}s.sessions.push(i),i.updatedAt>s.latest.updatedAt&&(s.latest=i),s.updatedAt=Math.max(s.updatedAt,i.updatedAt),s.running||=o}for(const i of r.values())i.sessions.sort((o,s)=>o.createdAt-s.createdAt);return n}const ga=[["just now","right now"],["%ss ago","in %ss"],["1m ago","in 1m"],["%sm ago","in %sm"],["1h ago","in 1h"],["%sh ago","in %sh"],["1d ago","in 1d"],["%sd ago","in %sd"],["1w ago","in 1w"],["%sw ago","in %sw"],["1mo ago","in 1mo"],["%smo ago","in %smo"],["1y ago","in 1y"],["%sy ago","in %sy"]];function Jh(e,t){return ga[t]??ga[0]}var em=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),tm=N('<header class="shrink-0 border-b-[0.5px] border-border bg-background px-safe pt-safe"><div class="flex h-12 items-center gap-3 px-4"><div class="flex flex-1 items-center justify-start gap-3"></div><h1 class="min-w-0 truncate text-base font-medium"></h1><div class="flex flex-1 items-center justify-end gap-3">');const nm=e=>(()=>{var t=tm(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,o=i.nextSibling;return _(r,m(M,{get when(){return e.onBack},get children(){var s=em();return s.$$click=()=>e.onBack?.(),_(s,m(Sp,{size:20,"aria-hidden":"true"})),Z(()=>te(s,"aria-label",e.title)),s}}),null),_(r,()=>e.leading,null),_(i,()=>e.title),_(o,()=>e.actions),t})();qe(["click"]);var rm=N('<div class="scroll-y min-h-0 flex-1 px-safe"><div>'),im=N('<div class="flex min-h-0 flex-1 flex-col px-safe">');const yt=e=>[m(nm,{get title(){return e.title},get actions(){return e.actions},get leading(){return e.leading},get onBack(){return e.onBack}}),m(M,{get when(){return!e.fill},get fallback(){return(()=>{var t=im();return _(t,()=>e.children),t})()},get children(){var t=rm(),n=t.firstChild;mc(t,"scroll",e.onScroll);var r=e.scrollRef;return typeof r=="function"?Vt(r,t):e.scrollRef=t,_(n,()=>e.children),Z(()=>Le(n,e.padded===!1?"":"px-4 py-4")),t}}),ze(()=>e.footer)],om=2;function sm(e,t){if(!e)return t.t("chat.usageResetUnknown");const n=new Date(e);return Number.isFinite(n.getTime())?t.formatTime(n):t.t("chat.usageResetUnknown")}function am(e,t){if(typeof e.utilization!="number")return t.t("chat.usageWindowUnknown",{label:e.label});const n=Math.min(100,Math.max(0,Math.round(e.utilization)));return t.t("chat.usageWindow",{label:e.label,remaining:Math.max(0,100-n),used:n,reset:sm(e.resetsAt,t)})}function um(e,t,n){if(t)return n.t("chat.usageLoading");if(!e)return"";if(e.status==="error")return n.t("chat.usageError",{kind:e.kind});if(e.status==="unavailable"&&e.installCommand)return n.t("chat.usageInstallHint",{kind:e.kind,command:e.installCommand});if(e.status==="unavailable")return n.t("chat.usageUnavailable",{kind:e.kind});const r=e.windows??[];return r.length===0?n.t("chat.usageAvailableNoDetails",{kind:e.kind}):n.t("chat.usageSummary",{kind:e.kind,details:r.slice(0,om).map(i=>am(i,n)).join(n.t("chat.usageSeparator"))})}const Ho="yorz.mobile.activeProjectId";function cm(){if(typeof window>"u")return null;try{return window.localStorage.getItem(Ho)}catch{return null}}function lm(e){if(!(typeof window>"u"))try{e?window.localStorage.setItem(Ho,e):window.localStorage.removeItem(Ho)}catch{}}const[_e,dm]=G(cm());function jo(e){dm(e),lm(e)}function fm(e){const t=_e();t&&e.some(n=>n.id===t)||jo(e[0]?.id??null)}const[$n,{refetch:ll}]=nt(async()=>{const e=await ue.listProjects();return fm(e),e});typeof window<"u"&&Zh(()=>void ll());function pm(){const e=_e();if(e)return $n()?.find(t=>t.id===e)}var gm=N('<p class="text-xs text-muted-foreground/80">');const dl=()=>{const{lng:e}=ss(),[t]=nt(()=>_e()||void 0,r=>ue.getAgentUsageStatus(r)),n=ge(()=>(e(),t.error?"":um(t.latest,t.loading,{t:v,formatTime:r=>r.toLocaleString(e())})));return m(M,{get when(){return n()},children:r=>(()=>{var i=gm();return _(i,r),i})()})};var hm=N('<p class="text-xs text-muted-foreground/80">'),mm=N("<div class=pt-2>"),bm=N('<div class="flex flex-col items-center gap-2 px-8 py-16 text-center"><p class="text-sm text-muted-foreground">'),xm=N('<button type=button class="min-h-11 rounded-md border border-border px-4 text-sm active:bg-accent">');const Tt=e=>(()=>{var t=bm(),n=t.firstChild;return _(n,()=>e.title),_(t,m(M,{get when(){return e.hint},get children(){var r=hm();return _(r,()=>e.hint),r}}),null),_(t,m(M,{get when(){return e.action},get children(){var r=mm();return _(r,()=>e.action),r}}),null),t})(),ln=()=>m(Tt,{get title(){return v("common.loading")}}),Xt=e=>m(Tt,{get title(){return v("common.error")},get hint(){return ze(()=>e.error instanceof Error)()?e.error.message:String(e.error)},get action(){return(()=>{var t=xm();return t.$$click=()=>e.onRetry(),_(t,()=>v("common.retry")),t})()}}),Pt=()=>m(Tt,{get title(){return v("common.noProject")},get hint(){return v("common.noProjectHint")}});qe(["click"]);const _m="yorz.m.sessions.",ym=30,fl=e=>`${_m}${e}`;function vm(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.title=="string"&&typeof t.kind=="string"&&typeof t.createdAt=="number"&&typeof t.updatedAt=="number"}function pl(e){try{const t=window.localStorage.getItem(fl(e));if(!t)return null;const n=JSON.parse(t);if(!Array.isArray(n))return null;const r=n.filter(vm);return r.length>0?r:null}catch{return null}}function gl(e,t){try{const n=t.slice(0,ym).map(({running:r,...i})=>i);window.localStorage.setItem(fl(e),JSON.stringify(n))}catch{}}const Em="yorz.m.specs.",wm=100,Ko=new Map,hl=e=>`${Em}${e}`;function km(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.title=="string"&&typeof t.stage=="string"&&typeof t.summary=="string"}function ls(e){const t=Ko.get(e);if(t)return t;try{const n=window.localStorage.getItem(hl(e));if(!n)return null;const r=JSON.parse(n);if(!Array.isArray(r))return null;const i=r.filter(km);return i.length===0?null:(Ko.set(e,i),i)}catch{return null}}function ds(e,t){const n=t.slice(0,wm);Ko.set(e,n);try{window.localStorage.setItem(hl(e),JSON.stringify(n))}catch{}}var Sm=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),Cm=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Am=N('<span class="mt-0.5 line-clamp-2 min-h-8 break-words text-sm text-muted-foreground">'),Tm=N('<li><button type=button class="flex w-full items-center gap-3 px-4 py-3 text-left active:bg-accent"><span class="min-w-0 flex-1"><span></span><span class="mt-0.5 flex items-center gap-2 text-xs text-muted-foreground"><time></time><span>·</span><span></span></span></span><span>');ni("en",Jh);ni("zh-CN",Kh);const Nm=()=>{const{lng:e}=ss(),t=ht(),[n,r]=G(null),[i,{refetch:o}]=nt(()=>_e()??void 0,g=>ue.listSessions(g));Ae(()=>{const g=_e();r(g?pl(g):null)}),Ae(()=>{if(i.state!=="ready")return;const g=_e(),f=i();!g||!f||(r(f),gl(g,f))}),Ae(()=>{const g=_e();if(!g)return;const f=ul(g,{onStatus:h=>{r(b=>b&&b.map(y=>y.id===h.sessionId?{...y,running:h.running}:y))}});Me(()=>f())});const s=ge(()=>{const g=n();return g?Qh(g,f=>g.find(h=>h.id===f)?.running===!0):[]}),[a,u]=G(null),[c,{refetch:l}]=nt(()=>_e()??void 0,g=>ue.listSpecs(g));Ae(()=>{const g=_e();u(g?ls(g):null)}),Ae(()=>{if(c.state!=="ready")return;const g=_e(),f=c();!g||!f||(u(f),ds(g,f))}),Ae(()=>{const g=_e();if(!g)return;const f=cs(g,()=>void l());Me(()=>f())});const d=ge(()=>{const g=new Map;for(const f of a()??[])g.set(f.id,f);return g}),p=g=>g?d().get(g):void 0;return m(yt,{get title(){return v("sessions.title")},padded:!1,get actions(){return(()=>{var g=Cm();return g.$$click=()=>t("/sessions/new"),_(g,m(os,{size:20,"aria-hidden":"true"})),Z(()=>te(g,"aria-label",v("sessions.new"))),g})()},get children(){return m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(M,{get when(){return n()},get fallback(){return m(M,{get when(){return!i.error},get fallback(){return m(Xt,{get error(){return i.error},onRetry:()=>void o()})},get children(){return m(ln,{})}})},get children(){return m(M,{get when(){return s().length>0},get fallback(){return m(Tt,{get title(){return v("sessions.empty")},get action(){return m(dl,{})}})},get children(){var g=Sm();return _(g,m(Ke,{get each(){return s()},children:f=>(()=>{var h=Tm(),b=h.firstChild,y=b.firstChild,x=y.firstChild,E=x.nextSibling,w=E.firstChild,C=w.nextSibling,O=C.nextSibling,$=y.nextSibling;return b.$$click=()=>t(`/sessions/${encodeURIComponent(f.latest.id)}`),_(x,()=>p(f.specId)?.title||f.latest.title),_(y,m(M,{get when(){return f.specId},get children(){var A=Am();return _(A,()=>p(f.specId)?.summary),A}}),E),_(w,()=>qh(f.updatedAt,e())),_(O,()=>f.latest.kind),Z(A=>{var I=Xe("block break-words",f.specId?"line-clamp-1":"line-clamp-3"),j=Xe("size-2 shrink-0 rounded-full",f.running?"bg-primary animate-pulse":"bg-transparent"),F=f.running?v("sessions.running"):void 0;return I!==A.e&&Le(x,A.e=I),j!==A.t&&Le($,A.t=j),F!==A.a&&te($,"aria-label",A.a=F),A},{e:void 0,t:void 0,a:void 0}),h})()})),g}})}})}})}})};qe(["click"]);const ha={plan:"bg-stage-plan/15 text-stage-plan border-stage-plan/30",tasks:"bg-stage-tasks/15 text-stage-tasks border-stage-tasks/30",execute:"bg-stage-execute/15 text-stage-execute border-stage-execute/30",done:"bg-stage-done/15 text-stage-done border-stage-done/30"},Rm={feat:"text-success",refct:"text-info",fix:"text-destructive"};function ml(e){return ha[e]??ha.plan}function bl(e){const[t,n,...r]=e.split(".");return!t||!n||r.length===0?null:{prefix:t,type:n,suffix:r.join(".")}}function Dm(e,t){const n=bl(e)?.type??e.split(".")[1]??"feat",r=t?.trim()??"";return r?`${n}: ${r}`:`${n}: update`}function xl(e){return`@.yorz/specs/${e}/spec.md`}function _l(e){if(!e)return"";const t=e.replace(/^['"]|['"]$/g,"").trim();return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(t)||/^\d{4}-\d{2}-\d{2}$/.test(t)?t:t||""}var Om=N('<p class="truncate text-sm font-medium">'),$m=N('<p class="mt-1 text-xs text-muted-foreground">'),Im=N('<div class="border-b border-border px-4 py-3 text-center">'),Mm=N('<div class="no-callout fixed inset-0 z-[60] flex select-none flex-col justify-end px-safe pb-safe"role=dialog aria-modal=true><button type=button class="absolute inset-0 bg-black/40"></button><div class="animate-in slide-in-from-bottom-4 relative p-2 duration-150"><div class="overflow-hidden rounded-xl bg-card shadow-lg"><div class="divide-y-[0.5px] divide-border"></div></div><button type=button class="mt-2 flex h-12 w-full items-center justify-center rounded-xl bg-card text-sm font-medium shadow-lg active:bg-accent">'),Lm=N("<button type=button>");const Un=e=>{let t=0;Ae(()=>{e.open&&(t=Date.now())});const n=()=>{Date.now()-t<300||e.onClose()};return m(M,{get when(){return e.open},get children(){var r=Mm(),i=r.firstChild,o=i.nextSibling,s=o.firstChild,a=s.firstChild,u=s.nextSibling;return r.$$contextmenu=c=>c.preventDefault(),i.$$click=n,_(s,m(M,{get when(){return e.title||e.description},get children(){var c=Im();return _(c,m(M,{get when(){return e.title},get children(){var l=Om();return _(l,()=>e.title),l}}),null),_(c,m(M,{get when(){return e.description},get children(){var l=$m();return _(l,()=>e.description),l}}),null),c}}),a),_(a,m(Ke,{get each(){return e.items},children:c=>(()=>{var l=Lm();return l.$$click=()=>c.onSelect(),_(l,()=>c.label),Z(()=>Le(l,Xe("flex h-12 w-full items-center justify-center text-sm active:bg-accent",c.tone==="destructive"&&"text-destructive"))),l})()})),u.$$click=()=>e.onClose(),_(u,()=>v("common.cancel")),Z(()=>te(i,"aria-label",v("common.cancel"))),r}})};qe(["contextmenu","click"]);async function si(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}return Fm(e)}function Fm(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="-9999px",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),t.setSelectionRange(0,e.length),document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}function Pm(e){let t,n=null,r=!1,i;const o=c=>c.preventDefault(),s=()=>{i&&clearTimeout(i),i=void 0,document.removeEventListener("contextmenu",o,!0)},a=()=>{s(),document.addEventListener("contextmenu",o,!0),i=setTimeout(s,700)},u=()=>{t&&clearTimeout(t),t=void 0,n=null};return Me(()=>{u(),s()}),{onPointerDown:c=>{c.button===0&&(r=!1,n={x:c.clientX,y:c.clientY},t&&clearTimeout(t),t=setTimeout(()=>{t=void 0,n=null,r=!0,a(),e.onLongPress()},e.ms??500))},onPointerMove:c=>{if(!n)return;const l=e.moveTolerance??10;(Math.abs(c.clientX-n.x)>l||Math.abs(c.clientY-n.y)>l)&&u()},onPointerUp:u,onPointerCancel:u,onPointerLeave:u,onContextMenu:c=>c.preventDefault(),onClick:c=>{if(r){r=!1,c.preventDefault(),c.stopPropagation();return}e.onClick?.()}}}var Bm=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),Um=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),zm=N('<span class="line-clamp-2 text-sm text-muted-foreground">'),qm=N('<li><button type=button class="no-callout flex w-full select-none flex-col gap-1 px-4 py-3 text-left active:bg-accent"><span class="flex items-center gap-2"><span></span><time class="ml-auto shrink-0 text-xs text-muted-foreground"></time></span><span class=truncate>'),Hm=N("<span>");const jm=()=>{const e=ht(),[t,n]=G(null),[r,{refetch:i}]=nt(()=>_e()??void 0,f=>ue.listSpecs(f));Ae(()=>{const f=_e();n(f?ls(f):null)}),Ae(()=>{if(r.state!=="ready")return;const f=_e(),h=r();!f||!h||(n(h),ds(f,h))}),Ae(()=>{const f=_e();if(!f)return;const h=cs(f,()=>void i());Me(()=>h())});const[o,s]=G(null),[a,u]=G(!1),c=()=>{s(null),u(!1)},l=f=>{u(!1),s(f)},d=async f=>{c();const h=await si(xl(f.id));we(v(h?"specs.pathCopied":"specs.copyFailed"),h?"default":"error")},p=async f=>{const h=_e();if(h){c();try{await ue.deleteSpec(h,f.id),we(v("specs.deleted")),await i()}catch(b){we(b instanceof Error?b.message:String(b),"error")}}},g=()=>{const f=o();return f?a()?[{label:v("specs.deleteConfirm"),tone:"destructive",onSelect:()=>void p(f)}]:[{label:v("specs.copyPath"),onSelect:()=>void d(f)},{label:v("specs.delete"),tone:"destructive",onSelect:()=>u(!0)}]:[]};return m(yt,{get title(){return v("specs.title")},padded:!1,get actions(){return(()=>{var f=Um();return f.$$click=()=>e("/specs/new"),_(f,m(os,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",v("specs.new"))),f})()},get children(){return[m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(M,{get when(){return t()},get fallback(){return m(M,{get when(){return!r.error},get fallback(){return m(Xt,{get error(){return r.error},onRetry:()=>void i()})},get children(){return m(ln,{})}})},get children(){return m(M,{get when(){return(t()??[]).length>0},get fallback(){return m(Tt,{get title(){return v("specs.empty")}})},get children(){var f=Bm();return _(f,m(Ke,{get each(){return t()},children:h=>{const b=bl(h.id),y=Pm({onLongPress:()=>l(h),onClick:()=>e(`/specs/${encodeURIComponent(h.id)}`)});return(()=>{var x=qm(),E=x.firstChild,w=E.firstChild,C=w.firstChild,O=C.nextSibling,$=w.nextSibling;return dr(E,y,!1,!0),_(C,()=>h.stage),_(w,m(M,{when:b,children:A=>(()=>{var I=Hm();return _(I,()=>A().type),Z(()=>Le(I,Xe("text-[0.65rem] font-medium",Rm[A().type]??"text-muted-foreground"))),I})()}),O),_(O,()=>_l(h.updated_at)),_($,()=>h.title),_(E,m(M,{get when(){return h.summary},get children(){var A=zm();return _(A,()=>h.summary),A}}),null),Z(()=>Le(C,Xe("rounded border px-1.5 py-0.5 text-[0.65rem] font-medium",ml(h.stage)))),x})()}})),f}})}})}}),m(Un,{get open(){return o()!==null},get title(){return o()?.title||o()?.id},get description(){return ze(()=>!!a())()?v("specs.deleteHint"):void 0},get items(){return g()},onClose:c})]}})};qe(["click"]);const yl=`
|
|
7
7
|
|
|
8
|
-
`,
|
|
8
|
+
`,Km="<!-- yorz:hidden -->",Gm=/<!-- yorz:hidden -->[\s\S]*?<!-- \/yorz:hidden -->\n?/g;function Wm(e){return e.includes(Km)?e.replace(Gm,"").trim():e}function Vm(e,t){return t.type==="text"?t.contextKind?{kind:"context",contextKind:t.contextKind,text:t.text}:{kind:"text",role:e,text:e==="user"?Wm(t.text):t.text}:t.type==="tool-use"?{kind:"tool",name:t.name,input:t.input}:{kind:"tool",result:t.text}}function vl(e){const t=[];for(const n of e){let r=!1;for(const i of n.parts){const o=Vm(n.role,i);if(o.kind==="text"){const s=t[t.length-1],a=!r&&s?.kind==="text"&&s.role===o.role;t.push(a?{...o,text:yl+o.text}:o),r=!0}else t.push(o)}}return t}function Zm(e){const t=[];for(const n of e){const r=vl(n.messages);r.length!==0&&(t.length>0&&t.push({kind:"divider",sessionId:n.sessionId,agentKind:n.kind,startedAt:n.createdAt}),t.push(...r))}return t}function Ym(e,t){return!e||!t||e.endsWith(`
|
|
9
9
|
`)||t.startsWith(`
|
|
10
|
-
`)?e+t:e+
|
|
10
|
+
`)?e+t:e+yl+t}function Xm(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.result===void 0){r.result=t;return}}e.push({kind:"tool",result:t})}function ma(e,t,n){return`${e}#${t}:${n}`}function Qm(e){const t=[];let n=null,r=0;const i=()=>`t${r++}`,o=()=>(n||(n={kind:"assistant",segments:[]},t.push(n)),n);for(const s of e){if(s.kind==="divider"){n=null,t.push({kind:"divider",sessionId:s.sessionId,agentKind:s.agentKind,startedAt:s.startedAt});continue}if(s.kind==="context"){n=null;const c=t[t.length-1];c?.kind==="context"?c.contexts.push(s):t.push({kind:"context",contexts:[s]});continue}if(s.kind==="text"&&s.role==="user"){n=null;const c=t[t.length-1];c?.kind==="user"?c.text=Ym(c.text,s.text):t.push({kind:"user",text:s.text});continue}const a=o(),u=a.segments[a.segments.length-1];if(s.kind==="text"){u?.kind==="text"?u.text+=s.text:a.segments.push({kind:"text",text:s.text});continue}u?.kind==="tools"?s.result!==void 0&&s.name===void 0?Xm(u.tools,s.result):u.tools.push({...s}):a.segments.push({kind:"tools",id:i(),tools:[{...s}]})}return t.filter(s=>s.kind!=="assistant"||s.segments.length>0)}function Jm(e){const{sid:t,displayedSid:n,displayedSpecId:r,fresh:i,listPending:o,known:s,specId:a,running:u}=e;if(!t)return{action:"idle"};const c=n===t;return i&&c?{action:"fresh"}:!s&&o?{action:"hold"}:u&&c&&r===a?{action:"keep"}:{action:"load",clear:!c,specId:a}}function eb(){let e=0;return{begin(){const t=++e;return()=>t===e},invalidate(){e+=1}}}const tb=20,nb="\0";function Ai(e,t){return`${e}${nb}${t}`}function rb(e=tb){const t=new Map,n=Math.max(1,Math.floor(e));function r(i,o){t.delete(i),t.set(i,o)}return{get(i){const o=t.get(i);if(o)return r(i,o),o},set(i,o){for(r(i,o);t.size>n;){const s=t.keys().next();if(s.done)break;t.delete(s.value)}},clear(){t.clear()},get size(){return t.size}}}function El(e,t){return e.kind!==t.kind?!1:e.kind==="text"&&t.kind==="text"?e.role===t.role&&e.text===t.text:e.kind==="tool"&&t.kind==="tool"?e.name===t.name&&e.result===t.result:e.kind==="context"&&t.kind==="context"?e.contextKind===t.contextKind&&e.text===t.text:e.kind==="divider"&&t.kind==="divider"?e.sessionId===t.sessionId&&e.startedAt===t.startedAt:!1}function ib(e,t){return e.length!==t.length?!1:e.length===0?!0:El(e[e.length-1],t[t.length-1])}function ob(e,t){if(e.length>t.length)return!1;for(let n=0;n<e.length;n++)if(!El(e[n],t[n]))return!1;return!0}const sb=80,ab=1500;function ub(e){return new Promise(t=>window.setTimeout(t,e))}function cb(e){const[t,n]=G([]),r=ge(()=>Qm(t())),[i,o]=G(!1),[s,a]=G(!1),[u,c]=G({}),l={isExpanded:S=>u()[S]===!0,set:(S,R)=>c(q=>q[S]===R?q:{...q,[S]:R})};function d(){c(S=>Object.keys(S).length===0?S:{})}const p=new Set,[g,f]=G(0);let h="",b,y="";const x=eb();function E(S){return h!==S&&y!==S?!1:ot(t).length>0}function w(S,R){if(y===R||E(R))return!0;const q=e.transcriptCache?.get(Ai(S,R));return!q||q.parts.length===0?!1:(D(q.parts),y=R,!0)}const C=new Map;function O(S){let R=C.get(S);if(!R){let q=()=>{};R={promise:new Promise(ie=>{q=ie}),resolve:q},C.set(S,R)}return R.promise}function $(S){O(S),C.get(S)?.resolve()}function A(S){p.delete(S)&&S===e.sessionId()&&f(R=>R+1)}let I="",j=null;function F(S,R){const q=S[S.length-1];return q&&q.kind==="text"&&q.role==="assistant"?[...S.slice(0,-1),{...q,text:q.text+R}]:[...S,{kind:"text",role:"assistant",text:R}]}function P(){j!=null&&(clearTimeout(j),j=null);const S=I;I="",S&&n(R=>F(R,S))}function z(S){I+=S,j==null&&(j=window.setTimeout(P,sb))}function B(S){P(),n(R=>F(R,S))}function T(S){P(),n(R=>[...R,S])}function D(S=[]){j!=null&&(clearTimeout(j),j=null),I="",n(R=>S.length===0&&R.length===0?R:S)}function X(S){B(`
|
|
11
11
|
${e.errorLabel(S)}
|
|
12
|
-
`)}Ae(()=>{const S=e.projectId(),R=e.sessionId(),q=e.specId(),W=q?e.running():!1,ie=
|
|
13
|
-
`," "],Nb=["{","}","|","\\","^","`"].concat(Tb),Rb=["'"].concat(Nb),va=["%","/","?",";","#"].concat(Rb),Ea=["/","?","#"],Db=255,wa=/^[+a-z0-9A-Z_-]{0,63}$/,Ob=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ka={javascript:!0,"javascript:":!0},Sa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ps(e,t){if(e&&e instanceof Vr)return e;const n=new Vr;return n.parse(e,t),n}Vr.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=Ab.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=Sb.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(s&&ka[s])&&(o=o.substr(2),this.slashes=!0)),!ka[s]&&(i||s&&!Sa[s])){let c=-1;for(let f=0;f<Ea.length;f++)r=o.indexOf(Ea[f]),r!==-1&&(c===-1||r<c)&&(c=r);let l,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(l=o.slice(0,d),o=o.slice(d+1),this.auth=l),c=-1;for(let f=0;f<va.length;f++)r=o.indexOf(va[f]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=o.length),o[c-1]===":"&&c--;const p=o.slice(0,c);o=o.slice(c),this.parseHost(p),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const f=this.hostname.split(/\./);for(let h=0,b=f.length;h<b;h++){const v=f[h];if(v&&!v.match(wa)){let x="";for(let E=0,w=v.length;E<w;E++)v.charCodeAt(E)>127?x+="x":x+=v[E];if(!x.match(wa)){const E=f.slice(0,h),w=f.slice(h+1),C=v.match(Ob);C&&(E.push(C[1]),w.unshift(C[2])),w.length&&(o=w.join(".")+o),this.hostname=E.join(".");break}}}}this.hostname.length>Db&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");a!==-1&&(this.hash=o.substr(a),o=o.slice(0,a));const u=o.indexOf("?");return u!==-1&&(this.search=o.substr(u),o=o.slice(0,u)),o&&(this.pathname=o),Sa[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Vr.prototype.parseHost=function(e){let t=Cb.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 $b=Object.freeze(Object.defineProperty({__proto__:null,decode:Ln,encode:gr,format:fs,parse:ps},Symbol.toStringTag,{value:"Module"})),Al=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Tl=/[\0-\x1F\x7F-\x9F]/,Ib=/[\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]/,gs=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Nl=/[\$\+<->\^`\|~\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]/,Rl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Mb=Object.freeze(Object.defineProperty({__proto__:null,Any:Al,Cc:Tl,Cf:Ib,P:gs,S:Nl,Z:Rl},Symbol.toStringTag,{value:"Module"})),Lb=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))),Fb=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ti;const Pb=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]]),Bb=(Ti=String.fromCodePoint)!==null&&Ti!==void 0?Ti: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 Ub(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Pb.get(e))!==null&&t!==void 0?t:e}var lt;(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"})(lt||(lt={}));const zb=32;var sn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(sn||(sn={}));function Go(e){return e>=lt.ZERO&&e<=lt.NINE}function qb(e){return e>=lt.UPPER_A&&e<=lt.UPPER_F||e>=lt.LOWER_A&&e<=lt.LOWER_F}function Hb(e){return e>=lt.UPPER_A&&e<=lt.UPPER_Z||e>=lt.LOWER_A&&e<=lt.LOWER_Z||Go(e)}function jb(e){return e===lt.EQUALS||Hb(e)}var ct;(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"})(ct||(ct={}));var Gt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Gt||(Gt={}));class Kb{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ct.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Gt.Strict}startEntity(t){this.decodeMode=t,this.state=ct.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ct.EntityStart:return t.charCodeAt(n)===lt.NUM?(this.state=ct.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ct.NamedEntity,this.stateNamedEntity(t,n));case ct.NumericStart:return this.stateNumericStart(t,n);case ct.NumericDecimal:return this.stateNumericDecimal(t,n);case ct.NumericHex:return this.stateNumericHex(t,n);case ct.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|zb)===lt.LOWER_X?(this.state=ct.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ct.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Go(i)||qb(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Go(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===lt.SEMI)this.consumed+=1;else if(this.decodeMode===Gt.Strict)return 0;return this.emitCodePoint(Ub(this.result),this.consumed),this.errors&&(t!==lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&sn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Gb(r,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===Gt.Attribute&&(o===0||jb(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&sn.VALUE_LENGTH)>>14,o!==0){if(s===lt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Gt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&sn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~sn.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ct.NamedEntity:return this.result!==0&&(this.decodeMode!==Gt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ct.NumericDecimal:return this.emitNumericEntity(0,2);case ct.NumericHex:return this.emitNumericEntity(0,3);case ct.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ct.EntityStart:return 0}}}function Dl(e){let t="";const n=new Kb(e,r=>t+=Bb(r));return function(i,o){let s=0,a=0;for(;(a=i.indexOf("&",a))>=0;){t+=i.slice(s,a),n.startEntity(o);const c=n.write(i,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const u=t+i.slice(s);return t="",u}}function Gb(e,t,n,r){const i=(t&sn.BRANCH_LENGTH)>>7,o=t&sn.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const u=r-o;return u<0||u>=i?-1:e[n+u]-1}let s=n,a=s+i-1;for(;s<=a;){const u=s+a>>>1,c=e[u];if(c<r)s=u+1;else if(c>r)a=u-1;else return e[u+i]}return-1}const Ol=Dl(Lb);Dl(Fb);function Wb(e,t=Gt.Legacy){return Ol(e,t)}function Vb(e){return Ol(e,Gt.Strict)}function Zb(e){return Object.prototype.toString.call(e)}function hs(e){return Zb(e)==="[object String]"}const Yb=Object.prototype.hasOwnProperty;function Xb(e,t){return Yb.call(e,t)}function ai(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(r){e[r]=n[r]})}}),e}function $l(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ms(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 sr(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 Il=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qb=/&([a-z#][a-z0-9]{1,31});/gi,Jb=new RegExp(Il.source+"|"+Qb.source,"gi"),e1=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function t1(e,t){if(t.charCodeAt(0)===35&&e1.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ms(r)?sr(r):e}const n=Wb(e);return n!==e?n:e}function n1(e){return e.indexOf("\\")<0?e:e.replace(Il,"$1")}function Fn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Jb,function(t,n,r){return n||t1(t,r)})}const r1=/[&<>"]/,i1=/[&<>"]/g,o1={"&":"&","<":"<",">":">",'"':"""};function s1(e){return o1[e]}function un(e){return r1.test(e)?e.replace(i1,s1):e}const a1=/[.?*+^$[\]\\(){}|-]/g;function u1(e){return e.replace(a1,"\\$&")}function Ve(e){switch(e){case 9:case 32:return!0}return!1}function ar(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 Ml(e){return gs.test(e)||Nl.test(e)}function ur(e){return Ml(sr(e))}function cr(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 ui(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Ca(e){return e===32||e===9||e===10||e===13}function ci(e){let t=0;for(;t<e.length&&Ca(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Ca(e.charCodeAt(n));n--);return e.slice(t,n+1)}const c1={mdurl:$b,ucmicro:Mb},l1=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:$l,asciiTrim:ci,assign:ai,escapeHtml:un,escapeRE:u1,fromCodePoint:sr,has:Xb,isMdAsciiPunct:cr,isPunctChar:Ml,isPunctCharCode:ur,isSpace:Ve,isString:hs,isValidEntityCode:ms,isWhiteSpace:ar,lib:c1,normalizeReference:ui,unescapeAll:Fn,unescapeMd:n1},Symbol.toStringTag,{value:"Module"}));function d1(e,t,n){let r,i,o,s;const a=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),o===91){if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}}let c=-1;return i&&(c=e.pos),e.pos=u,c}function f1(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=Fn(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let s=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(s++,s>32))return o;if(r===41){if(s===0)break;s--}i++}return t===i||s!==0||(o.str=Fn(e.slice(t,i)),o.pos=i,o.ok=!0),o}function p1(e,t,n,r){let i,o=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(o>=n)return s;let a=e.charCodeAt(o);if(a!==34&&a!==39&&a!==40)return s;t++,o++,a===40&&(a=41),s.marker=a}for(;o<n;){if(i=e.charCodeAt(o),i===s.marker)return s.pos=o+1,s.str+=Fn(e.slice(t,o)),s.ok=!0,s;if(i===40&&s.marker===41)return s;i===92&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=Fn(e.slice(t,o)),s}const g1=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:f1,parseLinkLabel:d1,parseLinkTitle:p1},Symbol.toStringTag,{value:"Module"})),Bt={};Bt.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+un(o.content)+"</code>"};Bt.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+un(e[t].content)+`</code></pre>
|
|
12
|
+
`)}Ae(()=>{const S=e.projectId(),R=e.sessionId(),q=e.specId(),W=q?e.running():!1,ie=Jm({sid:R,displayedSid:h,displayedSpecId:b,fresh:p.has(R),listPending:e.listPending?.()??!1,known:e.known?.()??!0,specId:q,running:W});if(g(),!S){a(!1);return}if(ie.action==="hold"){a(!w(S,R));return}if(ie.action==="idle"||ie.action==="keep"){a(!1);return}if(ie.action==="fresh"){a(!1),e.onSubjectChange?.();return}e.onSubjectChange?.(),ie.clear&&y!==R&&(D(),d()),h=R,b=ie.specId;const he=x.begin();a(!w(S,R)),(ie.specId?ue.getSpecMessages(S,ie.specId).then(Zm):ue.getSessionMessages(S,R).then(vl)).then(ke=>{if(!he())return;y="";const Oe=ot(t),Ce=ib(Oe,ke)||ob(ke,Oe);Ce||D(ke),a(!1);const Ye=Ce?Oe:ke;Ye.length>0&&e.transcriptCache?.set(Ai(S,R),{specId:ie.specId,parts:Ye})}).catch(()=>{he()&&a(!1)})}),Ae(()=>{const S=e.projectId(),R=e.sessionId();if(!S||!R)return;const q=oi(S,R,{onReady:()=>$(R),onEvent:W=>{W.type==="text"?z(W.delta):W.type==="tool-use"?T({kind:"tool",name:W.name,input:W.input}):W.type==="tool-result"?T({kind:"tool",result:W.text}):W.type==="turn-completed"?(P(),A(R),e.onRunningChange(R,!1)):W.type==="error"?(X(W.message),e.onRunningChange(R,!1)):W.type==="session-started"&&W.sessionId!==R&&cc(()=>{p.has(R)&&p.add(W.sessionId),h===R&&(h=W.sessionId),e.onSessionIdChange(W.sessionId),e.onRunningChange(R,!1),e.onRunningChange(W.sessionId,!0),e.onSessionsChanged?.()})}});Me(()=>{C.delete(R),q()})}),Me(()=>{j!=null&&clearTimeout(j),x.invalidate();const S=e.projectId(),R=t();S&&h&&R.length>0&&e.transcriptCache?.set(Ai(S,h),{specId:b,parts:R})});function pe(){D(),d(),x.invalidate(),a(!1),h="",b=void 0,y="",e.onSubjectChange?.()}function Q(){pe(),o(!1),p.clear(),f(S=>S+1),C.clear()}async function L(S,R){const q=e.projectId(),W=e.sessionId();if(!q||!S||i()||e.running())return"failed";if(e.onSubjectChange?.(),!W)return ne(q,S,R);T({kind:"text",role:"user",text:S}),a(!1),e.onRunningChange(W,!0);try{return await ue.sendSessionMessage(q,W,S,R),"sent"}catch(ie){return X(ie.message),e.onRunningChange(W,!1),"failed"}}async function ne(S,R,q){o(!0);try{let W;try{W=(await ue.createSession(S,{})).sessionId}catch(de){return X(de.message),"not-started"}p.add(W);const ie=O(W);D([{kind:"text",role:"user",text:R}]),d(),x.invalidate(),h=W,b=void 0,y="",e.onRunningChange(W,!0),e.onSessionIdChange(W),await Promise.race([ie,ub(ab)]);let he;try{await ue.sendSessionMessage(S,W,R,q),he="sent"}catch(de){X(de.message),e.onRunningChange(W,!1),he="failed"}return e.onSessionsChanged?.(),he}finally{o(!1)}}async function H(){const S=e.projectId(),R=e.sessionId();!S||!R||(await ue.abortSession(S,R).catch(()=>{}),e.onRunningChange(R,!1))}return{blocks:r,running:e.running,starting:i,historyLoading:s,toolExpand:l,send:L,abort:H,reset:pe,markPersisted:A,resetAll:Q}}const wl="image/*,application/pdf,text/plain,text/markdown,.md,.txt,.markdown",lb=5*1024*1024,Jn=10,db=new Set(["application/pdf","text/plain","text/markdown"]);function fb(e){const t=e.type;return t.startsWith("image/")?"image":t==="application/pdf"?"pdf":t==="text/plain"||t==="text/markdown"||t===""&&/\.(md|markdown|txt)$/i.test(e.name)?"text":null}function pb(e){return e.type?e:/\.md$/i.test(e.name)||/\.markdown$/i.test(e.name)?new File([e],e.name,{type:"text/markdown"}):/\.txt$/i.test(e.name)?new File([e],e.name,{type:"text/plain"}):e}function ba(e){const t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}function gb(){return Math.random().toString(36).slice(2,8)}function kl(e){const t=e.labels,[n,r]=G([]),[i,o]=G(null),[s,a]=G(null),[u,c]=G(null),[l,d]=G(""),p=ge(()=>n().length),g=ge(()=>n().some(F=>F.status==="pending")),f=ge(()=>n().some(F=>F.status==="failed"));Me(()=>{for(const F of n())F.previewUrl&&URL.revokeObjectURL(F.previewUrl)});async function h(){const F=i();if(F)return F;const{draftId:P}=await ue.createDraft(e.projectId());return o(P),P}function b(F){r(P=>[...P,F])}function y(F,P){r(z=>z.map(B=>B.id===F?{...B,...P}:B))}function x(F){r(P=>{const z=[];for(const B of P){if(B.id===F){B.previewUrl&&URL.revokeObjectURL(B.previewUrl);continue}z.push(B)}return z})}async function E(F){a(null);const P=n(),z=Jn-P.length;if(z<=0){a(t.attachmentLimit(Jn));return}const B=[];for(const T of F.slice(0,z)){const D=pb(T),X=fb(D);if(!X){a(t.unsupportedType(D.name));continue}if(X!=="image"&&!db.has(D.type)){a(t.unsupportedMime(D.type||"(unknown)"));continue}if(D.size>lb){a(t.fileTooLarge(D.name));continue}const pe=`att-${Date.now()}-${gb()}`,Q=X==="image"?URL.createObjectURL(D):void 0;B.push({id:pe,file:D,name:D.name,kind:X,previewUrl:Q,status:"pending"})}if(B.length!==0){F.length>z&&a(t.attachmentRoomLimit(z,P.length,Jn));for(const T of B)b(T);try{const T=await h();for(const D of B)try{const X=await ue.uploadAttachment(e.projectId(),T,D.file);y(D.id,{storedName:X.storedName,name:X.storedName,status:"uploaded"})}catch(X){y(D.id,{status:"failed",error:X.message})}}catch(T){a(T.message);for(const D of B)y(D.id,{status:"failed",error:T.message})}}}async function w(F){const P=F.currentTarget;if(!P.files)return;const z=Array.from(P.files);P.value="",await E(z)}async function C(F){const P=F.clipboardData?.items;if(!P)return;const z=[];for(const B of Array.from(P))if(B.kind==="file"&&B.type.startsWith("image/")){const T=B.getAsFile();T&&z.push(T)}z.length!==0&&(F.preventDefault(),await E(z))}async function O(F){const P=n().find(z=>z.id===F);if(P){if(P.storedName&&i())try{await ue.deleteAttachment(e.projectId(),i(),P.storedName)}catch(z){a(z.message)}x(F)}}function $(F){d(ba(F.name)),c(F.id)}async function A(F){const P=l().trim();if(c(null),!(!P||!F.storedName||!i())&&P!==ba(F.name))try{const z=await ue.renameAttachment(e.projectId(),i(),F.storedName,P);y(F.id,{storedName:z.storedName,name:z.storedName})}catch(z){a(z.message)}}function I(){c(null)}function j(){const F=ot(n);for(const P of F)P.previewUrl&&URL.revokeObjectURL(P.previewUrl);F.length>0&&r([]),o(null),c(null),d(""),a(null)}return{attachments:n,draftId:i,error:s,setError:a,count:p,hasPending:g,hasFailed:f,renamingId:u,renameDraft:l,setRenameDraft:d,addFiles:E,onFileInputChange:w,onPaste:C,removeAttachment:O,beginRename:$,commitRename:A,cancelRename:I,reset:j}}function hb(e,t){const n=`/${e}`;return t.trim()?mb(t,e)?t:`${n} ${t}`:`${n} `}function mb(e,t){const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^/${n}(\\s|$)`).test(e.trimStart())}function bb(e,t){const n=new Set(e.map(r=>r.name));return[...e.map(r=>({...r,scope:"project"})),...t.filter(r=>!n.has(r.name)).map(r=>({...r,scope:"global"}))]}const[xb,_b]=G({});function yb(e){return e?xb()[e]??[]:[]}function xa(e,t){return _b(n=>({...n,[e]:t})),t}async function vb(e){if(!e)return[];try{const t=await ue.getProjectCustomInstructions(e);return xa(e,t.customInstructions)}catch{return xa(e,[])}}function Sl(){return{attachmentLimit:e=>v("chat.attachmentLimit",{max:e}),unsupportedType:e=>v("chat.attachUnsupported",{name:e}),unsupportedMime:e=>v("chat.attachUnsupportedMime",{mime:e}),fileTooLarge:e=>v("chat.attachTooBig",{name:e}),attachmentRoomLimit:(e,t,n)=>v("chat.attachTooMany",{room:e,current:t,max:n})}}const _a={};function Eb(e){let t=_a[e];if(t)return t;t=_a[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Ln(e,t){typeof t!="string"&&(t=Ln.defaultChars);const n=Eb(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let o=0,s=r.length;o<s;o+=3){const a=parseInt(r.slice(o+1,o+3),16);if(a<128){i+=n[a];continue}if((a&224)===192&&o+3<s){const u=parseInt(r.slice(o+4,o+6),16);if((u&192)===128){const c=a<<6&1984|u&63;c<128?i+="��":i+=String.fromCharCode(c),o+=3;continue}}if((a&240)===224&&o+6<s){const u=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16);if((u&192)===128&&(c&192)===128){const l=a<<12&61440|u<<6&4032|c&63;l<2048||l>=55296&&l<=57343?i+="���":i+=String.fromCharCode(l),o+=6;continue}}if((a&248)===240&&o+9<s){const u=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16),l=parseInt(r.slice(o+10,o+12),16);if((u&192)===128&&(c&192)===128&&(l&192)===128){let d=a<<18&1835008|u<<12&258048|c<<6&4032|l&63;d<65536||d>1114111?i+="����":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="�"}return i})}Ln.defaultChars=";/?:@&=+$,#";Ln.componentChars="";const ya={};function wb(e){let t=ya[e];if(t)return t;t=ya[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):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 gr(e,t,n){typeof t!="string"&&(n=t,t=gr.defaultChars),typeof n>"u"&&(n=!0);const r=wb(t);let i="";for(let o=0,s=e.length;o<s;o++){const a=e.charCodeAt(o);if(n&&a===37&&o+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(a<128){i+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s){const u=e.charCodeAt(o+1);if(u>=56320&&u<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}gr.defaultChars=";/?:@&=+$,-_.!~*'()#";gr.componentChars="-_.!~*'()";function fs(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 Vr(){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 kb=/^([a-z0-9.+-]+:)/i,Sb=/:[0-9]*$/,Cb=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ab=["<",">",'"',"`"," ","\r",`
|
|
13
|
+
`," "],Tb=["{","}","|","\\","^","`"].concat(Ab),Nb=["'"].concat(Tb),va=["%","/","?",";","#"].concat(Nb),Ea=["/","?","#"],Rb=255,wa=/^[+a-z0-9A-Z_-]{0,63}$/,Db=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ka={javascript:!0,"javascript:":!0},Sa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ps(e,t){if(e&&e instanceof Vr)return e;const n=new Vr;return n.parse(e,t),n}Vr.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=Cb.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=kb.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(s&&ka[s])&&(o=o.substr(2),this.slashes=!0)),!ka[s]&&(i||s&&!Sa[s])){let c=-1;for(let f=0;f<Ea.length;f++)r=o.indexOf(Ea[f]),r!==-1&&(c===-1||r<c)&&(c=r);let l,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(l=o.slice(0,d),o=o.slice(d+1),this.auth=l),c=-1;for(let f=0;f<va.length;f++)r=o.indexOf(va[f]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=o.length),o[c-1]===":"&&c--;const p=o.slice(0,c);o=o.slice(c),this.parseHost(p),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const f=this.hostname.split(/\./);for(let h=0,b=f.length;h<b;h++){const y=f[h];if(y&&!y.match(wa)){let x="";for(let E=0,w=y.length;E<w;E++)y.charCodeAt(E)>127?x+="x":x+=y[E];if(!x.match(wa)){const E=f.slice(0,h),w=f.slice(h+1),C=y.match(Db);C&&(E.push(C[1]),w.unshift(C[2])),w.length&&(o=w.join(".")+o),this.hostname=E.join(".");break}}}}this.hostname.length>Rb&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");a!==-1&&(this.hash=o.substr(a),o=o.slice(0,a));const u=o.indexOf("?");return u!==-1&&(this.search=o.substr(u),o=o.slice(0,u)),o&&(this.pathname=o),Sa[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Vr.prototype.parseHost=function(e){let t=Sb.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 Ob=Object.freeze(Object.defineProperty({__proto__:null,decode:Ln,encode:gr,format:fs,parse:ps},Symbol.toStringTag,{value:"Module"})),Cl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Al=/[\0-\x1F\x7F-\x9F]/,$b=/[\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]/,gs=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Tl=/[\$\+<->\^`\|~\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]/,Nl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ib=Object.freeze(Object.defineProperty({__proto__:null,Any:Cl,Cc:Al,Cf:$b,P:gs,S:Tl,Z:Nl},Symbol.toStringTag,{value:"Module"})),Mb=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))),Lb=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ti;const Fb=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]]),Pb=(Ti=String.fromCodePoint)!==null&&Ti!==void 0?Ti: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 Bb(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Fb.get(e))!==null&&t!==void 0?t:e}var lt;(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"})(lt||(lt={}));const Ub=32;var sn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(sn||(sn={}));function Go(e){return e>=lt.ZERO&&e<=lt.NINE}function zb(e){return e>=lt.UPPER_A&&e<=lt.UPPER_F||e>=lt.LOWER_A&&e<=lt.LOWER_F}function qb(e){return e>=lt.UPPER_A&&e<=lt.UPPER_Z||e>=lt.LOWER_A&&e<=lt.LOWER_Z||Go(e)}function Hb(e){return e===lt.EQUALS||qb(e)}var ct;(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"})(ct||(ct={}));var Gt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Gt||(Gt={}));class jb{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ct.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Gt.Strict}startEntity(t){this.decodeMode=t,this.state=ct.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ct.EntityStart:return t.charCodeAt(n)===lt.NUM?(this.state=ct.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ct.NamedEntity,this.stateNamedEntity(t,n));case ct.NumericStart:return this.stateNumericStart(t,n);case ct.NumericDecimal:return this.stateNumericDecimal(t,n);case ct.NumericHex:return this.stateNumericHex(t,n);case ct.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Ub)===lt.LOWER_X?(this.state=ct.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ct.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Go(i)||zb(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Go(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===lt.SEMI)this.consumed+=1;else if(this.decodeMode===Gt.Strict)return 0;return this.emitCodePoint(Bb(this.result),this.consumed),this.errors&&(t!==lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&sn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Kb(r,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===Gt.Attribute&&(o===0||Hb(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&sn.VALUE_LENGTH)>>14,o!==0){if(s===lt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Gt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&sn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~sn.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ct.NamedEntity:return this.result!==0&&(this.decodeMode!==Gt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ct.NumericDecimal:return this.emitNumericEntity(0,2);case ct.NumericHex:return this.emitNumericEntity(0,3);case ct.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ct.EntityStart:return 0}}}function Rl(e){let t="";const n=new jb(e,r=>t+=Pb(r));return function(i,o){let s=0,a=0;for(;(a=i.indexOf("&",a))>=0;){t+=i.slice(s,a),n.startEntity(o);const c=n.write(i,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const u=t+i.slice(s);return t="",u}}function Kb(e,t,n,r){const i=(t&sn.BRANCH_LENGTH)>>7,o=t&sn.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const u=r-o;return u<0||u>=i?-1:e[n+u]-1}let s=n,a=s+i-1;for(;s<=a;){const u=s+a>>>1,c=e[u];if(c<r)s=u+1;else if(c>r)a=u-1;else return e[u+i]}return-1}const Dl=Rl(Mb);Rl(Lb);function Gb(e,t=Gt.Legacy){return Dl(e,t)}function Wb(e){return Dl(e,Gt.Strict)}function Vb(e){return Object.prototype.toString.call(e)}function hs(e){return Vb(e)==="[object String]"}const Zb=Object.prototype.hasOwnProperty;function Yb(e,t){return Zb.call(e,t)}function ai(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(r){e[r]=n[r]})}}),e}function Ol(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ms(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 sr(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 $l=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Xb=/&([a-z#][a-z0-9]{1,31});/gi,Qb=new RegExp($l.source+"|"+Xb.source,"gi"),Jb=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function e1(e,t){if(t.charCodeAt(0)===35&&Jb.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ms(r)?sr(r):e}const n=Gb(e);return n!==e?n:e}function t1(e){return e.indexOf("\\")<0?e:e.replace($l,"$1")}function Fn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qb,function(t,n,r){return n||e1(t,r)})}const n1=/[&<>"]/,r1=/[&<>"]/g,i1={"&":"&","<":"<",">":">",'"':"""};function o1(e){return i1[e]}function un(e){return n1.test(e)?e.replace(r1,o1):e}const s1=/[.?*+^$[\]\\(){}|-]/g;function a1(e){return e.replace(s1,"\\$&")}function Ve(e){switch(e){case 9:case 32:return!0}return!1}function ar(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 Il(e){return gs.test(e)||Tl.test(e)}function ur(e){return Il(sr(e))}function cr(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 ui(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Ca(e){return e===32||e===9||e===10||e===13}function ci(e){let t=0;for(;t<e.length&&Ca(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Ca(e.charCodeAt(n));n--);return e.slice(t,n+1)}const u1={mdurl:Ob,ucmicro:Ib},c1=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ol,asciiTrim:ci,assign:ai,escapeHtml:un,escapeRE:a1,fromCodePoint:sr,has:Yb,isMdAsciiPunct:cr,isPunctChar:Il,isPunctCharCode:ur,isSpace:Ve,isString:hs,isValidEntityCode:ms,isWhiteSpace:ar,lib:u1,normalizeReference:ui,unescapeAll:Fn,unescapeMd:t1},Symbol.toStringTag,{value:"Module"}));function l1(e,t,n){let r,i,o,s;const a=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),o===91){if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}}let c=-1;return i&&(c=e.pos),e.pos=u,c}function d1(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=Fn(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let s=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(s++,s>32))return o;if(r===41){if(s===0)break;s--}i++}return t===i||s!==0||(o.str=Fn(e.slice(t,i)),o.pos=i,o.ok=!0),o}function f1(e,t,n,r){let i,o=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(o>=n)return s;let a=e.charCodeAt(o);if(a!==34&&a!==39&&a!==40)return s;t++,o++,a===40&&(a=41),s.marker=a}for(;o<n;){if(i=e.charCodeAt(o),i===s.marker)return s.pos=o+1,s.str+=Fn(e.slice(t,o)),s.ok=!0,s;if(i===40&&s.marker===41)return s;i===92&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=Fn(e.slice(t,o)),s}const p1=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:d1,parseLinkLabel:l1,parseLinkTitle:f1},Symbol.toStringTag,{value:"Module"})),Bt={};Bt.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+un(o.content)+"</code>"};Bt.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+un(e[t].content)+`</code></pre>
|
|
14
14
|
`};Bt.fence=function(e,t,n,r,i){const o=e[t],s=o.info?Fn(o.info).trim():"";let a="",u="";if(s){const l=s.split(/(\s+)/g);a=l[0],u=l.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,a,u)||un(o.content):c=un(o.content),c.indexOf("<pre")===0)return c+`
|
|
15
15
|
`;if(s){const l=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];l<0?d.push(["class",n.langPrefix+a]):(d[l]=d[l].slice(),d[l][1]+=" "+n.langPrefix+a);const p={attrs:d};return`<pre><code${i.renderAttrs(p)}>${c}</code></pre>
|
|
16
16
|
`}return`<pre><code${i.renderAttrs(o)}>${c}</code></pre>
|
|
@@ -22,12 +22,12 @@ ${e.errorLabel(S)}
|
|
|
22
22
|
`};Bt.text=function(e,t){return un(e[t].content)};Bt.html_block=function(e,t){return e[t].content};Bt.html_inline=function(e,t){return e[t].content};function zn(){this.rules=ai({},Bt)}zn.prototype.renderAttrs=function(t){let n,r,i;if(!t.attrs)return"";for(i="",n=0,r=t.attrs.length;n<r;n++)i+=" "+un(t.attrs[n][0])+'="'+un(t.attrs[n][1])+'"';return i};zn.prototype.renderToken=function(t,n,r){const i=t[n];let o="";if(i.hidden)return"";i.block&&i.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
|
|
23
23
|
`),o+=(i.nesting===-1?"</":"<")+i.tag,o+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(o+=" /");let s=!1;if(i.block&&(s=!0,i.nesting===1&&n+1<t.length)){const a=t[n+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===i.tag)&&(s=!1)}return o+=s?`>
|
|
24
24
|
`:">",o};zn.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;typeof i[a]<"u"?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r};zn.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
|
|
25
|
-
`;break}return r};zn.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;a==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[a]<"u"?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function _t(){this.__rules__=[],this.__cache__=null}_t.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};_t.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};_t.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};_t.prototype.before=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};_t.prototype.after=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};_t.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};_t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};_t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};_t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};_t.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Nt(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}Nt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,i=n.length;r<i;r++)if(n[r][0]===t)return r;return-1};Nt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Nt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),i=[t,n];r<0?this.attrPush(i):this.attrs[r]=i};Nt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Nt.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function
|
|
26
|
-
`),t=t.replace(m1,"�"),e.src=t}function x1(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 _1(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function y1(e){return/^<a[>\s]/i.test(e)}function v1(e){return/^<\/a\s*>/i.test(e)}function E1(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,o=0;for(let s=i.length-1;s>=0;s--){const a=i[s];if(a.type==="link_close"){for(s--;i[s].level!==a.level&&i[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(y1(a.content)&&o>0&&o--,v1(a.content)&&o++),!(o>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const u=a.content;let c=e.md.linkify.match(u);const l=[];let d=a.level,p=0;c.length>0&&c[0].index===0&&s>0&&i[s-1].type==="text_special"&&(c=c.slice(1));for(let g=0;g<c.length;g++){const f=c[g].url,h=e.md.normalizeLink(f);if(!e.md.validateLink(h))continue;let b=c[g].text;c[g].schema?c[g].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,"");const v=c[g].index;if(v>p){const C=new e.Token("text","",0);C.content=u.slice(p,v),C.level=d,l.push(C)}const x=new e.Token("link_open","a",1);x.attrs=[["href",h]],x.level=d++,x.markup="linkify",x.info="auto",l.push(x);const E=new e.Token("text","",0);E.content=b,E.level=d,l.push(E);const w=new e.Token("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",l.push(w),p=c[g].lastIndex}if(p<u.length){const g=new e.Token("text","",0);g.content=u.slice(p),g.level=d,l.push(g)}t[n].children=i=$l(i,s,l)}}}}const Fl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,w1=/\((c|tm|r)\)/i,k1=/\((c|tm|r)\)/ig,S1={c:"©",r:"®",tm:"™"};function C1(e,t){return S1[t.toLowerCase()]}function A1(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(k1,C1)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function T1(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&Fl.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function N1(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(w1.test(e.tokens[t].content)&&A1(e.tokens[t].children),Fl.test(e.tokens[t].content)&&T1(e.tokens[t].children))}const R1=/['"]/,Aa=/['"]/g,Ta="’";function Tr(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function D1(e,t){let n="",r=0;t.sort((i,o)=>i.pos-o.pos);for(let i=0;i<t.length;i++){const o=t[i];n+=e.slice(r,o.pos)+o.ch,r=o.pos+1}return n+e.slice(r)}function O1(e,t){let n;const r=[],i={};for(let o=0;o<e.length;o++){const s=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,s.type!=="text")continue;const u=s.content;let c=0;const l=u.length;e:for(;c<l;){Aa.lastIndex=c;const d=Aa.exec(u);if(!d)break;let p=!0,g=!0;c=d.index+1;const f=d[0]==="'";let h=32;if(d.index-1>=0)h=u.charCodeAt(d.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(c<l)b=u.charCodeAt(c);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const v=cr(h)||ur(h),x=cr(b)||ur(b),E=ar(h),w=ar(b);if(w?p=!1:x&&(E||v||(p=!1)),E?g=!1:v&&(w||x||(g=!1)),b===34&&d[0]==='"'&&h>=48&&h<=57&&(g=p=!1),p&&g&&(p=v,g=x),!p&&!g){f&&Tr(i,o,d.index,Ta);continue}if(g)for(n=r.length-1;n>=0;n--){let C=r[n];if(r[n].level<a)break;if(C.single===f&&r[n].level===a){C=r[n];let O,$;f?(O=t.md.options.quotes[2],$=t.md.options.quotes[3]):(O=t.md.options.quotes[0],$=t.md.options.quotes[1]),Tr(i,o,d.index,$),Tr(i,C.token,C.pos,O),r.length=n;continue e}}p?r.push({token:o,pos:d.index,single:f,level:a}):g&&f&&Tr(i,o,d.index,Ta)}}Object.keys(i).forEach(function(o){e[o].content=D1(e[o].content,i[o])})}function $1(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!R1.test(e.tokens[t].content)||O1(e.tokens[t].children,e)}function I1(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;const s=r[o].children,a=s.length;for(t=0;t<a;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<a;t++)s[t].type==="text"&&t+1<a&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const Ni=[["normalize",b1],["block",x1],["inline",_1],["linkify",E1],["replacements",N1],["smartquotes",$1],["text_join",I1]];function bs(){this.ruler=new _t;for(let e=0;e<Ni.length;e++)this.ruler.push(Ni[e][0],Ni[e][1])}bs.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};bs.prototype.State=Ll;function Ut(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let o=0,s=0,a=0,u=0,c=i.length,l=!1;s<c;s++){const d=i.charCodeAt(s);if(!l)if(Ve(d)){a++,d===9?u+=4-u%4:u++;continue}else l=!0;(d===10||s===c-1)&&(d!==10&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),l=!1,a=0,u=0,o=s+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ut.prototype.push=function(e,t,n){const r=new Nt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Ut.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ut.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Ut.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!Ve(r))break}return t};Ut.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ve(this.src.charCodeAt(--t)))return t+1;return t};Ut.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};Ut.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Ut.prototype.getLines=function(t,n,r,i){if(t>=n)return"";const o=new Array(n-t);for(let s=0,a=t;a<n;a++,s++){let u=0;const c=this.bMarks[a];let l=c,d;for(a+1<n||i?d=this.eMarks[a]+1:d=this.eMarks[a];l<d&&u<r;){const p=this.src.charCodeAt(l);if(Ve(p))p===9?u+=4-(u+this.bsCount[a])%4:u++;else if(l-c<this.tShift[a])u++;else break;l++}u>r?o[s]=new Array(u-r+1).join(" ")+this.src.slice(l,d):o[s]=this.src.slice(l,d)}return o.join("")};Ut.prototype.Token=Nt;const M1=65536;function Ri(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Na(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,s=0,a="";for(;r<n;)i===124&&(o?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function L1(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58||o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58&&!Ve(a)||s===45&&Ve(a))return!1;for(;o<e.eMarks[i];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!Ve(w))return!1;o++}let u=Ri(e,t+1),c=u.split("|");const l=[];for(let w=0;w<c.length;w++){const C=c[w].trim();if(!C){if(w===0||w===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(C))return!1;C.charCodeAt(C.length-1)===58?l.push(C.charCodeAt(0)===58?"center":"right"):C.charCodeAt(0)===58?l.push("left"):l.push("")}if(u=Ri(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Na(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==l.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),h=[t,0];f.map=h;const b=e.push("thead_open","thead",1);b.map=[t,t+1];const v=e.push("tr_open","tr",1);v.map=[t,t+1];for(let w=0;w<c.length;w++){const C=e.push("th_open","th",1);l[w]&&(C.attrs=[["style","text-align:"+l[w]]]);const O=e.push("inline","",0);O.content=c[w].trim(),O.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let x,E=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let w=!1;for(let O=0,$=g.length;O<$;O++)if(g[O](e,i,n,!0)){w=!0;break}if(w||(u=Ri(e,i).trim(),!u)||e.sCount[i]-e.blkIndent>=4||(c=Na(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),E+=d-c.length,E>M1))break;if(i===t+2){const O=e.push("tbody_open","tbody",1);O.map=x=[t+2,0]}const C=e.push("tr_open","tr",1);C.map=[i,i+1];for(let O=0;O<d;O++){const $=e.push("td_open","td",1);l[O]&&($.attrs=[["style","text-align:"+l[O]]]);const A=e.push("inline","",0);A.content=c[O]?c[O].trim():"",A.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return x&&(e.push("tbody_close","tbody",-1),x[1]=i),e.push("table_close","table",-1),h[1]=i,e.parentType=p,e.line=i,!0}function F1(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
27
|
-
`,o.map=[t,e.line],!0}function P1(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const s=e.src.charCodeAt(i);if(s!==126&&s!==96)return!1;let a=i;i=e.skipChars(i,s);let u=i-a;if(u<3)return!1;const c=e.src.slice(a,i),l=e.src.slice(i,o);if(s===96&&l.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;d++,!(d>=n||(i=a=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,s),!(i-a<u)&&(i=e.skipSpaces(i),!(i<o)))){p=!0;break}u=e.sCount[t],e.line=d+(p?1:0);const g=e.push("fence","code",0);return g.info=l,g.content=e.getLines(t+1,d,u,!0),g.markup=c,g.map=[t,e.line],!0}function B1(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const a=[],u=[],c=[],l=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let g=!1,f;for(f=t;f<n;f++){const E=e.sCount[f]<e.blkIndent;if(i=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],i>=o)break;if(e.src.charCodeAt(i++)===62&&!E){let C=e.sCount[f]+1,O,$;e.src.charCodeAt(i)===32?(i++,C++,$=!1,O=!0):e.src.charCodeAt(i)===9?(O=!0,(e.bsCount[f]+C)%4===3?(i++,C++,$=!1):$=!0):O=!1;let A=C;for(a.push(e.bMarks[f]),e.bMarks[f]=i;i<o;){const M=e.src.charCodeAt(i);if(Ve(M))M===9?A+=4-(A+e.bsCount[f]+($?1:0))%4:A++;else break;i++}g=i>=o,u.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(O?1:0),c.push(e.sCount[f]),e.sCount[f]=A-C,l.push(e.tShift[f]),e.tShift[f]=i-e.bMarks[f];continue}if(g)break;let w=!1;for(let C=0,O=d.length;C<O;C++)if(d[C](e,f,n,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(a.push(e.bMarks[f]),u.push(e.bsCount[f]),l.push(e.tShift[f]),c.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}a.push(e.bMarks[f]),u.push(e.bsCount[f]),l.push(e.tShift[f]),c.push(e.sCount[f]),e.sCount[f]=-1}const h=e.blkIndent;e.blkIndent=0;const b=e.push("blockquote_open","blockquote",1);b.markup=">";const v=[t,0];b.map=v,e.md.block.tokenize(e,t,f);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=s,e.parentType=p,v[1]=e.line;for(let E=0;E<l.length;E++)e.bMarks[E+t]=a[E],e.tShift[E+t]=l[E],e.sCount[E+t]=c[E],e.bsCount[E+t]=u[E];return e.blkIndent=h,!0}function U1(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;o<i;){const c=e.src.charCodeAt(o++);if(c!==s&&!Ve(c))return!1;c===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(s)),!0}function Ra(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!Ve(o))return-1}return r}function Da(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!Ve(o))?-1:i}function z1(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function q1(e,t,n,r){let i,o,s,a,u=t,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let l=!1;r&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(l=!0);let d,p,g;if((g=Da(e,u))>=0){if(d=!0,s=e.bMarks[u]+e.tShift[u],p=Number(e.src.slice(s,g-1)),l&&p!==1)return!1}else if((g=Ra(e,u))>=0)d=!1;else return!1;if(l&&e.skipSpaces(g)>=e.eMarks[u])return!1;if(r)return!0;const f=e.src.charCodeAt(g-1),h=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),p!==1&&(a.attrs=[["start",p]])):a=e.push("bullet_list_open","ul",1);const b=[u,0];a.map=b,a.markup=String.fromCharCode(f);let v=!1;const x=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";u<n;){o=g,i=e.eMarks[u];const w=e.sCount[u]+g-(e.bMarks[u]+e.tShift[u]);let C=w;for(;o<i;){const T=e.src.charCodeAt(o);if(T===9)C+=4-(C+e.bsCount[u])%4;else if(T===32)C++;else break;o++}const O=o;let $;O>=i?$=1:$=C-w,$>4&&($=1);const A=w+$;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(f);const M=[u,0];a.map=M,d&&(a.info=e.src.slice(s,g-1));const j=e.tight,F=e.tShift[u],P=e.sCount[u],z=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=A,e.tight=!0,e.tShift[u]=O-e.bMarks[u],e.sCount[u]=C,O>=i&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||v)&&(c=!1),v=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=z,e.tShift[u]=F,e.sCount[u]=P,e.tight=j,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(f),u=e.line,M[1]=u,u>=n||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let B=!1;for(let T=0,D=x.length;T<D;T++)if(x[T](e,u,n,!0)){B=!0;break}if(B)break;if(d){if(g=Da(e,u),g<0)break;s=e.bMarks[u]+e.tShift[u]}else if(g=Ra(e,u),g<0)break;if(f!==e.src.charCodeAt(g-1))break}return d?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(f),b[1]=u,e.line=u,e.parentType=E,c&&z1(e,h),!0}function H1(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function a(x){const E=e.lineMax;if(x>=E||e.isEmpty(x))return null;let w=!1;if(e.sCount[x]-e.blkIndent>3&&(w=!0),e.sCount[x]<0&&(w=!0),!w){const $=e.md.block.ruler.getRules("reference"),A=e.parentType;e.parentType="reference";let M=!1;for(let j=0,F=$.length;j<F;j++)if($[j](e,x,E,!0)){M=!0;break}if(e.parentType=A,M)return null}const C=e.bMarks[x]+e.tShift[x],O=e.eMarks[x];return e.src.slice(C,O+1)}let u=e.src.slice(i,o+1);o=u.length;let c=-1;for(i=1;i<o;i++){const x=u.charCodeAt(i);if(x===91)return!1;if(x===93){c=i;break}else if(x===10){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}else if(x===92&&(i++,i<o&&u.charCodeAt(i)===10)){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(i=c+2;i<o;i++){const x=u.charCodeAt(i);if(x===10){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}else if(!Ve(x))break}const l=e.md.helpers.parseLinkDestination(u,i,o);if(!l.ok)return!1;const d=e.md.normalizeLink(l.str);if(!e.md.validateLink(d))return!1;i=l.pos;const p=i,g=s,f=i;for(;i<o;i++){const x=u.charCodeAt(i);if(x===10){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}else if(!Ve(x))break}let h=e.md.helpers.parseLinkTitle(u,i,o);for(;h.can_continue;){const x=a(s);if(x===null)break;u+=x,i=o,o=u.length,s++,h=e.md.helpers.parseLinkTitle(u,i,o,h)}let b;for(i<o&&f!==i&&h.ok?(b=h.str,i=h.pos):(b="",i=p,s=g);i<o;){const x=u.charCodeAt(i);if(!Ve(x))break;i++}if(i<o&&u.charCodeAt(i)!==10&&b)for(b="",i=p,s=g;i<o;){const x=u.charCodeAt(i);if(!Ve(x))break;i++}if(i<o&&u.charCodeAt(i)!==10)return!1;const v=ui(u.slice(1,c));return v?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[v]>"u"&&(e.env.references[v]={title:b,href:d}),e.line=s),!0):!1}const j1=["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"],K1="[a-zA-Z_:][a-zA-Z0-9:._-]*",G1="[^\"'=<>`\\x00-\\x20]+",W1="'[^']*'",V1='"[^"]*"',Z1="(?:"+G1+"|"+W1+"|"+V1+")",Y1="(?:\\s+"+K1+"(?:\\s*=\\s*"+Z1+")?)",Pl="<[A-Za-z][A-Za-z0-9\\-]*"+Y1+"*\\s*\\/?>",Bl="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",X1="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Q1="<[?][\\s\\S]*?[?]>",J1="<![A-Za-z][^>]*>",ex="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",tx=new RegExp("^(?:"+Pl+"|"+Bl+"|"+X1+"|"+Q1+"|"+J1+"|"+ex+")"),nx=new RegExp("^(?:"+Pl+"|"+Bl+")"),bn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+j1.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(nx.source+"\\s*$"),/^$/,!1]];function rx(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let s=e.src.slice(i,o),a=0;for(;a<bn.length&&!bn[a][0].test(s);a++);if(a===bn.length)return!1;if(r)return bn[a][2];let u=t+1;const c=bn[a][1].test("");if(!bn[a][1].test(s)){for(;u<n&&!(e.sCount[u]<e.blkIndent&&(c||!e.isEmpty(u)));u++)if(i=e.bMarks[u]+e.tShift[u],o=e.eMarks[u],s=e.src.slice(i,o),bn[a][1].test(s)){s.length!==0&&u++;break}}e.line=u;const l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}function ix(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(s!==35||i>=o)return!1;let a=1;for(s=e.src.charCodeAt(++i);s===35&&i<o&&a<=6;)a++,s=e.src.charCodeAt(++i);if(a>6||i<o&&!Ve(s))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const u=e.skipCharsBack(o,35,i);u>i&&Ve(e.src.charCodeAt(u-1))&&(o=u),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const l=e.push("inline","",0);l.content=ci(e.src.slice(i,o)),l.map=[t,e.line],l.children=[];const d=e.push("heading_close","h"+String(a),-1);return d.markup="########".slice(0,a),!0}function ox(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let g=e.bMarks[a]+e.tShift[a];const f=e.eMarks[a];if(g<f&&(s=e.src.charCodeAt(g),(s===45||s===61)&&(g=e.skipChars(g,s),g=e.skipSpaces(g),g>=f))){o=s===61?1:2;break}}if(e.sCount[a]<0)continue;let p=!1;for(let g=0,f=r.length;g<f;g++)if(r[g](e,a,n,!0)){p=!0;break}if(p)break}if(!o)return e.parentType=i,!1;const u=ci(e.getLines(t,a,e.blkIndent,!1));e.line=a+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const l=e.push("inline","",0);l.content=u,l.map=[t,e.line-1],l.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(s),e.parentType=i,!0}function sx(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let l=0,d=r.length;l<d;l++)if(r[l](e,o,n,!0)){c=!0;break}if(c)break}const s=ci(e.getLines(t,o,e.blkIndent,!1));e.line=o;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const Nr=[["table",L1,["paragraph","reference"]],["code",F1],["fence",P1,["paragraph","reference","blockquote","list"]],["blockquote",B1,["paragraph","reference","blockquote","list"]],["hr",U1,["paragraph","reference","blockquote","list"]],["list",q1,["paragraph","reference","blockquote"]],["reference",H1],["html_block",rx,["paragraph","reference","blockquote"]],["heading",ix,["paragraph","reference","blockquote"]],["lheading",ox],["paragraph",sx]];function li(){this.ruler=new _t;for(let e=0;e<Nr.length;e++)this.ruler.push(Nr[e][0],Nr[e][1],{alt:(Nr[e][2]||[]).slice()})}li.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}const u=e.line;let c=!1;for(let l=0;l<i;l++)if(c=r[l](e,s,n,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}};li.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)};li.prototype.State=Ut;function hr(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}hr.prototype.pushPending=function(){const e=new Nt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};hr.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Nt(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};hr.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e);let i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)===55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)===56320){const b=this.src.charCodeAt(e-2);i=(b&64512)===55296?65536+(b-55296<<10)+(i-56320):65533}else(i&64512)===55296&&(i=65533);let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const s=o-e;let a=o<n?this.src.charCodeAt(o):32;if((a&64512)===55296){const b=this.src.charCodeAt(o+1);a=(b&64512)===56320?65536+(a-55296<<10)+(b-56320):65533}else(a&64512)===56320&&(a=65533);const u=cr(i)||ur(i),c=cr(a)||ur(a),l=ar(i),d=ar(a),p=!d&&(!c||l||u),g=!l&&(!u||d||c);return{can_open:p&&(t||!g||u),can_close:g&&(t||!p||c),length:s}};hr.prototype.Token=Nt;function ax(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 ux(e,t){let n=e.pos;for(;n<e.posMax&&!ax(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const cx=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function lx(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(cx);if(!i)return!1;const o=i[1],s=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!s)return!1;let a=s.url;if(a.length<=o.length)return!1;let u=a.length;for(;u>0&&a.charCodeAt(u-1)===42;)u--;u!==a.length&&(a=a.slice(0,u));const c=e.md.normalizeLink(a);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(a);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=a.length-o.length,!0}function dx(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),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<i&&Ve(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const xs=[];for(let e=0;e<256;e++)xs.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){xs[e.charCodeAt(0)]=1});function fx(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!Ve(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(o+=e.src[n+1],n++)}const s="\\"+o;if(!t){const a=e.push("text_special","",0);i<256&&xs[i]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function px(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(i,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=s),e.pos+=a,!0;let u=n,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<o&&e.src.charCodeAt(u)===96;)u++;const l=u-c;if(l===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[l]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}function gx(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const s=String.fromCharCode(r);if(o<2)return!1;let a;o%2&&(a=e.push("text","",0),a.content=s,o--);for(let u=0;u<o;u+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Oa(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const s=t[o];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&r.push(a.token-1)}for(;r.length;){const o=r.pop();let s=o+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[o],e.tokens[o]=n)}}function hx(e){const t=e.tokens_meta,n=e.tokens_meta.length;Oa(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Oa(e,t[r].delimiters)}const Ul={tokenize:gx,postProcess:hx};function mx(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function $a(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],s=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,a=String.fromCharCode(i.marker),u=e.tokens[i.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?a+a:a,u.content="";const c=e.tokens[o.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function bx(e){const t=e.tokens_meta,n=e.tokens_meta.length;$a(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&$a(e,t[r].delimiters)}const zl={tokenize:mx,postProcess:bx};function xx(e,t){let n,r,i,o,s="",a="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const l=e.pos,d=e.posMax,p=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let f=g+1;if(f<d&&e.src.charCodeAt(f)===40){for(c=!1,f++;f<d&&(n=e.src.charCodeAt(f),!(!Ve(n)&&n!==10));f++);if(f>=d)return!1;if(u=f,i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),i.ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?f=i.pos:s="",u=f;f<d&&(n=e.src.charCodeAt(f),!(!Ve(n)&&n!==10));f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<d&&u!==f&&i.ok)for(a=i.str,f=i.pos;f<d&&(n=e.src.charCodeAt(f),!(!Ve(n)&&n!==10));f++);}(f>=d||e.src.charCodeAt(f)!==41)&&(c=!0),f++}if(c){if(typeof e.env.references>"u")return!1;if(f<d&&e.src.charCodeAt(f)===91?(u=f+1,f=e.md.helpers.parseLinkLabel(e,f),f>=0?r=e.src.slice(u,f++):f=g+1):f=g+1,r||(r=e.src.slice(p,g)),o=e.env.references[ui(r)],!o)return e.pos=l,!1;s=o.href,a=o.title}if(!t){e.pos=p,e.posMax=g;const h=e.push("link_open","a",1),b=[["href",s]];h.attrs=b,a&&b.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}function _x(e,t){let n,r,i,o,s,a,u,c,l="";const d=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,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(o=f+1,o<p&&e.src.charCodeAt(o)===40){for(o++;o<p&&(n=e.src.charCodeAt(o),!(!Ve(n)&&n!==10));o++);if(o>=p)return!1;for(c=o,a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),a.ok&&(l=e.md.normalizeLink(a.str),e.md.validateLink(l)?o=a.pos:l=""),c=o;o<p&&(n=e.src.charCodeAt(o),!(!Ve(n)&&n!==10));o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&c!==o&&a.ok)for(u=a.str,o=a.pos;o<p&&(n=e.src.charCodeAt(o),!(!Ve(n)&&n!==10));o++);else u="";if(o>=p||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<p&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(c,o++):o=f+1):o=f+1,i||(i=e.src.slice(g,f)),s=e.env.references[ui(i)],!s)return e.pos=d,!1;l=s.href,u=s.title}if(!t){r=e.src.slice(g,f);const h=[];e.md.inline.parse(r,e.md,e.env,h);const b=e.push("image","img",0),v=[["src",l],["alt",""]];b.attrs=v,b.children=h,b.content=r,u&&v.push(["title",u])}return e.pos=o,e.posMax=p,!0}const yx=/^([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])?)*)$/,vx=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Ex(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=e.src.slice(r+1,n);if(vx.test(o)){const s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(yx.test(o)){const s=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function wx(e){return/^<a[>\s]/i.test(e)}function kx(e){return/^<\/a\s*>/i.test(e)}function Sx(e){const t=e|32;return t>=97&&t<=122}function Cx(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!Sx(i))return!1;const o=e.src.slice(r).match(tx);if(!o)return!1;if(!t){const s=e.push("html_inline","",0);s.content=o[0],wx(s.content)&&e.linkLevel++,kx(s.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const Ax=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Tx=/^&([a-z][a-z0-9]{1,31});/i;function Nx(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(Ax);if(o){if(!t){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0);a.content=ms(s)?sr(s):sr(65533),a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(Tx);if(o){const s=Vb(o[0]);if(s!==o[0]){if(!t){const a=e.push("text_special","",0);a.content=s,a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function Ia(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let s=0;s<n;s++){const a=e[s];if(o.push(0),(e[r].marker!==a.marker||i!==a.token-1)&&(r=s),i=a.token,a.length=a.length||0,!a.close)continue;t.hasOwnProperty(a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[a.marker][(a.open?3:0)+a.length%3];let c=r-o[r]-1,l=c;for(;c>u;c-=o[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let p=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(p=!0),!p){const g=c>0&&!e[c-1].open?o[c-1]+1:0;o[s]=s-c+g,o[c]=g,a.open=!1,d.end=s,d.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=l)}}function Rx(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ia(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ia(t[r].delimiters)}function Dx(e){let t,n,r=0;const i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const Di=[["text",ux],["linkify",lx],["newline",dx],["escape",fx],["backticks",px],["strikethrough",Ul.tokenize],["emphasis",zl.tokenize],["link",xx],["image",_x],["autolink",Ex],["html_inline",Cx],["entity",Nx]],Oi=[["balance_pairs",Rx],["strikethrough",Ul.postProcess],["emphasis",zl.postProcess],["fragments_join",Dx]];function mr(){this.ruler=new _t;for(let e=0;e<Di.length;e++)this.ruler.push(Di[e][0],Di[e][1]);this.ruler2=new _t;for(let e=0;e<Oi.length;e++)this.ruler2.push(Oi[e][0],Oi[e][1])}mr.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let s=!1;if(e.level<i){for(let a=0;a<r;a++)if(e.level++,s=n[a](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,o[t]=e.pos};mr.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let s=!1;if(e.level<i){for(let a=0;a<n;a++)if(s=t[a](e,!1),s){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};mr.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),s=o.length;for(let a=0;a<s;a++)o[a](i)};mr.prototype.State=hr;function Ox(e){const t={};e=e||{},t.src_Any=Al.source,t.src_Cc=Tl.source,t.src_Z=Rl.source,t.src_P=gs.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 Wo(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function di(e){return Object.prototype.toString.call(e)}function $x(e){return di(e)==="[object String]"}function Ix(e){return di(e)==="[object Object]"}function Mx(e){return di(e)==="[object RegExp]"}function Ma(e){return di(e)==="[object Function]"}function Lx(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ql={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Fx(e){return Object.keys(e||{}).reduce(function(t,n){return t||ql.hasOwnProperty(n)},!1)}const Px={"http:":{validate:function(e,t,n){const r=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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=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(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=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(r)?r.match(n.re.mailto)[0].length:0}}},Bx="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]",Ux="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function zx(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function La(){return function(e,t){t.normalize(e)}}function Zr(e){const t=e.re=Ox(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Bx),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(a,u){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+u)}Object.keys(e.__schemas__).forEach(function(a){const u=e.__schemas__[a];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[a]=c,Ix(u)){Mx(u.validate)?c.validate=zx(u.validate):Ma(u.validate)?c.validate=u.validate:o(a,u),Ma(u.normalize)?c.normalize=u.normalize:u.normalize?o(a,u):c.normalize=La();return}if($x(u)){i.push(a);return}o(a,u)}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:La()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Lx).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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 Hl(e,t,n,r){const i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function wt(e,t){if(!(this instanceof wt))return new wt(e,t);t||Fx(e)&&(t=e,e={}),this.__opts__=Wo({},ql,t),this.__schemas__=Wo({},Px,e),this.__compiled__={},this.__tlds__=Ux,this.__tlds_replaced__=!1,this.re={},Zr(this)}wt.prototype.add=function(t,n){return this.__schemas__[t]=n,Zr(this),this};wt.prototype.set=function(t){return this.__opts__=Wo(this.__opts__,t),this};wt.prototype.test=function(t){if(!t.length)return!1;let n,r;if(this.re.schema_test.test(t)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(t))!==null;)if(this.testSchemaAt(t,n[2],r.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)};wt.prototype.pretest=function(t){return this.re.pretest.test(t)};wt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};wt.prototype.match=function(t){const n=[],r=[],i=[],o=[];let s,a,u;function c(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(u=this.re.schema_search,u.lastIndex=0;(s=u.exec(t))!==null;)a=this.testSchemaAt(t,s[2],u.lastIndex),a&&r.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+a});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(u=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,u.lastIndex=0;(s=u.exec(t))!==null;)i.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(u=this.re.email_fuzzy_global,u.lastIndex=0;(s=u.exec(t))!==null;)o.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const l=[0,0,0];let d=0;for(;;){const p=[r[l[0]],o[l[1]],i[l[2]]],g=c(c(p[0],p[1]),p[2]);if(!g)break;if(g===p[0]?l[0]++:g===p[1]?l[1]++:l[2]++,g.index<d)continue;const f=new Hl(t,g.schema,g.index,g.lastIndex);this.__compiled__[f.schema].normalize(f,this),n.push(f),d=g.lastIndex}return n.length?n:null};wt.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);if(!r)return null;const i=new Hl(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[i.schema].normalize(i,this),i};wt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Zr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Zr(this),this)};wt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};wt.prototype.onCompile=function(){};const Mn=2147483647,Mt=36,_s=1,lr=26,qx=38,Hx=700,jl=72,Kl=128,Gl="-",jx=/^xn--/,Kx=/[^\0-\x7F]/,Gx=/[\x2E\u3002\uFF0E\uFF61]/g,Wx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$i=Mt-_s,Lt=Math.floor,Ii=String.fromCharCode;function on(e){throw new RangeError(Wx[e])}function Vx(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Wl(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Gx,".");const i=e.split("."),o=Vx(i,t).join(".");return r+o}function Vl(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const Zx=e=>String.fromCodePoint(...e),Yx=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Mt},Fa=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Zl=function(e,t,n){let r=0;for(e=n?Lt(e/Hx):e>>1,e+=Lt(e/t);e>$i*lr>>1;r+=Mt)e=Lt(e/$i);return Lt(r+($i+1)*e/(e+qx))},Yl=function(e){const t=[],n=e.length;let r=0,i=Kl,o=jl,s=e.lastIndexOf(Gl);s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&on("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const u=r;for(let l=1,d=Mt;;d+=Mt){a>=n&&on("invalid-input");const p=Yx(e.charCodeAt(a++));p>=Mt&&on("invalid-input"),p>Lt((Mn-r)/l)&&on("overflow"),r+=p*l;const g=d<=o?_s:d>=o+lr?lr:d-o;if(p<g)break;const f=Mt-g;l>Lt(Mn/f)&&on("overflow"),l*=f}const c=t.length+1;o=Zl(r-u,c,u==0),Lt(r/c)>Mn-i&&on("overflow"),i+=Lt(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Xl=function(e){const t=[];e=Vl(e);const n=e.length;let r=Kl,i=0,o=jl;for(const u of e)u<128&&t.push(Ii(u));const s=t.length;let a=s;for(s&&t.push(Gl);a<n;){let u=Mn;for(const l of e)l>=r&&l<u&&(u=l);const c=a+1;u-r>Lt((Mn-i)/c)&&on("overflow"),i+=(u-r)*c,r=u;for(const l of e)if(l<r&&++i>Mn&&on("overflow"),l===r){let d=i;for(let p=Mt;;p+=Mt){const g=p<=o?_s:p>=o+lr?lr:p-o;if(d<g)break;const f=d-g,h=Mt-g;t.push(Ii(Fa(g+f%h,0))),d=Lt(f/h)}t.push(Ii(Fa(d,0))),o=Zl(i,c,a===s),i=0,++a}++i,++r}return t.join("")},Xx=function(e){return Wl(e,function(t){return jx.test(t)?Yl(t.slice(4).toLowerCase()):t})},Qx=function(e){return Wl(e,function(t){return Kx.test(t)?"xn--"+Xl(t):t})},Ql={version:"2.3.1",ucs2:{decode:Vl,encode:Zx},decode:Yl,encode:Xl,toASCII:Qx,toUnicode:Xx},Jx={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},e_={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"]}}},t_={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"]}}},n_={default:Jx,zero:e_,commonmark:t_},r_=/^(vbscript|javascript|file|data):/,i_=/^data:image\/(gif|png|jpeg|webp);/;function o_(e){const t=e.trim().toLowerCase();return r_.test(t)?i_.test(t):!0}const Jl=["http:","https:","mailto:"];function s_(e){const t=ps(e,!0);if(t.hostname&&(!t.protocol||Jl.indexOf(t.protocol)>=0))try{t.hostname=Ql.toASCII(t.hostname)}catch{}return gr(fs(t))}function a_(e){const t=ps(e,!0);if(t.hostname&&(!t.protocol||Jl.indexOf(t.protocol)>=0))try{t.hostname=Ql.toUnicode(t.hostname)}catch{}return Ln(fs(t),Ln.defaultChars+"%")}function kt(e,t){if(!(this instanceof kt))return new kt(e,t);t||hs(e)||(t=e||{},e="default"),this.inline=new mr,this.block=new li,this.core=new bs,this.renderer=new zn,this.linkify=new wt,this.validateLink=o_,this.normalizeLink=s_,this.normalizeLinkText=a_,this.utils=l1,this.helpers=ai({},g1),this.options={},this.configure(e),t&&this.set(t)}kt.prototype.set=function(e){return ai(this.options,e),this};kt.prototype.configure=function(e){const t=this;if(hs(e)){const n=e;if(e=n_[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};kt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};kt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};kt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};kt.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};kt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};kt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};kt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Mi,Pa;function u_(){if(Pa)return Mi;Pa=1;var e=!0,t=!1,n=!1;Mi=function(h,b){b&&(e=!b.enabled,t=!!b.label,n=!!b.labelAfter),h.core.ruler.after("inline","github-task-lists",function(v){for(var x=v.tokens,E=2;E<x.length;E++)o(x,E)&&(s(x[E],v.Token),r(x[E-2],"class","task-list-item"+(e?"":" enabled")),r(x[i(x,E-2)],"class","contains-task-list"))})};function r(h,b,v){var x=h.attrIndex(b),E=[b,v];x<0?h.attrPush(E):h.attrs[x]=E}function i(h,b){for(var v=h[b].level-1,x=b-1;x>=0;x--)if(h[x].level===v)return x;return-1}function o(h,b){return d(h[b])&&p(h[b-1])&&g(h[b-2])&&f(h[b])}function s(h,b){if(h.children.unshift(a(h,b)),h.children[1].content=h.children[1].content.slice(3),h.content=h.content.slice(3),t)if(n){h.children.pop();var v="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);h.children[0].content=h.children[0].content.slice(0,-1)+' id="'+v+'">',h.children.push(l(h.content,v,b))}else h.children.unshift(u(b)),h.children.push(c(b))}function a(h,b){var v=new b("html_inline","",0),x=e?' disabled="" ':"";return h.content.indexOf("[ ] ")===0?v.content='<input class="task-list-item-checkbox"'+x+'type="checkbox">':(h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0)&&(v.content='<input class="task-list-item-checkbox" checked=""'+x+'type="checkbox">'),v}function u(h){var b=new h("html_inline","",0);return b.content="<label>",b}function c(h){var b=new h("html_inline","",0);return b.content="</label>",b}function l(h,b,v){var x=new v("html_inline","",0);return x.content='<label class="task-list-item-label" for="'+b+'">'+h+"</label>",x.attrs=[{for:b}],x}function d(h){return h.type==="inline"}function p(h){return h.type==="paragraph_open"}function g(h){return h.type==="list_item_open"}function f(h){return h.content.indexOf("[ ] ")===0||h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0}return Mi}var c_=u_();const l_=ri(c_);var Li,Ba;function d_(){if(Ba)return Li;Ba=1;function e(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(U=>{const J=k[U],we=typeof J;(we==="object"||we==="function")&&!Object.isFrozen(J)&&e(J)}),k}class t{constructor(U){U.data===void 0&&(U.data={}),this.data=U.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(k){return k.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(k,...U){const J=Object.create(null);for(const we in k)J[we]=k[we];return U.forEach(function(we){for(const Je in we)J[Je]=we[Je]}),J}const i="</span>",o=k=>!!k.scope,s=(k,{prefix:U})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const J=k.split(".");return[`${U}${J.shift()}`,...J.map((we,Je)=>`${we}${"_".repeat(Je+1)}`)].join(" ")}return`${U}${k}`};class a{constructor(U,J){this.buffer="",this.classPrefix=J.classPrefix,U.walk(this)}addText(U){this.buffer+=n(U)}openNode(U){if(!o(U))return;const J=s(U.scope,{prefix:this.classPrefix});this.span(J)}closeNode(U){o(U)&&(this.buffer+=i)}value(){return this.buffer}span(U){this.buffer+=`<span class="${U}">`}}const u=(k={})=>{const U={children:[]};return Object.assign(U,k),U};class c{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(U){this.top.children.push(U)}openNode(U){const J=u({scope:U});this.add(J),this.stack.push(J)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(U){return this.constructor._walk(U,this.rootNode)}static _walk(U,J){return typeof J=="string"?U.addText(J):J.children&&(U.openNode(J),J.children.forEach(we=>this._walk(U,we)),U.closeNode(J)),U}static _collapse(U){typeof U!="string"&&U.children&&(U.children.every(J=>typeof J=="string")?U.children=[U.children.join("")]:U.children.forEach(J=>{c._collapse(J)}))}}class l extends c{constructor(U){super(),this.options=U}addText(U){U!==""&&this.add(U)}startScope(U){this.openNode(U)}endScope(){this.closeNode()}__addSublanguage(U,J){const we=U.root;J&&(we.scope=`language:${J}`),this.add(we)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(k){return k?typeof k=="string"?k:k.source:null}function p(k){return h("(?=",k,")")}function g(k){return h("(?:",k,")*")}function f(k){return h("(?:",k,")?")}function h(...k){return k.map(J=>d(J)).join("")}function b(k){const U=k[k.length-1];return typeof U=="object"&&U.constructor===Object?(k.splice(k.length-1,1),U):{}}function v(...k){return"("+(b(k).capture?"":"?:")+k.map(we=>d(we)).join("|")+")"}function x(k){return new RegExp(k.toString()+"|").exec("").length-1}function E(k,U){const J=k&&k.exec(U);return J&&J.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(k,{joinWith:U}){let J=0;return k.map(we=>{J+=1;const Je=J;let et=d(we),ce="";for(;et.length>0;){const se=w.exec(et);if(!se){ce+=et;break}ce+=et.substring(0,se.index),et=et.substring(se.index+se[0].length),se[0][0]==="\\"&&se[1]?ce+="\\"+String(Number(se[1])+Je):(ce+=se[0],se[0]==="("&&J++)}return ce}).map(we=>`(${we})`).join(U)}const O=/\b\B/,$="[a-zA-Z]\\w*",A="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",z=(k={})=>{const U=/^#![ ]*\//;return k.binary&&(k.begin=h(U,/.*\b/,k.binary,/\b.*/)),r({scope:"meta",begin:U,end:/$/,relevance:0,"on:begin":(J,we)=>{J.index!==0&&we.ignoreMatch()}},k)},B={begin:"\\\\[\\s\\S]",relevance:0},T={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},X={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},pe=function(k,U,J={}){const we=r({scope:"comment",begin:k,end:U,contains:[]},J);we.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Je=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return we.contains.push({begin:h(/[ ]+/,"(",Je,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),we},Q=pe("//","$"),L=pe("/\\*","\\*/"),ne=pe("#","$"),H={scope:"number",begin:M,relevance:0},S={scope:"number",begin:j,relevance:0},R={scope:"number",begin:F,relevance:0},q={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]},W={scope:"title",begin:$,relevance:0},ie={scope:"title",begin:A,relevance:0},he={begin:"\\.\\s*"+A,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:T,BACKSLASH_ESCAPE:B,BINARY_NUMBER_MODE:R,BINARY_NUMBER_RE:F,COMMENT:pe,C_BLOCK_COMMENT_MODE:L,C_LINE_COMMENT_MODE:Q,C_NUMBER_MODE:S,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(U,J)=>{J.data._beginMatch=U[1]},"on:end":(U,J)=>{J.data._beginMatch!==U[1]&&J.ignoreMatch()}})},HASH_COMMENT_MODE:ne,IDENT_RE:$,MATCH_NOTHING_RE:O,METHOD_GUARD:he,NUMBER_MODE:H,NUMBER_RE:M,PHRASAL_WORDS_MODE:X,QUOTE_STRING_MODE:D,REGEXP_MODE:q,RE_STARTERS_RE:P,SHEBANG:z,TITLE_MODE:W,UNDERSCORE_IDENT_RE:A,UNDERSCORE_TITLE_MODE:ie});function Oe(k,U){k.input[k.index-1]==="."&&U.ignoreMatch()}function Ce(k,U){k.className!==void 0&&(k.scope=k.className,delete k.className)}function Ye(k,U){U&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=Oe,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function st(k,U){Array.isArray(k.illegal)&&(k.illegal=v(...k.illegal))}function vt(k,U){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function dn(k,U){k.relevance===void 0&&(k.relevance=1)}const fn=(k,U)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const J=Object.assign({},k);Object.keys(k).forEach(we=>{delete k[we]}),k.keywords=J.keywords,k.begin=h(J.beforeMatch,p(J.begin)),k.starts={relevance:0,contains:[Object.assign(J,{endsParent:!0})]},k.relevance=0,delete J.beforeMatch},wn=["of","and","for","in","not","or","if","then","parent","list","value"],qn="keyword";function kn(k,U,J=qn){const we=Object.create(null);return typeof k=="string"?Je(J,k.split(" ")):Array.isArray(k)?Je(J,k):Object.keys(k).forEach(function(et){Object.assign(we,kn(k[et],U,et))}),we;function Je(et,ce){U&&(ce=ce.map(se=>se.toLowerCase())),ce.forEach(function(se){const ye=se.split("|");we[ye[0]]=[et,pn(ye[0],ye[1])]})}}function pn(k,U){return U?Number(U):Hn(k)?0:1}function Hn(k){return wn.includes(k.toLowerCase())}const Sn={},St=k=>{console.error(k)},K=(k,...U)=>{console.log(`WARN: ${k}`,...U)},V=(k,U)=>{Sn[`${k}/${U}`]||(console.log(`Deprecated as of ${k}. ${U}`),Sn[`${k}/${U}`]=!0)},ae=new Error;function be(k,U,{key:J}){let we=0;const Je=k[J],et={},ce={};for(let se=1;se<=U.length;se++)ce[se+we]=Je[se],et[se+we]=!0,we+=x(U[se-1]);k[J]=ce,k[J]._emit=et,k[J]._multi=!0}function Re(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw St("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof k.beginScope!="object"||k.beginScope===null)throw St("beginScope must be object"),ae;be(k,k.begin,{key:"beginScope"}),k.begin=C(k.begin,{joinWith:""})}}function at(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw St("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof k.endScope!="object"||k.endScope===null)throw St("endScope must be object"),ae;be(k,k.end,{key:"endScope"}),k.end=C(k.end,{joinWith:""})}}function De(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function He(k){De(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),Re(k),at(k)}function je(k){function U(ce,se){return new RegExp(d(ce),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(se?"g":""))}class J{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(se,ye){ye.position=this.position++,this.matchIndexes[this.matchAt]=ye,this.regexes.push([ye,se]),this.matchAt+=x(se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const se=this.regexes.map(ye=>ye[1]);this.matcherRe=U(C(se,{joinWith:"|"}),!0),this.lastIndex=0}exec(se){this.matcherRe.lastIndex=this.lastIndex;const ye=this.matcherRe.exec(se);if(!ye)return null;const ut=ye.findIndex((jn,fi)=>fi>0&&jn!==void 0),tt=this.matchIndexes[ut];return ye.splice(0,ut),Object.assign(ye,tt)}}class we{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(se){if(this.multiRegexes[se])return this.multiRegexes[se];const ye=new J;return this.rules.slice(se).forEach(([ut,tt])=>ye.addRule(ut,tt)),ye.compile(),this.multiRegexes[se]=ye,ye}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(se,ye){this.rules.push([se,ye]),ye.type==="begin"&&this.count++}exec(se){const ye=this.getMatcher(this.regexIndex);ye.lastIndex=this.lastIndex;let ut=ye.exec(se);if(this.resumingScanAtSamePosition()&&!(ut&&ut.index===this.lastIndex)){const tt=this.getMatcher(0);tt.lastIndex=this.lastIndex+1,ut=tt.exec(se)}return ut&&(this.regexIndex+=ut.position+1,this.regexIndex===this.count&&this.considerAll()),ut}}function Je(ce){const se=new we;return ce.contains.forEach(ye=>se.addRule(ye.begin,{rule:ye,type:"begin"})),ce.terminatorEnd&&se.addRule(ce.terminatorEnd,{type:"end"}),ce.illegal&&se.addRule(ce.illegal,{type:"illegal"}),se}function et(ce,se){const ye=ce;if(ce.isCompiled)return ye;[Ce,vt,He,fn].forEach(tt=>tt(ce,se)),k.compilerExtensions.forEach(tt=>tt(ce,se)),ce.__beforeBegin=null,[Ye,st,dn].forEach(tt=>tt(ce,se)),ce.isCompiled=!0;let ut=null;return typeof ce.keywords=="object"&&ce.keywords.$pattern&&(ce.keywords=Object.assign({},ce.keywords),ut=ce.keywords.$pattern,delete ce.keywords.$pattern),ut=ut||/\w+/,ce.keywords&&(ce.keywords=kn(ce.keywords,k.case_insensitive)),ye.keywordPatternRe=U(ut,!0),se&&(ce.begin||(ce.begin=/\B|\b/),ye.beginRe=U(ye.begin),!ce.end&&!ce.endsWithParent&&(ce.end=/\B|\b/),ce.end&&(ye.endRe=U(ye.end)),ye.terminatorEnd=d(ye.end)||"",ce.endsWithParent&&se.terminatorEnd&&(ye.terminatorEnd+=(ce.end?"|":"")+se.terminatorEnd)),ce.illegal&&(ye.illegalRe=U(ce.illegal)),ce.contains||(ce.contains=[]),ce.contains=[].concat(...ce.contains.map(function(tt){return xt(tt==="self"?ce:tt)})),ce.contains.forEach(function(tt){et(tt,ye)}),ce.starts&&et(ce.starts,se),ye.matcher=Je(ye),ye}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=r(k.classNameAliases||{}),et(k)}function dt(k){return k?k.endsWithParent||dt(k.starts):!1}function xt(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(U){return r(k,{variants:null},U)})),k.cachedVariants?k.cachedVariants:dt(k)?r(k,{starts:k.starts?r(k.starts):null}):Object.isFrozen(k)?r(k):k}var zt="11.11.1";class qt extends Error{constructor(U,J){super(U),this.name="HTMLInjectionError",this.html=J}}const Ct=n,gn=r,Pe=Symbol("nomatch"),Cn=7,Qt=function(k){const U=Object.create(null),J=Object.create(null),we=[];let Je=!0;const et="Could not find the language '{}', did you forget to load/include a language module?",ce={disableAutodetect:!0,name:"Plain text",contains:[]};let se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:l};function ye(Y){return se.noHighlightRe.test(Y)}function ut(Y){let me=Y.className+" ";me+=Y.parentNode?Y.parentNode.className:"";const $e=se.languageDetectRe.exec(me);if($e){const Ge=en($e[1]);return Ge||(K(et.replace("{}",$e[1])),K("Falling back to no-highlight mode for this block.",Y)),Ge?$e[1]:"no-highlight"}return me.split(/\s+/).find(Ge=>ye(Ge)||en(Ge))}function tt(Y,me,$e){let Ge="",rt="";typeof me=="object"?(Ge=Y,$e=me.ignoreIllegals,rt=me.language):(V("10.7.0","highlight(lang, code, ...args) has been deprecated."),V("10.7.0",`Please use highlight(code, options) instead.
|
|
28
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),rt=Y,Ge=me),$e===void 0&&($e=!0);const At={code:Ge,language:rt};xr("before:highlight",At);const tn=At.result?At.result:jn(At.language,At.code,$e);return tn.code=At.code,xr("after:highlight",tn),tn}function jn(Y,me,$e,Ge){const rt=Object.create(null);function At(ee,le){return ee.keywords[le]}function tn(){if(!Se.keywords){ft.addText(We);return}let ee=0;Se.keywordPatternRe.lastIndex=0;let le=Se.keywordPatternRe.exec(We),Te="";for(;le;){Te+=We.substring(ee,le.index);const
|
|
29
|
-
`,1;if(mi>1e5&&mi>le.index*3)throw new Error("potential infinite loop, way more iterations than matches");return We+=Te,Te.length}const Ot=en(Y);if(!Ot)throw St(et.replace("{}",Y)),new Error('Unknown language: "'+Y+'"');const Rd=je(Ot);let hi="",Se=Ge||Rd;const Ns={},ft=new se.__emitter(se);Nd();let We="",vr=0,hn=0,mi=0,bi=!1;try{if(Ot.__emitTokens)Ot.__emitTokens(me,ft);else{for(Se.matcher.considerAll();;){mi++,bi?bi=!1:Se.matcher.considerAll(),Se.matcher.lastIndex=hn;const ee=Se.matcher.exec(me);if(!ee)break;const le=me.substring(hn,ee.index),Te=Ts(le,ee);hn=ee.index+Te}Ts(me.substring(hn))}return ft.finalize(),hi=ft.toHTML(),{language:Y,value:hi,relevance:vr,illegal:!1,_emitter:ft,_top:Se}}catch(ee){if(ee.message&&ee.message.includes("Illegal"))return{language:Y,value:Ct(me),illegal:!0,relevance:0,_illegalBy:{message:ee.message,index:hn,context:me.slice(hn-100,hn+100),mode:ee.mode,resultSoFar:hi},_emitter:ft};if(Je)return{language:Y,value:Ct(me),illegal:!1,relevance:0,errorRaised:ee,_emitter:ft,_top:Se};throw ee}}function fi(Y){const me={value:Ct(Y),illegal:!1,relevance:0,_top:ce,_emitter:new se.__emitter(se)};return me._emitter.addText(Y),me}function pi(Y,me){me=me||se.languages||Object.keys(U);const $e=fi(Y),Ge=me.filter(en).filter(ks).map(Et=>jn(Et,Y,!1));Ge.unshift($e);const rt=Ge.sort((Et,Dt)=>{if(Et.relevance!==Dt.relevance)return Dt.relevance-Et.relevance;if(Et.language&&Dt.language){if(en(Et.language).supersetOf===Dt.language)return 1;if(en(Dt.language).supersetOf===Et.language)return-1}return 0}),[At,tn]=rt,_r=At;return _r.secondBest=tn,_r}function hd(Y,me,$e){const Ge=me&&J[me]||$e;Y.classList.add("hljs"),Y.classList.add(`language-${Ge}`)}function gi(Y){let me=null;const $e=ut(Y);if(ye($e))return;if(xr("before:highlightElement",{el:Y,language:$e}),Y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Y);return}if(Y.children.length>0&&(se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Y)),se.throwUnescapedHTML))throw new qt("One of your code blocks includes unescaped HTML.",Y.innerHTML);me=Y;const Ge=me.textContent,rt=$e?tt(Ge,{language:$e,ignoreIllegals:!0}):pi(Ge);Y.innerHTML=rt.value,Y.dataset.highlighted="yes",hd(Y,$e,rt.language),Y.result={language:rt.language,re:rt.relevance,relevance:rt.relevance},rt.secondBest&&(Y.secondBest={language:rt.secondBest.language,relevance:rt.secondBest.relevance}),xr("after:highlightElement",{el:Y,result:rt,text:Ge})}function md(Y){se=gn(se,Y)}const bd=()=>{br(),V("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function xd(){br(),V("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Es=!1;function br(){function Y(){br()}if(document.readyState==="loading"){Es||window.addEventListener("DOMContentLoaded",Y,!1),Es=!0;return}document.querySelectorAll(se.cssSelector).forEach(gi)}function _d(Y,me){let $e=null;try{$e=me(k)}catch(Ge){if(St("Language definition for '{}' could not be registered.".replace("{}",Y)),Je)St(Ge);else throw Ge;$e=ce}$e.name||($e.name=Y),U[Y]=$e,$e.rawDefinition=me.bind(null,k),$e.aliases&&ws($e.aliases,{languageName:Y})}function yd(Y){delete U[Y];for(const me of Object.keys(J))J[me]===Y&&delete J[me]}function vd(){return Object.keys(U)}function en(Y){return Y=(Y||"").toLowerCase(),U[Y]||U[J[Y]]}function ws(Y,{languageName:me}){typeof Y=="string"&&(Y=[Y]),Y.forEach($e=>{J[$e.toLowerCase()]=me})}function ks(Y){const me=en(Y);return me&&!me.disableAutodetect}function Ed(Y){Y["before:highlightBlock"]&&!Y["before:highlightElement"]&&(Y["before:highlightElement"]=me=>{Y["before:highlightBlock"](Object.assign({block:me.el},me))}),Y["after:highlightBlock"]&&!Y["after:highlightElement"]&&(Y["after:highlightElement"]=me=>{Y["after:highlightBlock"](Object.assign({block:me.el},me))})}function wd(Y){Ed(Y),we.push(Y)}function kd(Y){const me=we.indexOf(Y);me!==-1&&we.splice(me,1)}function xr(Y,me){const $e=Y;we.forEach(function(Ge){Ge[$e]&&Ge[$e](me)})}function Sd(Y){return V("10.7.0","highlightBlock will be removed entirely in v12.0"),V("10.7.0","Please use highlightElement now."),gi(Y)}Object.assign(k,{highlight:tt,highlightAuto:pi,highlightAll:br,highlightElement:gi,highlightBlock:Sd,configure:md,initHighlighting:bd,initHighlightingOnLoad:xd,registerLanguage:_d,unregisterLanguage:yd,listLanguages:vd,getLanguage:en,registerAliases:ws,autoDetection:ks,inherit:gn,addPlugin:wd,removePlugin:kd}),k.debugMode=function(){Je=!1},k.safeMode=function(){Je=!0},k.versionString=zt,k.regex={concat:h,lookahead:p,either:v,optional:f,anyNumberOfTimes:g};for(const Y in ke)typeof ke[Y]=="object"&&e(ke[Y]);return Object.assign(k,ke),k},Jt=Qt({});return Jt.newInstance=()=>Qt({}),Li=Jt,Jt.HighlightJS=Jt,Jt.default=Jt,Li}var Fi,Ua;function f_(){if(Ua)return Fi;Ua=1;function e(t){const n=t.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(s,{begin:/\(/,end:/\)/}),u=t.inherit(t.APOS_STRING_MODE,{className:"string"}),c=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,c,u,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,c,u]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:l}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Fi=e,Fi}var Pi,za;function p_(){if(za)return Pi;za=1;function e(t){const n=t.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,o]};o.contains.push(u);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},g=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=t.SHEBANG({binary:`(${g.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],x={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],w=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:v,built_in:[...E,...w,"set","shopt",...C,...O]},contains:[f,t.SHEBANG(),h,p,s,a,x,u,c,l,d,r]}}return Pi=e,Pi}var Bi,qa;function g_(){if(qa)return Bi;qa=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="("+i+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(o)+t.IDENT_RE,relevance:0},f=n.optional(o)+t.IDENT_RE+"\\s*\\(",v={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[p,u,r,t.C_BLOCK_COMMENT_MODE,d,l],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:x.concat([{begin:/\(/,end:/\)/,keywords:v,contains:x.concat(["self"]),relevance:0}]),relevance:0},w={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:v,relevance:0},{begin:f,returnBegin:!0,contains:[t.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,d,u,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,d,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:v,disableAutodetect:!0,illegal:"</",contains:[].concat(E,w,x,[p,{begin:t.IDENT_RE+"::",keywords:v},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:p,strings:l,keywords:v}}}return Bi=e,Bi}var Ui,Ha;function h_(){if(Ha)return Ui;Ha=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="(?!struct)("+i+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(o)+t.IDENT_RE,relevance:0},f=n.optional(o)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],v=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:v},O={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},$=[O,p,u,r,t.C_BLOCK_COMMENT_MODE,d,l],A={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:$.concat([{begin:/\(/,end:/\)/,keywords:C,contains:$.concat(["self"]),relevance:0}]),relevance:0},M={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:f,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,d,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,d,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(A,M,O,$,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",u]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Ui=e,Ui}var zi,ja;function m_(){if(ja)return zi;ja=1;function e(t){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:o.concat(s),built_in:n,literal:i},u=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=t.inherit(d,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=t.inherit(g,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,f]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},v=t.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});g.contains=[b,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.C_BLOCK_COMMENT_MODE],f.contains=[v,h,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[l,b,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},w=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+w+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[x,c,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},C]}}return zi=e,zi}var qi,Ka;function b_(){if(Ka)return qi;Ka=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u(c){const l=c.regex,d=e(c),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",f=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",b=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,p,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...b,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...b,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...b,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return qi=u,qi}var Hi,Ga;function x_(){if(Ga)return Hi;Ga=1;function e(t){const n=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=t.inherit(l,{contains:[]}),g=t.inherit(d,{contains:[]});l.contains.push(g),d.contains.push(p);let f=[r,c];return[l,d,p,g].forEach(x=>{x.contains=x.contains.concat(f)}),f=f.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},r,s,l,d,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},o,i,c,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Hi=e,Hi}var ji,Wa;function __(){if(Wa)return ji;Wa=1;function e(t){const n=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return ji=e,ji}var Ki,Va;function y_(){if(Va)return Ki;Va=1;function e(t){const n=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=n.concat(i,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[u]}),t.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:a},p={className:"string",contains:[t.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,d]})]}]},g="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},$=[p,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:a},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:r}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);d.contains=$,b.contains=$;const F=[{begin:/^\s*=>/,starts:{end:"$",contains:$}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:$}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(F).concat(l).concat($)}}return Ki=e,Ki}var Gi,Za;function v_(){if(Za)return Gi;Za=1;function e(t){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}return Gi=e,Gi}var Wi,Ya;function E_(){if(Ya)return Wi;Ya=1;function e(t){const n=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(r,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Wi=e,Wi}var Vi,Xa;function w_(){if(Xa)return Vi;Xa=1;function e(t){const n=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},i=t.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[i,s,o,a,r,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,p=n.either(c,l,d),g=n.concat(p,"(\\s*\\.\\s*",p,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[i,u,s,o,a,r]}}]}}return Vi=e,Vi}var Zi,Qa;function k_(){if(Qa)return Zi;Qa=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(s,a,u){return u===-1?"":s.replace(a,c=>i(s,a,u-1))}function o(s){const a=s.regex,u="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=u+i("(?:<"+u+"~~~(?:\\s*,\\s*"+u+"~~~)*>)?",/~~~/g,2),f={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+u,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,u],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,u),/\s+/,u,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,u],className:{1:"keyword",3:"title.class"},contains:[b,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+c+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[h,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,r,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},r,h]}}return Zi=o,Zi}var Yi,Ja;function S_(){if(Ja)return Yi;Ja=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(o,r,i);function u(c){const l=c.regex,d=(ie,{after:he})=>{const de="</"+ie[0].slice(1);return ie.input.indexOf(de,he)!==-1},p=e,g={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,he)=>{const de=ie[0].length+ie.index,ke=ie.input[de];if(ke==="<"||ke===","){he.ignoreMatch();return}ke===">"&&(d(ie,{after:de})||he.ignoreMatch());let Oe;const Ce=ie.input.substring(de);if(Oe=Ce.match(/^\s*=/)){he.ignoreMatch();return}if((Oe=Ce.match(/^\s+extends\s+/))&&Oe.index===0){he.ignoreMatch();return}}},b={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},v="[0-9](_?[0-9])*",x=`\\.(${v})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${E})((${x})|\\.)?|(${x}))[eE][+-]?(${v})\\b`},{begin:`\\b(${E})\\b((${x})\\b|\\.)?|(${x})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},O={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},$={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,C],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,C]},F={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},P=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,$,A,M,{match:/\$\d+/},w];C.contains=P.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(P)});const z=[].concat(F,C.contains),B=z.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(z)}]),T={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:B},D={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,l.concat(p,"(",l.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Q={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(ie){return l.concat("(?!",ie.join("|"),")")}const H={match:l.concat(/\b/,ne([...o,"super","import"].map(ie=>`${ie}\\s*\\(`)),p,l.lookahead(/\s*\(/)),className:"title.function",relevance:0},S={begin:l.concat(/\./,l.lookahead(l.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},R={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:B,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,$,A,M,F,{match:/\$\d+/},w,X,{scope:"attr",match:p+l.lookahead(":"),relevance:0},W,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,c.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:B}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:f},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},Q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,c.inherit(c.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},S,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},H,L,D,R,{match:/\$[(.]/}]}}return Yi=u,Yi}var Xi,eu;function C_(){if(eu)return Xi;eu=1;function e(t){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],o={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[n,r,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Xi=e,Xi}var Qi,tu;function A_(){if(tu)return Qi;tu=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(o){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},u={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,c]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,l,c]}]};c.contains.push(d);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(d,{className:"string"}),"self"]}]},f=r,h=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},v=b;return v.variants[1].contains=[b],b.variants[1].contains=[v],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,h,a,u,p,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,o.C_LINE_COMMENT_MODE,h],relevance:0},o.C_LINE_COMMENT_MODE,h,p,g,d,o.C_NUMBER_MODE]},h]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,g]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
30
|
-
`},f]}}return Qi=i,Qi}var Ji,nu;function T_(){if(nu)return Ji;nu=1;const e=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),u=o.concat(s).sort().reverse();function c(l){const d=e(l),p=u,g="and or not only",f="[\\w-]+",h="("+f+"|@\\{"+f+"\\})",b=[],v=[],x=function(z){return{className:"string",begin:"~?"+z+".*?"+z}},E=function(z,B,T){return{className:z,begin:B,relevance:T}},w={$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},C={begin:"\\(",end:"\\)",contains:v,keywords:w,relevance:0};v.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,x("'"),x('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,C,E("variable","@@?"+f,10),E("variable","@\\{"+f+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const O=v.concat({begin:/\{/,end:/\}/,contains:b}),$={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(v)},A={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:v}}]},M={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:w,returnEnd:!0,contains:v,relevance:0}},j={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:O}},F={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,$,E("keyword","all\\b"),E("variable","@\\{"+f+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,E("selector-tag",h,0),E("selector-id","#"+h),E("selector-class","\\."+h,0),E("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:O},{begin:"!important"},d.FUNCTION_DISPATCH]},P={begin:f+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[F]};return b.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,M,j,P,A,F,$,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:b}}return Ji=c,Ji}var eo,ru;function N_(){if(ru)return eo;ru=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",i={begin:n,end:r,contains:["self"]},o=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[i],relevance:5}])}}return eo=e,eo}var to,iu;function R_(){if(iu)return to;iu=1;function e(t){const n={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n,r]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,n,r,i,o,s,a]}}return to=e,to}var no,ou;function D_(){if(ou)return no;ou=1;function e(t){const n=t.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},a={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[t.BACKSLASH_ESCAPE,s,c],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(b,v,x="\\1")=>{const E=x==="\\1"?x:n.concat(x,v);return n.concat(n.concat("(?:",b,")"),v,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,x,i)},f=(b,v,x)=>n.concat(n.concat("(?:",b,")"),v,/(?:\\.|[^\\\/])*?/,x,i),h=[c,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:g("s|tr|y",n.either(...p,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",n.either(...p,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,u,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=h,a.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:h}}return no=e,no}var ro,su;function O_(){if(su)return ro;su=1;function e(t){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,u={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,illegal:"</",contains:[n,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return ro=e,ro}var io,au;function $_(){if(au)return io;au=1;function e(t){const n=t.regex,r=/(?![A-Za-z0-9])(?![$])/,i=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),o=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s=n.concat(/[A-Z]+/,r),a={scope:"variable",match:"\\$+"+i},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=t.inherit(t.APOS_STRING_MODE,{illegal:null}),d=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(c)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(T,D)=>{D.data._beginMatch=T[1]||T[2]},"on:end":(T,D)=>{D.data._beginMatch!==T[1]&&D.ignoreMatch()}},g=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
|
|
31
|
-
]`,h={scope:"string",variants:[d,l,p,g]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],x=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:x,literal:(T=>{const D=[];return T.forEach(X=>{D.push(X),X.toLowerCase()===X?D.push(X.toUpperCase()):D.push(X.toLowerCase())}),D})(v),built_in:E},O=T=>T.map(D=>D.replace(/\|\d+$/,"")),$={variants:[{match:[/new/,n.concat(f,"+"),n.concat("(?!",O(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},A=n.concat(i,"\\b(?!\\()"),M={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,n.concat(/::/,n.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[o,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},j={scope:"attr",match:n.concat(i,n.lookahead(":"),n.lookahead(/(?!::)/))},F={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[j,a,M,t.C_BLOCK_COMMENT_MODE,h,b,$]},P={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",O(x).join("\\b|"),"|",O(E).join("\\b|"),"\\b)"),i,n.concat(f,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[F]};F.contains.push(P);const z=[j,M,t.C_BLOCK_COMMENT_MODE,h,b,$],B={begin:n.concat(/#\[\s*\\?/,n.either(o,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...z]},...z,{scope:"meta",variants:[{match:o},{match:s}]}]};return{case_insensitive:!1,keywords:C,contains:[B,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},a,P,M,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},$,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",B,a,M,t.C_BLOCK_COMMENT_MODE,h,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},h,b]}}return io=e,io}var oo,uu;function I_(){if(uu)return oo;uu=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return oo=e,oo}var so,cu;function M_(){if(cu)return so;cu=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return so=e,so}var ao,lu;function L_(){if(lu)return ao;lu=1;function e(t){const n=t.regex,r=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},d={begin:/\{\{/,relevance:0},p={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,l]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",f=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,h=`\\b|${i.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${f}))[eE][+-]?(${g})[jJ]?(?=${h})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${g})[jJ](?=${h})`}]},v={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",c,b,p,t.HASH_COMMENT_MODE]}]};return l.contains=[p,b,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[c,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,v,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,x,p]}]}}return ao=e,ao}var uo,du;function F_(){if(du)return uo;du=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return uo=e,uo}var co,fu;function P_(){if(fu)return co;fu=1;function e(t){const n=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return co=e,co}var lo,pu;function B_(){if(pu)return lo;pu=1;function e(t){const n=t.regex,r=/(r#)?/,i=n.concat(r,t.UNDERSCORE_IDENT_RE),o=n.concat(r,t.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,n.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",u=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:d,keyword:u,literal:c,built_in:l},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},s]}}return lo=e,lo}var fo,gu;function U_(){if(gu)return fo;gu=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u(c){const l=e(c),d=s,p=o,g="@[a-z-]+",f="and or not only",b={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+p.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+d.join("|")+")"},b,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[l.BLOCK_COMMENT,b,l.HEXCOLOR,l.CSS_NUMBER_MODE,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:g,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:i.join(" ")},contains:[{begin:g,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},b,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return fo=u,fo}var po,hu;function z_(){if(hu)return po;hu=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return po=e,po}var go,mu;function q_(){if(mu)return go;mu=1;function e(t){const n=t.regex,r=t.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=d,h=[...l,...c].filter(O=>!d.includes(O)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:n.concat(/\b/,n.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function E(O){return n.concat(/\b/,n.either(...O.map($=>$.replace(/\s+/,"\\s+"))),/\b/)}const w={scope:"keyword",match:E(g),relevance:0};function C(O,{exceptions:$,when:A}={}){const M=A;return $=$||[],O.map(j=>j.match(/\|\d+$/)||$.includes(j)?j:M(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(h,{when:O=>O.length<3}),literal:s,type:u,built_in:p},contains:[{scope:"type",match:E(a)},w,x,b,i,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,v]}}return go=e,go}var ho,bu;function H_(){if(bu)return ho;bu=1;function e(A){return A?typeof A=="string"?A:A.source:null}function t(A){return n("(?=",A,")")}function n(...A){return A.map(j=>e(j)).join("")}function r(A){const M=A[A.length-1];return typeof M=="object"&&M.constructor===Object?(A.splice(A.length-1,1),M):{}}function i(...A){return"("+(r(A).capture?"":"?:")+A.map(F=>e(F)).join("|")+")"}const o=A=>n(/\b/,A,/\w$/.test(A)?/\b/:/\B/),s=["Protocol","Type"].map(o),a=["init","self"].map(o),u=["Any","Self"],c=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],l=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],f=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),h=i(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=n(f,h,"*"),v=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),x=i(v,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=n(v,x,"*"),w=n(/[A-Z]/,x,"*"),C=["attached","autoclosure",n(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],O=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function $(A){const M={match:/\s+/,relevance:0},j=A.COMMENT("/\\*","\\*/",{contains:["self"]}),F=[A.C_LINE_COMMENT_MODE,j],P={match:[/\./,i(...s,...a)],className:{2:"keyword"}},z={match:n(/\./,i(...c)),relevance:0},B=c.filter(Pe=>typeof Pe=="string").concat(["_|0"]),T=c.filter(Pe=>typeof Pe!="string").concat(u).map(o),D={variants:[{className:"keyword",match:i(...T,...a)}]},X={$pattern:i(/\b\w+/,/#\w+/),keyword:B.concat(p),literal:l},pe=[P,z,D],Q={match:n(/\./,i(...g)),relevance:0},L={className:"built_in",match:n(/\b/,i(...g),/(?=\()/)},ne=[Q,L],H={match:/->/,relevance:0},S={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${h})+`}]},R=[H,S],q="([0-9]_*)+",W="([0-9a-fA-F]_*)+",ie={className:"number",relevance:0,variants:[{match:`\\b(${q})(\\.(${q}))?([eE][+-]?(${q}))?\\b`},{match:`\\b0x(${W})(\\.(${W}))?([pP][+-]?(${q}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},he=(Pe="")=>({className:"subst",variants:[{match:n(/\\/,Pe,/[0\\tnr"']/)},{match:n(/\\/,Pe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),de=(Pe="")=>({className:"subst",match:n(/\\/,Pe,/[\t ]*(?:[\r\n]|\r\n)/)}),ke=(Pe="")=>({className:"subst",label:"interpol",begin:n(/\\/,Pe,/\(/),end:/\)/}),Oe=(Pe="")=>({begin:n(Pe,/"""/),end:n(/"""/,Pe),contains:[he(Pe),de(Pe),ke(Pe)]}),Ce=(Pe="")=>({begin:n(Pe,/"/),end:n(/"/,Pe),contains:[he(Pe),ke(Pe)]}),Ye={className:"string",variants:[Oe(),Oe("#"),Oe("##"),Oe("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},st=[A.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[A.BACKSLASH_ESCAPE]}],vt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:st},dn=Pe=>{const Cn=n(Pe,/\//),Qt=n(/\//,Pe);return{begin:Cn,end:Qt,contains:[...st,{scope:"comment",begin:`#(?!.*${Qt})`,end:/$/}]}},fn={scope:"regexp",variants:[dn("###"),dn("##"),dn("#"),vt]},wn={match:n(/`/,E,/`/)},qn={className:"variable",match:/\$\d+/},kn={className:"variable",match:`\\$${x}+`},pn=[wn,qn,kn],Hn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:O,contains:[...R,ie,Ye]}]}},Sn={scope:"keyword",match:n(/@/,i(...C),t(i(/\(/,/\s+/)))},St={scope:"meta",match:n(/@/,E)},K=[Hn,Sn,St],V={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,"+")},{className:"type",match:w,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,t(w)),relevance:0}]},ae={begin:/</,end:/>/,keywords:X,contains:[...F,...pe,...K,H,V]};V.contains.push(ae);const be={match:n(E,/\s*:/),keywords:"_|0",relevance:0},Re={begin:/\(/,end:/\)/,relevance:0,keywords:X,contains:["self",be,...F,fn,...pe,...ne,...R,ie,Ye,...pn,...K,V]},at={begin:/</,end:/>/,keywords:"repeat each",contains:[...F,V]},De={begin:i(t(n(E,/\s*:/)),t(n(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},He={begin:/\(/,end:/\)/,keywords:X,contains:[De,...F,...pe,...R,ie,Ye,...K,V,Re],endsParent:!0,illegal:/["']/},je={match:[/(func|macro)/,/\s+/,i(wn.match,E,b)],className:{1:"keyword",3:"title.function"},contains:[at,He,M],illegal:[/\[/,/%/]},dt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[at,He,M],illegal:/\[|%/},xt={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},zt={begin:[/precedencegroup/,/\s+/,w],className:{1:"keyword",3:"title"},contains:[V],keywords:[...d,...l],end:/}/},qt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ct={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},gn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:X,contains:[at,...pe,{begin:/:/,end:/\{/,keywords:X,contains:[{scope:"title.class.inherited",match:w},...pe],relevance:0}]};for(const Pe of Ye.variants){const Cn=Pe.contains.find(Jt=>Jt.label==="interpol");Cn.keywords=X;const Qt=[...pe,...ne,...R,ie,Ye,...pn];Cn.contains=[...Qt,{begin:/\(/,end:/\)/,contains:["self",...Qt]}]}return{name:"Swift",keywords:X,contains:[...F,je,dt,qt,Ct,gn,xt,zt,{beginKeywords:"import",end:/$/,contains:[...F],relevance:0},fn,...pe,...ne,...R,ie,Ye,...pn,...K,V,Re]}}return ho=$,ho}var mo,xu;function j_(){if(xu)return mo;xu=1;function e(t){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},u=t.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),g={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},g,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},h,b,s,a],x=[...v];return x.pop(),x.push(u),f.contains=x,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return mo=e,mo}var bo,_u;function K_(){if(_u)return bo;_u=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(o,r,i);function u(l){const d=l.regex,p=(he,{after:de})=>{const ke="</"+he[0].slice(1);return he.input.indexOf(ke,de)!==-1},g=e,f={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(he,de)=>{const ke=he[0].length+he.index,Oe=he.input[ke];if(Oe==="<"||Oe===","){de.ignoreMatch();return}Oe===">"&&(p(he,{after:ke})||de.ignoreMatch());let Ce;const Ye=he.input.substring(ke);if(Ce=Ye.match(/^\s*=/)){de.ignoreMatch();return}if((Ce=Ye.match(/^\s+extends\s+/))&&Ce.index===0){de.ignoreMatch();return}}},v={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},x="[0-9](_?[0-9])*",E=`\\.(${x})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${w})((${E})|\\.)?|(${E}))[eE][+-]?(${x})\\b`},{begin:`\\b(${w})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},O={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},$={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,O],subLanguage:"xml"}},A={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,O],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,O],subLanguage:"graphql"}},j={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,O]},P={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},z=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,$,A,M,j,{match:/\$\d+/},C];O.contains=z.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(z)});const B=[].concat(P,O.contains),T=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(B)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:T},X={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,d.concat(g,"(",d.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},pe={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(he){return d.concat("(?!",he.join("|"),")")}const S={match:d.concat(/\b/,H([...o,"super","import"].map(he=>`${he}\\s*\\(`)),g,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},R={begin:d.concat(/\./,d.lookahead(d.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},W="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",ie={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(W)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:pe},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,$,A,M,j,P,{match:/\$\d+/},C,pe,{scope:"attr",match:g+d.lookahead(":"),relevance:0},ie,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[P,l.REGEXP_MODE,{className:"function",begin:W,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:h},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,l.inherit(l.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},R,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},S,ne,X,q,{match:/\$[(.]/}]}}function c(l){const d=l.regex,p=u(l),g=e,f=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},b={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:f},contains:[p.exports.CLASS_REFERENCE]},v={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(x),literal:n,built_in:a.concat(f),"variable.language":s},w={className:"meta",begin:"@"+g},C=(M,j,F)=>{const P=M.contains.findIndex(z=>z.label===j);if(P===-1)throw new Error("can not find mode to replace");M.contains.splice(P,1,F)};Object.assign(p.keywords,E),p.exports.PARAMS_CONTAINS.push(w);const O=p.contains.find(M=>M.scope==="attr"),$=Object.assign({},O,{match:d.concat(g,d.lookahead(/\s*\?:/))});p.exports.PARAMS_CONTAINS.push([p.exports.CLASS_REFERENCE,O,$]),p.contains=p.contains.concat([w,h,b,$]),C(p,"shebang",l.SHEBANG()),C(p,"use_strict",v);const A=p.contains.find(M=>M.label==="func.def");return A.relevance=0,Object.assign(p,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),p}return bo=c,bo}var xo,yu;function G_(){if(yu)return xo;yu=1;function e(t){const n=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:n.concat(/# */,n.either(s,o),/ *#/)},{begin:n.concat(/# */,u,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(s,o),/ +/,n.either(a,u),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},p=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,i,c,l,d,p,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return xo=e,xo}var _o,vu;function W_(){if(vu)return _o;vu=1;function e(t){t.regex;const n=t.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=t.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,a,o,t.QUOTE_STRING_MODE,c,l,u]}}return _o=e,_o}var yo,Eu;function V_(){if(Eu)return yo;Eu=1;var e=d_();return e.registerLanguage("xml",f_()),e.registerLanguage("bash",p_()),e.registerLanguage("c",g_()),e.registerLanguage("cpp",h_()),e.registerLanguage("csharp",m_()),e.registerLanguage("css",b_()),e.registerLanguage("markdown",x_()),e.registerLanguage("diff",__()),e.registerLanguage("ruby",y_()),e.registerLanguage("go",v_()),e.registerLanguage("graphql",E_()),e.registerLanguage("ini",w_()),e.registerLanguage("java",k_()),e.registerLanguage("javascript",S_()),e.registerLanguage("json",C_()),e.registerLanguage("kotlin",A_()),e.registerLanguage("less",T_()),e.registerLanguage("lua",N_()),e.registerLanguage("makefile",R_()),e.registerLanguage("perl",D_()),e.registerLanguage("objectivec",O_()),e.registerLanguage("php",$_()),e.registerLanguage("php-template",I_()),e.registerLanguage("plaintext",M_()),e.registerLanguage("python",L_()),e.registerLanguage("python-repl",F_()),e.registerLanguage("r",P_()),e.registerLanguage("rust",B_()),e.registerLanguage("scss",U_()),e.registerLanguage("shell",z_()),e.registerLanguage("sql",q_()),e.registerLanguage("swift",H_()),e.registerLanguage("yaml",j_()),e.registerLanguage("typescript",K_()),e.registerLanguage("vbnet",G_()),e.registerLanguage("wasm",W_()),e.HighlightJS=e,e.default=e,yo=e,yo}var Z_=V_();const Yr=ri(Z_),Rt=new kt({html:!0,linkify:!0,breaks:!1,highlight(e,t){if(t&&Yr.getLanguage(t))try{const n=Yr.highlight(e,{language:t}).value;return`<pre><code class="hljs language-${t}">${n}</code></pre>`}catch{}return""}}),Y_=/^<\/?(?:details|summary)>$/i,X_=/^<details\s+open\s*>$/i,Q_=/^<input class="task-list-item-checkbox"(?: checked="")? disabled="" type="checkbox">$/;function J_(e){return Y_.test(e)||X_.test(e)||Q_.test(e)}function ed(e){const t=Rt.utils.escapeHtml;let n="",r=0;const i=/<[^>]*>/g;let o;for(;(o=i.exec(e))!==null;){n+=t(e.slice(r,o.index));const s=o[0];n+=J_(s)?s:t(s),r=o.index+s.length}return n+=t(e.slice(r)),n}Rt.renderer.rules.html_block=(e,t)=>ed(e[t].content);Rt.renderer.rules.html_inline=(e,t)=>ed(e[t].content);const e2=Rt.renderer.rules.image??((e,t,n,r,i)=>i.renderToken(e,t,n)),wu=Rt.renderer.rules.link_open??((e,t,n,r,i)=>i.renderToken(e,t,n)),t2=Rt.renderer.rules.fence??((e,t,n,r,i)=>i.renderToken(e,t,n));function td(e,t,n){if(!e||/^([a-z]+:)?\/\//i.test(e)||e.startsWith("/")||e.startsWith("#"))return e;const r=e.match(/^attachments\/(.+)$/);return!r||!n?e:`/api/projects/${encodeURIComponent(n)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(r[1])}`}function n2(e){return e.replace(/:\d+(?::\d+)?$/,"")}function r2(e){const n=n2(e).replace(/[?#].*$/,"").split(/[\\/]/).filter(Boolean).pop()??"";return/^\.[^./\\]+$/.test(n)||/\.[A-Za-z0-9][A-Za-z0-9_-]{0,15}$/.test(n)}function i2(e){return!e||e.startsWith("#")||/^([a-z]+:)?\/\//i.test(e)||/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^[A-Za-z]:[\\/]/.test(e)||e.startsWith("attachments/")?!1:(e.startsWith("/")||/^[A-Za-z]:[\\/]/.test(e))&&r2(e)}function vo(e,t){e.attrs&&(e.attrs=e.attrs.filter(([n])=>n!==t))}function Dn(e,t,n){e.attrs||(e.attrs=[]);const r=e.attrs.find(([i])=>i===t);r?r[1]=n:e.attrs.push([t,n])}Rt.renderer.rules.image=function(e,t,n,r,i){const o=r,s=o?.specId;if(s){const u=e[t].attrs?.find(([c])=>c==="src");u&&(u[1]=td(u[1],s,o?.projectId))}return e2(e,t,n,r,i)};Rt.renderer.rules.link_open=function(e,t,n,r,i){const o=r,s=e[t],a=s.attrs?.find(([c])=>c==="href");if(o?.fileLinks==="copy"&&a&&i2(a[1])){const c=a[1];return vo(s,"href"),vo(s,"target"),vo(s,"rel"),Dn(s,"role","button"),Dn(s,"tabindex","0"),Dn(s,"data-file-link","true"),Dn(s,"data-file-path",c),o.fileLinkTitle&&(Dn(s,"title",o.fileLinkTitle),Dn(s,"aria-label",o.fileLinkTitle)),wu(e,t,n,r,i)}const u=o?.specId;if(u&&a){const c=td(a[1],u,o?.projectId);if(c!==a[1]){a[1]=c;const l=s.attrs?.find(([d])=>d==="target");l?l[1]="_blank":s.attrs?.push(["target","_blank"]),s.attrs?.push(["rel","noopener noreferrer"])}}return wu(e,t,n,r,i)};Rt.renderer.rules.fence=function(e,t,n,r,i){const o=e[t],s=o.info.trim(),a=r?.mermaid??"diagram";if(s==="mermaid"&&a==="diagram"){const u=o.content;return`<div class="mermaid" data-mermaid-source="${u.replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">${u}</div>`}return t2(e,t,n,r,i)};Rt.use(l_,{enabled:!1,label:!1});function ys(e,t={}){const n={};return t.specId&&(n.specId=t.specId),t.projectId&&(n.projectId=t.projectId),t.mermaid&&(n.mermaid=t.mermaid),t.fileLinks&&(n.fileLinks=t.fileLinks),t.fileLinkTitle&&(n.fileLinkTitle=t.fileLinkTitle),Rt.render(e,n)}function o2(e){return e.replace(/^\uFEFF?---[ \t]*\r?\n[\s\S]*?\r?\n---[ \t]*(?:\r?\n|$)/,"")}const s2=300;function a2(e,t=s2){const n=e.length;return n<=t?{truncated:!1,preview:e,length:n}:{truncated:!0,preview:e.slice(0,t),length:n}}var u2=N('<div class="scroll-y mt-1 max-h-96 space-y-2 rounded border bg-background p-2">'),c2=N('<div class=my-1><button type=button class="flex w-full items-center gap-1.5 py-2 text-left text-xs text-muted-foreground active:opacity-60"><span class=font-mono>'),l2=N('<div class="font-mono text-xs font-semibold">'),d2=N("<div class=space-y-1>"),f2=N('<button type=button class="flex min-h-11 items-center text-left text-xs text-muted-foreground active:opacity-60">'),p2=N("<div class=space-y-1><pre>");const g2=e=>{const t=()=>e.expand.isExpanded(e.segment.id);return(()=>{var n=c2(),r=n.firstChild,i=r.firstChild;return r.$$click=()=>e.expand.set(e.segment.id,!t()),_(r,m(jc,{size:14,get class(){return`shrink-0 transition-transform duration-150 ${t()?"":"-rotate-90"}`},"aria-hidden":"true"}),i),_(i,()=>y("chat.toolCollapsed",{count:e.segment.tools.length})),_(n,m(I,{get when(){return t()},get children(){var o=u2();return _(o,m($o,{get each(){return e.segment.tools},children:(s,a)=>(()=>{var u=d2();return _(u,m(I,{get when(){return s().name},get children(){var c=l2();return _(c,()=>s().name),c}}),null),_(u,m(I,{get when(){return s().input!==void 0},get children(){return m(ku,{get text(){return h2(s().input)},get expandKey(){return ma(e.segment.id,a,"input")},get expand(){return e.expand}})}}),null),_(u,m(I,{get when(){return s().result!==void 0},get children(){return m(ku,{get text(){return s().result??""},get expandKey(){return ma(e.segment.id,a,"result")},get expand(){return e.expand},wrap:!0})}}),null),u})()})),o}}),null),Z(()=>te(r,"aria-expanded",t())),n})()},ku=e=>{const t=()=>a2(e.text),n=()=>e.expand.isExpanded(e.expandKey),r=()=>t().truncated&&!n();return(()=>{var i=p2(),o=i.firstChild;return _(o,(()=>{var s=Fe(()=>!!r());return()=>s()?`${t().preview}…`:e.text})()),_(i,m(I,{get when(){return t().truncated},get children(){var s=f2();return s.$$click=()=>e.expand.set(e.expandKey,!n()),_(s,(()=>{var a=Fe(()=>!!n());return()=>a()?y("chat.toolTextCollapse"):y("chat.toolTextExpand",{count:t().length})})()),s}}),null),Z(()=>Le(o,`overflow-x-auto rounded bg-muted px-2 py-1 text-[11px] leading-snug ${e.wrap?"whitespace-pre-wrap":""}`)),i})()};function h2(e){try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}qe(["click"]);var m2=N('<div class="scroll-y mt-1 max-h-72 space-y-2 rounded border border-dashed bg-muted/40 p-2">'),b2=N('<div class=mb-2><button type=button class="flex items-center gap-1.5 rounded border border-dashed p-2 text-left text-xs text-muted-foreground active:opacity-60"><span class=font-mono>'),x2=N('<pre class="whitespace-pre-wrap rounded bg-background px-2 py-1 text-[11px] leading-snug text-muted-foreground">');const _2=e=>{const t=()=>e.expand.isExpanded(e.expandKey);return(()=>{var n=b2(),r=n.firstChild,i=r.firstChild;return r.$$click=()=>e.expand.set(e.expandKey,!t()),_(r,m(jc,{size:14,get class(){return`shrink-0 transition-transform duration-150 ${t()?"":"-rotate-90"}`},"aria-hidden":"true"}),i),_(i,()=>y("chat.agentContextCollapsed",{count:e.contexts.length})),_(n,m(I,{get when(){return t()},get children(){var o=m2();return _(o,m(Ke,{get each(){return e.contexts},children:s=>(()=>{var a=x2();return _(a,()=>s.text),a})()})),o}}),null),Z(()=>te(r,"aria-expanded",t())),n})()};qe(["click"]);var y2=N('<div class="mb-2 whitespace-pre-wrap rounded-lg border border-primary/20 border-l-2 border-l-primary bg-primary/10 px-3 py-2 text-[0.95rem] font-medium [overflow-wrap:anywhere]">'),v2=N('<div class="mb-2 min-w-0 rounded-lg border bg-card px-3 py-2 [overflow-wrap:anywhere]">'),E2=N('<div class="markdown chat-md">'),w2=N('<div class="my-3 flex items-center gap-2 text-[11px] text-muted-foreground"><span class="h-px flex-1 bg-border"></span><span class=shrink-0></span><span class="h-px flex-1 bg-border">');const k2=e=>e.kind==="divider"?e:null,S2=e=>e.kind==="context"?e:null,C2=e=>e.kind==="assistant"?e:null,A2=e=>e.kind==="user"?e:null,T2=e=>e.kind==="tools"?e:null,N2=e=>e.kind==="text"?e.text:"",R2=e=>m($o,{get each(){return e.blocks},children:(t,n)=>m(I,{get when(){return k2(t())},get fallback(){return m(I,{get when(){return S2(t())},get fallback(){return m(I,{get when(){return C2(t())},get fallback(){return(()=>{var r=y2();return _(r,()=>A2(t())?.text),r})()},children:r=>(()=>{var i=v2();return _(i,m($o,{get each(){return r().segments},children:o=>m(I,{get when(){return T2(o())},get fallback(){return(()=>{var s=E2();return Z(()=>s.innerHTML=ys(N2(o()),{mermaid:"code",fileLinks:"copy",fileLinkTitle:y("chat.copyFilePath")})),s})()},children:s=>m(g2,{get segment(){return s()},get expand(){return e.expand}})})})),i})()})},children:r=>m(_2,{get contexts(){return r().contexts},expandKey:`ctx${n}`,get expand(){return e.expand}})})},children:r=>(()=>{var i=w2(),o=i.firstChild,s=o.nextSibling;return _(s,()=>r().agentKind),i})()})}),D2=150,O2=16,$2=48,I2=24,M2=8;function Eo(e){return e.replace(/^\/+/,"")}function L2(e,t){return t===0?!0:/[\s/_.-]/.test(e[t-1]??"")}function Su(e,t){if(!e)return 0;const n=e.toLowerCase(),r=t.toLowerCase();let i=0,o=-1;for(let s=0;s<n.length;s++){const a=r.indexOf(n[s],o+1);if(a===-1)return null;i+=O2,a===s&&(i+=$2),a===o+1&&(i+=I2),L2(t,a)&&(i+=M2),i-=Math.max(0,a-o-1),o=a}return i-t.length*.01}function F2(e,t){const n=Eo(e.trim());if(!n)return 0;const r=Su(n,Eo(t.value)),i=t.label?Su(n,Eo(t.label)):null;return r==null?i:i==null?r:Math.max(r,i)}function P2(e,t){return t?e.map((n,r)=>{const i=F2(t,n);return i==null?null:{cmd:n,score:i,index:r}}).filter(n=>n!=null).sort((n,r)=>r.score-n.score||n.index-r.index).map(n=>n.cmd):e}function B2(e,t,n){const r=e.slice(0,t);if(n&&/^\/[\w-]*$/.test(r))return{kind:"slash",query:r.slice(1)};const i=r.lastIndexOf("@");if(i===-1)return null;const o=r.slice(i+1);return/^[\w./@-]*$/.test(o)?{kind:"mention",start:i,query:o}:null}function Cu(e,t,n){const r=t.kind==="slash"?0:t.start,i=e.slice(0,r),o=e.slice(r+1+t.query.length);return{next:i+n+o,cursorPos:i.length+n.length}}function U2(e){return e.kind==="mention"?`@${e.value}`:e.replacement??`${e.value} `}function nd(e){const[t,n]=G(!1),[r,i]=G([]),[o,s]=G(0),[a,u]=G(!1);let c=null,l=null;Me(()=>{l&&clearTimeout(l)});function d(){n(!1),u(!1),i([]),s(0),c=null,l&&(clearTimeout(l),l=null)}function p(x){l&&clearTimeout(l),l=setTimeout(async()=>{const E=e.projectId();if(E)try{const w=await ue.listFiles(E,x);if(c?.kind!=="mention"||c.query!==x)return;i(w.items.map(C=>({kind:"mention",value:C}))),s(0)}catch{i([])}},e.searchDebounceMs??D2)}function g(x){const E=e.slashCommands?.()??[],w=P2(E,x).map(C=>({kind:"slash",value:C.value,label:C.label??C.value,description:C.description,replacement:C.replacement,action:C.action,customId:C.customId,editable:C.editable,editLabel:C.editLabel,deletable:C.deletable,deleteLabel:C.deleteLabel,icon:C.icon,command:C}));i(w),s(0),w.length>0?(u(!1),n(!0)):e.slashEmptyEnabled?.()?(u(!0),n(!0)):d()}function f(x){const E=(e.slashCommands?.()??[]).length>0,w=B2(x.value,x.selectionStart,E);if(!w){d();return}if(c=w,w.kind==="slash"){g(w.query);return}u(!1),t()||n(!0),p(w.query)}function h(x){const E=c;if(!E)return{kind:"noop"};if(x.kind==="slash"&&x.action==="add"){const{next:O}=Cu(e.value(),E,"");return e.onValueChange(O),d(),{kind:"action",command:x.command}}const{next:w,cursorPos:C}=Cu(e.value(),E,U2(x));return e.onValueChange(w),d(),{kind:"text",cursorPos:C}}function b(x){const E=r();E.length!==0&&s(w=>(w+x+E.length)%E.length)}function v(x){if(!x)return;const E=r().filter(w=>w.kind!=="slash"||w.customId!==x);i(E),s(w=>Math.min(w,Math.max(0,E.length-1))),E.length===0&&d()}return{open:t,items:r,index:o,setIndex:s,slashEmpty:a,handleInput:f,select:h,close:d,moveIndex:b,removeSlashItem:v}}const Au=24;function Wn(e,t=0){const n=Number.parseFloat(e);return Number.isFinite(n)?n:t}function er(e,t){const n=window.getComputedStyle(e),r=Wn(n.lineHeight,Au)||Au,i=Wn(n.paddingTop)+Wn(n.paddingBottom),o=Wn(n.borderTopWidth)+Wn(n.borderBottomWidth);e.style.height="auto";const s=Math.max(e.scrollHeight-i,r),a=r*t,u=s>a;e.style.height=`${(u?a:s)+i+o}px`,e.style.overflowY=u?"auto":"hidden"}const rd=280,id=150,z2=10;function q2(e){let t=null,n=!1;const r=()=>e.moveTolerance??z2,i=o=>t!=null&&t.id===o.pointerId;return{onPointerDown:o=>{o.button===0&&(n=!1,t={id:o.pointerId,x:o.clientX,y:o.clientY})},onPointerMove:o=>{if(!i(o))return;const s=r();(Math.abs(o.clientX-t.x)>s||Math.abs(o.clientY-t.y)>s)&&(t=null)},onPointerUp:o=>{if(!i(o))return;const s=r(),a=Math.abs(o.clientX-t.x)>s||Math.abs(o.clientY-t.y)>s;t=null,!a&&(n=!0,o.preventDefault(),e.onTap())},onPointerCancel:()=>{t=null,n=!1},onTouchEnd:o=>{n&&(n=!1,o.cancelable&&o.preventDefault())}}}var H2=N('<li class="px-4 py-3 text-sm text-muted-foreground">'),j2=N('<div data-testid=completion-bar><ul class="scroll-y m-0 max-h-[38dvh] list-none p-0">'),K2=N('<span class="shrink-0 text-muted-foreground">'),G2=N('<span class="block truncate text-xs text-muted-foreground">'),W2=N('<li class="border-b border-border/50 last:border-b-0"><button type=button data-testid=completion-item class="flex min-h-[44px] w-full items-center gap-3 border-0 bg-transparent px-4 py-2 text-left active:bg-accent"><span class="min-w-0 flex-1"><span>');const od=e=>(()=>{var t=j2(),n=t.firstChild;return _(n,m(I,{get when(){return e.empty},get children(){var r=H2();return _(r,()=>y("chat.slashCommandNoMatch")),r}}),null),_(n,m(Ke,{get each(){return e.items},children:r=>{const i=q2({onTap:()=>e.onSelect(r)});return(()=>{var o=W2(),s=o.firstChild,a=s.firstChild,u=a.firstChild;return dr(s,i,!1,!0),_(s,m(I,{get when(){return r.kind==="mention"},get children(){var c=K2();return _(c,m(Up,{size:16,"aria-hidden":"true"})),c}}),a),_(u,(()=>{var c=Fe(()=>r.kind==="slash");return()=>c()?r.label:r.value})()),_(a,m(I,{get when(){return Fe(()=>r.kind==="slash")()&&r.description},get children(){var c=G2();return _(c,(()=>{var l=Fe(()=>r.kind==="slash");return()=>l()?r.description:""})()),c}}),null),Z(()=>Le(u,r.kind==="slash"?"block truncate text-sm":"truncate-start block text-sm")),o})()}}),null),Z(()=>Le(t,Xe("bg-card",e.inline?"mt-1 overflow-hidden rounded-lg border border-border":"border-b border-border"))),t})();var V2=N('<div class="flex gap-2 overflow-x-auto px-4 pt-2">'),Z2=N('<p class="px-4 pt-2 text-xs text-destructive">'),Y2=N('<button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-destructive active:opacity-60">'),X2=N('<div class="kb-inset shrink-0 border-t border-border bg-card px-safe pb-safe"><div class="flex items-end gap-3 px-4 py-2"><button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60 disabled:opacity-40"></button><input type=file hidden multiple><textarea rows=1 class="flex-1 resize-none overflow-y-hidden rounded-lg border border-border bg-background px-3 py-2.5 text-base leading-6 outline-none focus:border-primary">'),Q2=N('<img class="h-14 w-20 rounded border object-cover">'),J2=N("<span>"),ey=N('<div class="relative shrink-0"><button type=button class="absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full border bg-background text-muted-foreground">'),ty=N('<div class="flex h-14 w-20 items-center justify-center rounded border bg-muted px-1 text-[10px] text-muted-foreground"><span class="truncate-start block w-full">'),ny=N('<button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-primary active:opacity-60 disabled:opacity-40">');const wo=5,ry=e=>{let t,n,r=null;Me(()=>{r&&clearTimeout(r)});const i=()=>e.value.trim().length>0&&!e.starting&&!e.attachments.hasPending(),o=nd({projectId:()=>e.projectId,value:()=>e.value,onValueChange:a=>e.onInput(a),slashCommands:()=>e.slashCommands,slashEmptyEnabled:()=>!0,searchDebounceMs:rd});Ae(()=>{e.value,n&&er(n,wo)});function s(a){const u=o.select(a);u.kind==="text"&&requestAnimationFrame(()=>{n&&(n.focus(),n.setSelectionRange(u.cursorPos,u.cursorPos),er(n,wo))})}return(()=>{var a=X2(),u=a.firstChild,c=u.firstChild,l=c.nextSibling,d=l.nextSibling;_(a,m(I,{get when(){return Fe(()=>!!o.open())()&&(o.items().length>0||o.slashEmpty())},get children(){return m(od,{get items(){return o.items()},get empty(){return o.slashEmpty()},onSelect:s})}}),u),_(a,m(I,{get when(){return e.attachments.attachments().length>0},get children(){var f=V2();return _(f,m(Ke,{get each(){return e.attachments.attachments()},children:h=>(()=>{var b=ey(),v=b.firstChild;return _(b,m(I,{get when(){return h.previewUrl},get fallback(){return(()=>{var x=ty(),E=x.firstChild;return _(E,()=>h.name),x})()},get children(){var x=Q2();return Z(E=>{var w=h.previewUrl,C=h.name;return w!==E.e&&te(x,"src",E.e=w),C!==E.t&&te(x,"alt",E.t=C),E},{e:void 0,t:void 0}),x}}),v),_(b,m(I,{get when(){return h.status!=="uploaded"},get children(){var x=J2();return _(x,()=>h.status==="failed"?"!":"…"),Z(()=>Le(x,`absolute inset-0 flex items-center justify-center rounded text-[10px] ${h.status==="failed"?"bg-destructive/70 text-destructive-foreground":"bg-background/60 text-muted-foreground"}`)),x}}),v),v.$$click=()=>void e.attachments.removeAttachment(h.id),_(v,m(vn,{size:12,"aria-hidden":"true"})),Z(()=>te(v,"aria-label",y("common.close"))),b})()})),f}}),u),_(a,m(I,{get when(){return e.attachments.error()},get children(){var f=Z2();return _(f,()=>e.attachments.error()),f}}),u),c.$$click=()=>t?.click(),_(c,m(ng,{size:20,"aria-hidden":"true"})),l.addEventListener("change",f=>void e.attachments.onFileInputChange(f));var p=t;typeof p=="function"?Vt(p,l):t=l,te(l,"accept",kl),d.addEventListener("blur",()=>{r&&clearTimeout(r),r=setTimeout(o.close,id)}),d.$$input=f=>{er(f.currentTarget,wo),e.onInput(f.currentTarget.value),o.handleInput(f.currentTarget)};var g=n;return typeof g=="function"?Vt(g,d):n=d,_(u,m(I,{get when(){return e.running},get fallback(){return(()=>{var f=ny();return f.$$click=()=>e.onSend(),_(f,m(mg,{size:20,"aria-hidden":"true"})),Z(h=>{var b=y("chat.send"),v=!i();return b!==h.e&&te(f,"aria-label",h.e=b),v!==h.t&&(f.disabled=h.t=v),h},{e:void 0,t:void 0}),f})()},get children(){var f=Y2();return f.$$click=()=>e.onAbort(),_(f,m(_g,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",y("chat.abort"))),f}}),null),Z(f=>{var h=y("chat.attach"),b=e.attachments.count()>=Jn,v=y("chat.placeholder");return h!==f.e&&te(c,"aria-label",f.e=h),b!==f.t&&(c.disabled=f.t=b),v!==f.a&&te(d,"placeholder",f.a=v),f},{e:void 0,t:void 0,a:void 0}),Z(()=>d.value=e.value),a})()};qe(["click","input"]);const iy=ib(20);function oy(){const e=window.visualViewport;if(!e)return;const t=document.documentElement,n=()=>{const r=window.innerHeight-e.height-e.offsetTop,i=r>1?Math.round(r):0;t.style.setProperty("--kb-inset",`${i}px`)};n(),e.addEventListener("resize",n),e.addEventListener("scroll",n),Me(()=>{e.removeEventListener("resize",n),e.removeEventListener("scroll",n),t.style.removeProperty("--kb-inset")})}var sy=N('<div class="px-4 py-3">'),ay=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),uy=N('<div class="px-4 py-4">'),cy=N('<p class="m-0 py-8 text-center text-sm text-muted-foreground">'),ly=N('<div class="flex flex-col items-center gap-2 py-8 text-center"><p class="m-0 text-sm text-muted-foreground">');const dy=80;function fy(e){return e instanceof Element?e.closest('[data-file-link="true"]'):null}const py=()=>{const e=pr(),t=ht();oy();const n=()=>_e()??"",[r,i]=G(null),o=()=>r()??e.id??"",[s,a]=G(""),[u,c]=G(!0),[l,d]=G(!1);let p;const[g,f]=G(null),[h,{refetch:b}]=nt(()=>n()||void 0,T=>ue.listSessions(T));Ae(()=>{const T=n();f(T?gl(T):null)}),Ae(()=>{if(h.state!=="ready")return;const T=n(),D=h();!T||!D||(f(D),hl(T,D))});const v=ge(()=>g()?.find(T=>T.id===o())),x=()=>v()?.specId,[E,w]=G(null),[C]=nt(()=>n()||void 0,T=>ue.listSpecs(T));Ae(()=>{const T=n();w(T?ls(T):null)}),Ae(()=>{if(C.state!=="ready")return;const T=n(),D=C();!T||!D||(w(D),ds(T,D))});const O=ge(()=>{const T=new Map;for(const D of E()??[])T.set(D.id,D);return T}),$=()=>O().get(x()??"")?.title||v()?.title||y("chat.untitled");Ae(()=>{const T=v();T&&d(!!T.running)});const A=Sl({projectId:n,labels:Cl()}),[M]=nt(()=>ue.getGlobalConfig());Ae(()=>{const T=n();T&&Eb(T)});const j=ge(()=>{const T=xb(vb(n()),M()?.customInstructions??[]).map(D=>{const X=`/${D.name}`;return{value:X,label:X,description:D.description||y("chat.customSlashCommandNoDescription"),replacement:mb(D.name,D.prefill),customId:D.id}});return[{value:"/yorz-debug",description:y("chat.slashCommandYorzDebug")},{value:"/yorz-spec",description:y("chat.slashCommandYorzSpec")},...T]}),F=lb({projectId:n,sessionId:o,specId:x,running:l,listPending:()=>h.loading,known:()=>!!v(),onSessionIdChange:T=>{i(T),t(`/sessions/${encodeURIComponent(T)}`,{replace:!0})},onSessionsChanged:()=>void b(),onRunningChange:(T,D)=>{T===o()&&d(D)},onSubjectChange:()=>c(!0),errorLabel:T=>y("chat.errorMessage",{message:T}),transcriptCache:iy});function P(T){return T.scrollHeight-T.scrollTop-T.clientHeight<=dy}Ae(()=>{if(F.blocks(),!u()||!p)return;const T=p;requestAnimationFrame(()=>{T.scrollTop=T.scrollHeight})});async function z(){const T=s().trim();if(!T)return;a(""),c(!0);const D=await F.send(T,A.draftId()??void 0);D==="sent"?A.reset():D==="not-started"&&(a(T),Ee(y("chat.sendFailed"),"error"))}function B(T){const D=fy(T.target);if(!D)return;const X=D.dataset.filePath;X&&(T.preventDefault(),si(X).then(pe=>Ee(y(pe?"chat.filePathCopied":"chat.filePathCopyFailed"),pe?"default":"error")))}return m(yt,{get title(){return $()},padded:!1,onBack:()=>t("/"),scrollRef:T=>p=T,onScroll:()=>p&&c(P(p)),get actions(){return m(I,{get when(){return x()},children:T=>(()=>{var D=ay();return D.$$click=()=>t(`/specs/${encodeURIComponent(T())}`),_(D,m(Kc,{size:20,"aria-hidden":"true"})),Z(()=>te(D,"aria-label",y("chat.openSpec"))),D})()})},get footer(){return m(ry,{get value(){return s()},onInput:a,onSend:()=>void z(),onAbort:()=>void F.abort(),get running(){return l()},get starting(){return F.starting()},attachments:A,get projectId(){return n()},get slashCommands(){return j()}})},get children(){return m(I,{get when(){return n()},get fallback(){return(()=>{var T=uy();return _(T,m(Pt,{})),T})()},get children(){var T=sy();return T.$$click=B,_(T,m(I,{get when(){return!F.historyLoading()},get fallback(){return(()=>{var D=cy();return _(D,()=>y("common.loading")),D})()},get children(){return m(I,{get when(){return F.blocks().length>0},get fallback(){return(()=>{var D=ly(),X=D.firstChild;return _(X,(()=>{var pe=Fe(()=>!!o());return()=>pe()?y("chat.empty"):y("chat.draftEmpty")})()),_(D,m(I,{get when(){return!o()},get children(){return m(fl,{})}}),null),D})()},get children(){return m(R2,{get blocks(){return F.blocks()},get expand(){return F.toolExpand}})}})}})),T}})}})};qe(["click"]);var Tu=11;function gy(e,t){var n=t.attributes,r,i,o,s,a;if(!(t.nodeType===Tu||e.nodeType===Tu)){for(var u=n.length-1;u>=0;u--)r=n[u],i=r.name,o=r.namespaceURI,s=r.value,o?(i=r.localName||i,a=e.getAttributeNS(o,i),a!==s&&(r.prefix==="xmlns"&&(i=r.name),e.setAttributeNS(o,i,s))):(a=e.getAttribute(i),a!==s&&e.setAttribute(i,s));for(var c=e.attributes,l=c.length-1;l>=0;l--)r=c[l],i=r.name,o=r.namespaceURI,o?(i=r.localName||i,t.hasAttributeNS(o,i)||e.removeAttributeNS(o,i)):t.hasAttribute(i)||e.removeAttribute(i)}}var Rr,hy="http://www.w3.org/1999/xhtml",bt=typeof document>"u"?void 0:document,my=!!bt&&"content"in bt.createElement("template"),by=!!bt&&bt.createRange&&"createContextualFragment"in bt.createRange();function xy(e){var t=bt.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}function _y(e){Rr||(Rr=bt.createRange(),Rr.selectNode(bt.body));var t=Rr.createContextualFragment(e);return t.childNodes[0]}function yy(e){var t=bt.createElement("body");return t.innerHTML=e,t.childNodes[0]}function vy(e){return e=e.trim(),my?xy(e):by?_y(e):yy(e)}function Dr(e,t){var n=e.nodeName,r=t.nodeName,i,o;return n===r?!0:(i=n.charCodeAt(0),o=r.charCodeAt(0),i<=90&&o>=97?n===r.toUpperCase():o<=90&&i>=97?r===n.toUpperCase():!1)}function Ey(e,t){return!t||t===hy?bt.createElement(e):bt.createElementNS(t,e)}function wy(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}function ko(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var Nu={OPTION:function(e,t){var n=e.parentNode;if(n){var r=n.nodeName.toUpperCase();r==="OPTGROUP"&&(n=n.parentNode,r=n&&n.nodeName.toUpperCase()),r==="SELECT"&&!n.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}ko(e,t,"selected")},INPUT:function(e,t){ko(e,t,"checked"),ko(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n=-1,r=0,i=e.firstChild,o,s;i;)if(s=i.nodeName&&i.nodeName.toUpperCase(),s==="OPTGROUP")o=i,i=o.firstChild,i||(i=o.nextSibling,o=null);else{if(s==="OPTION"){if(i.hasAttribute("selected")){n=r;break}r++}i=i.nextSibling,!i&&o&&(i=o.nextSibling,o=null)}e.selectedIndex=n}}},Vn=1,Ru=11,Du=3,Ou=8;function rn(){}function ky(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function Sy(e){return function(n,r,i){if(i||(i={}),typeof r=="string")if(n.nodeName==="#document"||n.nodeName==="HTML"){var o=r;r=bt.createElement("html"),r.innerHTML=o}else if(n.nodeName==="BODY"){var s=r;r=bt.createElement("html"),r.innerHTML=s;var a=r.querySelector("body");a&&(r=a)}else r=vy(r);else r.nodeType===Ru&&(r=r.firstElementChild);var u=i.getNodeKey||ky,c=i.onBeforeNodeAdded||rn,l=i.onNodeAdded||rn,d=i.onBeforeElUpdated||rn,p=i.onElUpdated||rn,g=i.onBeforeNodeDiscarded||rn,f=i.onNodeDiscarded||rn,h=i.onBeforeElChildrenUpdated||rn,b=i.skipFromChildren||rn,v=i.addChild||function(Q,L){return Q.appendChild(L)},x=i.childrenOnly===!0,E=Object.create(null),w=[];function C(Q){w.push(Q)}function O(Q,L){if(Q.nodeType===Vn)for(var ne=Q.firstChild;ne;){var H=void 0;L&&(H=u(ne))?C(H):(f(ne),ne.firstChild&&O(ne,L)),ne=ne.nextSibling}}function $(Q,L,ne){g(Q)!==!1&&(L&&L.removeChild(Q),f(Q),O(Q,ne))}function A(Q){if(Q.nodeType===Vn||Q.nodeType===Ru)for(var L=Q.firstChild;L;){var ne=u(L);ne&&(E[ne]=L),A(L),L=L.nextSibling}}A(n);function M(Q){l(Q);for(var L=Q.firstChild;L;){var ne=L.nextSibling,H=u(L);if(H){var S=E[H];S&&Dr(L,S)?(L.parentNode.replaceChild(S,L),F(S,L)):M(L)}else M(L);L=ne}}function j(Q,L,ne){for(;L;){var H=L.nextSibling;(ne=u(L))?C(ne):$(L,Q,!0),L=H}}function F(Q,L,ne){var H=u(L);if(H&&delete E[H],!ne){var S=d(Q,L);if(S===!1||(S instanceof HTMLElement&&(Q=S,A(Q)),e(Q,L),p(Q),h(Q,L)===!1))return}Q.nodeName!=="TEXTAREA"?P(Q,L):Nu.TEXTAREA(Q,L)}function P(Q,L){var ne=b(Q,L),H=L.firstChild,S=Q.firstChild,R,q,W,ie,he;e:for(;H;){for(ie=H.nextSibling,R=u(H);!ne&&S;){if(W=S.nextSibling,H.isSameNode&&H.isSameNode(S)){H=ie,S=W;continue e}q=u(S);var de=S.nodeType,ke=void 0;if(de===H.nodeType&&(de===Vn?(R?R!==q&&((he=E[R])?W===he?ke=!1:(Q.insertBefore(he,S),q?C(q):$(S,Q,!0),S=he,q=u(S)):ke=!1):q&&(ke=!1),ke=ke!==!1&&Dr(S,H),ke&&F(S,H)):(de===Du||de==Ou)&&(ke=!0,S.nodeValue!==H.nodeValue&&(S.nodeValue=H.nodeValue))),ke){H=ie,S=W;continue e}q?C(q):$(S,Q,!0),S=W}if(R&&(he=E[R])&&Dr(he,H))ne||v(Q,he),F(he,H);else{var Oe=c(H);Oe!==!1&&(Oe&&(H=Oe),H.actualize&&(H=H.actualize(Q.ownerDocument||bt)),v(Q,H),M(H))}H=ie,S=W}j(Q,S,q);var Ce=Nu[Q.nodeName];Ce&&Ce(Q,L)}var z=n,B=z.nodeType,T=r.nodeType;if(!x){if(B===Vn)T===Vn?Dr(n,r)||(f(n),z=wy(n,Ey(r.nodeName,r.namespaceURI))):z=r;else if(B===Du||B===Ou){if(T===B)return z.nodeValue!==r.nodeValue&&(z.nodeValue=r.nodeValue),z;z=r}}if(z===r)f(n);else{if(r.isSameNode&&r.isSameNode(z))return;if(F(z,r,x),w)for(var D=0,X=w.length;D<X;D++){var pe=E[w[D]];pe&&$(pe,pe.parentNode,!1)}}return!x&&z!==n&&n.parentNode&&(z.actualize&&(z=z.actualize(n.ownerDocument||bt)),n.parentNode.replaceChild(z,n)),z}}var Cy=Sy(gy);let So=null,$u=Promise.resolve();const Vo=new WeakMap;async function Ay(){return So||(So=zc(()=>import("./mermaid.core-Cery4OJZ.js").then(e=>e.bp),[]).then(e=>e.default)),So}function Ty(){return P0()==="dark"?"dark":"default"}function Co(){return new Promise(e=>{if(typeof window.requestAnimationFrame=="function"){window.requestAnimationFrame(()=>e());return}window.setTimeout(e,0)})}function Ny(e){const t=(Vo.get(e)??0)+1;return Vo.set(e,t),t}function Ao(e,t){return Vo.get(e)===t}async function Ry(e){const t=$u.then(e,e);$u=t.catch(()=>{}),await t}async function sd(e,t={}){if(e.querySelector(".mermaid")===null)return()=>{};const n=Ny(e),r=await Ay();if(!Ao(e,n))return()=>{};if(await Co(),!Ao(e,n))return()=>{};let i=()=>{};function o(){i(),i=t.enhance?t.enhance(e):()=>{}}async function s(l){const d=l.filter(p=>p.isConnected&&e.contains(p));d.length!==0&&await Ry(async()=>{if(!Ao(e,n))return;const p=d.filter(f=>f.isConnected&&e.contains(f));if(p.length===0)return;const g=Ty();r.initialize({startOnLoad:!1,theme:g}),i(),i=()=>{},p.forEach(f=>{const h=f.getAttribute("data-mermaid-source");h&&(f.removeAttribute("data-processed"),f.textContent=h)});try{await r.run({nodes:p}),await Co(),o()}catch(f){console.error("[mermaid] render error:",f)}})}const a=Array.from(e.querySelectorAll(".mermaid:not([data-processed])"));await s(a),await Co(),o();const u=()=>void s(Array.from(e.querySelectorAll(".mermaid"))),c=new window.MutationObserver(u);return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-kb-theme"]}),()=>{i(),c.disconnect()}}const Dy=/^##\s+(?:\d+(?:\.\d+)*\.?\s+)?待确认(?:项|问题)\s*$/,Oy=/^##\s+/,$y=/^###\s+(?:\d+(?:\.\d+)*\s+)?(.+\S)\s*$/,Iy=/^\d+\.\s+(.*\S)\s*$/,My=/^\s*$/,Iu=/\s*[((]推荐[))]\s*$/,Mu=/\s*(自由文本)\s*$/,Ly=/^\[(choice|confirm)\]\s*/i,Fy=/^\*\*方案\*\*\s*[::]\s*(.*\S)?\s*$/,Py=/^\*\*(?:影响|代价)\*\*\s*[::]\s*(.*\S)?\s*$/;function By(e){const t=e.split(`
|
|
32
|
-
`);let n=0;for(;n<t.length&&!Dy.test(t[n]);)n+=1;if(n>=t.length)return[];n+=1;const r=[];let i=null;for(;n<t.length;){const o=t[n];if(Oy.test(o))break;const s=Hy(o);s?(i={headingText:s,bodyLines:[]},r.push(i)):i&&i.bodyLines.push(o),n+=1}return r.map((o,s)=>Uy(o,s))}function Uy(e,t){const n=Ly.exec(e.headingText),r=n?.[1]?.toLowerCase(),i=n?e.headingText.slice(n[0].length):e.headingText,o=Mu.test(i),s=o?i.replace(Mu,"").trim():i.trim();if(r==="confirm"){const{plan:c,impact:l}=zy(e.bodyLines);return{id:Lu(t,s),text:s,kind:"confirm",options:[],isFreeform:!1,plan:c,impact:l}}const a=qy(e.bodyLines,t,s),u=o||a.length===0;return{id:Lu(t,s),text:s,kind:u?"freeform":"choice",options:a,isFreeform:u}}function zy(e){let t,n;for(const r of e){const i=r.trim(),o=Fy.exec(i);if(o){t=o[1]?.trim()||"";continue}const s=Py.exec(i);s&&(n=s[1]?.trim()||"")}return{plan:t,impact:n}}function qy(e,t,n){const r=[];let i=0;for(const o of e){if(My.test(o))continue;const s=jy(o);if(s===null)continue;const a=Iu.test(s),u=a?s.replace(Iu,"").trim():s.trim();u&&(a&&(i+=1),r.push({id:Ky(t,r.length,u),label:u,recommended:a&&i===1}))}return i>=2&&console.warn(`[question-parse] 问题 "${n}" 含 ${i} 个 (推荐),已保留首个,其余降级`),r}function Hy(e){const t=$y.exec(e);return t?t[1]:null}function jy(e){const t=Iy.exec(e);return t?t[1]:null}function Lu(e,t){return`q-${e}-${ad(t)}`}function Ky(e,t,n){return`q-${e}-o-${t}-${ad(n)}`}function ad(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const tr="__freeform__",Gy={accept:"确认,按此推进",rejectAlternative:"否决·换方案",rejectConstraint:"否决·补约束",rejectDropGoal:"否决·弃目标·废弃当前目标,继续其余",rejectDropSpec:"否决·弃目标·放弃整个 spec"},Wy="accept";function Vy(e){return e!==Wy}function Zy(e,t,n){const r=Gy[t],i=(n??"").trim();if(Vy(t)&&!i)return null;const o={questionId:e.id,questionText:e.text,selectedOptionLabel:r};return i&&(o.note=i),o}function Yy(e,t){const n=(t.note??"").trim();if(e.isFreeform)return n?{questionId:e.id,questionText:e.text,note:n}:null;const r=t.selectedOptionLabel;return r===tr?n?{questionId:e.id,questionText:e.text,note:n}:null:r?{questionId:e.id,questionText:e.text,selectedOptionLabel:r}:null}function ud(e){if(e.confirmTop==="accept")return"accept";if(e.confirmTop!=="reject")return null;if(e.confirmIntent==="alternative")return"rejectAlternative";if(e.confirmIntent==="constraint")return"rejectConstraint";if(e.confirmIntent==="dropGoal"){if(e.confirmDrop==="current")return"rejectDropGoal";if(e.confirmDrop==="spec")return"rejectDropSpec"}return null}function Xy(e){const t=ud(e);return t?t==="accept"?!0:e.note.trim().length>0:!1}function Qy(e){const t={};for(const n of e){if(n.kind==="confirm"){t[n.id]={note:"",confirmTop:"accept"};continue}const r=n.options.find(i=>i.recommended);t[n.id]={selectedOptionLabel:r?.label??n.options[0]?.label,note:""}}return t}function Jy(e,t){let n=0;for(const r of e){const i=t[r.id];if(!i){n+=1;continue}if(r.kind==="confirm"){Xy(i)||(n+=1);continue}const o=i.note??"";r.isFreeform||i.selectedOptionLabel===tr?o.trim()||(n+=1):i.selectedOptionLabel||(n+=1)}return n}function ev(e,t){const n=[];for(const r of e){const i=t[r.id]??{note:""};if(r.kind==="confirm"){const s=ud(i);if(!s)continue;const a=Zy(r,s,i.note);if(!a)return{ok:!1,reason:"reasonRequired"};n.push(a);continue}const o=Yy(r,i);o&&n.push(o)}return{ok:!0,items:n}}function tv(e){return`f-${Date.now()}-${e}`}function nv(e){return e.map(t=>({sectionPath:t.sectionPath,quote:t.quote,note:t.note}))}function rv(e){return e?e.includes("🔴")?"border-l-2 border-l-destructive":e.includes("🟡")?"border-l-2 border-l-warning":"border-border":"border-border"}function iv(e,t){let n=e;for(;n&&n!==t;){if(n.nodeType===1){const i=n.tagName;if(i==="H2"||i==="H3")return n}let r=n.previousSibling;if(!r){n=n.parentNode;continue}for(;r?.lastChild;)r=r.lastChild;n=r}return null}function ov(e,t){return t.contains(e.startContainer)&&t.contains(e.endContainer)&&t.contains(e.commonAncestorContainer)}function sv(e,t,n){const r=n.throttleMs;let i,o="";const s=()=>{window.clearTimeout(i),i=window.setTimeout(()=>{const a=window.getSelection();if(!a||a.rangeCount===0||a.isCollapsed){o!==""&&(o="",t(null));return}const u=a.getRangeAt(0);if(!ov(u,e)){o!==""&&(o="",t(null));return}const c=a.toString();if(!c.trim()){o!==""&&(o="",t(null));return}const l=u.getBoundingClientRect(),d=iv(u.startContainer,e),p=n.noSectionLabel,g=d&&d.textContent?.trim()||p;o=c,t({text:c,rect:l,sectionPath:g})},r)};return document.addEventListener("selectionchange",s),()=>{document.removeEventListener("selectionchange",s),window.clearTimeout(i)}}var av=N('<div class="fixed inset-0 z-[70] flex flex-col bg-background pt-safe pb-safe"role=dialog aria-modal=true><header class="flex shrink-0 justify-end px-2 py-1"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60"></button></header><div class="min-h-0 flex-1 overflow-auto p-4 [&>svg]:h-auto [&>svg]:max-w-none"style=touch-action:pinch-zoom>');const cd=e=>m(I,{get when(){return e.svg},children:t=>(()=>{var n=av(),r=n.firstChild,i=r.firstChild,o=r.nextSibling;return i.$$click=()=>e.onClose(),_(i,m(vn,{size:20,"aria-hidden":"true"})),Z(s=>{var a=y("specDetail.viewDiagram"),u=y("common.close"),c=t();return a!==s.e&&te(n,"aria-label",s.e=a),u!==s.t&&te(i,"aria-label",s.t=u),c!==s.a&&(o.innerHTML=s.a=c),s},{e:void 0,t:void 0,a:void 0}),n})()});qe(["click"]);var uv=N('<footer class="shrink-0 border-t border-border px-4 py-3">'),cv=N('<div class="fixed inset-0 z-[60] flex flex-col justify-end"role=dialog aria-modal=true><button type=button class="absolute inset-0 bg-black/40"></button><div class="animate-in slide-in-from-bottom-4 relative flex max-h-[85dvh] flex-col rounded-t-2xl bg-card px-safe pb-safe shadow-lg duration-150"><header class="flex h-12 shrink-0 items-center gap-3 border-b border-border px-4"><h2 class="min-w-0 flex-1 truncate text-base font-medium"></h2><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60"></button></header><div class="scroll-y min-h-0 flex-1 px-4 py-3">');const Pn=e=>m(I,{get when(){return e.open},get children(){var t=cv(),n=t.firstChild,r=n.nextSibling,i=r.firstChild,o=i.firstChild,s=o.nextSibling,a=i.nextSibling;return n.$$click=()=>e.onClose(),_(o,()=>e.title),s.$$click=()=>e.onClose(),_(s,m(vn,{size:20,"aria-hidden":"true"})),_(a,()=>e.children),_(r,m(I,{get when(){return e.footer},get children(){var u=uv();return _(u,()=>e.footer),u}}),null),Z(u=>{var c=e.title,l=y("common.close"),d=y("common.close");return c!==u.e&&te(t,"aria-label",u.e=c),l!==u.t&&te(n,"aria-label",u.t=l),d!==u.a&&te(s,"aria-label",u.a=d),u},{e:void 0,t:void 0,a:void 0}),t}});qe(["click"]);var lv=N('<span class="mt-0.5 block text-xs text-muted-foreground">'),dv=N('<button type=button role=radio><span aria-hidden=true></span><span class="min-w-0 flex-1"><span class=block>'),fv=N("<div class=space-y-5>"),pv=N('<span class="text-xs text-muted-foreground">'),gv=N('<div class="flex items-center gap-3"><button type=button class="ml-auto min-h-11 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),hv=N('<p class="py-6 text-center text-sm text-muted-foreground">'),Fu=N("<p><span class=font-medium>:"),mv=N("<div>"),Pu=N("<div class=space-y-2 role=radiogroup>"),bv=N('<div class="space-y-2 border-l-2 border-border pl-3"role=radiogroup>'),xv=N('<div class="mt-2 space-y-2 border-l-2 border-border pl-3"role=radiogroup><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span><textarea rows=3 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),_v=N('<textarea rows=3 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),yv=N('<textarea rows=4 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),vv=N('<section><h3 class="mb-2 text-sm font-medium leading-relaxed">'),Ev=N('<section class="rounded-lg border border-primary/40 bg-background p-3"><header class="mb-2 flex items-center gap-2"><h3 class="min-w-0 flex-1 text-sm font-medium"></h3><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60"></button></header><blockquote class="m-0 break-words border-l-2 border-border bg-muted/40 px-3 py-2 text-xs text-muted-foreground"><em></em> <!> “<!>”</blockquote><p class="m-0 mt-2 whitespace-pre-wrap break-words text-sm">!!!');const On=e=>(()=>{var t=dv(),n=t.firstChild,r=n.nextSibling,i=r.firstChild;return t.$$click=()=>e.onSelect(),_(i,()=>e.label),_(r,m(I,{get when(){return e.hint},get children(){var o=lv();return _(o,()=>e.hint),o}}),null),Z(o=>{var s=e.selected,a=Xe("flex min-h-11 w-full items-center gap-2 rounded-lg border px-3 py-2 text-left text-sm active:opacity-80",e.selected?"border-primary bg-primary/10":"border-border bg-background",e.accent&&!e.selected&&"bg-primary/5"),u=Xe("size-4 shrink-0 rounded-full border",e.selected?"border-[5px] border-primary":"border-muted-foreground/40");return s!==o.e&&te(t,"aria-checked",o.e=s),a!==o.t&&Le(t,o.t=a),u!==o.a&&Le(n,o.a=u),o},{e:void 0,t:void 0,a:void 0}),t})(),wv=e=>{const[t,n]=G({}),[r,i]=G(!1);Ae(()=>{e.open&&n(Qy(e.questions))});const o=ge(()=>Jy(e.questions,t())),s=(d,p)=>n(g=>({...g,[d]:{...g[d]??{note:""},...p}})),a=d=>t()[d]??{note:""};function u(d,p){p==="accept"?s(d,{confirmTop:p,confirmIntent:void 0,confirmDrop:void 0,note:""}):s(d,{confirmTop:p})}function c(d,p){p==="dropGoal"?s(d,{confirmIntent:p}):s(d,{confirmIntent:p,confirmDrop:void 0})}async function l(){i(!0);try{const d=ev(e.questions,t());if(!d.ok){Ee(y("specDetail.reasonRequired"),"error");return}const p=nv(e.freeforms);if(d.items.length===0&&p.length===0){Ee(y("specDetail.unanswered",{count:e.questions.length}),"error");return}const g={answers:d.items,freeformAnnotations:p};await ue.submitQuestionAnswers(e.projectId,e.specId,g);const{sessionId:f}=await ue.runAgent(e.projectId,e.specId);Ee(y("specDetail.submitted")),e.onSubmitted(f)}catch(d){Ee(d.message||y("specDetail.submitFailed"),"error")}finally{i(!1)}}return m(Pn,{get open(){return e.open},get title(){return y("specDetail.questions")},get onClose(){return e.onClose},get footer(){return(()=>{var d=gv(),p=d.firstChild;return _(d,m(I,{get when(){return o()>0},get children(){var g=pv();return _(g,()=>y("specDetail.unanswered",{count:o()})),g}}),p),p.$$click=()=>void l(),_(p,(()=>{var g=Fe(()=>!!r());return()=>g()?y("specDetail.submitting"):y("specDetail.submit")})()),Z(()=>p.disabled=r()),d})()},get children(){return m(I,{get when(){return e.questions.length>0||e.freeforms.length>0},get fallback(){return(()=>{var d=hv();return _(d,()=>y("specDetail.questionsEmpty")),d})()},get children(){var d=fv();return _(d,m(Ke,{get each(){return e.questions},children:p=>(()=>{var g=vv(),f=g.firstChild;return _(f,()=>p.text),_(g,m(I,{get when(){return p.kind==="confirm"},get children(){return[(()=>{var h=mv();return _(h,m(I,{get when(){return p.plan},get children(){var b=Fu(),v=b.firstChild,x=v.firstChild;return _(v,()=>y("specDetail.plan"),x),_(b,()=>p.plan,null),b}}),null),_(h,m(I,{get when(){return p.impact},get children(){var b=Fu(),v=b.firstChild,x=v.firstChild;return _(v,()=>y("specDetail.impact"),x),_(b,()=>p.impact,null),b}}),null),Z(()=>Le(h,Xe("mb-2 space-y-1 rounded-md border bg-muted/40 px-3 py-2 text-xs",rv(p.impact)))),h})(),(()=>{var h=Pu();return _(h,m(On,{get label(){return y("specDetail.decisionAccept")},get selected(){return a(p.id).confirmTop==="accept"},onSelect:()=>u(p.id,"accept")}),null),_(h,m(On,{get label(){return y("specDetail.decisionReject")},get selected(){return a(p.id).confirmTop==="reject"},onSelect:()=>u(p.id,"reject")}),null),h})(),m(I,{get when(){return a(p.id).confirmTop==="reject"},get children(){var h=xv(),b=h.firstChild,v=b.firstChild,x=v.nextSibling;return _(h,m(Ke,{get each(){return[["alternative",y("specDetail.decisionAlternative")],["constraint",y("specDetail.decisionConstraint")],["dropGoal",y("specDetail.decisionDropGoal")]]},children:([E,w])=>m(On,{label:w,get selected(){return a(p.id).confirmIntent===E},onSelect:()=>c(p.id,E)})}),b),_(h,m(I,{get when(){return a(p.id).confirmIntent==="dropGoal"},get children(){var E=bv();return _(E,m(Ke,{get each(){return[["current",y("specDetail.decisionDropCurrent")],["spec",y("specDetail.decisionDropSpec")]]},children:([w,C])=>m(On,{label:C,get selected(){return a(p.id).confirmDrop===w},onSelect:()=>s(p.id,{confirmDrop:w})})})),E}}),b),_(v,()=>y("specDetail.rejectReason")),x.$$input=E=>s(p.id,{note:E.currentTarget.value}),Z(()=>te(x,"placeholder",y("specDetail.rejectReasonHint"))),Z(()=>x.value=a(p.id).note),h}})]}}),null),_(g,m(I,{get when(){return p.kind==="choice"},get children(){var h=Pu();return _(h,m(Ke,{get each(){return p.options},children:b=>m(On,{get label(){return b.label},get accent(){return b.recommended},get selected(){return a(p.id).selectedOptionLabel===b.label},onSelect:()=>s(p.id,{selectedOptionLabel:b.label})})}),null),_(h,m(On,{get label(){return y("specDetail.freeformOther")},get selected(){return a(p.id).selectedOptionLabel===tr},onSelect:()=>s(p.id,{selectedOptionLabel:tr})}),null),_(h,m(I,{get when(){return a(p.id).selectedOptionLabel===tr},get children(){var b=_v();return b.$$input=v=>s(p.id,{note:v.currentTarget.value}),Z(()=>te(b,"placeholder",y("specDetail.freeformHint"))),Z(()=>b.value=a(p.id).note),b}}),null),h}}),null),_(g,m(I,{get when(){return p.kind==="freeform"},get children(){var h=yv();return h.$$input=b=>s(p.id,{note:b.currentTarget.value}),Z(()=>te(h,"placeholder",y("specDetail.freeformHint"))),Z(()=>h.value=a(p.id).note),h}}),null),g})()}),null),_(d,m(Ke,{get each(){return e.freeforms},children:p=>(()=>{var g=Ev(),f=g.firstChild,h=f.firstChild,b=h.nextSibling,v=f.nextSibling,x=v.firstChild,E=x.nextSibling,w=E.nextSibling,C=w.nextSibling,O=C.nextSibling;O.nextSibling;var $=v.nextSibling;return $.firstChild,_(h,()=>y("specDetail.annotationDraft")),b.$$click=()=>e.onRemoveFreeform(p.id),_(b,m(vn,{size:20,"aria-hidden":"true"})),_(x,()=>p.sectionPath),_(v,()=>y("specDetail.annotationQuoteConnector"),w),_(v,()=>p.quote.slice(0,200),O),_($,()=>p.note,null),Z(()=>te(b,"aria-label",y("specDetail.removeAnnotation"))),g})()}),null),d}})}})};qe(["click","input"]);var kv=N("<div>"),Sv=N("<div><textarea>");const ld=e=>{let t,n,r=null;Me(()=>{r&&clearTimeout(r)});const i=nd({projectId:()=>e.projectId,value:()=>e.value,onValueChange:a=>e.onValueChange(a),searchDebounceMs:rd}),o=()=>i.open()&&i.items().length>0;Ae(()=>{o()&&requestAnimationFrame(()=>n?.scrollIntoView({block:"nearest"}))});function s(a){const u=i.select(a);u.kind==="text"&&requestAnimationFrame(()=>{t&&(t.focus(),t.setSelectionRange(u.cursorPos,u.cursorPos))})}return(()=>{var a=Sv(),u=a.firstChild;u.addEventListener("blur",()=>{r&&clearTimeout(r),r=setTimeout(i.close,id)}),u.$$input=l=>{e.onValueChange(l.currentTarget.value),i.handleInput(l.currentTarget)};var c=t;return typeof c=="function"?Vt(c,u):t=u,_(a,m(I,{get when(){return o()},get children(){var l=kv(),d=n;return typeof d=="function"?Vt(d,l):n=l,_(l,m(od,{get items(){return i.items()},empty:!1,inline:!0,onSelect:s})),l}}),null),Z(l=>{var d=e.rows??5,p=e.class,g=e.placeholder;return d!==l.e&&te(u,"rows",l.e=d),p!==l.t&&Le(u,l.t=p),g!==l.a&&te(u,"placeholder",l.a=g),l},{e:void 0,t:void 0,a:void 0}),Z(()=>u.value=e.value),a})()};qe(["input"]);var Cv=N('<div class=space-y-4><div class="flex gap-2"role=radiogroup></div><label class=block><span class="mb-1 block text-xs text-muted-foreground">'),Av=N('<button type=button class="ml-auto flex min-h-11 w-full items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),Tv=N("<button type=button role=radio>");const Nv=[{value:"feat",labelKey:"specDetail.appendKindFeat"},{value:"refct",labelKey:"specDetail.appendKindRefct"},{value:"fix",labelKey:"specDetail.appendKindFix"}],Rv=e=>{const[t,n]=G("fix"),[r,i]=G(""),[o,s]=G(!1);Ae(()=>{e.open&&(n("fix"),i(""))});async function a(){const u=r().trim();if(!(!u||o())){s(!0);try{const c={kind:t(),description:u},l=await ue.appendItem(e.projectId,e.specId,c);if(l.busy){Ee(y("specDetail.appendSavedSpecBusy"),"error"),e.onSubmitted("");return}Ee(y("specDetail.appendSaved")),e.onSubmitted(l.sessionId??"")}catch(c){Ee(c.message||y("specDetail.appendFailed"),"error")}finally{s(!1)}}}return m(Pn,{get open(){return e.open},get title(){return y("specDetail.appendTask")},get onClose(){return e.onClose},get footer(){return(()=>{var u=Av();return u.$$click=()=>void a(),_(u,(()=>{var c=Fe(()=>!!o());return()=>c()?y("specDetail.submitting"):y("specDetail.submit")})()),Z(()=>u.disabled=o()||r().trim().length===0),u})()},get children(){var u=Cv(),c=u.firstChild,l=c.nextSibling,d=l.firstChild;return _(c,m(Ke,{each:Nv,children:p=>(()=>{var g=Tv();return g.$$click=()=>n(p.value),_(g,()=>y(p.labelKey)),Z(f=>{var h=t()===p.value,b=Xe("min-h-11 flex-1 rounded-lg border text-sm active:opacity-80",t()===p.value?"border-primary bg-primary/10 font-medium":"border-border bg-background");return h!==f.e&&te(g,"aria-checked",f.e=h),b!==f.t&&Le(g,f.t=b),f},{e:void 0,t:void 0}),g})()})),_(d,()=>y("specDetail.appendDescription")),_(l,m(ld,{get projectId(){return e.projectId},rows:5,class:"w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary",get placeholder(){return y("specDetail.appendDescriptionHint")},get value(){return r()},onValueChange:i}),null),Z(()=>te(c,"aria-label",y("newSpec.type"))),u}})};qe(["click"]);var Dv=N('<div class="flex items-center"><button type=button class="ml-auto min-h-11 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),Ov=N('<div class=space-y-3><p class="text-xs text-muted-foreground"></p><blockquote class="m-0 break-words border-l-2 border-border bg-muted/40 px-3 py-2 text-sm text-muted-foreground"></blockquote><textarea rows=4 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">');const $v=200,Iv=e=>{const[t,n]=G("");Ae(()=>{e.open&&n("")});const r=()=>t().trim().length>0;return m(Pn,{get open(){return e.open},get title(){return y("specDetail.annotateTitle")},get onClose(){return e.onClose},get footer(){return(()=>{var i=Dv(),o=i.firstChild;return o.$$click=()=>e.onSubmit(t().trim()),_(o,()=>y("specDetail.annotateSubmit")),Z(()=>o.disabled=!r()),i})()},get children(){return m(I,{get when(){return e.snap},children:i=>(()=>{var o=Ov(),s=o.firstChild,a=s.nextSibling,u=a.nextSibling;return _(s,()=>y("specDetail.annotateInSection",{section:i().sectionPath})),_(a,()=>i().text.slice(0,$v)),u.$$input=c=>n(c.currentTarget.value),Z(()=>te(u,"placeholder",y("specDetail.annotatePlaceholder"))),Z(()=>u.value=t()),o})()})}})};qe(["click","input"]);var Mv=N('<div class="animate-in slide-in-from-bottom-4 fixed inset-x-0 bottom-0 z-50 border-t border-border bg-card shadow-lg duration-150 px-safe pb-safe"role=toolbar><div class="flex items-center gap-3 px-2 py-2"><button type=button class="min-h-11 flex-1 rounded-lg text-sm active:bg-accent"></button><button type=button class="min-h-11 flex-1 rounded-lg text-sm active:bg-accent"></button><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60">');const Lv=e=>m(I,{get when(){return e.snap},children:t=>(()=>{var n=Mv(),r=n.firstChild,i=r.firstChild,o=i.nextSibling,s=o.nextSibling;return i.$$click=()=>e.onAnnotate(t()),i.$$pointerdown=a=>a.preventDefault(),_(i,()=>y("specDetail.annotate")),o.$$click=()=>e.onExplain(t()),o.$$pointerdown=a=>a.preventDefault(),_(o,()=>y("specDetail.explain")),s.$$click=()=>e.onClose(),s.$$pointerdown=a=>a.preventDefault(),_(s,m(vn,{size:20,"aria-hidden":"true"})),Z(a=>{var u=y("specDetail.annotate"),c=y("specDetail.selectionClose");return u!==a.e&&te(n,"aria-label",a.e=u),c!==a.t&&te(s,"aria-label",a.t=c),a},{e:void 0,t:void 0}),n})()});qe(["pointerdown","click"]);var Bu=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Fv=N('<div class="px-4 py-4">'),Pv=N('<p class="px-4 py-8 text-center text-sm text-muted-foreground">'),Bv=N('<span class="flex items-center gap-1 text-primary"><span class="size-2 animate-pulse rounded-full bg-primary">'),Uv=N('<button type=button class="min-h-9 rounded-md border border-border px-3 text-xs text-muted-foreground active:bg-accent">'),zv=N('<section class="border-b border-border px-4 py-3"><p class="text-sm leading-relaxed"></p><div class="mt-2 flex flex-wrap items-center gap-2 text-xs"><span></span><time class=text-muted-foreground></time></div><div class="mt-3 flex flex-wrap gap-2"><button type=button class="min-h-9 rounded-md border border-border px-3 text-xs active:bg-accent"></button><button type=button class="flex min-h-9 min-w-9 items-center justify-center rounded-md border border-border active:bg-accent">'),qv=N('<article class="markdown px-4 py-4">'),Hv=N('<button type=button class="fixed bottom-6 right-4 z-40 flex size-10 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg active:opacity-80 disabled:opacity-40"><span class="absolute -right-1 -top-1 flex min-w-5 items-center justify-center rounded-full border border-background bg-destructive px-1 text-[11px] text-destructive-foreground">');const jv=120,Uu=3,Kv=150,Gv=250,zu=4e3,Wv=e=>new Promise(t=>setTimeout(t,e));async function Vv(e,t,n){for(let r=0;r<=Uu;r+=1)try{return await ue.getSpec(e,t)}catch(i){if(!i.message.startsWith("404"))throw i;r<Uu&&await Wv(Kv)}return n??null}const Zv=()=>{const e=pr(),t=ht(),n=()=>_e()??"",[r,i]=G(0),[o,s]=G(!1),[a,u]=G(""),[c,l]=G(null),[d,p]=G(!1),[g,f]=G(!1),[h,b]=G(!1),[v,x]=G(null),[E,w]=G(null),[C,O]=G(!1),[$,A]=G(null),[M,j]=G([]),[F,{refetch:P}]=nt(()=>[n(),e.id,r()],async([S,R],q)=>Vv(S,R,q.value)),[z]=nt(()=>[n(),e.id,r()],async([S,R])=>{if(!S||!R)return{exists:!1,text:""};try{return await ue.getDebug(S,R)}catch{return{exists:!1,text:""}}}),B=ge(()=>{const S=F();return S?By(S.body):[]}),T=ge(()=>B().length+M().length);Ae(()=>{const S=e.id,R=n();if(!S||!R)return;let q;const W=Zh(R,S,{onUpdated:()=>{q&&clearTimeout(q),q=setTimeout(()=>void fc(()=>i(ie=>ie+1)),jv)}});Me(()=>{q&&clearTimeout(q),W()})}),Ae(()=>{const S=e.id,R=n();!S||!R||ue.getSpecSession(R,S).then(({sessionId:q,running:W})=>{q&&(u(q),s(W))}).catch(()=>{})}),Ae(()=>{const S=n(),R=a();if(!S||!R)return;const q=cl(S,{onStatus:W=>{W.sessionId===R&&s(W.running)}});Me(q)}),Ae(()=>{const S=n(),R=a();if(!S||!R)return;const q=oi(S,R,{onEvent:W=>{(W.type==="turn-completed"||W.type==="error")&&s(!1)}});Me(q)}),Ae(()=>{const S=c(),R=F();if(!S||!R)return;const q=n();let W=!0,ie;const he=ys(R.body,{specId:R.id,projectId:q||void 0});Cy(S,`<article>${he}</article>`,{childrenOnly:!0,onBeforeElUpdated:(de,ke)=>!(de.classList?.contains("mermaid")&&de.getAttribute("data-mermaid-source")===ke.getAttribute?.("data-mermaid-source"))}),sd(S).then(de=>{if(!W){de();return}ie=de}),Me(()=>{W=!1,ie?.()})}),Ae(()=>{const S=c();if(!S)return;const R=sv(S,w,{noSectionLabel:y("specDetail.noSection"),throttleMs:Gv});Me(R)});function D(S){A(S),O(!0)}function X(S){const R=$();R&&(j(q=>[...q,{id:tv(q.length),sectionPath:R.sectionPath,quote:R.text,note:S}]),O(!1),w(null),Ee(y("specDetail.annotationSaved")))}function pe(S){j(R=>R.filter(q=>q.id!==S))}async function Q(S){if(S.text.length>zu){Ee(y("specDetail.explainTooLong",{max:zu}),"error");return}w(null),s(!0);try{const{sessionId:R}=await ue.explain(n(),e.id,S.text);u(R),t(`/sessions/${encodeURIComponent(R)}`)}catch(R){s(!1),Ee(R.message||y("specDetail.explainFailed"),"error")}}function L(S){if(!(S.target instanceof Element))return;const q=S.target.closest(".mermaid")?.querySelector("svg");q&&x(q.outerHTML)}function ne(){const S=a();S&&t(`/sessions/${encodeURIComponent(S)}`)}async function H(){const S=await si(_l(e.id));Ee(y(S?"specDetail.specPathCopied":"chat.filePathCopyFailed"),S?"default":"error"),b(!1)}return m(yt,{get title(){return e.id},padded:!1,onBack:()=>t("/specs"),get leading(){return m(I,{get when(){return a()},get children(){var S=Bu();return S.$$click=ne,_(S,m(Yp,{size:20,"aria-hidden":"true"})),Z(()=>te(S,"aria-label",y("specDetail.openSession"))),S}})},get actions(){return(()=>{var S=Bu();return S.$$click=()=>b(!0),_(S,m(or,{size:20,"aria-hidden":"true"})),Z(()=>te(S,"aria-label",y("specDetail.more"))),S})()},get children(){return[m(I,{get when(){return n()},get fallback(){return(()=>{var S=Fv();return _(S,m(Pt,{})),S})()},get children(){return m(I,{get when(){return!F.loading||F()},get fallback(){return m(ln,{})},get children(){return m(I,{get when(){return!F.error},get fallback(){return m(Xt,{get error(){return F.error},onRetry:()=>void P()})},get children(){return m(I,{get when(){return F()},get fallback(){return(()=>{var S=Pv();return _(S,()=>y("specDetail.notFound")),S})()},children:S=>[(()=>{var R=zv(),q=R.firstChild,W=q.nextSibling,ie=W.firstChild,he=ie.nextSibling,de=W.nextSibling,ke=de.firstChild,Oe=ke.nextSibling;return _(q,()=>S().frontmatter.summary||y("common.pendingAgent")),_(ie,()=>S().frontmatter.stage),_(W,m(I,{get when(){return o()},get children(){var Ce=Bv();return Ce.firstChild,_(Ce,()=>y("specDetail.running"),null),Ce}}),he),_(he,()=>yl(S().frontmatter.updated_at)),ke.$$click=()=>f(!0),_(ke,()=>y("specDetail.appendTask")),_(de,m(I,{get when(){return z()?.exists},get children(){var Ce=Uv();return Ce.$$click=()=>t(`/specs/${encodeURIComponent(e.id)}/debug`),_(Ce,()=>y("specDetail.debug")),Ce}}),Oe),Oe.$$click=()=>t(`/specs/${encodeURIComponent(e.id)}/git`),_(Oe,m(is,{size:16,"aria-hidden":"true"})),Z(Ce=>{var Ye=Xe("rounded border px-1.5 py-0.5",bl(S().frontmatter.stage)),st=y("specDetail.git"),vt=y("specDetail.git");return Ye!==Ce.e&&Le(ie,Ce.e=Ye),st!==Ce.t&&te(Oe,"aria-label",Ce.t=st),vt!==Ce.a&&te(Oe,"title",Ce.a=vt),Ce},{e:void 0,t:void 0,a:void 0}),R})(),(()=>{var R=qv();return R.$$click=L,Vt(q=>l(q),R),R})(),m(I,{get when(){return T()>0},get children(){var R=Hv(),q=R.firstChild;return R.$$click=()=>p(!0),_(R,m(Op,{size:24,"aria-hidden":"true"}),q),_(q,T),Z(W=>{var ie=y("specDetail.questions"),he=o();return ie!==W.e&&te(R,"aria-label",W.e=ie),he!==W.t&&(R.disabled=W.t=he),W},{e:void 0,t:void 0}),R}}),m(Lv,{get snap(){return Fe(()=>!!C())()?null:E()},onAnnotate:D,onExplain:R=>void Q(R),onClose:()=>w(null)}),m(Iv,{get open(){return C()},get snap(){return $()},onClose:()=>O(!1),onSubmit:X}),m(wv,{get open(){return d()},get projectId(){return n()},get specId(){return S().id},get questions(){return B()},get freeforms(){return M()},onRemoveFreeform:pe,onClose:()=>p(!1),onSubmitted:R=>{p(!1),s(!0),j([]),R&&(u(R),t(`/sessions/${encodeURIComponent(R)}`))}}),m(Rv,{get open(){return g()},get projectId(){return n()},get specId(){return S().id},onClose:()=>f(!1),onSubmitted:R=>{f(!1),R&&(s(!0),u(R),t(`/sessions/${encodeURIComponent(R)}`))}})]})}})}})}}),m(Un,{get open(){return h()},get title(){return e.id},get items(){return[{label:y("specDetail.copySpecPath"),onSelect:()=>void H()}]},onClose:()=>b(!1)}),m(cd,{get svg(){return v()},onClose:()=>x(null)})]}})};qe(["click"]);var Yv=N('<article class="markdown px-4 py-4">'),Xv=N('<p class="border-b border-border px-4 py-3 text-sm leading-relaxed">');const Qv=()=>{const e=pr(),t=ht(),[n,r]=G(null),[i,o]=G(null),[s]=nt(()=>{const d=_e();return d?[d,e.id]:null},([d,p])=>ue.getSpec(d,p)),[a,{refetch:u}]=nt(()=>{const d=_e();return d?[d,e.id]:null},([d,p])=>ue.getDebug(d,p)),c=ge(()=>{const d=o2(a()?.text??"");return d.trim()?ys(d,{specId:e.id,projectId:_e()||void 0}):""});Ae(()=>{const d=n(),p=c();if(!d)return;d.innerHTML=p;let g=!0,f;sd(d).then(h=>{if(!g){h();return}f=h}),Me(()=>{g=!1,f?.()})});function l(d){if(!(d.target instanceof Element))return;const p=d.target.closest(".mermaid")?.querySelector("svg");p&&o(p.outerHTML)}return m(yt,{get title(){return y("specDetail.debug")},padded:!1,onBack:()=>t(`/specs/${encodeURIComponent(e.id)}`),get children(){return[m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return[m(I,{get when(){return s()?.frontmatter.summary},children:d=>(()=>{var p=Xv();return _(p,d),p})()}),m(I,{get when(){return!a.loading},get fallback(){return m(ln,{})},get children(){return m(I,{get when(){return!a.error},get fallback(){return m(Xt,{get error(){return a.error},onRetry:()=>void u()})},get children(){return m(I,{get when(){return c()},get fallback(){return m(Tt,{get title(){return y("specDebug.empty")}})},get children(){var d=Yv();return d.$$click=l,Vt(r,d),d}})}})}})]}}),m(cd,{get svg(){return i()},onClose:()=>o(null)})]}})};qe(["click"]);const Jv={M:"text-warning",A:"text-success",D:"text-destructive","??":"text-info",R:"text-primary"};function eE(e){return Jv[e]??""}function tE(e,t,n){const r=new Set(n.map(o=>o.path)),i=new Set;for(const o of e)r.has(o)&&i.add(o);return{selected:i,active:t&&r.has(t)?t:null}}function nE(e){return`${e?.index??""}${e?.worktree??""}`}var To,qu;function rE(){if(qu)return To;qu=1,To=l=>{if(!l)return[];if(typeof l!="string"||l.match(/^\s+$/))return[];const d=l.split(`
|
|
33
|
-
`);if(d.length===0)return[];const p=[];let g=null,f=null,h=0,b=0,v=null;const x=H=>{f?.changes.push({type:"normal",normal:!0,ln1:h++,ln2:b++,content:H}),v.oldLines--,v.newLines--},E=H=>{const[S,R]=n(H)??[];g={chunks:[],deletions:0,additions:0,from:S,to:R},p.push(g)},w=()=>{(!g||g.chunks.length)&&E()},C=(H,S)=>{w(),g.new=!0,g.newMode=S[1],g.from="/dev/null"},O=(H,S)=>{w(),g.deleted=!0,g.oldMode=S[1],g.to="/dev/null"},$=(H,S)=>{w(),g.oldMode=S[1]},A=(H,S)=>{w(),g.newMode=S[1]},M=(H,S)=>{w(),g.index=H.split(" ").slice(1),S[1]&&(g.oldMode=g.newMode=S[1].trim())},j=H=>{w(),g.from=i(H)},F=H=>{w(),g.to=i(H)},P=H=>+(H||1),z=(H,S)=>{g||E(H);const[R,q,W,ie]=S.slice(1);h=+R,b=+W,f={content:H,changes:[],oldStart:+R,oldLines:P(q),newStart:+W,newLines:P(ie)},v={oldLines:P(q),newLines:P(ie)},g.chunks.push(f)},B=H=>{f&&(f.changes.push({type:"del",del:!0,ln:h++,content:H}),g.deletions++,v.oldLines--)},T=H=>{f&&(f.changes.push({type:"add",add:!0,ln:b++,content:H}),g.additions++,v.newLines--)},D=H=>{if(!f)return;const[S]=f.changes.slice(-1);f.changes.push({type:S.type,[S.type]:!0,ln1:S.ln1,ln2:S.ln2,ln:S.ln,content:H})},X=[[/^diff\s/,E],[/^new file mode (\d+)$/,C],[/^deleted file mode (\d+)$/,O],[/^old mode (\d+)$/,$],[/^new mode (\d+)$/,A],[/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/,M],[/^---\s/,j],[/^\+\+\+\s/,F],[/^@@\s+-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/,z],[/^\$/,D]],pe=[[/^\$/,D],[/^-/,B],[/^\+/,T],[/^\s*/,x]],Q=H=>{for(const[S,R]of pe){const q=H.match(S);if(q){R(H,q);break}}v.oldLines===0&&v.newLines===0&&(v=null)},L=H=>{for(const[S,R]of X){const q=H.match(S);if(q){R(H,q);break}}},ne=H=>{v?Q(H):L(H)};for(const H of d)ne(H);return p};const e=/(a|i|w|c|o|1|2)\/.*(?=["']? ["']?(b|i|w|c|o|1|2)\/)|(b|i|w|c|o|1|2)\/.*$/g,t=/^(a|b|i|w|c|o|1|2)\//,n=l=>l?.match(e)?.map(d=>d.replace(t,"").replace(/("|')$/,"")),r=/^\\?['"]|\\?['"]$/g,i=l=>{let d=o(l,"-+").trim();return d=a(d),d.replace(r,"").replace(t,"")},o=(l,d)=>{l=c(l);const p=u(d);return l.replace(new RegExp(`^${p}+`),"")},s=/\t.*|\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(.\d+)?\s(\+|-)\d\d\d\d/,a=l=>{const d=s.exec(l);return d&&(l=l.substring(0,d.index).trim()),l},u=l=>l instanceof RegExp?l.source:`[${c(l).replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}]`,c=l=>`${l??""}`;return To}var iE=rE();const oE=ri(iE),sE={ts:"typescript",tsx:"typescript",mts:"typescript",cts:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",json:"json",css:"css",scss:"scss",less:"less",html:"xml",vue:"xml",xml:"xml",svg:"xml",md:"markdown",markdown:"markdown",sh:"bash",bash:"bash",zsh:"bash",yml:"yaml",yaml:"yaml",toml:"ini",ini:"ini",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",c:"c",h:"c",cpp:"cpp",hpp:"cpp",cs:"csharp",php:"php",sql:"sql"};function aE(e){const t=e.split(".").pop()?.toLowerCase()??"",n=sE[t];return n&&Yr.getLanguage(n)?n:void 0}function uE(e,t){if(!(!t||!e))try{return Yr.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return}}function cE(e){return e?oE(e).map(t=>({chunks:t.chunks.map(n=>({header:n.content,rows:n.changes.map(lE)}))})):[]}function lE(e){const t=e.type==="add"?"":e.type==="del"?e.ln:e.ln1,n=e.type==="del"?"":e.type==="add"?e.ln:e.ln2;return{oldLn:t,newLn:n,marker:e.content.slice(0,1),code:e.content.slice(1),tone:e.type==="add"?"add":e.type==="del"?"del":"normal"}}var dE=N('<button type=button class="flex shrink-0 items-center gap-2 border-b border-border bg-card px-4 py-2.5 text-left active:bg-accent disabled:opacity-40"><span class="min-w-0 flex-1 truncate font-mono text-sm"></span><span class="shrink-0 text-xs text-muted-foreground">'),fE=N("<div>"),Hu=N('<ul class="divide-y-[0.5px] divide-border">'),pE=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),gE=N('<div class="mb-2 flex rounded-lg border border-border p-0.5"role=radiogroup>'),hE=N('<textarea rows=1 class="w-full resize-none overflow-y-hidden rounded-lg border border-border bg-background px-3 py-2 text-base leading-6 outline-none focus:border-primary">'),mE=N('<button type=button class="min-h-11 shrink-0 rounded-lg px-3 text-sm active:bg-accent disabled:opacity-40">'),bE=N('<div class="shrink-0 border-t border-border bg-card px-safe pb-safe"><div class="px-4 pb-3 pt-2"><div class="flex items-center gap-2"><span class="min-w-0 flex-1 truncate text-xs text-muted-foreground"></span><button type=button class="min-h-11 shrink-0 rounded-lg px-4 text-sm text-destructive active:bg-accent disabled:opacity-40"></button><button type=button class="min-h-11 shrink-0 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),xE=N("<button type=button role=radio>"),_E=N('<div class="flex items-center active:bg-accent"><button type=button class="flex size-11 shrink-0 items-center justify-center"role=checkbox><span></span></button><button type=button><span></span><span class="truncate-start min-w-0 flex-1 font-mono text-xs">'),yE=N('<span class="shrink-0 text-xs text-warning">'),vE=N('<div class="code-highlight scroll-y min-h-0 flex-1 border-t border-border"><div class="sticky top-0 flex items-center gap-2 border-b border-border bg-card px-4 py-1.5"><span class="truncate-start min-w-0 flex-1 font-mono text-xs">'),ju=N('<p class="py-6 text-center text-sm text-muted-foreground">'),EE=N('<li><button type=button class="flex min-h-11 w-full items-center gap-2 py-2 text-left font-mono text-sm active:bg-accent disabled:opacity-40"><span class="min-w-0 flex-1 truncate">'),wE=N('<button type=button class="my-1 min-h-9 shrink-0 rounded-lg bg-primary px-3 text-xs font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),kE=N('<li><button type=button class="min-h-11 min-w-0 flex-1 truncate py-2 text-left font-mono text-sm active:opacity-80 disabled:opacity-40">'),SE=N('<input type=text class="mb-2 w-full rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary"autocapitalize=off autocorrect=off>'),No=N('<p class="p-4 text-sm text-muted-foreground">'),CE=N('<p class="p-4 text-sm text-destructive">'),AE=N('<div><div class="bg-muted px-2 py-0.5 font-mono text-[11px] text-muted-foreground">'),TE=N('<div><span class="w-9 shrink-0 select-none px-1 text-right text-muted-foreground"></span><span class="w-9 shrink-0 select-none px-1 text-right text-muted-foreground"></span><pre class="m-0 min-w-0 flex-1 whitespace-pre-wrap break-all px-1"><span>'),NE=N("<span>"),RE=N("<span class=hljs>");const Ku=5,dd=e=>{const[t,n]=G([]),[r,i]=G(new Set),[o,s]=G(null),[a,u]=G(""),[c,l]=G(!1),[d,p]=G(null),[g,f]=G("manual"),[h,b]=G(null),[v,x]=G(!1),[E,w]=G(!1),[C,O]=G(""),[$,A]=G(""),[M,j]=G(null),[F,P]=G(!1),[z,B]=G(!1),[T,D]=G(),X=()=>_e()??void 0,pe=()=>e.specId?.(),Q=ge(()=>!!pe()),L=ge(()=>d()!==null||h()!==null);let ne=null;Me(()=>ne?.()),Ae(()=>{const K=e.initialMessage?.()??"";K&&!c()&&u(K)}),Ae(()=>{a();const K=T();K?.isConnected&&er(K,Ku)});const[H,{refetch:S,mutate:R}]=nt(X,K=>ue.getGitBranches(K));function q(K){n(K);const V=tE(r(),o(),K);i(V.selected),s(V.active)}Ae(()=>{const K=X();if(!K)return;let V=!1,ae=!1;ue.getProjectChanges(K).then(Re=>{V||ae||q(Re.changes)}).catch(()=>{});const be=Qh(K,Re=>{ae=!0,q(Re)});Me(()=>{V=!0,be()})});const[W]=nt(()=>{const K=o(),V=X();return!K||!V?null:{pid:V,path:K,revision:nE(t().find(ae=>ae.path===K))}},K=>ue.getFileDiff(K.pid,K.path)),ie=ge(()=>{const K=C().trim().toLowerCase(),V=H()?.branches??[];return K?V.filter(ae=>ae.toLowerCase().includes(K)):V}),he=ge(()=>{const K=H(),V=[...K?.branches??[],...K?.remoteBranches??[]],ae=$().trim().toLowerCase();return ae?V.filter(be=>be.toLowerCase().includes(ae)):V}),de=ge(()=>t().length>0&&t().every(K=>r().has(K.path))),ke=ge(()=>L()?!1:g()==="agent"?!0:r().size>0&&a().trim().length>0),Oe=ge(()=>!L()&&(g()==="agent"||r().size>0));function Ce(K){i(V=>{const ae=new Set(V);return ae.has(K)?ae.delete(K):ae.add(K),ae})}function Ye(){i(de()?new Set:new Set(t().map(K=>K.path)))}async function st(K){const V=await ue.getProjectChanges(K);q(V.changes)}async function vt(K,V){const ae=X();if(!(!ae||L())){p(K);try{await V(ae)}catch(be){Ee(be.message,"error")}finally{p(null)}}}const dn=ht();async function fn(K){const V=X(),ae=pe();if(!(!V||!ae||L())){b(K);try{const be=await ue.gitOp(V,ae,K);ne?.(),ne=oi(V,be.sessionId,{onEvent:Re=>{(Re.type==="turn-completed"||Re.type==="error")&&(b(null),ne?.(),ne=null)}}),Ee(y("git.agentDispatched")),dn(`/sessions/${encodeURIComponent(be.sessionId)}`)}catch(be){b(null),Ee(be.message,"error")}}}const wn=()=>g()==="agent"?void fn("commit"):void vt("commit",async K=>{const V=a().trim();if(r().size===0)return void Ee(y("git.selectAtLeastOne"),"error");if(!V)return void Ee(y("git.enterCommitMsg"),"error");await ue.projectCommit(K,{message:V,paths:[...r()]}),i(new Set),s(null),u(""),Ee(y("git.committed")),await st(K)}),qn=()=>g()==="agent"?void fn("discard"):void vt("discard",async K=>{if(r().size===0)return void Ee(y("git.selectAtLeastOne"),"error");await ue.projectDiscard(K,{paths:[...r()]}),i(new Set),s(null),Ee(y("git.discarded")),await st(K)}),kn=()=>vt("push",async K=>{const V=await ue.projectPush(K);Ee(y("git.pushed",{branch:V.branch}))}),pn=()=>vt("pull",async K=>{const V=await ue.projectPull(K);Ee(V.updated?y("git.pulled",{branch:V.branch}):y("git.upToDate")),await st(K)}),Hn=K=>vt("checkout",async V=>{if(K===H()?.current)return;const ae=await ue.checkoutGitBranch(V,K);R(be=>({current:ae.current,branches:be?.branches.includes(ae.current)?be.branches:[...be?.branches??[],ae.current].sort(),remoteBranches:be?.remoteBranches??[]})),i(new Set),s(null),O(""),x(!1),Ee(y("git.switched",{branch:ae.current})),await st(V),await S()}),Sn=K=>vt("merge",async V=>{try{const ae=await ue.mergeGitBranch(V,K);Ee(ae.alreadyUpToDate?y("git.mergeUpToDate",{current:ae.current,branch:ae.merged}):y("git.merged",{current:ae.current,branch:ae.merged})),j(null),A(""),await st(V),await S()}finally{w(!1)}}),St=()=>{if(z())return[{label:y("git.discardConfirm"),tone:"destructive",onSelect:()=>{P(!1),B(!1),qn()}}];const K=[];return K.push({label:y("git.push"),onSelect:()=>{P(!1),kn()}}),K.push({label:y("git.pull"),onSelect:()=>{P(!1),pn()}}),K.push({label:y("git.mergeBranch"),onSelect:()=>{P(!1),j(null),A(""),w(!0)}}),K};return m(yt,{get title(){return e.title},fill:!0,get onBack(){return e.onBack},get actions(){return(()=>{var K=pE();return K.$$click=()=>{B(!1),P(!0)},_(K,m(or,{size:20,"aria-hidden":"true"})),Z(V=>{var ae=y("git.more"),be=L();return ae!==V.e&&te(K,"aria-label",V.e=ae),be!==V.t&&(K.disabled=V.t=be),V},{e:void 0,t:void 0}),K})()},get footer(){return m(I,{get when(){return _e()},get children(){var K=bE(),V=K.firstChild,ae=V.firstChild,be=ae.firstChild,Re=be.nextSibling,at=Re.nextSibling;return _(V,m(I,{get when(){return Q()},get children(){var De=gE();return _(De,m(Ke,{get each(){return[["manual",y("git.manualSelect")],["agent",y("git.agentSelect")]]},children:([He,je])=>(()=>{var dt=xE();return dt.$$click=()=>f(He),_(dt,je),Z(xt=>{var zt=g()===He,qt=Xe("min-h-9 flex-1 rounded-md text-xs active:opacity-80 disabled:opacity-40",g()===He?"bg-primary text-primary-foreground":"text-muted-foreground"),Ct=L();return zt!==xt.e&&te(dt,"aria-checked",xt.e=zt),qt!==xt.t&&Le(dt,xt.t=qt),Ct!==xt.a&&(dt.disabled=xt.a=Ct),xt},{e:void 0,t:void 0,a:void 0}),dt})()})),De}}),ae),_(V,m(I,{get when(){return g()==="manual"},get children(){var De=hE();return De.$$input=He=>{er(He.currentTarget,Ku),l(!0),u(He.currentTarget.value)},Vt(D,De),Z(He=>{var je=y("git.commitPlaceholder"),dt=L();return je!==He.e&&te(De,"placeholder",He.e=je),dt!==He.t&&(De.disabled=He.t=dt),He},{e:void 0,t:void 0}),Z(()=>De.value=a()),De}}),ae),_(ae,m(I,{get when(){return g()==="manual"},get children(){var De=mE();return De.$$click=Ye,_(De,(()=>{var He=Fe(()=>!!de());return()=>He()?y("git.deselectAll"):y("git.selectAll")})()),Z(()=>De.disabled=L()||t().length===0),De}}),be),_(be,(()=>{var De=Fe(()=>g()==="agent");return()=>De()?y("git.agentScope",{total:t().length}):y("git.fileCount",{selected:r().size,total:t().length})})()),Re.$$click=()=>{B(!0),P(!0)},_(Re,(()=>{var De=Fe(()=>d()==="discard"||h()==="discard");return()=>De()?y("git.discarding"):y("git.discard")})()),at.$$click=()=>wn(),_(at,(()=>{var De=Fe(()=>d()==="commit"||h()==="commit");return()=>De()?y("git.committing"):y("git.commit")})()),Z(De=>{var He=!Oe(),je=!ke();return He!==De.e&&(Re.disabled=De.e=He),je!==De.t&&(at.disabled=De.t=je),De},{e:void 0,t:void 0}),K}})},get children(){return[m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return[(()=>{var K=dE(),V=K.firstChild,ae=V.nextSibling;return K.$$click=()=>{O(""),x(!0)},_(K,m(is,{size:16,class:"shrink-0 text-muted-foreground","aria-hidden":"true"}),V),_(V,()=>H()?.current??y("git.branch")),_(ae,(()=>{var be=Fe(()=>d()==="checkout");return()=>be()?y("common.loading"):y("git.switchBranch")})()),Z(()=>K.disabled=L()||H.loading),K})(),m(I,{get when(){return g()==="manual"},get fallback(){return m(Tt,{get title(){return y("git.agentModeHint")}})},get children(){return m(I,{get when(){return t().length>0},get fallback(){return m(Tt,{get title(){return y("git.empty")}})},get children(){return[(()=>{var K=fE();return _(K,m(Ke,{get each(){return t()},children:V=>(()=>{var ae=_E(),be=ae.firstChild,Re=be.firstChild,at=be.nextSibling,De=at.firstChild,He=De.nextSibling;return be.$$click=()=>Ce(V.path),_(Re,m(I,{get when(){return r().has(V.path)},get children(){return m(Bo,{size:14,"aria-hidden":"true"})}})),at.$$click=()=>s(je=>je===V.path?null:V.path),_(De,()=>V.status),_(He,()=>V.path),Z(je=>{var dt=r().has(V.path),xt=V.path,zt=L(),qt=Xe("flex h-5 w-5 items-center justify-center rounded border",r().has(V.path)?"border-primary bg-primary text-primary-foreground":"border-border"),Ct=Xe("flex min-w-0 flex-1 items-center gap-2 py-3 pr-4 text-left",o()===V.path&&"bg-accent"),gn=Xe("w-6 shrink-0 text-center text-xs font-bold",eE(V.status));return dt!==je.e&&te(be,"aria-checked",je.e=dt),xt!==je.t&&te(be,"aria-label",je.t=xt),zt!==je.a&&(be.disabled=je.a=zt),qt!==je.o&&Le(Re,je.o=qt),Ct!==je.i&&Le(at,je.i=Ct),gn!==je.n&&Le(De,je.n=gn),je},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),ae})()})),Z(()=>Le(K,Xe("scroll-y min-h-0 divide-y-[0.5px] divide-border",o()?"max-h-[38dvh] shrink-0":"flex-1"))),K})(),m(I,{get when(){return o()},children:K=>(()=>{var V=vE(),ae=V.firstChild,be=ae.firstChild;return _(be,K),_(ae,m(I,{get when(){return W()?.truncated},get children(){var Re=yE();return _(Re,()=>y("git.diffTruncated")),Re}}),null),_(V,m(DE,{get path(){return K()},get patch(){return W()?.patch??""},get binary(){return W()?.binary??!1},get loading(){return W.loading},get error(){return Fe(()=>!!W.error)()?W.error.message:null}}),null),V})()})]}})}})]}}),m(Un,{get open(){return F()},get description(){return Fe(()=>!!z())()?Fe(()=>g()==="agent")()?y("git.discardAllHint"):y("git.discardHint"):void 0},get items(){return St()},onClose:()=>{P(!1),B(!1)}}),m(Pn,{get open(){return v()},get title(){return y("git.switchBranch")},onClose:()=>x(!1),get children(){return[m(Gu,{get value(){return C()},onInput:O}),m(I,{get when(){return ie().length>0},get fallback(){return(()=>{var K=ju();return _(K,()=>y("git.noBranches")),K})()},get children(){var K=Hu();return _(K,m(Ke,{get each(){return ie()},children:V=>(()=>{var ae=EE(),be=ae.firstChild,Re=be.firstChild;return be.$$click=()=>void Hn(V),_(Re,V),_(be,m(I,{get when(){return V===H()?.current},get children(){return m(Bo,{size:16,class:"shrink-0 text-primary","aria-hidden":"true"})}}),null),Z(()=>be.disabled=L()||V===H()?.current),ae})()})),K}})]}}),m(Pn,{get open(){return E()},get title(){return y("git.mergeBranch")},onClose:()=>w(!1),get children(){return[m(Gu,{get value(){return $()},onInput:A}),m(I,{get when(){return he().length>0},get fallback(){return(()=>{var K=ju();return _(K,()=>y("git.noBranches")),K})()},get children(){var K=Hu();return _(K,m(Ke,{get each(){return he()},children:V=>(()=>{var ae=kE(),be=ae.firstChild;return be.$$click=()=>j(V),_(be,V),_(ae,m(I,{get when(){return M()===V},get children(){var Re=wE();return Re.$$click=()=>void Sn(V),_(Re,(()=>{var at=Fe(()=>d()==="merge");return()=>at()?y("git.merging"):y("git.mergeAction")})()),Z(()=>Re.disabled=L()),Re}}),null),Z(Re=>{var at=Xe("flex items-center gap-2",M()===V&&"bg-accent"),De=V===H()?.current,He=V===H()?.current?y("git.mergeSelfHint"):V;return at!==Re.e&&Le(ae,Re.e=at),De!==Re.t&&(be.disabled=Re.t=De),He!==Re.a&&te(be,"title",Re.a=He),Re},{e:void 0,t:void 0,a:void 0}),ae})()})),K}})]}})]}})},Gu=e=>(()=>{var t=SE();return t.$$input=n=>e.onInput(n.currentTarget.value),te(t,"spellcheck",!1),Z(()=>te(t,"placeholder",y("git.branchFilterPlaceholder"))),Z(()=>t.value=e.value),t})(),DE=e=>{const t=ge(()=>cE(e.patch)),n=ge(()=>t().some(i=>i.chunks.length>0)),r=ge(()=>aE(e.path));return m(I,{get when(){return!e.loading},get fallback(){return(()=>{var i=No();return _(i,()=>y("git.diffLoading")),i})()},get children(){return m(I,{get when(){return!e.error},get fallback(){return(()=>{var i=CE();return _(i,()=>e.error),i})()},get children(){return m(I,{get when(){return!e.binary},get fallback(){return(()=>{var i=No();return _(i,()=>y("git.binaryFile")),i})()},get children(){return m(I,{get when(){return n()},get fallback(){return(()=>{var i=No();return _(i,()=>y("git.diffEmpty")),i})()},get children(){return m(Ke,{get each(){return t()},children:i=>m(Ke,{get each(){return i.chunks},children:o=>(()=>{var s=AE(),a=s.firstChild;return _(a,()=>o.header),_(s,m(Ke,{get each(){return o.rows},children:u=>{const c=u.tone==="add"?"bg-success/10":u.tone==="del"?"bg-destructive/10":"",l=u.tone==="add"?"text-success":u.tone==="del"?"text-destructive":"text-muted-foreground",d=uE(u.code,r());return(()=>{var p=TE(),g=p.firstChild,f=g.nextSibling,h=f.nextSibling,b=h.firstChild;return Le(p,`flex font-mono text-[11px] leading-snug ${c}`),_(g,()=>u.oldLn),_(f,()=>u.newLn),Le(b,`select-none ${l}`),_(b,()=>u.marker),_(h,m(I,{when:d,get fallback(){return(()=>{var v=NE();return _(v,()=>u.code),v})()},children:v=>(()=>{var x=RE();return Z(()=>x.innerHTML=v()),x})()}),null),p})()}}),null),s})()})})}})}})}})}})};qe(["click","input"]);const OE=()=>{const e=pr(),t=ht(),[n]=nt(()=>{const r=_e();return r?[r,e.id]:null},([r,i])=>ue.getSpec(r,i));return m(dd,{get title(){return e.id},onBack:()=>t(`/specs/${encodeURIComponent(e.id)}`),specId:()=>e.id,initialMessage:()=>Om(e.id,n()?.frontmatter.summary)})},$E="yorz:new-spec-draft:";function IE(e){return e==="feat"||e==="refct"||e==="fix"}function vs(e){return`${$E}${e}`}function ME(e){if(!e||typeof window>"u")return{};try{const t=window.localStorage.getItem(vs(e));if(!t)return{};const n=JSON.parse(t);return{content:typeof n.content=="string"?n.content:void 0,type:IE(n.type)?n.type:void 0,useWorktree:typeof n.useWorktree=="boolean"?n.useWorktree:void 0}}catch{return{}}}function LE(e,t){if(!(!e||typeof window>"u"))try{const n=t.content.trim().length>0||t.type!=="feat"||t.useWorktree!==!1,r=vs(e);if(!n){window.localStorage.removeItem(r);return}window.localStorage.setItem(r,JSON.stringify(t))}catch{}}function Wu(e){return JSON.stringify(e)}function FE(e){if(!(!e||typeof window>"u"))try{window.localStorage.removeItem(vs(e))}catch{}}function PE(e){let t=new Set,n=!1;return{setBaseline(r){t=new Set(r),n=!1},async poll(){if(!n)try{const i=(await e.listSpecs()).find(o=>!t.has(o.id));if(!i||n)return;n=!0,e.onFound(i.id)}catch{}},found:()=>n}}var BE=N('<label class="flex h-16 w-24 items-center justify-center rounded border border-dashed border-border text-xl text-muted-foreground active:bg-accent">+<input type=file hidden multiple>'),UE=N('<p class="mt-1.5 text-xs text-destructive">'),zE=N('<p class="text-sm text-destructive">'),qE=N('<form class=space-y-5><fieldset><legend class="mb-2 text-xs text-muted-foreground"></legend><div class="flex gap-2"role=radiogroup></div><p class="mt-1.5 text-xs text-muted-foreground"></p></fieldset><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span></label><fieldset><legend class="mb-2 text-xs text-muted-foreground"></legend><div class="flex flex-wrap items-center gap-2"></div></fieldset><button type=submit class="flex min-h-12 w-full items-center justify-center rounded-lg bg-primary text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),HE=N("<button type=button role=radio>"),jE=N('<img class="h-16 w-24 rounded border object-cover">'),KE=N('<div class=relative><button type=button class="absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full border bg-background text-muted-foreground">'),GE=N('<div class="flex h-16 w-24 items-center justify-center rounded border bg-muted px-1 text-[10px] text-muted-foreground"><span class="truncate-start block w-full">');const Vu=[{value:"feat",labelKey:"newSpec.typeFeat",hintKey:"newSpec.typeFeatHint"},{value:"refct",labelKey:"newSpec.typeRefct",hintKey:"newSpec.typeRefctHint"},{value:"fix",labelKey:"newSpec.typeFix",hintKey:"newSpec.typeFixHint"}],WE=5,VE=()=>{const e=ht(),t=()=>_e()??"",[n,r]=G("feat"),[i,o]=G(""),[s,a]=G(!1),[u,c]=G(null),l=Sl({projectId:t,labels:Cl()});let d=null,p=null,g=!1,f="";Me(()=>{d?.(),p?.()}),Ae(Qr(t,v=>{g=!0;const x=ME(v);o(x.content??""),r(x.type??"feat"),g=!1})),Ae(()=>{if(g||s())return;const v={content:i(),type:n(),useWorktree:!1};Wu(v)!==f&&(f="",LE(t(),v))});const h=PE({listSpecs:()=>ue.listSpecs(t()),onFound:v=>{d?.(),d=null,p?.(),p=null,e(`/specs/${encodeURIComponent(v)}`,{replace:!0})}});async function b(v){if(v.preventDefault(),s())return;c(null);const x=i().trim();if(x.length<WE){c(y("newSpec.requirementTooShort"));return}if(l.attachments().some(E=>E.status==="failed")){c(y("chat.attachFailed"));return}if(l.hasPending()){c(y("chat.attachUploading"));return}a(!0);try{const E=t();f=Wu({content:x,type:n(),useWorktree:!1}),FE(E);const w=await ue.listSpecs(E);h.setBaseline(w.map(A=>A.id));const C={type:n(),requirement:x},O=l.draftId();O&&(C.draftId=O);const $=await ue.createSpec(E,C);"draft"in $&&$.draft?(Ee(y("newSpec.drafting")),p=oi(E,$.sessionId,{onEvent:A=>{A.type==="error"&&(a(!1),c(A.message||y("newSpec.createFailed")),p?.(),p=null)}}),d=cs(E,()=>void h.poll()),h.poll()):"id"in $&&e(`/specs/${encodeURIComponent($.id)}`,{replace:!0})}catch(E){c(E.message||y("newSpec.createFailed")),a(!1)}}return m(yt,{get title(){return y("newSpec.title")},onBack:()=>e("/specs"),get children(){return m(I,{get when(){return t()},get fallback(){return m(Pt,{})},get children(){var v=qE(),x=v.firstChild,E=x.firstChild,w=E.nextSibling,C=w.nextSibling,O=x.nextSibling,$=O.firstChild,A=O.nextSibling,M=A.firstChild,j=M.nextSibling,F=A.nextSibling;return v.addEventListener("submit",P=>void b(P)),_(E,()=>y("newSpec.type")),_(w,m(Ke,{each:Vu,children:P=>(()=>{var z=HE();return z.$$click=()=>r(P.value),_(z,()=>y(P.labelKey)),Z(B=>{var T=n()===P.value,D=Xe("min-h-11 flex-1 rounded-lg border text-sm active:opacity-80",n()===P.value?"border-primary bg-primary/10 font-medium":"border-border bg-background");return T!==B.e&&te(z,"aria-checked",B.e=T),D!==B.t&&Le(z,B.t=D),B},{e:void 0,t:void 0}),z})()})),_(C,()=>y(Vu.find(P=>P.value===n())?.hintKey??"newSpec.typeFeatHint")),_($,()=>y("newSpec.requirement")),_(O,m(ld,{get projectId(){return t()},rows:8,class:"w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary",get placeholder(){return y("newSpec.requirementHint")},get value(){return i()},onValueChange:o}),null),_(M,()=>y("newSpec.attachments")),_(j,m(Ke,{get each(){return l.attachments()},children:P=>(()=>{var z=KE(),B=z.firstChild;return _(z,m(I,{get when(){return P.previewUrl},get fallback(){return(()=>{var T=GE(),D=T.firstChild;return _(D,()=>P.name),T})()},get children(){var T=jE();return Z(D=>{var X=P.previewUrl,pe=P.name;return X!==D.e&&te(T,"src",D.e=X),pe!==D.t&&te(T,"alt",D.t=pe),D},{e:void 0,t:void 0}),T}}),B),B.$$click=()=>void l.removeAttachment(P.id),_(B,m(vn,{size:12,"aria-hidden":"true"})),Z(()=>te(B,"aria-label",y("common.close"))),z})()}),null),_(j,m(I,{get when(){return l.count()<Jn},get children(){var P=BE(),z=P.firstChild,B=z.nextSibling;return B.addEventListener("change",T=>void l.onFileInputChange(T)),te(B,"accept",kl),P}}),null),_(A,m(I,{get when(){return l.error()},get children(){var P=UE();return _(P,()=>l.error()),P}}),null),_(v,m(I,{get when(){return u()},get children(){var P=zE();return _(P,u),P}}),F),_(F,(()=>{var P=Fe(()=>!!s());return()=>P()?y("newSpec.creating"):y("newSpec.create")})()),Z(()=>F.disabled=s()),v}})}})};qe(["click"]);function fd(e,t,n){const r=Math.max(0,(t??n)-e),i=Math.floor(r/1e3),o=Math.floor(i/3600),s=Math.floor(i%3600/60),a=i%60,u=c=>String(c).padStart(2,"0");return o>0?`${o}:${u(s)}:${u(a)}`:`${s}:${u(a)}`}var ZE=N('<section class=mb-6><h2 class="mb-2 px-4 text-sm font-medium uppercase tracking-wide text-muted-foreground"></h2><div class="divide-y-[0.5px] divide-border border-y border-border bg-card">'),YE=N('<button type=button class="flex w-full items-center gap-3 px-4 py-3 text-left active:bg-accent"><span class="min-w-0 flex-1"><span class="block truncate"></span><span class="block truncate text-sm text-muted-foreground">'),XE=N('<p class="px-4 py-4 text-center text-sm text-muted-foreground">'),QE=N("<div class=py-4>"),JE=N('<div class="flex items-center gap-2 px-4 py-2.5"><button type=button class="min-w-0 flex-1 text-left active:opacity-60"><span class="block truncate text-sm"></span><span class="mt-0.5 flex items-center gap-2 text-muted-foreground"><time></time><span>·</span><span class=truncate></span></span></button><span class="flex shrink-0 items-center gap-3"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60"></button><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">');const Zu=e=>(()=>{var t=ZE(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.title),_(r,()=>e.children),t})(),Yu=e=>(()=>{var t=YE(),n=t.firstChild,r=n.firstChild,i=r.nextSibling;return t.$$click=()=>e.onClick(),_(t,m(e.icon,{size:18,class:"shrink-0 text-muted-foreground"}),n),_(r,()=>e.label),_(i,()=>e.desc),_(t,m(Np,{size:18,class:"shrink-0 text-muted-foreground"}),null),t})(),Xu=e=>(()=>{var t=XE();return _(t,()=>e.label),t})(),ew=()=>{const e=ht(),[t,{refetch:n,mutate:r}]=nt(()=>_e()??void 0,g=>ue.listCommandRuns(g));Ae(()=>{const g=_e();if(!g)return;const f=ll(g,h=>r(h));Me(()=>f())});const[i,o]=G(Date.now()),s=setInterval(()=>o(Date.now()),1e3);Me(()=>clearInterval(s));const a=ge(()=>(t()??[]).filter(g=>g.status==="running")),u=async g=>{const f=_e();if(f)try{await ue.clearCommandRun(f,g.runId),await ue.runCommand(f,g.commandId),Ee(y("ext.restarted"))}catch(h){Ee(h instanceof Error?h.message:String(h),"error")}},[c,l]=G(null),d=async g=>{const f=_e();if(l(null),!!f)try{await ue.stopCommandRun(f,g.runId),Ee(y("ext.stopped"))}catch(h){Ee(h instanceof Error?h.message:String(h),"error")}},p=()=>{const g=c();return g?[{label:y("ext.stopConfirm"),tone:"destructive",onSelect:()=>void d(g)}]:[]};return m(yt,{get title(){return y("ext.title")},padded:!1,get children(){return[(()=>{var g=QE();return _(g,m(Zu,{get title(){return y("ext.scripts")},get children(){return[m(Yu,{icon:Eg,get label(){return y("ext.scripts")},get desc(){return y("ext.scriptsDesc")},onClick:()=>e("/ext/scripts")}),m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(I,{get when(){return!t.loading},get fallback(){return m(Xu,{get label(){return y("common.loading")}})},get children(){return m(I,{get when(){return!t.error},get fallback(){return m(Xt,{get error(){return t.error},onRetry:()=>void n()})},get children(){return m(I,{get when(){return a().length>0},get fallback(){return m(Xu,{get label(){return y("ext.runningEmpty")}})},get children(){return m(Ke,{get each(){return a()},children:f=>(()=>{var h=JE(),b=h.firstChild,v=b.firstChild,x=v.nextSibling,E=x.firstChild,w=E.nextSibling,C=w.nextSibling,O=b.nextSibling,$=O.firstChild,A=$.nextSibling;return b.$$click=()=>e(`/ext/runs/${encodeURIComponent(f.runId)}`),_(v,()=>f.name),_(E,()=>fd(f.startedAt,f.endedAt,i())),_(C,()=>f.cli),$.$$click=()=>void u(f),_($,m(pg,{size:20,"aria-hidden":"true"})),A.$$click=()=>l(f),_(A,m(vn,{size:20,"aria-hidden":"true"})),Z(M=>{var j=y("ext.restart"),F=y("ext.stop");return j!==M.e&&te($,"aria-label",M.e=j),F!==M.t&&te(A,"aria-label",M.t=F),M},{e:void 0,t:void 0}),h})()})}})}})}})}})]}}),null),_(g,m(Zu,{get title(){return y("ext.git")},get children(){return m(Yu,{icon:is,get label(){return y("ext.git")},get desc(){return y("ext.gitDesc")},onClick:()=>e("/ext/git")})}}),null),g})(),m(Un,{get open(){return c()!==null},get title(){return c()?.name},get description(){return y("ext.stopHint")},get items(){return p()},onClose:()=>l(null)})]}})};qe(["click"]);var tw=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),nw=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),rw=N('<span class="shrink-0 text-xs text-success">'),iw=N('<li class="no-callout flex select-none items-center gap-3 px-4 py-3"><span class="min-w-0 flex-1"><span class="block truncate"></span><span class="block truncate font-mono text-sm text-muted-foreground"></span></span><span class="flex shrink-0 items-center gap-3"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60"></button><button type=button class="tap-target flex items-center justify-center text-destructive active:opacity-60">'),ow=N('<div class=space-y-4><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span><input type=text maxlength=120 class="w-full rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary"></label><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span><textarea rows=2 maxlength=2000 autocapitalize=off autocorrect=off class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 font-mono text-base outline-none focus:border-primary">'),sw=N('<button type=button class="flex min-h-11 w-full items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">');const aw=()=>{const e=ht(),[t,{refetch:n,mutate:r}]=nt(()=>_e()??void 0,f=>ue.listCommands(f)),[i,o]=G([]);Ae(()=>{const f=_e();if(!f)return;ue.listCommandRuns(f).then(o).catch(()=>{});const h=ll(f,b=>o(b));Me(()=>h())});const s=ge(()=>new Set(i().filter(f=>f.status==="running").map(f=>f.commandId))),[a,u]=G(null),[c,l]=G(!1),d=async f=>{const h=_e();if(h)try{const b=await ue.runCommand(h,f.id);e(`/ext/runs/${encodeURIComponent(b.runId)}`)}catch(b){Ee(b instanceof Error?b.message:y("scripts.runFailed"),"error")}},p=async f=>{const h=_e();if(h){u(null);try{await ue.deleteCommand(h,f.id),r(b=>(b??[]).filter(v=>v.id!==f.id)),Ee(y("scripts.deleted"))}catch(b){Ee(b instanceof Error?b.message:String(b),"error")}}},g=()=>{const f=a();return f?[{label:y("scripts.deleteConfirm"),tone:"destructive",onSelect:()=>void p(f)}]:[]};return m(yt,{get title(){return y("scripts.title")},padded:!1,onBack:()=>e("/ext"),get actions(){return(()=>{var f=nw();return f.$$click=()=>l(!0),_(f,m(os,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",y("scripts.add"))),f})()},get children(){return[m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(I,{get when(){return!t.loading},get fallback(){return m(ln,{})},get children(){return m(I,{get when(){return!t.error},get fallback(){return m(Xt,{get error(){return t.error},onRetry:()=>void n()})},get children(){return m(I,{get when(){return(t()??[]).length>0},get fallback(){return m(Tt,{get title(){return y("scripts.empty")},get hint(){return y("scripts.add")}})},get children(){var f=tw();return _(f,m(Ke,{get each(){return t()},children:h=>(()=>{var b=iw(),v=b.firstChild,x=v.firstChild,E=x.nextSibling,w=v.nextSibling,C=w.firstChild,O=C.nextSibling;return _(x,()=>h.name),_(E,()=>h.cli),_(b,m(I,{get when(){return s().has(h.id)},get children(){var $=rw();return _($,()=>y("scripts.running")),$}}),w),C.$$click=()=>void d(h),_(C,m(og,{size:20,"aria-hidden":"true"})),O.$$click=()=>u(h),_(O,m(Sg,{size:20,"aria-hidden":"true"})),Z($=>{var A=y("scripts.run"),M=y("scripts.delete");return A!==$.e&&te(C,"aria-label",$.e=A),M!==$.t&&te(O,"aria-label",$.t=M),$},{e:void 0,t:void 0}),b})()})),f}})}})}})}}),m(Un,{get open(){return a()!==null},get title(){return a()?.name},get description(){return y("scripts.deleteHint")},get items(){return g()},onClose:()=>u(null)}),m(uw,{get open(){return c()},onClose:()=>l(!1),onCreated:f=>{r(h=>[...h??[],f]),l(!1)}})]}})},uw=e=>{const[t,n]=G(""),[r,i]=G(""),[o,s]=G(!1);Ae(()=>{e.open&&(n(""),i(""))});const a=ge(()=>t().trim().length>0&&r().trim().length>0);async function u(){const c=_e();if(!(!c||!a()||o())){s(!0);try{const l=await ue.createCommand(c,{name:t().trim(),cli:r().trim()});Ee(y("scripts.created")),e.onCreated(l)}catch(l){Ee(l instanceof Error?l.message:String(l),"error")}finally{s(!1)}}}return m(Pn,{get open(){return e.open},get title(){return y("scripts.addTitle")},get onClose(){return e.onClose},get footer(){return(()=>{var c=sw();return c.$$click=()=>void u(),_(c,()=>y("scripts.submit")),Z(()=>c.disabled=o()||!a()),c})()},get children(){var c=ow(),l=c.firstChild,d=l.firstChild,p=d.nextSibling,g=l.nextSibling,f=g.firstChild,h=f.nextSibling;return _(d,()=>y("scripts.name")),p.$$input=b=>n(b.currentTarget.value),_(f,()=>y("scripts.cli")),h.$$input=b=>i(b.currentTarget.value),te(h,"spellcheck",!1),Z(b=>{var v=y("scripts.namePlaceholder"),x=y("scripts.cliPlaceholder");return v!==b.e&&te(p,"placeholder",b.e=v),x!==b.t&&te(h,"placeholder",b.t=x),b},{e:void 0,t:void 0}),Z(()=>p.value=t()),Z(()=>h.value=r()),c}})};qe(["click","input"]);function Qu(){return{text:"",nextOffset:0,truncated:!1}}function cw(e){return{text:e.text,nextOffset:e.offset+Zo(e.text),truncated:e.truncated}}function lw(e,t){return t.offset===e.nextOffset?{state:{text:e.text+t.chunk,nextOffset:e.nextOffset+Zo(t.chunk),truncated:e.truncated},needsRefetch:!1}:t.offset+Zo(t.chunk)<=e.nextOffset?{state:e,needsRefetch:!1}:{state:e,needsRefetch:!0}}function Ju(e,t){return e.text.length<=t?e:{text:e.text.slice(e.text.length-t),nextOffset:e.nextOffset,truncated:!0}}function Zo(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e).length:e.length}const dw=80,ec=4e5;function fw(e){const[t,{mutate:n}]=nt(()=>[e.projectId(),e.runId()],async([x,E])=>x&&E?ue.getCommandRun(x,E):null),[r,i]=G(Qu()),[o,s]=G(null),[a,u]=G(!1),[c,l]=G(Date.now());let d=null,p=null,g=!1;const f=setInterval(()=>l(Date.now()),1e3);Me(()=>clearInterval(f)),Me(()=>{p!==null&&window.clearTimeout(p)});function h(x){d=Ju(x,ec),p===null&&(p=window.setTimeout(()=>{p=null,d&&(i(d),d=null,e.onFlush?.())},dw))}async function b(){const x=e.projectId(),E=e.runId();if(!(!x||!E||g)){g=!0;try{const w=await ue.readCommandOutput(x,E),C=Ju(cw(w),ec);d=null,i(C),s(null),e.onReset?.()}catch(w){s(w.message)}finally{g=!1}}}Ae(()=>{const x=e.projectId(),E=e.runId();if(!x||!E)return;i(Qu()),b();const w=Xh(x,E,{onOutput:C=>{const O=d??r(),$=lw(O,C);$.needsRefetch?b():h($.state)},onRun:C=>n(C),onError:C=>s(C)});Me(w)});async function v(){const x=e.projectId(),E=t();if(!x||!E)return{ok:!1};u(!0);try{const w=await ue.stopCommandRun(x,E.runId);return n(w.run),{ok:!0}}catch(w){return{ok:!1,error:w.message}}finally{u(!1)}}return{run:t,text:()=>r().text,truncated:()=>r().truncated,loadError:o,stopping:a,now:c,reload:b,stop:v}}var pw=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),gw=N('<span class="text-xs text-muted-foreground">'),hw=N('<div class="border-b border-border bg-card px-4 py-2.5"><div class="flex items-center gap-2"><span></span><time class="text-xs text-muted-foreground"></time></div><p class="mt-1 truncate font-mono text-xs text-muted-foreground">'),mw=N('<p class="border-b border-border px-4 py-2 text-xs text-muted-foreground">'),bw=N('<p class="border-b border-border px-4 py-2 text-xs text-destructive">'),xw=N('<pre class="m-0 whitespace-pre-wrap break-all px-4 py-3 font-mono text-xs leading-snug">');const _w=160,yw={running:"text-success",exited:"text-muted-foreground",killed:"text-warning",failed:"text-destructive"},vw={running:"runOutput.statusRunning",exited:"runOutput.statusExited",killed:"runOutput.statusKilled",failed:"runOutput.statusFailed"},Ew=()=>{const e=ht(),t=pr();let n,r=!0;const i=()=>{n&&(n.scrollTop=n.scrollHeight)},o=fw({projectId:()=>_e()??void 0,runId:()=>t.runId,onFlush:()=>{r&&i()},onReset:i}),[s,a]=G(!1),[u,c]=G(!1),l=()=>{a(!1),c(!1)},d=async()=>{l();const f=await o.stop();f.ok?Ee(y("runOutput.stopped")):f.error&&Ee(f.error,"error")},p=async f=>{l();const h=await si(f);Ee(y(h?"runOutput.copied":"runOutput.copyFailed"),h?"default":"error")},g=()=>{const f=o.run();if(!f)return[];if(u())return[{label:y("runOutput.stopConfirm"),tone:"destructive",onSelect:()=>void d()}];const h=[];return f.status==="running"&&h.push({label:y("runOutput.stop"),tone:"destructive",onSelect:()=>c(!0)}),h.push({label:y("runOutput.copyOutput"),onSelect:()=>void p(o.text())}),h.push({label:y("runOutput.copyPath"),onSelect:()=>void p(f.logFile)}),h};return m(yt,{get title(){return o.run()?.name||y("runOutput.title")},padded:!1,onBack:()=>e("/ext"),scrollRef:f=>n=f,onScroll:()=>{n&&(r=n.scrollHeight-n.scrollTop-n.clientHeight<=_w)},get actions(){return m(I,{get when(){return o.run()},get children(){var f=pw();return f.$$click=()=>{c(!1),a(!0)},_(f,m(or,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",y("specDetail.more"))),f}})},get children(){return[m(I,{get when(){return o.run()},get fallback(){return m(Tt,{get title(){return o.loadError()??y("common.loading")}})},children:f=>[(()=>{var h=hw(),b=h.firstChild,v=b.firstChild,x=v.nextSibling,E=b.nextSibling;return _(v,()=>y(vw[f().status])),_(x,()=>fd(f().startedAt,f().endedAt,o.now())),_(b,m(I,{get when(){return f().status!=="running"},get children(){var w=gw();return _(w,(()=>{var C=Fe(()=>!!f().signal);return()=>C()?`${y("runOutput.signal")} ${f().signal}`:`${y("runOutput.exitCode")} ${f().exitCode??"—"}`})()),w}}),null),_(E,()=>f().cli),Z(()=>Le(v,`shrink-0 text-xs font-medium ${yw[f().status]}`)),h})(),m(I,{get when(){return o.truncated()},get children(){var h=mw();return _(h,()=>y("runOutput.truncated")),h}}),m(I,{get when(){return o.loadError()},get children(){var h=bw();return _(h,()=>o.loadError()),h}}),(()=>{var h=xw();return _(h,()=>o.text()||y("runOutput.outputEmpty")),h})()]}),m(Un,{get open(){return s()},get title(){return o.run()?.name},get description(){return Fe(()=>!!u())()?y("runOutput.stopHint"):void 0},get items(){return g()},onClose:l})]}})};qe(["click"]);const ww=()=>{const e=ht();return m(dd,{get title(){return y("git.title")},onBack:()=>e("/ext")})};function pd(e){if(!e.worktree)return e.name;const t=e.worktree.mainPath.split("/").filter(Boolean).pop()??e.worktree.mainPath,n=e.worktree.cleanSlug??e.worktree.branch.replace(/^wt\//,"");return`${t} · ${n}`}var kw=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),Sw=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Cw=N('<li class="flex items-center pr-4 active:bg-accent"><button type=button class="flex min-w-0 flex-1 items-center gap-3 py-3 pl-4 text-left"><span class="flex w-5 shrink-0 justify-center"></span><span class="min-w-0 flex-1"><span class="block truncate"></span><span class="truncate-start mt-0.5 block text-sm text-muted-foreground"></span></span></button><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60">');const Aw=()=>{const e=ht(),t=n=>{n.id!==_e()&&(jo(n.id),Ee(y("projects.switched")))};return m(yt,{get title(){return y("projects.title")},padded:!1,get actions(){return(()=>{var n=Sw();return n.$$click=()=>e("/settings/global"),_(n,m(or,{size:20,"aria-hidden":"true"})),Z(()=>te(n,"aria-label",y("projects.globalSettings"))),n})()},get children(){return m(I,{get when(){return!$n.loading},get fallback(){return m(ln,{})},get children(){return m(I,{get when(){return!$n.error},get fallback(){return m(Xt,{get error(){return $n.error},onRetry:()=>void dl()})},get children(){return m(I,{get when(){return($n()??[]).length>0},get fallback(){return m(Tt,{get title(){return y("common.emptyProjects")},get hint(){return y("common.emptyProjectsHint")}})},get children(){var n=kw();return _(n,m(Ke,{get each(){return $n()},children:r=>(()=>{var i=Cw(),o=i.firstChild,s=o.firstChild,a=s.nextSibling,u=a.firstChild,c=u.nextSibling,l=o.nextSibling;return o.$$click=()=>t(r),_(s,m(I,{get when(){return r.id===_e()},get children(){return m(Bo,{size:18,class:"text-primary","aria-hidden":"true"})}})),_(u,()=>pd(r)),_(c,()=>r.path),l.$$click=d=>{d.stopPropagation(),jo(r.id),e("/settings/project")},_(l,m(or,{size:18,"aria-hidden":"true"})),Z(d=>{var p=r.id===_e()?"true":void 0,g=y("projects.projectSettings");return p!==d.e&&te(o,"aria-current",d.e=p),g!==d.t&&te(l,"aria-label",d.t=g),d},{e:void 0,t:void 0}),i})()})),n}})}})}})}})};qe(["click"]);var Tw=N('<section class=mb-6><h2 class="mb-2 px-1 text-xs font-medium uppercase tracking-wide text-muted-foreground"></h2><div class="divide-y-[0.5px] divide-border overflow-hidden rounded-lg border border-border bg-card">'),Nw=N('<div class="flex flex-wrap items-center justify-between gap-x-3 gap-y-2 px-4 py-3"><span class="shrink-0 text-sm"></span><div class="flex max-w-full shrink-0 flex-wrap overflow-hidden rounded-md border border-border"role=group>'),Rw=N("<button type=button>"),Dw=N('<label class="flex items-center justify-between gap-3 px-4 py-3"><span class="min-w-0 flex-1 text-sm"></span><input type=checkbox class="peer sr-only"><span aria-hidden=true><span>'),Ow=N('<div class="flex flex-col gap-1 px-4 py-3"><span class=text-sm></span><input type=text class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring"autocapitalize=off autocomplete=off>'),$w=N('<span class="text-xs text-muted-foreground">');const Zn=e=>(()=>{var t=Tw(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.title),_(r,()=>e.children),t})();function Yn(e){return(()=>{var t=Nw(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.label),_(r,m(Ke,{get each(){return e.options},children:i=>(()=>{var o=Rw();return o.$$click=()=>e.onChange(i.value),_(o,()=>i.label),Z(s=>{var a=Xe("min-h-9 px-3 text-xs transition-colors",e.value()===i.value?"bg-primary-soft text-foreground":"bg-background text-muted-foreground"),u=e.value()===i.value;return a!==s.e&&Le(o,s.e=a),u!==s.t&&te(o,"aria-pressed",s.t=u),s},{e:void 0,t:void 0}),o})()})),Z(()=>te(r,"aria-label",e.label)),t})()}const tc=e=>(()=>{var t=Dw(),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,o=i.firstChild;return _(n,()=>e.label),r.addEventListener("change",s=>e.onChange(s.currentTarget.checked)),Z(s=>{var a=Xe("relative h-6 w-10 shrink-0 rounded-full transition-colors peer-focus-visible:ring-[1.5px] peer-focus-visible:ring-ring",e.checked()?"bg-primary":"bg-muted"),u=Xe("absolute top-0.5 size-5 rounded-full bg-background shadow transition-[left]",e.checked()?"left-[1.125rem]":"left-0.5");return a!==s.e&&Le(i,s.e=a),u!==s.t&&Le(o,s.t=u),s},{e:void 0,t:void 0}),Z(()=>r.checked=e.checked()),t})(),nc=e=>(()=>{var t=Ow(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.label),r.addEventListener("change",i=>e.onCommit(i.currentTarget.value)),te(r,"spellcheck",!1),_(t,(()=>{var i=Fe(()=>!!e.hint);return()=>i()?(()=>{var o=$w();return _(o,()=>e.hint),o})():null})(),null),Z(()=>te(r,"placeholder",e.placeholder)),Z(()=>r.value=e.value()),t})();qe(["click"]);var rc=N('<div class="flex items-center justify-between px-4 py-3 text-sm"><span></span><span class=text-muted-foreground>');const Iw=[{value:"claude",label:"Claude"},{value:"codex",label:"Codex"},{value:"opencode",label:"opencode"}],Mw=[{value:"zh-CN",label:"中文"},{value:"en",label:"English"}],Lw=()=>{const e=ht(),{lng:t,changeLanguage:n}=ss(),[r,{refetch:i,mutate:o}]=nt(()=>ue.getGlobalConfig()),s=async a=>{const u=r();o(a);try{const c=await ue.updateGlobalConfig(a);o(c.config)}catch(c){o(u),Ee(c instanceof Error?c.message:String(c),"error")}};return m(yt,{get title(){return y("globalSettings.title")},onBack:()=>e("/projects"),get children(){return m(I,{get when(){return!r.loading},get fallback(){return m(ln,{})},get children(){return m(I,{get when(){return!r.error},get fallback(){return m(Xt,{get error(){return r.error},onRetry:()=>void i()})},get children(){return m(I,{get when(){return r()},children:a=>[m(Zn,{get title(){return y("globalSettings.agent")},get children(){return m(Yn,{get label(){return y("globalSettings.defaultKind")},options:Iw,value:()=>a().agent.defaultKind,onChange:u=>void s({...a(),agent:{...a().agent,defaultKind:u}})})}}),m(Zn,{get title(){return y("globalSettings.notifications")},get children(){return[m(tc,{get label(){return y("globalSettings.sessionEndBanner")},checked:()=>a().notifications.sessionEnd.banner,onChange:u=>void s({...a(),notifications:{...a().notifications,sessionEnd:{...a().notifications.sessionEnd,banner:u}}})}),m(tc,{get label(){return y("globalSettings.sessionEndSound")},checked:()=>a().notifications.sessionEnd.sound,onChange:u=>void s({...a(),notifications:{...a().notifications,sessionEnd:{...a().notifications.sessionEnd,sound:u}}})})]}}),m(Zn,{get title(){return y("globalSettings.appearance")},get children(){return[m(Yn,{get label(){return y("globalSettings.themeMode")},get options(){return Ic.map(u=>({value:u,label:y(`theme.${u}`)}))},value:Hr,onChange:z0}),m(Yn,{get label(){return y("globalSettings.themeName")},get options(){return Mc.map(u=>({value:u,label:y(`theme.${u}`)}))},value:jr,onChange:q0}),m(Yn,{get label(){return y("globalSettings.language")},options:Mw,value:()=>t().startsWith("zh")?"zh-CN":"en",onChange:u=>n(u)})]}}),m(Zn,{get title(){return y("globalSettings.about")},get children(){return[(()=>{var u=rc(),c=u.firstChild,l=c.nextSibling;return _(c,()=>y("globalSettings.version")),_(l,"0.9.2"),u})(),(()=>{var u=rc(),c=u.firstChild,l=c.nextSibling;return _(c,()=>y("globalSettings.installState")),_(l,(()=>{var d=Fe(()=>!!np());return()=>d()?y("globalSettings.installed"):y("globalSettings.browser")})()),u})()]}})]})}})}})}})},Fw=e=>{const t=[{value:"inherit",label:y("projectSettings.inherit")},{value:"claude",label:"Claude"},{value:"codex",label:"Codex"},{value:"opencode",label:"opencode"}];return e==="custom"&&t.push({value:"custom",label:y("projectSettings.custom")}),t},Pw=()=>{const e=ht(),[t,{refetch:n,mutate:r}]=nt(()=>_e()??void 0,a=>ue.getProjectConfig(a)),i=ge(()=>{const a=gm();return a?pd(a):y("projectSettings.title")}),o=async a=>{const u=_e(),c=t();if(!(!u||!c)){r({...c,agent:a});try{const l=await ue.updateProjectConfig(u,{agent:a,specsDir:c.specsDir});r(l.config)}catch(l){r(c),Ee(l instanceof Error?l.message:String(l),"error")}}},s=a=>{const u=t()?.agent;if(a!=="custom")return void o({kind:a});const c=u?.kind==="custom"?u.cmd:"",l=u?.kind==="custom"?u.args:[];return void o({kind:"custom",cmd:c,args:l})};return m(yt,{get title(){return i()},onBack:()=>e("/projects"),get children(){return m(I,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(I,{get when(){return!t.loading},get fallback(){return m(ln,{})},get children(){return m(I,{get when(){return!t.error},get fallback(){return m(Xt,{get error(){return t.error},onRetry:()=>void n()})},get children(){return m(I,{get when(){return t()},children:a=>m(Zn,{get title(){return y("projectSettings.agent")},get children(){return[m(Yn,{get label(){return y("projectSettings.kind")},get options(){return Fw(a().agent.kind)},value:()=>a().agent.kind,onChange:s}),m(I,{get when(){return Fe(()=>a().agent.kind==="custom")()?a().agent:null},children:u=>[m(nc,{get label(){return y("projectSettings.cmd")},value:()=>u().cmd,placeholder:"claude",onCommit:c=>{if(!c.trim()){Ee(y("projectSettings.cmdRequired"),"error");return}o({kind:"custom",cmd:c.trim(),args:u().args})}}),m(nc,{get label(){return y("projectSettings.args")},get hint(){return y("projectSettings.argsHint")},value:()=>u().args.join(" "),onCommit:c=>void o({kind:"custom",cmd:u().cmd,args:c.split(/\s+/).filter(Boolean)})})]})]}})})}})}})}})}})},ic=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,oc=Wc,Bw=(e,t)=>n=>{var r;if(t?.variants==null)return oc(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(c=>{const l=n?.[c],d=o?.[c];if(l===null)return null;const p=ic(l)||ic(d);return i[c][p]}),a=n&&Object.entries(n).reduce((c,l)=>{let[d,p]=l;return p===void 0||(c[d]=p),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,l)=>{let{class:d,className:p,...g}=l;return Object.entries(g).every(f=>{let[h,b]=f;return Array.isArray(b)?b.includes({...o,...a}[h]):{...o,...a}[h]===b})?[...c,d,p]:c},[]);return oc(e,s,u,n?.class,n?.className)},Uw=Bw("inline-flex items-center justify-center rounded-md font-medium transition-[color,background-color,box-shadow] focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 select-none touch-manipulation",{variants:{variant:{default:"bg-primary text-primary-foreground shadow active:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm active:bg-destructive/90",outline:"border border-input bg-background shadow-sm active:bg-accent",secondary:"bg-secondary text-secondary-foreground shadow-sm active:bg-secondary/80",ghost:"active:bg-accent active:text-accent-foreground",link:"text-primary underline-offset-4 active:underline"},size:{default:"h-11 px-4 py-2",sm:"h-9 rounded-md px-3 text-sm",lg:"h-12 rounded-md px-8 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}});var zw=N('<div class="flex flex-col items-center gap-4 py-16"><p class="text-sm text-muted-foreground">');const qw=()=>m(yt,{get title(){return y("notFound.title")},get children(){var e=zw(),t=e.firstChild;return _(t,()=>y("notFound.title")),_(e,m(Cc,{href:"/",get class(){return Uw({variant:"outline"})},get children(){return y("notFound.back")}}),null),e}});H0({persistHint:!0});tp();const gd=document.getElementById("app");if(!gd)throw new Error("missing #app root");rf(()=>m(Gf,{root:Ih,base:Fo,get children(){return[m(mt,{path:"/",component:Rm}),m(mt,{path:"/specs",component:Km}),m(mt,{path:"/ext",component:ew}),m(mt,{path:"/projects",component:Aw}),m(mt,{path:["/sessions/new","/sessions/:id"],component:py}),m(mt,{path:"/specs/new",component:VE}),m(mt,{path:"/specs/:id",component:Zv}),m(mt,{path:"/specs/:id/debug",component:Qv}),m(mt,{path:"/specs/:id/git",component:OE}),m(mt,{path:"/ext/scripts",component:aw}),m(mt,{path:"/ext/git",component:ww}),m(mt,{path:"/ext/runs/:runId",component:Ew}),m(mt,{path:"/settings/global",component:Lw}),m(mt,{path:"/settings/project",component:Pw}),m(mt,{path:"*",component:qw})]}}),gd);export{zc as _,ri as g};
|
|
25
|
+
`;break}return r};zn.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;a==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[a]<"u"?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function _t(){this.__rules__=[],this.__cache__=null}_t.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};_t.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};_t.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};_t.prototype.before=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};_t.prototype.after=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};_t.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};_t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};_t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};_t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};_t.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Nt(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}Nt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,i=n.length;r<i;r++)if(n[r][0]===t)return r;return-1};Nt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Nt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),i=[t,n];r<0?this.attrPush(i):this.attrs[r]=i};Nt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Nt.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function Ml(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ml.prototype.Token=Nt;const g1=/\r\n?|\n/g,h1=/\0/g;function m1(e){let t;t=e.src.replace(g1,`
|
|
26
|
+
`),t=t.replace(h1,"�"),e.src=t}function b1(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 x1(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function _1(e){return/^<a[>\s]/i.test(e)}function y1(e){return/^<\/a\s*>/i.test(e)}function v1(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,o=0;for(let s=i.length-1;s>=0;s--){const a=i[s];if(a.type==="link_close"){for(s--;i[s].level!==a.level&&i[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(_1(a.content)&&o>0&&o--,y1(a.content)&&o++),!(o>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const u=a.content;let c=e.md.linkify.match(u);const l=[];let d=a.level,p=0;c.length>0&&c[0].index===0&&s>0&&i[s-1].type==="text_special"&&(c=c.slice(1));for(let g=0;g<c.length;g++){const f=c[g].url,h=e.md.normalizeLink(f);if(!e.md.validateLink(h))continue;let b=c[g].text;c[g].schema?c[g].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,"");const y=c[g].index;if(y>p){const C=new e.Token("text","",0);C.content=u.slice(p,y),C.level=d,l.push(C)}const x=new e.Token("link_open","a",1);x.attrs=[["href",h]],x.level=d++,x.markup="linkify",x.info="auto",l.push(x);const E=new e.Token("text","",0);E.content=b,E.level=d,l.push(E);const w=new e.Token("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",l.push(w),p=c[g].lastIndex}if(p<u.length){const g=new e.Token("text","",0);g.content=u.slice(p),g.level=d,l.push(g)}t[n].children=i=Ol(i,s,l)}}}}const Ll=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,E1=/\((c|tm|r)\)/i,w1=/\((c|tm|r)\)/ig,k1={c:"©",r:"®",tm:"™"};function S1(e,t){return k1[t.toLowerCase()]}function C1(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(w1,S1)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function A1(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&Ll.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function T1(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(E1.test(e.tokens[t].content)&&C1(e.tokens[t].children),Ll.test(e.tokens[t].content)&&A1(e.tokens[t].children))}const N1=/['"]/,Aa=/['"]/g,Ta="’";function Tr(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function R1(e,t){let n="",r=0;t.sort((i,o)=>i.pos-o.pos);for(let i=0;i<t.length;i++){const o=t[i];n+=e.slice(r,o.pos)+o.ch,r=o.pos+1}return n+e.slice(r)}function D1(e,t){let n;const r=[],i={};for(let o=0;o<e.length;o++){const s=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,s.type!=="text")continue;const u=s.content;let c=0;const l=u.length;e:for(;c<l;){Aa.lastIndex=c;const d=Aa.exec(u);if(!d)break;let p=!0,g=!0;c=d.index+1;const f=d[0]==="'";let h=32;if(d.index-1>=0)h=u.charCodeAt(d.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(c<l)b=u.charCodeAt(c);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const y=cr(h)||ur(h),x=cr(b)||ur(b),E=ar(h),w=ar(b);if(w?p=!1:x&&(E||y||(p=!1)),E?g=!1:y&&(w||x||(g=!1)),b===34&&d[0]==='"'&&h>=48&&h<=57&&(g=p=!1),p&&g&&(p=y,g=x),!p&&!g){f&&Tr(i,o,d.index,Ta);continue}if(g)for(n=r.length-1;n>=0;n--){let C=r[n];if(r[n].level<a)break;if(C.single===f&&r[n].level===a){C=r[n];let O,$;f?(O=t.md.options.quotes[2],$=t.md.options.quotes[3]):(O=t.md.options.quotes[0],$=t.md.options.quotes[1]),Tr(i,o,d.index,$),Tr(i,C.token,C.pos,O),r.length=n;continue e}}p?r.push({token:o,pos:d.index,single:f,level:a}):g&&f&&Tr(i,o,d.index,Ta)}}Object.keys(i).forEach(function(o){e[o].content=R1(e[o].content,i[o])})}function O1(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!N1.test(e.tokens[t].content)||D1(e.tokens[t].children,e)}function $1(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;const s=r[o].children,a=s.length;for(t=0;t<a;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<a;t++)s[t].type==="text"&&t+1<a&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const Ni=[["normalize",m1],["block",b1],["inline",x1],["linkify",v1],["replacements",T1],["smartquotes",O1],["text_join",$1]];function bs(){this.ruler=new _t;for(let e=0;e<Ni.length;e++)this.ruler.push(Ni[e][0],Ni[e][1])}bs.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};bs.prototype.State=Ml;function Ut(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let o=0,s=0,a=0,u=0,c=i.length,l=!1;s<c;s++){const d=i.charCodeAt(s);if(!l)if(Ve(d)){a++,d===9?u+=4-u%4:u++;continue}else l=!0;(d===10||s===c-1)&&(d!==10&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),l=!1,a=0,u=0,o=s+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ut.prototype.push=function(e,t,n){const r=new Nt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Ut.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ut.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Ut.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!Ve(r))break}return t};Ut.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ve(this.src.charCodeAt(--t)))return t+1;return t};Ut.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};Ut.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Ut.prototype.getLines=function(t,n,r,i){if(t>=n)return"";const o=new Array(n-t);for(let s=0,a=t;a<n;a++,s++){let u=0;const c=this.bMarks[a];let l=c,d;for(a+1<n||i?d=this.eMarks[a]+1:d=this.eMarks[a];l<d&&u<r;){const p=this.src.charCodeAt(l);if(Ve(p))p===9?u+=4-(u+this.bsCount[a])%4:u++;else if(l-c<this.tShift[a])u++;else break;l++}u>r?o[s]=new Array(u-r+1).join(" ")+this.src.slice(l,d):o[s]=this.src.slice(l,d)}return o.join("")};Ut.prototype.Token=Nt;const I1=65536;function Ri(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Na(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,s=0,a="";for(;r<n;)i===124&&(o?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function M1(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58||o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58&&!Ve(a)||s===45&&Ve(a))return!1;for(;o<e.eMarks[i];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!Ve(w))return!1;o++}let u=Ri(e,t+1),c=u.split("|");const l=[];for(let w=0;w<c.length;w++){const C=c[w].trim();if(!C){if(w===0||w===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(C))return!1;C.charCodeAt(C.length-1)===58?l.push(C.charCodeAt(0)===58?"center":"right"):C.charCodeAt(0)===58?l.push("left"):l.push("")}if(u=Ri(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Na(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==l.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),h=[t,0];f.map=h;const b=e.push("thead_open","thead",1);b.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w<c.length;w++){const C=e.push("th_open","th",1);l[w]&&(C.attrs=[["style","text-align:"+l[w]]]);const O=e.push("inline","",0);O.content=c[w].trim(),O.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let x,E=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let w=!1;for(let O=0,$=g.length;O<$;O++)if(g[O](e,i,n,!0)){w=!0;break}if(w||(u=Ri(e,i).trim(),!u)||e.sCount[i]-e.blkIndent>=4||(c=Na(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),E+=d-c.length,E>I1))break;if(i===t+2){const O=e.push("tbody_open","tbody",1);O.map=x=[t+2,0]}const C=e.push("tr_open","tr",1);C.map=[i,i+1];for(let O=0;O<d;O++){const $=e.push("td_open","td",1);l[O]&&($.attrs=[["style","text-align:"+l[O]]]);const A=e.push("inline","",0);A.content=c[O]?c[O].trim():"",A.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return x&&(e.push("tbody_close","tbody",-1),x[1]=i),e.push("table_close","table",-1),h[1]=i,e.parentType=p,e.line=i,!0}function L1(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
27
|
+
`,o.map=[t,e.line],!0}function F1(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const s=e.src.charCodeAt(i);if(s!==126&&s!==96)return!1;let a=i;i=e.skipChars(i,s);let u=i-a;if(u<3)return!1;const c=e.src.slice(a,i),l=e.src.slice(i,o);if(s===96&&l.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;d++,!(d>=n||(i=a=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,s),!(i-a<u)&&(i=e.skipSpaces(i),!(i<o)))){p=!0;break}u=e.sCount[t],e.line=d+(p?1:0);const g=e.push("fence","code",0);return g.info=l,g.content=e.getLines(t+1,d,u,!0),g.markup=c,g.map=[t,e.line],!0}function P1(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const a=[],u=[],c=[],l=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let g=!1,f;for(f=t;f<n;f++){const E=e.sCount[f]<e.blkIndent;if(i=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],i>=o)break;if(e.src.charCodeAt(i++)===62&&!E){let C=e.sCount[f]+1,O,$;e.src.charCodeAt(i)===32?(i++,C++,$=!1,O=!0):e.src.charCodeAt(i)===9?(O=!0,(e.bsCount[f]+C)%4===3?(i++,C++,$=!1):$=!0):O=!1;let A=C;for(a.push(e.bMarks[f]),e.bMarks[f]=i;i<o;){const I=e.src.charCodeAt(i);if(Ve(I))I===9?A+=4-(A+e.bsCount[f]+($?1:0))%4:A++;else break;i++}g=i>=o,u.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(O?1:0),c.push(e.sCount[f]),e.sCount[f]=A-C,l.push(e.tShift[f]),e.tShift[f]=i-e.bMarks[f];continue}if(g)break;let w=!1;for(let C=0,O=d.length;C<O;C++)if(d[C](e,f,n,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(a.push(e.bMarks[f]),u.push(e.bsCount[f]),l.push(e.tShift[f]),c.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}a.push(e.bMarks[f]),u.push(e.bsCount[f]),l.push(e.tShift[f]),c.push(e.sCount[f]),e.sCount[f]=-1}const h=e.blkIndent;e.blkIndent=0;const b=e.push("blockquote_open","blockquote",1);b.markup=">";const y=[t,0];b.map=y,e.md.block.tokenize(e,t,f);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=s,e.parentType=p,y[1]=e.line;for(let E=0;E<l.length;E++)e.bMarks[E+t]=a[E],e.tShift[E+t]=l[E],e.sCount[E+t]=c[E],e.bsCount[E+t]=u[E];return e.blkIndent=h,!0}function B1(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;o<i;){const c=e.src.charCodeAt(o++);if(c!==s&&!Ve(c))return!1;c===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(s)),!0}function Ra(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!Ve(o))return-1}return r}function Da(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!Ve(o))?-1:i}function U1(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function z1(e,t,n,r){let i,o,s,a,u=t,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let l=!1;r&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(l=!0);let d,p,g;if((g=Da(e,u))>=0){if(d=!0,s=e.bMarks[u]+e.tShift[u],p=Number(e.src.slice(s,g-1)),l&&p!==1)return!1}else if((g=Ra(e,u))>=0)d=!1;else return!1;if(l&&e.skipSpaces(g)>=e.eMarks[u])return!1;if(r)return!0;const f=e.src.charCodeAt(g-1),h=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),p!==1&&(a.attrs=[["start",p]])):a=e.push("bullet_list_open","ul",1);const b=[u,0];a.map=b,a.markup=String.fromCharCode(f);let y=!1;const x=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";u<n;){o=g,i=e.eMarks[u];const w=e.sCount[u]+g-(e.bMarks[u]+e.tShift[u]);let C=w;for(;o<i;){const T=e.src.charCodeAt(o);if(T===9)C+=4-(C+e.bsCount[u])%4;else if(T===32)C++;else break;o++}const O=o;let $;O>=i?$=1:$=C-w,$>4&&($=1);const A=w+$;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(f);const I=[u,0];a.map=I,d&&(a.info=e.src.slice(s,g-1));const j=e.tight,F=e.tShift[u],P=e.sCount[u],z=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=A,e.tight=!0,e.tShift[u]=O-e.bMarks[u],e.sCount[u]=C,O>=i&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||y)&&(c=!1),y=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=z,e.tShift[u]=F,e.sCount[u]=P,e.tight=j,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(f),u=e.line,I[1]=u,u>=n||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let B=!1;for(let T=0,D=x.length;T<D;T++)if(x[T](e,u,n,!0)){B=!0;break}if(B)break;if(d){if(g=Da(e,u),g<0)break;s=e.bMarks[u]+e.tShift[u]}else if(g=Ra(e,u),g<0)break;if(f!==e.src.charCodeAt(g-1))break}return d?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(f),b[1]=u,e.line=u,e.parentType=E,c&&U1(e,h),!0}function q1(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function a(x){const E=e.lineMax;if(x>=E||e.isEmpty(x))return null;let w=!1;if(e.sCount[x]-e.blkIndent>3&&(w=!0),e.sCount[x]<0&&(w=!0),!w){const $=e.md.block.ruler.getRules("reference"),A=e.parentType;e.parentType="reference";let I=!1;for(let j=0,F=$.length;j<F;j++)if($[j](e,x,E,!0)){I=!0;break}if(e.parentType=A,I)return null}const C=e.bMarks[x]+e.tShift[x],O=e.eMarks[x];return e.src.slice(C,O+1)}let u=e.src.slice(i,o+1);o=u.length;let c=-1;for(i=1;i<o;i++){const x=u.charCodeAt(i);if(x===91)return!1;if(x===93){c=i;break}else if(x===10){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}else if(x===92&&(i++,i<o&&u.charCodeAt(i)===10)){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(i=c+2;i<o;i++){const x=u.charCodeAt(i);if(x===10){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}else if(!Ve(x))break}const l=e.md.helpers.parseLinkDestination(u,i,o);if(!l.ok)return!1;const d=e.md.normalizeLink(l.str);if(!e.md.validateLink(d))return!1;i=l.pos;const p=i,g=s,f=i;for(;i<o;i++){const x=u.charCodeAt(i);if(x===10){const E=a(s);E!==null&&(u+=E,o=u.length,s++)}else if(!Ve(x))break}let h=e.md.helpers.parseLinkTitle(u,i,o);for(;h.can_continue;){const x=a(s);if(x===null)break;u+=x,i=o,o=u.length,s++,h=e.md.helpers.parseLinkTitle(u,i,o,h)}let b;for(i<o&&f!==i&&h.ok?(b=h.str,i=h.pos):(b="",i=p,s=g);i<o;){const x=u.charCodeAt(i);if(!Ve(x))break;i++}if(i<o&&u.charCodeAt(i)!==10&&b)for(b="",i=p,s=g;i<o;){const x=u.charCodeAt(i);if(!Ve(x))break;i++}if(i<o&&u.charCodeAt(i)!==10)return!1;const y=ui(u.slice(1,c));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:b,href:d}),e.line=s),!0):!1}const H1=["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"],j1="[a-zA-Z_:][a-zA-Z0-9:._-]*",K1="[^\"'=<>`\\x00-\\x20]+",G1="'[^']*'",W1='"[^"]*"',V1="(?:"+K1+"|"+G1+"|"+W1+")",Z1="(?:\\s+"+j1+"(?:\\s*=\\s*"+V1+")?)",Fl="<[A-Za-z][A-Za-z0-9\\-]*"+Z1+"*\\s*\\/?>",Pl="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Y1="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",X1="<[?][\\s\\S]*?[?]>",Q1="<![A-Za-z][^>]*>",J1="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ex=new RegExp("^(?:"+Fl+"|"+Pl+"|"+Y1+"|"+X1+"|"+Q1+"|"+J1+")"),tx=new RegExp("^(?:"+Fl+"|"+Pl+")"),bn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+H1.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(tx.source+"\\s*$"),/^$/,!1]];function nx(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let s=e.src.slice(i,o),a=0;for(;a<bn.length&&!bn[a][0].test(s);a++);if(a===bn.length)return!1;if(r)return bn[a][2];let u=t+1;const c=bn[a][1].test("");if(!bn[a][1].test(s)){for(;u<n&&!(e.sCount[u]<e.blkIndent&&(c||!e.isEmpty(u)));u++)if(i=e.bMarks[u]+e.tShift[u],o=e.eMarks[u],s=e.src.slice(i,o),bn[a][1].test(s)){s.length!==0&&u++;break}}e.line=u;const l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}function rx(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(s!==35||i>=o)return!1;let a=1;for(s=e.src.charCodeAt(++i);s===35&&i<o&&a<=6;)a++,s=e.src.charCodeAt(++i);if(a>6||i<o&&!Ve(s))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const u=e.skipCharsBack(o,35,i);u>i&&Ve(e.src.charCodeAt(u-1))&&(o=u),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const l=e.push("inline","",0);l.content=ci(e.src.slice(i,o)),l.map=[t,e.line],l.children=[];const d=e.push("heading_close","h"+String(a),-1);return d.markup="########".slice(0,a),!0}function ix(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let g=e.bMarks[a]+e.tShift[a];const f=e.eMarks[a];if(g<f&&(s=e.src.charCodeAt(g),(s===45||s===61)&&(g=e.skipChars(g,s),g=e.skipSpaces(g),g>=f))){o=s===61?1:2;break}}if(e.sCount[a]<0)continue;let p=!1;for(let g=0,f=r.length;g<f;g++)if(r[g](e,a,n,!0)){p=!0;break}if(p)break}if(!o)return e.parentType=i,!1;const u=ci(e.getLines(t,a,e.blkIndent,!1));e.line=a+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const l=e.push("inline","",0);l.content=u,l.map=[t,e.line-1],l.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(s),e.parentType=i,!0}function ox(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let l=0,d=r.length;l<d;l++)if(r[l](e,o,n,!0)){c=!0;break}if(c)break}const s=ci(e.getLines(t,o,e.blkIndent,!1));e.line=o;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const Nr=[["table",M1,["paragraph","reference"]],["code",L1],["fence",F1,["paragraph","reference","blockquote","list"]],["blockquote",P1,["paragraph","reference","blockquote","list"]],["hr",B1,["paragraph","reference","blockquote","list"]],["list",z1,["paragraph","reference","blockquote"]],["reference",q1],["html_block",nx,["paragraph","reference","blockquote"]],["heading",rx,["paragraph","reference","blockquote"]],["lheading",ix],["paragraph",ox]];function li(){this.ruler=new _t;for(let e=0;e<Nr.length;e++)this.ruler.push(Nr[e][0],Nr[e][1],{alt:(Nr[e][2]||[]).slice()})}li.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}const u=e.line;let c=!1;for(let l=0;l<i;l++)if(c=r[l](e,s,n,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}};li.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)};li.prototype.State=Ut;function hr(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}hr.prototype.pushPending=function(){const e=new Nt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};hr.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Nt(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};hr.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e);let i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)===55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)===56320){const b=this.src.charCodeAt(e-2);i=(b&64512)===55296?65536+(b-55296<<10)+(i-56320):65533}else(i&64512)===55296&&(i=65533);let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const s=o-e;let a=o<n?this.src.charCodeAt(o):32;if((a&64512)===55296){const b=this.src.charCodeAt(o+1);a=(b&64512)===56320?65536+(a-55296<<10)+(b-56320):65533}else(a&64512)===56320&&(a=65533);const u=cr(i)||ur(i),c=cr(a)||ur(a),l=ar(i),d=ar(a),p=!d&&(!c||l||u),g=!l&&(!u||d||c);return{can_open:p&&(t||!g||u),can_close:g&&(t||!p||c),length:s}};hr.prototype.Token=Nt;function sx(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 ax(e,t){let n=e.pos;for(;n<e.posMax&&!sx(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const ux=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function cx(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(ux);if(!i)return!1;const o=i[1],s=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!s)return!1;let a=s.url;if(a.length<=o.length)return!1;let u=a.length;for(;u>0&&a.charCodeAt(u-1)===42;)u--;u!==a.length&&(a=a.slice(0,u));const c=e.md.normalizeLink(a);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(a);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=a.length-o.length,!0}function lx(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),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<i&&Ve(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const xs=[];for(let e=0;e<256;e++)xs.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){xs[e.charCodeAt(0)]=1});function dx(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!Ve(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(o+=e.src[n+1],n++)}const s="\\"+o;if(!t){const a=e.push("text_special","",0);i<256&&xs[i]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function fx(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(i,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=s),e.pos+=a,!0;let u=n,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<o&&e.src.charCodeAt(u)===96;)u++;const l=u-c;if(l===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[l]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}function px(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const s=String.fromCharCode(r);if(o<2)return!1;let a;o%2&&(a=e.push("text","",0),a.content=s,o--);for(let u=0;u<o;u+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Oa(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const s=t[o];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&r.push(a.token-1)}for(;r.length;){const o=r.pop();let s=o+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[o],e.tokens[o]=n)}}function gx(e){const t=e.tokens_meta,n=e.tokens_meta.length;Oa(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Oa(e,t[r].delimiters)}const Bl={tokenize:px,postProcess:gx};function hx(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function $a(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],s=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,a=String.fromCharCode(i.marker),u=e.tokens[i.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?a+a:a,u.content="";const c=e.tokens[o.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function mx(e){const t=e.tokens_meta,n=e.tokens_meta.length;$a(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&$a(e,t[r].delimiters)}const Ul={tokenize:hx,postProcess:mx};function bx(e,t){let n,r,i,o,s="",a="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const l=e.pos,d=e.posMax,p=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let f=g+1;if(f<d&&e.src.charCodeAt(f)===40){for(c=!1,f++;f<d&&(n=e.src.charCodeAt(f),!(!Ve(n)&&n!==10));f++);if(f>=d)return!1;if(u=f,i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),i.ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?f=i.pos:s="",u=f;f<d&&(n=e.src.charCodeAt(f),!(!Ve(n)&&n!==10));f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<d&&u!==f&&i.ok)for(a=i.str,f=i.pos;f<d&&(n=e.src.charCodeAt(f),!(!Ve(n)&&n!==10));f++);}(f>=d||e.src.charCodeAt(f)!==41)&&(c=!0),f++}if(c){if(typeof e.env.references>"u")return!1;if(f<d&&e.src.charCodeAt(f)===91?(u=f+1,f=e.md.helpers.parseLinkLabel(e,f),f>=0?r=e.src.slice(u,f++):f=g+1):f=g+1,r||(r=e.src.slice(p,g)),o=e.env.references[ui(r)],!o)return e.pos=l,!1;s=o.href,a=o.title}if(!t){e.pos=p,e.posMax=g;const h=e.push("link_open","a",1),b=[["href",s]];h.attrs=b,a&&b.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}function xx(e,t){let n,r,i,o,s,a,u,c,l="";const d=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,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(o=f+1,o<p&&e.src.charCodeAt(o)===40){for(o++;o<p&&(n=e.src.charCodeAt(o),!(!Ve(n)&&n!==10));o++);if(o>=p)return!1;for(c=o,a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),a.ok&&(l=e.md.normalizeLink(a.str),e.md.validateLink(l)?o=a.pos:l=""),c=o;o<p&&(n=e.src.charCodeAt(o),!(!Ve(n)&&n!==10));o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&c!==o&&a.ok)for(u=a.str,o=a.pos;o<p&&(n=e.src.charCodeAt(o),!(!Ve(n)&&n!==10));o++);else u="";if(o>=p||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<p&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(c,o++):o=f+1):o=f+1,i||(i=e.src.slice(g,f)),s=e.env.references[ui(i)],!s)return e.pos=d,!1;l=s.href,u=s.title}if(!t){r=e.src.slice(g,f);const h=[];e.md.inline.parse(r,e.md,e.env,h);const b=e.push("image","img",0),y=[["src",l],["alt",""]];b.attrs=y,b.children=h,b.content=r,u&&y.push(["title",u])}return e.pos=o,e.posMax=p,!0}const _x=/^([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])?)*)$/,yx=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function vx(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=e.src.slice(r+1,n);if(yx.test(o)){const s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(_x.test(o)){const s=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function Ex(e){return/^<a[>\s]/i.test(e)}function wx(e){return/^<\/a\s*>/i.test(e)}function kx(e){const t=e|32;return t>=97&&t<=122}function Sx(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!kx(i))return!1;const o=e.src.slice(r).match(ex);if(!o)return!1;if(!t){const s=e.push("html_inline","",0);s.content=o[0],Ex(s.content)&&e.linkLevel++,wx(s.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const Cx=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ax=/^&([a-z][a-z0-9]{1,31});/i;function Tx(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(Cx);if(o){if(!t){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0);a.content=ms(s)?sr(s):sr(65533),a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(Ax);if(o){const s=Wb(o[0]);if(s!==o[0]){if(!t){const a=e.push("text_special","",0);a.content=s,a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function Ia(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let s=0;s<n;s++){const a=e[s];if(o.push(0),(e[r].marker!==a.marker||i!==a.token-1)&&(r=s),i=a.token,a.length=a.length||0,!a.close)continue;t.hasOwnProperty(a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[a.marker][(a.open?3:0)+a.length%3];let c=r-o[r]-1,l=c;for(;c>u;c-=o[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let p=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(p=!0),!p){const g=c>0&&!e[c-1].open?o[c-1]+1:0;o[s]=s-c+g,o[c]=g,a.open=!1,d.end=s,d.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=l)}}function Nx(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ia(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ia(t[r].delimiters)}function Rx(e){let t,n,r=0;const i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const Di=[["text",ax],["linkify",cx],["newline",lx],["escape",dx],["backticks",fx],["strikethrough",Bl.tokenize],["emphasis",Ul.tokenize],["link",bx],["image",xx],["autolink",vx],["html_inline",Sx],["entity",Tx]],Oi=[["balance_pairs",Nx],["strikethrough",Bl.postProcess],["emphasis",Ul.postProcess],["fragments_join",Rx]];function mr(){this.ruler=new _t;for(let e=0;e<Di.length;e++)this.ruler.push(Di[e][0],Di[e][1]);this.ruler2=new _t;for(let e=0;e<Oi.length;e++)this.ruler2.push(Oi[e][0],Oi[e][1])}mr.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let s=!1;if(e.level<i){for(let a=0;a<r;a++)if(e.level++,s=n[a](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,o[t]=e.pos};mr.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let s=!1;if(e.level<i){for(let a=0;a<n;a++)if(s=t[a](e,!1),s){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};mr.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),s=o.length;for(let a=0;a<s;a++)o[a](i)};mr.prototype.State=hr;function Dx(e){const t={};e=e||{},t.src_Any=Cl.source,t.src_Cc=Al.source,t.src_Z=Nl.source,t.src_P=gs.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 Wo(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function di(e){return Object.prototype.toString.call(e)}function Ox(e){return di(e)==="[object String]"}function $x(e){return di(e)==="[object Object]"}function Ix(e){return di(e)==="[object RegExp]"}function Ma(e){return di(e)==="[object Function]"}function Mx(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const zl={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Lx(e){return Object.keys(e||{}).reduce(function(t,n){return t||zl.hasOwnProperty(n)},!1)}const Fx={"http:":{validate:function(e,t,n){const r=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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=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(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=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(r)?r.match(n.re.mailto)[0].length:0}}},Px="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]",Bx="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ux(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function La(){return function(e,t){t.normalize(e)}}function Zr(e){const t=e.re=Dx(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Px),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(a,u){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+u)}Object.keys(e.__schemas__).forEach(function(a){const u=e.__schemas__[a];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[a]=c,$x(u)){Ix(u.validate)?c.validate=Ux(u.validate):Ma(u.validate)?c.validate=u.validate:o(a,u),Ma(u.normalize)?c.normalize=u.normalize:u.normalize?o(a,u):c.normalize=La();return}if(Ox(u)){i.push(a);return}o(a,u)}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:La()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Mx).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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 ql(e,t,n,r){const i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function wt(e,t){if(!(this instanceof wt))return new wt(e,t);t||Lx(e)&&(t=e,e={}),this.__opts__=Wo({},zl,t),this.__schemas__=Wo({},Fx,e),this.__compiled__={},this.__tlds__=Bx,this.__tlds_replaced__=!1,this.re={},Zr(this)}wt.prototype.add=function(t,n){return this.__schemas__[t]=n,Zr(this),this};wt.prototype.set=function(t){return this.__opts__=Wo(this.__opts__,t),this};wt.prototype.test=function(t){if(!t.length)return!1;let n,r;if(this.re.schema_test.test(t)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(t))!==null;)if(this.testSchemaAt(t,n[2],r.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)};wt.prototype.pretest=function(t){return this.re.pretest.test(t)};wt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};wt.prototype.match=function(t){const n=[],r=[],i=[],o=[];let s,a,u;function c(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(u=this.re.schema_search,u.lastIndex=0;(s=u.exec(t))!==null;)a=this.testSchemaAt(t,s[2],u.lastIndex),a&&r.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+a});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(u=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,u.lastIndex=0;(s=u.exec(t))!==null;)i.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(u=this.re.email_fuzzy_global,u.lastIndex=0;(s=u.exec(t))!==null;)o.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const l=[0,0,0];let d=0;for(;;){const p=[r[l[0]],o[l[1]],i[l[2]]],g=c(c(p[0],p[1]),p[2]);if(!g)break;if(g===p[0]?l[0]++:g===p[1]?l[1]++:l[2]++,g.index<d)continue;const f=new ql(t,g.schema,g.index,g.lastIndex);this.__compiled__[f.schema].normalize(f,this),n.push(f),d=g.lastIndex}return n.length?n:null};wt.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);if(!r)return null;const i=new ql(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[i.schema].normalize(i,this),i};wt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Zr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Zr(this),this)};wt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};wt.prototype.onCompile=function(){};const Mn=2147483647,Mt=36,_s=1,lr=26,zx=38,qx=700,Hl=72,jl=128,Kl="-",Hx=/^xn--/,jx=/[^\0-\x7F]/,Kx=/[\x2E\u3002\uFF0E\uFF61]/g,Gx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$i=Mt-_s,Lt=Math.floor,Ii=String.fromCharCode;function on(e){throw new RangeError(Gx[e])}function Wx(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Gl(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Kx,".");const i=e.split("."),o=Wx(i,t).join(".");return r+o}function Wl(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const Vx=e=>String.fromCodePoint(...e),Zx=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Mt},Fa=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Vl=function(e,t,n){let r=0;for(e=n?Lt(e/qx):e>>1,e+=Lt(e/t);e>$i*lr>>1;r+=Mt)e=Lt(e/$i);return Lt(r+($i+1)*e/(e+zx))},Zl=function(e){const t=[],n=e.length;let r=0,i=jl,o=Hl,s=e.lastIndexOf(Kl);s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&on("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const u=r;for(let l=1,d=Mt;;d+=Mt){a>=n&&on("invalid-input");const p=Zx(e.charCodeAt(a++));p>=Mt&&on("invalid-input"),p>Lt((Mn-r)/l)&&on("overflow"),r+=p*l;const g=d<=o?_s:d>=o+lr?lr:d-o;if(p<g)break;const f=Mt-g;l>Lt(Mn/f)&&on("overflow"),l*=f}const c=t.length+1;o=Vl(r-u,c,u==0),Lt(r/c)>Mn-i&&on("overflow"),i+=Lt(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Yl=function(e){const t=[];e=Wl(e);const n=e.length;let r=jl,i=0,o=Hl;for(const u of e)u<128&&t.push(Ii(u));const s=t.length;let a=s;for(s&&t.push(Kl);a<n;){let u=Mn;for(const l of e)l>=r&&l<u&&(u=l);const c=a+1;u-r>Lt((Mn-i)/c)&&on("overflow"),i+=(u-r)*c,r=u;for(const l of e)if(l<r&&++i>Mn&&on("overflow"),l===r){let d=i;for(let p=Mt;;p+=Mt){const g=p<=o?_s:p>=o+lr?lr:p-o;if(d<g)break;const f=d-g,h=Mt-g;t.push(Ii(Fa(g+f%h,0))),d=Lt(f/h)}t.push(Ii(Fa(d,0))),o=Vl(i,c,a===s),i=0,++a}++i,++r}return t.join("")},Yx=function(e){return Gl(e,function(t){return Hx.test(t)?Zl(t.slice(4).toLowerCase()):t})},Xx=function(e){return Gl(e,function(t){return jx.test(t)?"xn--"+Yl(t):t})},Xl={version:"2.3.1",ucs2:{decode:Wl,encode:Vx},decode:Zl,encode:Yl,toASCII:Xx,toUnicode:Yx},Qx={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Jx={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"]}}},e_={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"]}}},t_={default:Qx,zero:Jx,commonmark:e_},n_=/^(vbscript|javascript|file|data):/,r_=/^data:image\/(gif|png|jpeg|webp);/;function i_(e){const t=e.trim().toLowerCase();return n_.test(t)?r_.test(t):!0}const Ql=["http:","https:","mailto:"];function o_(e){const t=ps(e,!0);if(t.hostname&&(!t.protocol||Ql.indexOf(t.protocol)>=0))try{t.hostname=Xl.toASCII(t.hostname)}catch{}return gr(fs(t))}function s_(e){const t=ps(e,!0);if(t.hostname&&(!t.protocol||Ql.indexOf(t.protocol)>=0))try{t.hostname=Xl.toUnicode(t.hostname)}catch{}return Ln(fs(t),Ln.defaultChars+"%")}function kt(e,t){if(!(this instanceof kt))return new kt(e,t);t||hs(e)||(t=e||{},e="default"),this.inline=new mr,this.block=new li,this.core=new bs,this.renderer=new zn,this.linkify=new wt,this.validateLink=i_,this.normalizeLink=o_,this.normalizeLinkText=s_,this.utils=c1,this.helpers=ai({},p1),this.options={},this.configure(e),t&&this.set(t)}kt.prototype.set=function(e){return ai(this.options,e),this};kt.prototype.configure=function(e){const t=this;if(hs(e)){const n=e;if(e=t_[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};kt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};kt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};kt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};kt.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};kt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};kt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};kt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Mi,Pa;function a_(){if(Pa)return Mi;Pa=1;var e=!0,t=!1,n=!1;Mi=function(h,b){b&&(e=!b.enabled,t=!!b.label,n=!!b.labelAfter),h.core.ruler.after("inline","github-task-lists",function(y){for(var x=y.tokens,E=2;E<x.length;E++)o(x,E)&&(s(x[E],y.Token),r(x[E-2],"class","task-list-item"+(e?"":" enabled")),r(x[i(x,E-2)],"class","contains-task-list"))})};function r(h,b,y){var x=h.attrIndex(b),E=[b,y];x<0?h.attrPush(E):h.attrs[x]=E}function i(h,b){for(var y=h[b].level-1,x=b-1;x>=0;x--)if(h[x].level===y)return x;return-1}function o(h,b){return d(h[b])&&p(h[b-1])&&g(h[b-2])&&f(h[b])}function s(h,b){if(h.children.unshift(a(h,b)),h.children[1].content=h.children[1].content.slice(3),h.content=h.content.slice(3),t)if(n){h.children.pop();var y="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);h.children[0].content=h.children[0].content.slice(0,-1)+' id="'+y+'">',h.children.push(l(h.content,y,b))}else h.children.unshift(u(b)),h.children.push(c(b))}function a(h,b){var y=new b("html_inline","",0),x=e?' disabled="" ':"";return h.content.indexOf("[ ] ")===0?y.content='<input class="task-list-item-checkbox"'+x+'type="checkbox">':(h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0)&&(y.content='<input class="task-list-item-checkbox" checked=""'+x+'type="checkbox">'),y}function u(h){var b=new h("html_inline","",0);return b.content="<label>",b}function c(h){var b=new h("html_inline","",0);return b.content="</label>",b}function l(h,b,y){var x=new y("html_inline","",0);return x.content='<label class="task-list-item-label" for="'+b+'">'+h+"</label>",x.attrs=[{for:b}],x}function d(h){return h.type==="inline"}function p(h){return h.type==="paragraph_open"}function g(h){return h.type==="list_item_open"}function f(h){return h.content.indexOf("[ ] ")===0||h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0}return Mi}var u_=a_();const c_=ri(u_);var Li,Ba;function l_(){if(Ba)return Li;Ba=1;function e(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(U=>{const J=k[U],Ee=typeof J;(Ee==="object"||Ee==="function")&&!Object.isFrozen(J)&&e(J)}),k}class t{constructor(U){U.data===void 0&&(U.data={}),this.data=U.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(k){return k.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(k,...U){const J=Object.create(null);for(const Ee in k)J[Ee]=k[Ee];return U.forEach(function(Ee){for(const Je in Ee)J[Je]=Ee[Je]}),J}const i="</span>",o=k=>!!k.scope,s=(k,{prefix:U})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const J=k.split(".");return[`${U}${J.shift()}`,...J.map((Ee,Je)=>`${Ee}${"_".repeat(Je+1)}`)].join(" ")}return`${U}${k}`};class a{constructor(U,J){this.buffer="",this.classPrefix=J.classPrefix,U.walk(this)}addText(U){this.buffer+=n(U)}openNode(U){if(!o(U))return;const J=s(U.scope,{prefix:this.classPrefix});this.span(J)}closeNode(U){o(U)&&(this.buffer+=i)}value(){return this.buffer}span(U){this.buffer+=`<span class="${U}">`}}const u=(k={})=>{const U={children:[]};return Object.assign(U,k),U};class c{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(U){this.top.children.push(U)}openNode(U){const J=u({scope:U});this.add(J),this.stack.push(J)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(U){return this.constructor._walk(U,this.rootNode)}static _walk(U,J){return typeof J=="string"?U.addText(J):J.children&&(U.openNode(J),J.children.forEach(Ee=>this._walk(U,Ee)),U.closeNode(J)),U}static _collapse(U){typeof U!="string"&&U.children&&(U.children.every(J=>typeof J=="string")?U.children=[U.children.join("")]:U.children.forEach(J=>{c._collapse(J)}))}}class l extends c{constructor(U){super(),this.options=U}addText(U){U!==""&&this.add(U)}startScope(U){this.openNode(U)}endScope(){this.closeNode()}__addSublanguage(U,J){const Ee=U.root;J&&(Ee.scope=`language:${J}`),this.add(Ee)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(k){return k?typeof k=="string"?k:k.source:null}function p(k){return h("(?=",k,")")}function g(k){return h("(?:",k,")*")}function f(k){return h("(?:",k,")?")}function h(...k){return k.map(J=>d(J)).join("")}function b(k){const U=k[k.length-1];return typeof U=="object"&&U.constructor===Object?(k.splice(k.length-1,1),U):{}}function y(...k){return"("+(b(k).capture?"":"?:")+k.map(Ee=>d(Ee)).join("|")+")"}function x(k){return new RegExp(k.toString()+"|").exec("").length-1}function E(k,U){const J=k&&k.exec(U);return J&&J.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(k,{joinWith:U}){let J=0;return k.map(Ee=>{J+=1;const Je=J;let et=d(Ee),ce="";for(;et.length>0;){const se=w.exec(et);if(!se){ce+=et;break}ce+=et.substring(0,se.index),et=et.substring(se.index+se[0].length),se[0][0]==="\\"&&se[1]?ce+="\\"+String(Number(se[1])+Je):(ce+=se[0],se[0]==="("&&J++)}return ce}).map(Ee=>`(${Ee})`).join(U)}const O=/\b\B/,$="[a-zA-Z]\\w*",A="[a-zA-Z_]\\w*",I="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",z=(k={})=>{const U=/^#![ ]*\//;return k.binary&&(k.begin=h(U,/.*\b/,k.binary,/\b.*/)),r({scope:"meta",begin:U,end:/$/,relevance:0,"on:begin":(J,Ee)=>{J.index!==0&&Ee.ignoreMatch()}},k)},B={begin:"\\\\[\\s\\S]",relevance:0},T={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},X={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},pe=function(k,U,J={}){const Ee=r({scope:"comment",begin:k,end:U,contains:[]},J);Ee.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Je=y("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ee.contains.push({begin:h(/[ ]+/,"(",Je,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ee},Q=pe("//","$"),L=pe("/\\*","\\*/"),ne=pe("#","$"),H={scope:"number",begin:I,relevance:0},S={scope:"number",begin:j,relevance:0},R={scope:"number",begin:F,relevance:0},q={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]},W={scope:"title",begin:$,relevance:0},ie={scope:"title",begin:A,relevance:0},he={begin:"\\.\\s*"+A,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:T,BACKSLASH_ESCAPE:B,BINARY_NUMBER_MODE:R,BINARY_NUMBER_RE:F,COMMENT:pe,C_BLOCK_COMMENT_MODE:L,C_LINE_COMMENT_MODE:Q,C_NUMBER_MODE:S,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(U,J)=>{J.data._beginMatch=U[1]},"on:end":(U,J)=>{J.data._beginMatch!==U[1]&&J.ignoreMatch()}})},HASH_COMMENT_MODE:ne,IDENT_RE:$,MATCH_NOTHING_RE:O,METHOD_GUARD:he,NUMBER_MODE:H,NUMBER_RE:I,PHRASAL_WORDS_MODE:X,QUOTE_STRING_MODE:D,REGEXP_MODE:q,RE_STARTERS_RE:P,SHEBANG:z,TITLE_MODE:W,UNDERSCORE_IDENT_RE:A,UNDERSCORE_TITLE_MODE:ie});function Oe(k,U){k.input[k.index-1]==="."&&U.ignoreMatch()}function Ce(k,U){k.className!==void 0&&(k.scope=k.className,delete k.className)}function Ye(k,U){U&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=Oe,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function st(k,U){Array.isArray(k.illegal)&&(k.illegal=y(...k.illegal))}function vt(k,U){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function dn(k,U){k.relevance===void 0&&(k.relevance=1)}const fn=(k,U)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const J=Object.assign({},k);Object.keys(k).forEach(Ee=>{delete k[Ee]}),k.keywords=J.keywords,k.begin=h(J.beforeMatch,p(J.begin)),k.starts={relevance:0,contains:[Object.assign(J,{endsParent:!0})]},k.relevance=0,delete J.beforeMatch},wn=["of","and","for","in","not","or","if","then","parent","list","value"],qn="keyword";function kn(k,U,J=qn){const Ee=Object.create(null);return typeof k=="string"?Je(J,k.split(" ")):Array.isArray(k)?Je(J,k):Object.keys(k).forEach(function(et){Object.assign(Ee,kn(k[et],U,et))}),Ee;function Je(et,ce){U&&(ce=ce.map(se=>se.toLowerCase())),ce.forEach(function(se){const ye=se.split("|");Ee[ye[0]]=[et,pn(ye[0],ye[1])]})}}function pn(k,U){return U?Number(U):Hn(k)?0:1}function Hn(k){return wn.includes(k.toLowerCase())}const Sn={},St=k=>{console.error(k)},K=(k,...U)=>{console.log(`WARN: ${k}`,...U)},V=(k,U)=>{Sn[`${k}/${U}`]||(console.log(`Deprecated as of ${k}. ${U}`),Sn[`${k}/${U}`]=!0)},ae=new Error;function be(k,U,{key:J}){let Ee=0;const Je=k[J],et={},ce={};for(let se=1;se<=U.length;se++)ce[se+Ee]=Je[se],et[se+Ee]=!0,Ee+=x(U[se-1]);k[J]=ce,k[J]._emit=et,k[J]._multi=!0}function Re(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw St("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof k.beginScope!="object"||k.beginScope===null)throw St("beginScope must be object"),ae;be(k,k.begin,{key:"beginScope"}),k.begin=C(k.begin,{joinWith:""})}}function at(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw St("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof k.endScope!="object"||k.endScope===null)throw St("endScope must be object"),ae;be(k,k.end,{key:"endScope"}),k.end=C(k.end,{joinWith:""})}}function De(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function He(k){De(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),Re(k),at(k)}function je(k){function U(ce,se){return new RegExp(d(ce),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(se?"g":""))}class J{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(se,ye){ye.position=this.position++,this.matchIndexes[this.matchAt]=ye,this.regexes.push([ye,se]),this.matchAt+=x(se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const se=this.regexes.map(ye=>ye[1]);this.matcherRe=U(C(se,{joinWith:"|"}),!0),this.lastIndex=0}exec(se){this.matcherRe.lastIndex=this.lastIndex;const ye=this.matcherRe.exec(se);if(!ye)return null;const ut=ye.findIndex((jn,fi)=>fi>0&&jn!==void 0),tt=this.matchIndexes[ut];return ye.splice(0,ut),Object.assign(ye,tt)}}class Ee{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(se){if(this.multiRegexes[se])return this.multiRegexes[se];const ye=new J;return this.rules.slice(se).forEach(([ut,tt])=>ye.addRule(ut,tt)),ye.compile(),this.multiRegexes[se]=ye,ye}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(se,ye){this.rules.push([se,ye]),ye.type==="begin"&&this.count++}exec(se){const ye=this.getMatcher(this.regexIndex);ye.lastIndex=this.lastIndex;let ut=ye.exec(se);if(this.resumingScanAtSamePosition()&&!(ut&&ut.index===this.lastIndex)){const tt=this.getMatcher(0);tt.lastIndex=this.lastIndex+1,ut=tt.exec(se)}return ut&&(this.regexIndex+=ut.position+1,this.regexIndex===this.count&&this.considerAll()),ut}}function Je(ce){const se=new Ee;return ce.contains.forEach(ye=>se.addRule(ye.begin,{rule:ye,type:"begin"})),ce.terminatorEnd&&se.addRule(ce.terminatorEnd,{type:"end"}),ce.illegal&&se.addRule(ce.illegal,{type:"illegal"}),se}function et(ce,se){const ye=ce;if(ce.isCompiled)return ye;[Ce,vt,He,fn].forEach(tt=>tt(ce,se)),k.compilerExtensions.forEach(tt=>tt(ce,se)),ce.__beforeBegin=null,[Ye,st,dn].forEach(tt=>tt(ce,se)),ce.isCompiled=!0;let ut=null;return typeof ce.keywords=="object"&&ce.keywords.$pattern&&(ce.keywords=Object.assign({},ce.keywords),ut=ce.keywords.$pattern,delete ce.keywords.$pattern),ut=ut||/\w+/,ce.keywords&&(ce.keywords=kn(ce.keywords,k.case_insensitive)),ye.keywordPatternRe=U(ut,!0),se&&(ce.begin||(ce.begin=/\B|\b/),ye.beginRe=U(ye.begin),!ce.end&&!ce.endsWithParent&&(ce.end=/\B|\b/),ce.end&&(ye.endRe=U(ye.end)),ye.terminatorEnd=d(ye.end)||"",ce.endsWithParent&&se.terminatorEnd&&(ye.terminatorEnd+=(ce.end?"|":"")+se.terminatorEnd)),ce.illegal&&(ye.illegalRe=U(ce.illegal)),ce.contains||(ce.contains=[]),ce.contains=[].concat(...ce.contains.map(function(tt){return xt(tt==="self"?ce:tt)})),ce.contains.forEach(function(tt){et(tt,ye)}),ce.starts&&et(ce.starts,se),ye.matcher=Je(ye),ye}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=r(k.classNameAliases||{}),et(k)}function dt(k){return k?k.endsWithParent||dt(k.starts):!1}function xt(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(U){return r(k,{variants:null},U)})),k.cachedVariants?k.cachedVariants:dt(k)?r(k,{starts:k.starts?r(k.starts):null}):Object.isFrozen(k)?r(k):k}var zt="11.11.1";class qt extends Error{constructor(U,J){super(U),this.name="HTMLInjectionError",this.html=J}}const Ct=n,gn=r,Fe=Symbol("nomatch"),Cn=7,Qt=function(k){const U=Object.create(null),J=Object.create(null),Ee=[];let Je=!0;const et="Could not find the language '{}', did you forget to load/include a language module?",ce={disableAutodetect:!0,name:"Plain text",contains:[]};let se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:l};function ye(Y){return se.noHighlightRe.test(Y)}function ut(Y){let me=Y.className+" ";me+=Y.parentNode?Y.parentNode.className:"";const $e=se.languageDetectRe.exec(me);if($e){const Ge=en($e[1]);return Ge||(K(et.replace("{}",$e[1])),K("Falling back to no-highlight mode for this block.",Y)),Ge?$e[1]:"no-highlight"}return me.split(/\s+/).find(Ge=>ye(Ge)||en(Ge))}function tt(Y,me,$e){let Ge="",rt="";typeof me=="object"?(Ge=Y,$e=me.ignoreIllegals,rt=me.language):(V("10.7.0","highlight(lang, code, ...args) has been deprecated."),V("10.7.0",`Please use highlight(code, options) instead.
|
|
28
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),rt=Y,Ge=me),$e===void 0&&($e=!0);const At={code:Ge,language:rt};xr("before:highlight",At);const tn=At.result?At.result:jn(At.language,At.code,$e);return tn.code=At.code,xr("after:highlight",tn),tn}function jn(Y,me,$e,Ge){const rt=Object.create(null);function At(ee,le){return ee.keywords[le]}function tn(){if(!Se.keywords){ft.addText(We);return}let ee=0;Se.keywordPatternRe.lastIndex=0;let le=Se.keywordPatternRe.exec(We),Te="";for(;le;){Te+=We.substring(ee,le.index);const Pe=Ot.case_insensitive?le[0].toLowerCase():le[0],pt=At(Se,Pe);if(pt){const[Ht,Rd]=pt;if(ft.addText(Te),Te="",rt[Pe]=(rt[Pe]||0)+1,rt[Pe]<=Cn&&(vr+=Rd),Ht.startsWith("_"))Te+=le[0];else{const Dd=Ot.classNameAliases[Ht]||Ht;Dt(le[0],Dd)}}else Te+=le[0];ee=Se.keywordPatternRe.lastIndex,le=Se.keywordPatternRe.exec(We)}Te+=We.substring(ee),ft.addText(Te)}function _r(){if(We==="")return;let ee=null;if(typeof Se.subLanguage=="string"){if(!U[Se.subLanguage]){ft.addText(We);return}ee=jn(Se.subLanguage,We,!0,Ns[Se.subLanguage]),Ns[Se.subLanguage]=ee._top}else ee=pi(We,Se.subLanguage.length?Se.subLanguage:null);Se.relevance>0&&(vr+=ee.relevance),ft.__addSublanguage(ee._emitter,ee.language)}function Et(){Se.subLanguage!=null?_r():tn(),We=""}function Dt(ee,le){ee!==""&&(ft.startScope(le),ft.addText(ee),ft.endScope())}function Ss(ee,le){let Te=1;const Pe=le.length-1;for(;Te<=Pe;){if(!ee._emit[Te]){Te++;continue}const pt=Ot.classNameAliases[ee[Te]]||ee[Te],Ht=le[Te];pt?Dt(Ht,pt):(We=Ht,tn(),We=""),Te++}}function Cs(ee,le){return ee.scope&&typeof ee.scope=="string"&&ft.openNode(Ot.classNameAliases[ee.scope]||ee.scope),ee.beginScope&&(ee.beginScope._wrap?(Dt(We,Ot.classNameAliases[ee.beginScope._wrap]||ee.beginScope._wrap),We=""):ee.beginScope._multi&&(Ss(ee.beginScope,le),We="")),Se=Object.create(ee,{parent:{value:Se}}),Se}function As(ee,le,Te){let Pe=E(ee.endRe,Te);if(Pe){if(ee["on:end"]){const pt=new t(ee);ee["on:end"](le,pt),pt.isMatchIgnored&&(Pe=!1)}if(Pe){for(;ee.endsParent&&ee.parent;)ee=ee.parent;return ee}}if(ee.endsWithParent)return As(ee.parent,le,Te)}function Sd(ee){return Se.matcher.regexIndex===0?(We+=ee[0],1):(bi=!0,0)}function Cd(ee){const le=ee[0],Te=ee.rule,Pe=new t(Te),pt=[Te.__beforeBegin,Te["on:begin"]];for(const Ht of pt)if(Ht&&(Ht(ee,Pe),Pe.isMatchIgnored))return Sd(le);return Te.skip?We+=le:(Te.excludeBegin&&(We+=le),Et(),!Te.returnBegin&&!Te.excludeBegin&&(We=le)),Cs(Te,ee),Te.returnBegin?0:le.length}function Ad(ee){const le=ee[0],Te=me.substring(ee.index),Pe=As(Se,ee,Te);if(!Pe)return Fe;const pt=Se;Se.endScope&&Se.endScope._wrap?(Et(),Dt(le,Se.endScope._wrap)):Se.endScope&&Se.endScope._multi?(Et(),Ss(Se.endScope,ee)):pt.skip?We+=le:(pt.returnEnd||pt.excludeEnd||(We+=le),Et(),pt.excludeEnd&&(We=le));do Se.scope&&ft.closeNode(),!Se.skip&&!Se.subLanguage&&(vr+=Se.relevance),Se=Se.parent;while(Se!==Pe.parent);return Pe.starts&&Cs(Pe.starts,ee),pt.returnEnd?0:le.length}function Td(){const ee=[];for(let le=Se;le!==Ot;le=le.parent)le.scope&&ee.unshift(le.scope);ee.forEach(le=>ft.openNode(le))}let yr={};function Ts(ee,le){const Te=le&&le[0];if(We+=ee,Te==null)return Et(),0;if(yr.type==="begin"&&le.type==="end"&&yr.index===le.index&&Te===""){if(We+=me.slice(le.index,le.index+1),!Je){const Pe=new Error(`0 width match regex (${Y})`);throw Pe.languageName=Y,Pe.badRule=yr.rule,Pe}return 1}if(yr=le,le.type==="begin")return Cd(le);if(le.type==="illegal"&&!$e){const Pe=new Error('Illegal lexeme "'+Te+'" for mode "'+(Se.scope||"<unnamed>")+'"');throw Pe.mode=Se,Pe}else if(le.type==="end"){const Pe=Ad(le);if(Pe!==Fe)return Pe}if(le.type==="illegal"&&Te==="")return We+=`
|
|
29
|
+
`,1;if(mi>1e5&&mi>le.index*3)throw new Error("potential infinite loop, way more iterations than matches");return We+=Te,Te.length}const Ot=en(Y);if(!Ot)throw St(et.replace("{}",Y)),new Error('Unknown language: "'+Y+'"');const Nd=je(Ot);let hi="",Se=Ge||Nd;const Ns={},ft=new se.__emitter(se);Td();let We="",vr=0,hn=0,mi=0,bi=!1;try{if(Ot.__emitTokens)Ot.__emitTokens(me,ft);else{for(Se.matcher.considerAll();;){mi++,bi?bi=!1:Se.matcher.considerAll(),Se.matcher.lastIndex=hn;const ee=Se.matcher.exec(me);if(!ee)break;const le=me.substring(hn,ee.index),Te=Ts(le,ee);hn=ee.index+Te}Ts(me.substring(hn))}return ft.finalize(),hi=ft.toHTML(),{language:Y,value:hi,relevance:vr,illegal:!1,_emitter:ft,_top:Se}}catch(ee){if(ee.message&&ee.message.includes("Illegal"))return{language:Y,value:Ct(me),illegal:!0,relevance:0,_illegalBy:{message:ee.message,index:hn,context:me.slice(hn-100,hn+100),mode:ee.mode,resultSoFar:hi},_emitter:ft};if(Je)return{language:Y,value:Ct(me),illegal:!1,relevance:0,errorRaised:ee,_emitter:ft,_top:Se};throw ee}}function fi(Y){const me={value:Ct(Y),illegal:!1,relevance:0,_top:ce,_emitter:new se.__emitter(se)};return me._emitter.addText(Y),me}function pi(Y,me){me=me||se.languages||Object.keys(U);const $e=fi(Y),Ge=me.filter(en).filter(ks).map(Et=>jn(Et,Y,!1));Ge.unshift($e);const rt=Ge.sort((Et,Dt)=>{if(Et.relevance!==Dt.relevance)return Dt.relevance-Et.relevance;if(Et.language&&Dt.language){if(en(Et.language).supersetOf===Dt.language)return 1;if(en(Dt.language).supersetOf===Et.language)return-1}return 0}),[At,tn]=rt,_r=At;return _r.secondBest=tn,_r}function gd(Y,me,$e){const Ge=me&&J[me]||$e;Y.classList.add("hljs"),Y.classList.add(`language-${Ge}`)}function gi(Y){let me=null;const $e=ut(Y);if(ye($e))return;if(xr("before:highlightElement",{el:Y,language:$e}),Y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Y);return}if(Y.children.length>0&&(se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Y)),se.throwUnescapedHTML))throw new qt("One of your code blocks includes unescaped HTML.",Y.innerHTML);me=Y;const Ge=me.textContent,rt=$e?tt(Ge,{language:$e,ignoreIllegals:!0}):pi(Ge);Y.innerHTML=rt.value,Y.dataset.highlighted="yes",gd(Y,$e,rt.language),Y.result={language:rt.language,re:rt.relevance,relevance:rt.relevance},rt.secondBest&&(Y.secondBest={language:rt.secondBest.language,relevance:rt.secondBest.relevance}),xr("after:highlightElement",{el:Y,result:rt,text:Ge})}function hd(Y){se=gn(se,Y)}const md=()=>{br(),V("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function bd(){br(),V("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Es=!1;function br(){function Y(){br()}if(document.readyState==="loading"){Es||window.addEventListener("DOMContentLoaded",Y,!1),Es=!0;return}document.querySelectorAll(se.cssSelector).forEach(gi)}function xd(Y,me){let $e=null;try{$e=me(k)}catch(Ge){if(St("Language definition for '{}' could not be registered.".replace("{}",Y)),Je)St(Ge);else throw Ge;$e=ce}$e.name||($e.name=Y),U[Y]=$e,$e.rawDefinition=me.bind(null,k),$e.aliases&&ws($e.aliases,{languageName:Y})}function _d(Y){delete U[Y];for(const me of Object.keys(J))J[me]===Y&&delete J[me]}function yd(){return Object.keys(U)}function en(Y){return Y=(Y||"").toLowerCase(),U[Y]||U[J[Y]]}function ws(Y,{languageName:me}){typeof Y=="string"&&(Y=[Y]),Y.forEach($e=>{J[$e.toLowerCase()]=me})}function ks(Y){const me=en(Y);return me&&!me.disableAutodetect}function vd(Y){Y["before:highlightBlock"]&&!Y["before:highlightElement"]&&(Y["before:highlightElement"]=me=>{Y["before:highlightBlock"](Object.assign({block:me.el},me))}),Y["after:highlightBlock"]&&!Y["after:highlightElement"]&&(Y["after:highlightElement"]=me=>{Y["after:highlightBlock"](Object.assign({block:me.el},me))})}function Ed(Y){vd(Y),Ee.push(Y)}function wd(Y){const me=Ee.indexOf(Y);me!==-1&&Ee.splice(me,1)}function xr(Y,me){const $e=Y;Ee.forEach(function(Ge){Ge[$e]&&Ge[$e](me)})}function kd(Y){return V("10.7.0","highlightBlock will be removed entirely in v12.0"),V("10.7.0","Please use highlightElement now."),gi(Y)}Object.assign(k,{highlight:tt,highlightAuto:pi,highlightAll:br,highlightElement:gi,highlightBlock:kd,configure:hd,initHighlighting:md,initHighlightingOnLoad:bd,registerLanguage:xd,unregisterLanguage:_d,listLanguages:yd,getLanguage:en,registerAliases:ws,autoDetection:ks,inherit:gn,addPlugin:Ed,removePlugin:wd}),k.debugMode=function(){Je=!1},k.safeMode=function(){Je=!0},k.versionString=zt,k.regex={concat:h,lookahead:p,either:y,optional:f,anyNumberOfTimes:g};for(const Y in ke)typeof ke[Y]=="object"&&e(ke[Y]);return Object.assign(k,ke),k},Jt=Qt({});return Jt.newInstance=()=>Qt({}),Li=Jt,Jt.HighlightJS=Jt,Jt.default=Jt,Li}var Fi,Ua;function d_(){if(Ua)return Fi;Ua=1;function e(t){const n=t.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(s,{begin:/\(/,end:/\)/}),u=t.inherit(t.APOS_STRING_MODE,{className:"string"}),c=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,c,u,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,c,u]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:l}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Fi=e,Fi}var Pi,za;function f_(){if(za)return Pi;za=1;function e(t){const n=t.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,o]};o.contains.push(u);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},g=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=t.SHEBANG({binary:`(${g.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],y=["true","false"],x={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],w=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:y,built_in:[...E,...w,"set","shopt",...C,...O]},contains:[f,t.SHEBANG(),h,p,s,a,x,u,c,l,d,r]}}return Pi=e,Pi}var Bi,qa;function p_(){if(qa)return Bi;qa=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="("+i+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(o)+t.IDENT_RE,relevance:0},f=n.optional(o)+t.IDENT_RE+"\\s*\\(",y={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[p,u,r,t.C_BLOCK_COMMENT_MODE,d,l],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:x.concat([{begin:/\(/,end:/\)/,keywords:y,contains:x.concat(["self"]),relevance:0}]),relevance:0},w={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:y,relevance:0},{begin:f,returnBegin:!0,contains:[t.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,d,u,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,d,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:y,disableAutodetect:!0,illegal:"</",contains:[].concat(E,w,x,[p,{begin:t.IDENT_RE+"::",keywords:y},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:p,strings:l,keywords:y}}}return Bi=e,Bi}var Ui,Ha;function g_(){if(Ha)return Ui;Ha=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="(?!struct)("+i+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(o)+t.IDENT_RE,relevance:0},f=n.optional(o)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},O={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},$=[O,p,u,r,t.C_BLOCK_COMMENT_MODE,d,l],A={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:$.concat([{begin:/\(/,end:/\)/,keywords:C,contains:$.concat(["self"]),relevance:0}]),relevance:0},I={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:f,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,d,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,d,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(A,I,O,$,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",u]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Ui=e,Ui}var zi,ja;function h_(){if(ja)return zi;ja=1;function e(t){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:o.concat(s),built_in:n,literal:i},u=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=t.inherit(d,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=t.inherit(g,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,f]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},y=t.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});g.contains=[b,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.C_BLOCK_COMMENT_MODE],f.contains=[y,h,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[l,b,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},w=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+w+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[x,c,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},C]}}return zi=e,zi}var qi,Ka;function m_(){if(Ka)return qi;Ka=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u(c){const l=c.regex,d=e(c),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",f=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",b=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,p,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...b,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...b,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...b,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return qi=u,qi}var Hi,Ga;function b_(){if(Ga)return Hi;Ga=1;function e(t){const n=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=t.inherit(l,{contains:[]}),g=t.inherit(d,{contains:[]});l.contains.push(g),d.contains.push(p);let f=[r,c];return[l,d,p,g].forEach(x=>{x.contains=x.contains.concat(f)}),f=f.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},r,s,l,d,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},o,i,c,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Hi=e,Hi}var ji,Wa;function x_(){if(Wa)return ji;Wa=1;function e(t){const n=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return ji=e,ji}var Ki,Va;function __(){if(Va)return Ki;Va=1;function e(t){const n=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=n.concat(i,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[u]}),t.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:a},p={className:"string",contains:[t.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,d]})]}]},g="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},$=[p,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:a},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:r}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);d.contains=$,b.contains=$;const F=[{begin:/^\s*=>/,starts:{end:"$",contains:$}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:$}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(F).concat(l).concat($)}}return Ki=e,Ki}var Gi,Za;function y_(){if(Za)return Gi;Za=1;function e(t){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}return Gi=e,Gi}var Wi,Ya;function v_(){if(Ya)return Wi;Ya=1;function e(t){const n=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(r,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Wi=e,Wi}var Vi,Xa;function E_(){if(Xa)return Vi;Xa=1;function e(t){const n=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},i=t.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[i,s,o,a,r,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,p=n.either(c,l,d),g=n.concat(p,"(\\s*\\.\\s*",p,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[i,u,s,o,a,r]}}]}}return Vi=e,Vi}var Zi,Qa;function w_(){if(Qa)return Zi;Qa=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(s,a,u){return u===-1?"":s.replace(a,c=>i(s,a,u-1))}function o(s){const a=s.regex,u="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=u+i("(?:<"+u+"~~~(?:\\s*,\\s*"+u+"~~~)*>)?",/~~~/g,2),f={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+u,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,u],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,u),/\s+/,u,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,u],className:{1:"keyword",3:"title.class"},contains:[b,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+c+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[h,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,r,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},r,h]}}return Zi=o,Zi}var Yi,Ja;function k_(){if(Ja)return Yi;Ja=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(o,r,i);function u(c){const l=c.regex,d=(ie,{after:he})=>{const de="</"+ie[0].slice(1);return ie.input.indexOf(de,he)!==-1},p=e,g={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,he)=>{const de=ie[0].length+ie.index,ke=ie.input[de];if(ke==="<"||ke===","){he.ignoreMatch();return}ke===">"&&(d(ie,{after:de})||he.ignoreMatch());let Oe;const Ce=ie.input.substring(de);if(Oe=Ce.match(/^\s*=/)){he.ignoreMatch();return}if((Oe=Ce.match(/^\s+extends\s+/))&&Oe.index===0){he.ignoreMatch();return}}},b={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},y="[0-9](_?[0-9])*",x=`\\.(${y})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${E})((${x})|\\.)?|(${x}))[eE][+-]?(${y})\\b`},{begin:`\\b(${E})\\b((${x})\\b|\\.)?|(${x})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},O={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},$={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,C],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},I={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,C]},F={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},P=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,$,A,I,{match:/\$\d+/},w];C.contains=P.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(P)});const z=[].concat(F,C.contains),B=z.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(z)}]),T={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:B},D={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,l.concat(p,"(",l.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Q={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(ie){return l.concat("(?!",ie.join("|"),")")}const H={match:l.concat(/\b/,ne([...o,"super","import"].map(ie=>`${ie}\\s*\\(`)),p,l.lookahead(/\s*\(/)),className:"title.function",relevance:0},S={begin:l.concat(/\./,l.lookahead(l.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},R={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:B,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,$,A,I,F,{match:/\$\d+/},w,X,{scope:"attr",match:p+l.lookahead(":"),relevance:0},W,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,c.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:B}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:f},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},Q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,c.inherit(c.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},S,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},H,L,D,R,{match:/\$[(.]/}]}}return Yi=u,Yi}var Xi,eu;function S_(){if(eu)return Xi;eu=1;function e(t){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],o={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[n,r,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Xi=e,Xi}var Qi,tu;function C_(){if(tu)return Qi;tu=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(o){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},u={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,c]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,l,c]}]};c.contains.push(d);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(d,{className:"string"}),"self"]}]},f=r,h=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=b;return y.variants[1].contains=[b],b.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,h,a,u,p,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,o.C_LINE_COMMENT_MODE,h],relevance:0},o.C_LINE_COMMENT_MODE,h,p,g,d,o.C_NUMBER_MODE]},h]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,g]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
30
|
+
`},f]}}return Qi=i,Qi}var Ji,nu;function A_(){if(nu)return Ji;nu=1;const e=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),u=o.concat(s).sort().reverse();function c(l){const d=e(l),p=u,g="and or not only",f="[\\w-]+",h="("+f+"|@\\{"+f+"\\})",b=[],y=[],x=function(z){return{className:"string",begin:"~?"+z+".*?"+z}},E=function(z,B,T){return{className:z,begin:B,relevance:T}},w={$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},C={begin:"\\(",end:"\\)",contains:y,keywords:w,relevance:0};y.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,x("'"),x('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,C,E("variable","@@?"+f,10),E("variable","@\\{"+f+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const O=y.concat({begin:/\{/,end:/\}/,contains:b}),$={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(y)},A={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:y}}]},I={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:w,returnEnd:!0,contains:y,relevance:0}},j={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:O}},F={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,$,E("keyword","all\\b"),E("variable","@\\{"+f+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,E("selector-tag",h,0),E("selector-id","#"+h),E("selector-class","\\."+h,0),E("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:O},{begin:"!important"},d.FUNCTION_DISPATCH]},P={begin:f+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[F]};return b.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,I,j,P,A,F,$,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:b}}return Ji=c,Ji}var eo,ru;function T_(){if(ru)return eo;ru=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",i={begin:n,end:r,contains:["self"]},o=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[i],relevance:5}])}}return eo=e,eo}var to,iu;function N_(){if(iu)return to;iu=1;function e(t){const n={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n,r]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,n,r,i,o,s,a]}}return to=e,to}var no,ou;function R_(){if(ou)return no;ou=1;function e(t){const n=t.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},a={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[t.BACKSLASH_ESCAPE,s,c],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(b,y,x="\\1")=>{const E=x==="\\1"?x:n.concat(x,y);return n.concat(n.concat("(?:",b,")"),y,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,x,i)},f=(b,y,x)=>n.concat(n.concat("(?:",b,")"),y,/(?:\\.|[^\\\/])*?/,x,i),h=[c,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:g("s|tr|y",n.either(...p,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",n.either(...p,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,u,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=h,a.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:h}}return no=e,no}var ro,su;function D_(){if(su)return ro;su=1;function e(t){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,u={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,illegal:"</",contains:[n,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return ro=e,ro}var io,au;function O_(){if(au)return io;au=1;function e(t){const n=t.regex,r=/(?![A-Za-z0-9])(?![$])/,i=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),o=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s=n.concat(/[A-Z]+/,r),a={scope:"variable",match:"\\$+"+i},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=t.inherit(t.APOS_STRING_MODE,{illegal:null}),d=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(c)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(T,D)=>{D.data._beginMatch=T[1]||T[2]},"on:end":(T,D)=>{D.data._beginMatch!==T[1]&&D.ignoreMatch()}},g=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
|
|
31
|
+
]`,h={scope:"string",variants:[d,l,p,g]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},y=["false","null","true"],x=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:x,literal:(T=>{const D=[];return T.forEach(X=>{D.push(X),X.toLowerCase()===X?D.push(X.toUpperCase()):D.push(X.toLowerCase())}),D})(y),built_in:E},O=T=>T.map(D=>D.replace(/\|\d+$/,"")),$={variants:[{match:[/new/,n.concat(f,"+"),n.concat("(?!",O(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},A=n.concat(i,"\\b(?!\\()"),I={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,n.concat(/::/,n.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[o,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},j={scope:"attr",match:n.concat(i,n.lookahead(":"),n.lookahead(/(?!::)/))},F={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[j,a,I,t.C_BLOCK_COMMENT_MODE,h,b,$]},P={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",O(x).join("\\b|"),"|",O(E).join("\\b|"),"\\b)"),i,n.concat(f,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[F]};F.contains.push(P);const z=[j,I,t.C_BLOCK_COMMENT_MODE,h,b,$],B={begin:n.concat(/#\[\s*\\?/,n.either(o,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:y,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:y,keyword:["new","array"]},contains:["self",...z]},...z,{scope:"meta",variants:[{match:o},{match:s}]}]};return{case_insensitive:!1,keywords:C,contains:[B,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},a,P,I,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},$,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",B,a,I,t.C_BLOCK_COMMENT_MODE,h,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},h,b]}}return io=e,io}var oo,uu;function $_(){if(uu)return oo;uu=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return oo=e,oo}var so,cu;function I_(){if(cu)return so;cu=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return so=e,so}var ao,lu;function M_(){if(lu)return ao;lu=1;function e(t){const n=t.regex,r=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},d={begin:/\{\{/,relevance:0},p={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,l]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",f=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,h=`\\b|${i.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${f}))[eE][+-]?(${g})[jJ]?(?=${h})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${g})[jJ](?=${h})`}]},y={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",c,b,p,t.HASH_COMMENT_MODE]}]};return l.contains=[p,b,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[c,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,y,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,x,p]}]}}return ao=e,ao}var uo,du;function L_(){if(du)return uo;du=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return uo=e,uo}var co,fu;function F_(){if(fu)return co;fu=1;function e(t){const n=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return co=e,co}var lo,pu;function P_(){if(pu)return lo;pu=1;function e(t){const n=t.regex,r=/(r#)?/,i=n.concat(r,t.UNDERSCORE_IDENT_RE),o=n.concat(r,t.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,n.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",u=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:d,keyword:u,literal:c,built_in:l},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},s]}}return lo=e,lo}var fo,gu;function B_(){if(gu)return fo;gu=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u(c){const l=e(c),d=s,p=o,g="@[a-z-]+",f="and or not only",b={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+p.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+d.join("|")+")"},b,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[l.BLOCK_COMMENT,b,l.HEXCOLOR,l.CSS_NUMBER_MODE,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:g,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:i.join(" ")},contains:[{begin:g,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},b,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return fo=u,fo}var po,hu;function U_(){if(hu)return po;hu=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return po=e,po}var go,mu;function z_(){if(mu)return go;mu=1;function e(t){const n=t.regex,r=t.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=d,h=[...l,...c].filter(O=>!d.includes(O)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},y={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:n.concat(/\b/,n.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function E(O){return n.concat(/\b/,n.either(...O.map($=>$.replace(/\s+/,"\\s+"))),/\b/)}const w={scope:"keyword",match:E(g),relevance:0};function C(O,{exceptions:$,when:A}={}){const I=A;return $=$||[],O.map(j=>j.match(/\|\d+$/)||$.includes(j)?j:I(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(h,{when:O=>O.length<3}),literal:s,type:u,built_in:p},contains:[{scope:"type",match:E(a)},w,x,b,i,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,y]}}return go=e,go}var ho,bu;function q_(){if(bu)return ho;bu=1;function e(A){return A?typeof A=="string"?A:A.source:null}function t(A){return n("(?=",A,")")}function n(...A){return A.map(j=>e(j)).join("")}function r(A){const I=A[A.length-1];return typeof I=="object"&&I.constructor===Object?(A.splice(A.length-1,1),I):{}}function i(...A){return"("+(r(A).capture?"":"?:")+A.map(F=>e(F)).join("|")+")"}const o=A=>n(/\b/,A,/\w$/.test(A)?/\b/:/\B/),s=["Protocol","Type"].map(o),a=["init","self"].map(o),u=["Any","Self"],c=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],l=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],f=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),h=i(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=n(f,h,"*"),y=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),x=i(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=n(y,x,"*"),w=n(/[A-Z]/,x,"*"),C=["attached","autoclosure",n(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],O=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function $(A){const I={match:/\s+/,relevance:0},j=A.COMMENT("/\\*","\\*/",{contains:["self"]}),F=[A.C_LINE_COMMENT_MODE,j],P={match:[/\./,i(...s,...a)],className:{2:"keyword"}},z={match:n(/\./,i(...c)),relevance:0},B=c.filter(Fe=>typeof Fe=="string").concat(["_|0"]),T=c.filter(Fe=>typeof Fe!="string").concat(u).map(o),D={variants:[{className:"keyword",match:i(...T,...a)}]},X={$pattern:i(/\b\w+/,/#\w+/),keyword:B.concat(p),literal:l},pe=[P,z,D],Q={match:n(/\./,i(...g)),relevance:0},L={className:"built_in",match:n(/\b/,i(...g),/(?=\()/)},ne=[Q,L],H={match:/->/,relevance:0},S={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${h})+`}]},R=[H,S],q="([0-9]_*)+",W="([0-9a-fA-F]_*)+",ie={className:"number",relevance:0,variants:[{match:`\\b(${q})(\\.(${q}))?([eE][+-]?(${q}))?\\b`},{match:`\\b0x(${W})(\\.(${W}))?([pP][+-]?(${q}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},he=(Fe="")=>({className:"subst",variants:[{match:n(/\\/,Fe,/[0\\tnr"']/)},{match:n(/\\/,Fe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),de=(Fe="")=>({className:"subst",match:n(/\\/,Fe,/[\t ]*(?:[\r\n]|\r\n)/)}),ke=(Fe="")=>({className:"subst",label:"interpol",begin:n(/\\/,Fe,/\(/),end:/\)/}),Oe=(Fe="")=>({begin:n(Fe,/"""/),end:n(/"""/,Fe),contains:[he(Fe),de(Fe),ke(Fe)]}),Ce=(Fe="")=>({begin:n(Fe,/"/),end:n(/"/,Fe),contains:[he(Fe),ke(Fe)]}),Ye={className:"string",variants:[Oe(),Oe("#"),Oe("##"),Oe("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},st=[A.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[A.BACKSLASH_ESCAPE]}],vt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:st},dn=Fe=>{const Cn=n(Fe,/\//),Qt=n(/\//,Fe);return{begin:Cn,end:Qt,contains:[...st,{scope:"comment",begin:`#(?!.*${Qt})`,end:/$/}]}},fn={scope:"regexp",variants:[dn("###"),dn("##"),dn("#"),vt]},wn={match:n(/`/,E,/`/)},qn={className:"variable",match:/\$\d+/},kn={className:"variable",match:`\\$${x}+`},pn=[wn,qn,kn],Hn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:O,contains:[...R,ie,Ye]}]}},Sn={scope:"keyword",match:n(/@/,i(...C),t(i(/\(/,/\s+/)))},St={scope:"meta",match:n(/@/,E)},K=[Hn,Sn,St],V={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,"+")},{className:"type",match:w,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,t(w)),relevance:0}]},ae={begin:/</,end:/>/,keywords:X,contains:[...F,...pe,...K,H,V]};V.contains.push(ae);const be={match:n(E,/\s*:/),keywords:"_|0",relevance:0},Re={begin:/\(/,end:/\)/,relevance:0,keywords:X,contains:["self",be,...F,fn,...pe,...ne,...R,ie,Ye,...pn,...K,V]},at={begin:/</,end:/>/,keywords:"repeat each",contains:[...F,V]},De={begin:i(t(n(E,/\s*:/)),t(n(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},He={begin:/\(/,end:/\)/,keywords:X,contains:[De,...F,...pe,...R,ie,Ye,...K,V,Re],endsParent:!0,illegal:/["']/},je={match:[/(func|macro)/,/\s+/,i(wn.match,E,b)],className:{1:"keyword",3:"title.function"},contains:[at,He,I],illegal:[/\[/,/%/]},dt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[at,He,I],illegal:/\[|%/},xt={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},zt={begin:[/precedencegroup/,/\s+/,w],className:{1:"keyword",3:"title"},contains:[V],keywords:[...d,...l],end:/}/},qt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ct={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},gn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:X,contains:[at,...pe,{begin:/:/,end:/\{/,keywords:X,contains:[{scope:"title.class.inherited",match:w},...pe],relevance:0}]};for(const Fe of Ye.variants){const Cn=Fe.contains.find(Jt=>Jt.label==="interpol");Cn.keywords=X;const Qt=[...pe,...ne,...R,ie,Ye,...pn];Cn.contains=[...Qt,{begin:/\(/,end:/\)/,contains:["self",...Qt]}]}return{name:"Swift",keywords:X,contains:[...F,je,dt,qt,Ct,gn,xt,zt,{beginKeywords:"import",end:/$/,contains:[...F],relevance:0},fn,...pe,...ne,...R,ie,Ye,...pn,...K,V,Re]}}return ho=$,ho}var mo,xu;function H_(){if(xu)return mo;xu=1;function e(t){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},u=t.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),g={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},y=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},g,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},h,b,s,a],x=[...y];return x.pop(),x.push(u),f.contains=x,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return mo=e,mo}var bo,_u;function j_(){if(_u)return bo;_u=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(o,r,i);function u(l){const d=l.regex,p=(he,{after:de})=>{const ke="</"+he[0].slice(1);return he.input.indexOf(ke,de)!==-1},g=e,f={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(he,de)=>{const ke=he[0].length+he.index,Oe=he.input[ke];if(Oe==="<"||Oe===","){de.ignoreMatch();return}Oe===">"&&(p(he,{after:ke})||de.ignoreMatch());let Ce;const Ye=he.input.substring(ke);if(Ce=Ye.match(/^\s*=/)){de.ignoreMatch();return}if((Ce=Ye.match(/^\s+extends\s+/))&&Ce.index===0){de.ignoreMatch();return}}},y={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},x="[0-9](_?[0-9])*",E=`\\.(${x})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${w})((${E})|\\.)?|(${E}))[eE][+-]?(${x})\\b`},{begin:`\\b(${w})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},O={className:"subst",begin:"\\$\\{",end:"\\}",keywords:y,contains:[]},$={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,O],subLanguage:"xml"}},A={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,O],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,O],subLanguage:"graphql"}},j={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,O]},P={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},z=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,$,A,I,j,{match:/\$\d+/},C];O.contains=z.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat(z)});const B=[].concat(P,O.contains),T=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(B)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:T},X={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,d.concat(g,"(",d.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},pe={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(he){return d.concat("(?!",he.join("|"),")")}const S={match:d.concat(/\b/,H([...o,"super","import"].map(he=>`${he}\\s*\\(`)),g,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},R={begin:d.concat(/\./,d.lookahead(d.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},W="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",ie={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(W)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:pe},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,$,A,I,j,P,{match:/\$\d+/},C,pe,{scope:"attr",match:g+d.lookahead(":"),relevance:0},ie,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[P,l.REGEXP_MODE,{className:"function",begin:W,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:h},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,l.inherit(l.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},R,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},S,ne,X,q,{match:/\$[(.]/}]}}function c(l){const d=l.regex,p=u(l),g=e,f=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},b={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:f},contains:[p.exports.CLASS_REFERENCE]},y={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(x),literal:n,built_in:a.concat(f),"variable.language":s},w={className:"meta",begin:"@"+g},C=(I,j,F)=>{const P=I.contains.findIndex(z=>z.label===j);if(P===-1)throw new Error("can not find mode to replace");I.contains.splice(P,1,F)};Object.assign(p.keywords,E),p.exports.PARAMS_CONTAINS.push(w);const O=p.contains.find(I=>I.scope==="attr"),$=Object.assign({},O,{match:d.concat(g,d.lookahead(/\s*\?:/))});p.exports.PARAMS_CONTAINS.push([p.exports.CLASS_REFERENCE,O,$]),p.contains=p.contains.concat([w,h,b,$]),C(p,"shebang",l.SHEBANG()),C(p,"use_strict",y);const A=p.contains.find(I=>I.label==="func.def");return A.relevance=0,Object.assign(p,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),p}return bo=c,bo}var xo,yu;function K_(){if(yu)return xo;yu=1;function e(t){const n=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:n.concat(/# */,n.either(s,o),/ *#/)},{begin:n.concat(/# */,u,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(s,o),/ +/,n.either(a,u),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},p=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,i,c,l,d,p,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return xo=e,xo}var _o,vu;function G_(){if(vu)return _o;vu=1;function e(t){t.regex;const n=t.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=t.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,a,o,t.QUOTE_STRING_MODE,c,l,u]}}return _o=e,_o}var yo,Eu;function W_(){if(Eu)return yo;Eu=1;var e=l_();return e.registerLanguage("xml",d_()),e.registerLanguage("bash",f_()),e.registerLanguage("c",p_()),e.registerLanguage("cpp",g_()),e.registerLanguage("csharp",h_()),e.registerLanguage("css",m_()),e.registerLanguage("markdown",b_()),e.registerLanguage("diff",x_()),e.registerLanguage("ruby",__()),e.registerLanguage("go",y_()),e.registerLanguage("graphql",v_()),e.registerLanguage("ini",E_()),e.registerLanguage("java",w_()),e.registerLanguage("javascript",k_()),e.registerLanguage("json",S_()),e.registerLanguage("kotlin",C_()),e.registerLanguage("less",A_()),e.registerLanguage("lua",T_()),e.registerLanguage("makefile",N_()),e.registerLanguage("perl",R_()),e.registerLanguage("objectivec",D_()),e.registerLanguage("php",O_()),e.registerLanguage("php-template",$_()),e.registerLanguage("plaintext",I_()),e.registerLanguage("python",M_()),e.registerLanguage("python-repl",L_()),e.registerLanguage("r",F_()),e.registerLanguage("rust",P_()),e.registerLanguage("scss",B_()),e.registerLanguage("shell",U_()),e.registerLanguage("sql",z_()),e.registerLanguage("swift",q_()),e.registerLanguage("yaml",H_()),e.registerLanguage("typescript",j_()),e.registerLanguage("vbnet",K_()),e.registerLanguage("wasm",G_()),e.HighlightJS=e,e.default=e,yo=e,yo}var V_=W_();const Yr=ri(V_),Rt=new kt({html:!0,linkify:!0,breaks:!1,highlight(e,t){if(t&&Yr.getLanguage(t))try{const n=Yr.highlight(e,{language:t}).value;return`<pre><code class="hljs language-${t}">${n}</code></pre>`}catch{}return""}}),Z_=/^<\/?(?:details|summary)>$/i,Y_=/^<details\s+open\s*>$/i,X_=/^<input class="task-list-item-checkbox"(?: checked="")? disabled="" type="checkbox">$/;function Q_(e){return Z_.test(e)||Y_.test(e)||X_.test(e)}function Jl(e){const t=Rt.utils.escapeHtml;let n="",r=0;const i=/<[^>]*>/g;let o;for(;(o=i.exec(e))!==null;){n+=t(e.slice(r,o.index));const s=o[0];n+=Q_(s)?s:t(s),r=o.index+s.length}return n+=t(e.slice(r)),n}Rt.renderer.rules.html_block=(e,t)=>Jl(e[t].content);Rt.renderer.rules.html_inline=(e,t)=>Jl(e[t].content);const J_=Rt.renderer.rules.image??((e,t,n,r,i)=>i.renderToken(e,t,n)),wu=Rt.renderer.rules.link_open??((e,t,n,r,i)=>i.renderToken(e,t,n)),e2=Rt.renderer.rules.fence??((e,t,n,r,i)=>i.renderToken(e,t,n));function ed(e,t,n){if(!e||/^([a-z]+:)?\/\//i.test(e)||e.startsWith("/")||e.startsWith("#"))return e;const r=e.match(/^attachments\/(.+)$/);return!r||!n?e:`/api/projects/${encodeURIComponent(n)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(r[1])}`}function t2(e){return e.replace(/:\d+(?::\d+)?$/,"")}function n2(e){const n=t2(e).replace(/[?#].*$/,"").split(/[\\/]/).filter(Boolean).pop()??"";return/^\.[^./\\]+$/.test(n)||/\.[A-Za-z0-9][A-Za-z0-9_-]{0,15}$/.test(n)}function r2(e){return!e||e.startsWith("#")||/^([a-z]+:)?\/\//i.test(e)||/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^[A-Za-z]:[\\/]/.test(e)||e.startsWith("attachments/")?!1:(e.startsWith("/")||/^[A-Za-z]:[\\/]/.test(e))&&n2(e)}function vo(e,t){e.attrs&&(e.attrs=e.attrs.filter(([n])=>n!==t))}function Dn(e,t,n){e.attrs||(e.attrs=[]);const r=e.attrs.find(([i])=>i===t);r?r[1]=n:e.attrs.push([t,n])}Rt.renderer.rules.image=function(e,t,n,r,i){const o=r,s=o?.specId;if(s){const u=e[t].attrs?.find(([c])=>c==="src");u&&(u[1]=ed(u[1],s,o?.projectId))}return J_(e,t,n,r,i)};Rt.renderer.rules.link_open=function(e,t,n,r,i){const o=r,s=e[t],a=s.attrs?.find(([c])=>c==="href");if(o?.fileLinks==="copy"&&a&&r2(a[1])){const c=a[1];return vo(s,"href"),vo(s,"target"),vo(s,"rel"),Dn(s,"role","button"),Dn(s,"tabindex","0"),Dn(s,"data-file-link","true"),Dn(s,"data-file-path",c),o.fileLinkTitle&&(Dn(s,"title",o.fileLinkTitle),Dn(s,"aria-label",o.fileLinkTitle)),wu(e,t,n,r,i)}const u=o?.specId;if(u&&a){const c=ed(a[1],u,o?.projectId);if(c!==a[1]){a[1]=c;const l=s.attrs?.find(([d])=>d==="target");l?l[1]="_blank":s.attrs?.push(["target","_blank"]),s.attrs?.push(["rel","noopener noreferrer"])}}return wu(e,t,n,r,i)};Rt.renderer.rules.fence=function(e,t,n,r,i){const o=e[t],s=o.info.trim(),a=r?.mermaid??"diagram";if(s==="mermaid"&&a==="diagram"){const u=o.content;return`<div class="mermaid" data-mermaid-source="${u.replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">${u}</div>`}return e2(e,t,n,r,i)};Rt.use(c_,{enabled:!1,label:!1});function ys(e,t={}){const n={};return t.specId&&(n.specId=t.specId),t.projectId&&(n.projectId=t.projectId),t.mermaid&&(n.mermaid=t.mermaid),t.fileLinks&&(n.fileLinks=t.fileLinks),t.fileLinkTitle&&(n.fileLinkTitle=t.fileLinkTitle),Rt.render(e,n)}function i2(e){return e.replace(/^\uFEFF?---[ \t]*\r?\n[\s\S]*?\r?\n---[ \t]*(?:\r?\n|$)/,"")}const o2=300;function s2(e,t=o2){const n=e.length;return n<=t?{truncated:!1,preview:e,length:n}:{truncated:!0,preview:e.slice(0,t),length:n}}var a2=N('<div class="scroll-y mt-1 max-h-96 space-y-2 rounded border bg-background p-2">'),u2=N('<div class=my-1><button type=button class="flex w-full items-center gap-1.5 py-2 text-left text-xs text-muted-foreground active:opacity-60"><span class=font-mono>'),c2=N('<div class="font-mono text-xs font-semibold">'),l2=N("<div class=space-y-1>"),d2=N('<button type=button class="flex min-h-11 items-center text-left text-xs text-muted-foreground active:opacity-60">'),f2=N("<div class=space-y-1><pre>");const p2=e=>{const t=()=>e.expand.isExpanded(e.segment.id);return(()=>{var n=u2(),r=n.firstChild,i=r.firstChild;return r.$$click=()=>e.expand.set(e.segment.id,!t()),_(r,m(Hc,{size:14,get class(){return`shrink-0 transition-transform duration-150 ${t()?"":"-rotate-90"}`},"aria-hidden":"true"}),i),_(i,()=>v("chat.toolCollapsed",{count:e.segment.tools.length})),_(n,m(M,{get when(){return t()},get children(){var o=a2();return _(o,m($o,{get each(){return e.segment.tools},children:(s,a)=>(()=>{var u=l2();return _(u,m(M,{get when(){return s().name},get children(){var c=c2();return _(c,()=>s().name),c}}),null),_(u,m(M,{get when(){return s().input!==void 0},get children(){return m(ku,{get text(){return g2(s().input)},get expandKey(){return ma(e.segment.id,a,"input")},get expand(){return e.expand}})}}),null),_(u,m(M,{get when(){return s().result!==void 0},get children(){return m(ku,{get text(){return s().result??""},get expandKey(){return ma(e.segment.id,a,"result")},get expand(){return e.expand},wrap:!0})}}),null),u})()})),o}}),null),Z(()=>te(r,"aria-expanded",t())),n})()},ku=e=>{const t=()=>s2(e.text),n=()=>e.expand.isExpanded(e.expandKey),r=()=>t().truncated&&!n();return(()=>{var i=f2(),o=i.firstChild;return _(o,(()=>{var s=ze(()=>!!r());return()=>s()?`${t().preview}…`:e.text})()),_(i,m(M,{get when(){return t().truncated},get children(){var s=d2();return s.$$click=()=>e.expand.set(e.expandKey,!n()),_(s,(()=>{var a=ze(()=>!!n());return()=>a()?v("chat.toolTextCollapse"):v("chat.toolTextExpand",{count:t().length})})()),s}}),null),Z(()=>Le(o,`overflow-x-auto rounded bg-muted px-2 py-1 text-[11px] leading-snug ${e.wrap?"whitespace-pre-wrap":""}`)),i})()};function g2(e){try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}qe(["click"]);var h2=N('<div class="scroll-y mt-1 max-h-72 space-y-2 rounded border border-dashed bg-muted/40 p-2">'),m2=N('<div class=mb-2><button type=button class="flex items-center gap-1.5 rounded border border-dashed p-2 text-left text-xs text-muted-foreground active:opacity-60"><span class=font-mono>'),b2=N('<pre class="whitespace-pre-wrap rounded bg-background px-2 py-1 text-[11px] leading-snug text-muted-foreground">');const x2=e=>{const t=()=>e.expand.isExpanded(e.expandKey);return(()=>{var n=m2(),r=n.firstChild,i=r.firstChild;return r.$$click=()=>e.expand.set(e.expandKey,!t()),_(r,m(Hc,{size:14,get class(){return`shrink-0 transition-transform duration-150 ${t()?"":"-rotate-90"}`},"aria-hidden":"true"}),i),_(i,()=>v("chat.agentContextCollapsed",{count:e.contexts.length})),_(n,m(M,{get when(){return t()},get children(){var o=h2();return _(o,m(Ke,{get each(){return e.contexts},children:s=>(()=>{var a=b2();return _(a,()=>s.text),a})()})),o}}),null),Z(()=>te(r,"aria-expanded",t())),n})()};qe(["click"]);var _2=N('<div class="mb-2 whitespace-pre-wrap rounded-lg border border-primary/20 border-l-2 border-l-primary bg-primary/10 px-3 py-2 text-[0.95rem] font-medium [overflow-wrap:anywhere]">'),y2=N('<div class="mb-2 min-w-0 rounded-lg border bg-card px-3 py-2 [overflow-wrap:anywhere]">'),v2=N('<div class="markdown chat-md">'),E2=N('<div class="my-3 flex items-center gap-2 text-[11px] text-muted-foreground"><span class="h-px flex-1 bg-border"></span><span class=shrink-0></span><span class="h-px flex-1 bg-border">');const w2=e=>e.kind==="divider"?e:null,k2=e=>e.kind==="context"?e:null,S2=e=>e.kind==="assistant"?e:null,C2=e=>e.kind==="user"?e:null,A2=e=>e.kind==="tools"?e:null,T2=e=>e.kind==="text"?e.text:"",N2=e=>m($o,{get each(){return e.blocks},children:(t,n)=>m(M,{get when(){return w2(t())},get fallback(){return m(M,{get when(){return k2(t())},get fallback(){return m(M,{get when(){return S2(t())},get fallback(){return(()=>{var r=_2();return _(r,()=>C2(t())?.text),r})()},children:r=>(()=>{var i=y2();return _(i,m($o,{get each(){return r().segments},children:o=>m(M,{get when(){return A2(o())},get fallback(){return(()=>{var s=v2();return Z(()=>s.innerHTML=ys(T2(o()),{mermaid:"code",fileLinks:"copy",fileLinkTitle:v("chat.copyFilePath")})),s})()},children:s=>m(p2,{get segment(){return s()},get expand(){return e.expand}})})})),i})()})},children:r=>m(x2,{get contexts(){return r().contexts},expandKey:`ctx${n}`,get expand(){return e.expand}})})},children:r=>(()=>{var i=E2(),o=i.firstChild,s=o.nextSibling;return _(s,()=>r().agentKind),i})()})}),R2=150,D2=16,O2=48,$2=24,I2=8;function Eo(e){return e.replace(/^\/+/,"")}function M2(e,t){return t===0?!0:/[\s/_.-]/.test(e[t-1]??"")}function Su(e,t){if(!e)return 0;const n=e.toLowerCase(),r=t.toLowerCase();let i=0,o=-1;for(let s=0;s<n.length;s++){const a=r.indexOf(n[s],o+1);if(a===-1)return null;i+=D2,a===s&&(i+=O2),a===o+1&&(i+=$2),M2(t,a)&&(i+=I2),i-=Math.max(0,a-o-1),o=a}return i-t.length*.01}function L2(e,t){const n=Eo(e.trim());if(!n)return 0;const r=Su(n,Eo(t.value)),i=t.label?Su(n,Eo(t.label)):null;return r==null?i:i==null?r:Math.max(r,i)}function F2(e,t){return t?e.map((n,r)=>{const i=L2(t,n);return i==null?null:{cmd:n,score:i,index:r}}).filter(n=>n!=null).sort((n,r)=>r.score-n.score||n.index-r.index).map(n=>n.cmd):e}function P2(e,t,n){const r=e.slice(0,t);if(n&&/^\/[\w-]*$/.test(r))return{kind:"slash",query:r.slice(1)};const i=r.lastIndexOf("@");if(i===-1)return null;const o=r.slice(i+1);return/^[\w./@-]*$/.test(o)?{kind:"mention",start:i,query:o}:null}function Cu(e,t,n){const r=t.kind==="slash"?0:t.start,i=e.slice(0,r),o=e.slice(r+1+t.query.length);return{next:i+n+o,cursorPos:i.length+n.length}}function B2(e){return e.kind==="mention"?`@${e.value}`:e.replacement??`${e.value} `}function td(e){const[t,n]=G(!1),[r,i]=G([]),[o,s]=G(0),[a,u]=G(!1);let c=null,l=null;Me(()=>{l&&clearTimeout(l)});function d(){n(!1),u(!1),i([]),s(0),c=null,l&&(clearTimeout(l),l=null)}function p(x){l&&clearTimeout(l),l=setTimeout(async()=>{const E=e.projectId();if(E)try{const w=await ue.listFiles(E,x);if(c?.kind!=="mention"||c.query!==x)return;i(w.items.map(C=>({kind:"mention",value:C}))),s(0)}catch{i([])}},e.searchDebounceMs??R2)}function g(x){const E=e.slashCommands?.()??[],w=F2(E,x).map(C=>({kind:"slash",value:C.value,label:C.label??C.value,description:C.description,replacement:C.replacement,action:C.action,customId:C.customId,editable:C.editable,editLabel:C.editLabel,deletable:C.deletable,deleteLabel:C.deleteLabel,icon:C.icon,command:C}));i(w),s(0),w.length>0?(u(!1),n(!0)):e.slashEmptyEnabled?.()?(u(!0),n(!0)):d()}function f(x){const E=(e.slashCommands?.()??[]).length>0,w=P2(x.value,x.selectionStart,E);if(!w){d();return}if(c=w,w.kind==="slash"){g(w.query);return}u(!1),t()||n(!0),p(w.query)}function h(x){const E=c;if(!E)return{kind:"noop"};if(x.kind==="slash"&&x.action==="add"){const{next:O}=Cu(e.value(),E,"");return e.onValueChange(O),d(),{kind:"action",command:x.command}}const{next:w,cursorPos:C}=Cu(e.value(),E,B2(x));return e.onValueChange(w),d(),{kind:"text",cursorPos:C}}function b(x){const E=r();E.length!==0&&s(w=>(w+x+E.length)%E.length)}function y(x){if(!x)return;const E=r().filter(w=>w.kind!=="slash"||w.customId!==x);i(E),s(w=>Math.min(w,Math.max(0,E.length-1))),E.length===0&&d()}return{open:t,items:r,index:o,setIndex:s,slashEmpty:a,handleInput:f,select:h,close:d,moveIndex:b,removeSlashItem:y}}const Au=24;function Wn(e,t=0){const n=Number.parseFloat(e);return Number.isFinite(n)?n:t}function er(e,t){const n=window.getComputedStyle(e),r=Wn(n.lineHeight,Au)||Au,i=Wn(n.paddingTop)+Wn(n.paddingBottom),o=Wn(n.borderTopWidth)+Wn(n.borderBottomWidth);e.style.height="auto";const s=Math.max(e.scrollHeight-i,r),a=r*t,u=s>a;e.style.height=`${(u?a:s)+i+o}px`,e.style.overflowY=u?"auto":"hidden"}const nd=280,rd=150,U2=10;function z2(e){let t=null,n=!1;const r=()=>e.moveTolerance??U2,i=o=>t!=null&&t.id===o.pointerId;return{onPointerDown:o=>{o.button===0&&(n=!1,t={id:o.pointerId,x:o.clientX,y:o.clientY})},onPointerMove:o=>{if(!i(o))return;const s=r();(Math.abs(o.clientX-t.x)>s||Math.abs(o.clientY-t.y)>s)&&(t=null)},onPointerUp:o=>{if(!i(o))return;const s=r(),a=Math.abs(o.clientX-t.x)>s||Math.abs(o.clientY-t.y)>s;t=null,!a&&(n=!0,o.preventDefault(),e.onTap())},onPointerCancel:()=>{t=null,n=!1},onTouchEnd:o=>{n&&(n=!1,o.cancelable&&o.preventDefault())}}}var q2=N('<li class="px-4 py-3 text-sm text-muted-foreground">'),H2=N('<div data-testid=completion-bar><ul class="scroll-y m-0 max-h-[38dvh] list-none p-0">'),j2=N('<span class="shrink-0 text-muted-foreground">'),K2=N('<span class="block truncate text-xs text-muted-foreground">'),G2=N('<li class="border-b border-border/50 last:border-b-0"><button type=button data-testid=completion-item class="flex min-h-[44px] w-full items-center gap-3 border-0 bg-transparent px-4 py-2 text-left active:bg-accent"><span class="min-w-0 flex-1"><span>');const id=e=>(()=>{var t=H2(),n=t.firstChild;return _(n,m(M,{get when(){return e.empty},get children(){var r=q2();return _(r,()=>v("chat.slashCommandNoMatch")),r}}),null),_(n,m(Ke,{get each(){return e.items},children:r=>{const i=z2({onTap:()=>e.onSelect(r)});return(()=>{var o=G2(),s=o.firstChild,a=s.firstChild,u=a.firstChild;return dr(s,i,!1,!0),_(s,m(M,{get when(){return r.kind==="mention"},get children(){var c=j2();return _(c,m(Bp,{size:16,"aria-hidden":"true"})),c}}),a),_(u,(()=>{var c=ze(()=>r.kind==="slash");return()=>c()?r.label:r.value})()),_(a,m(M,{get when(){return ze(()=>r.kind==="slash")()&&r.description},get children(){var c=K2();return _(c,(()=>{var l=ze(()=>r.kind==="slash");return()=>l()?r.description:""})()),c}}),null),Z(()=>Le(u,r.kind==="slash"?"block truncate text-sm":"truncate-start block text-sm")),o})()}}),null),Z(()=>Le(t,Xe("bg-card",e.inline?"mt-1 overflow-hidden rounded-lg border border-border":"border-b border-border"))),t})();var W2=N('<div class="flex gap-2 overflow-x-auto px-4 pt-2">'),V2=N('<p class="px-4 pt-2 text-xs text-destructive">'),Z2=N('<button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-destructive active:opacity-60">'),Y2=N('<div class="kb-inset shrink-0 border-t border-border bg-card px-safe pb-safe"><div class="flex items-end gap-3 px-4 py-2"><button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60 disabled:opacity-40"></button><input type=file hidden multiple><textarea rows=1 class="flex-1 resize-none overflow-y-hidden rounded-lg border border-border bg-background px-3 py-2.5 text-base leading-6 outline-none focus:border-primary">'),X2=N('<img class="h-14 w-20 rounded border object-cover">'),Q2=N("<span>"),J2=N('<div class="relative shrink-0"><button type=button class="absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full border bg-background text-muted-foreground">'),ey=N('<div class="flex h-14 w-20 items-center justify-center rounded border bg-muted px-1 text-[10px] text-muted-foreground"><span class="truncate-start block w-full">'),ty=N('<button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-primary active:opacity-60 disabled:opacity-40">');const wo=5,ny=e=>{let t,n,r=null;Me(()=>{r&&clearTimeout(r)});const i=()=>e.value.trim().length>0&&!e.starting&&!e.attachments.hasPending(),o=td({projectId:()=>e.projectId,value:()=>e.value,onValueChange:a=>e.onInput(a),slashCommands:()=>e.slashCommands,slashEmptyEnabled:()=>!0,searchDebounceMs:nd});Ae(()=>{e.value,n&&er(n,wo)});function s(a){const u=o.select(a);u.kind==="text"&&requestAnimationFrame(()=>{n&&(n.focus(),n.setSelectionRange(u.cursorPos,u.cursorPos),er(n,wo))})}return(()=>{var a=Y2(),u=a.firstChild,c=u.firstChild,l=c.nextSibling,d=l.nextSibling;_(a,m(M,{get when(){return ze(()=>!!o.open())()&&(o.items().length>0||o.slashEmpty())},get children(){return m(id,{get items(){return o.items()},get empty(){return o.slashEmpty()},onSelect:s})}}),u),_(a,m(M,{get when(){return e.attachments.attachments().length>0},get children(){var f=W2();return _(f,m(Ke,{get each(){return e.attachments.attachments()},children:h=>(()=>{var b=J2(),y=b.firstChild;return _(b,m(M,{get when(){return h.previewUrl},get fallback(){return(()=>{var x=ey(),E=x.firstChild;return _(E,()=>h.name),x})()},get children(){var x=X2();return Z(E=>{var w=h.previewUrl,C=h.name;return w!==E.e&&te(x,"src",E.e=w),C!==E.t&&te(x,"alt",E.t=C),E},{e:void 0,t:void 0}),x}}),y),_(b,m(M,{get when(){return h.status!=="uploaded"},get children(){var x=Q2();return _(x,()=>h.status==="failed"?"!":"…"),Z(()=>Le(x,`absolute inset-0 flex items-center justify-center rounded text-[10px] ${h.status==="failed"?"bg-destructive/70 text-destructive-foreground":"bg-background/60 text-muted-foreground"}`)),x}}),y),y.$$click=()=>void e.attachments.removeAttachment(h.id),_(y,m(vn,{size:12,"aria-hidden":"true"})),Z(()=>te(y,"aria-label",v("common.close"))),b})()})),f}}),u),_(a,m(M,{get when(){return e.attachments.error()},get children(){var f=V2();return _(f,()=>e.attachments.error()),f}}),u),c.$$click=()=>t?.click(),_(c,m(tg,{size:20,"aria-hidden":"true"})),l.addEventListener("change",f=>void e.attachments.onFileInputChange(f));var p=t;typeof p=="function"?Vt(p,l):t=l,te(l,"accept",wl),d.addEventListener("blur",()=>{r&&clearTimeout(r),r=setTimeout(o.close,rd)}),d.$$input=f=>{er(f.currentTarget,wo),e.onInput(f.currentTarget.value),o.handleInput(f.currentTarget)};var g=n;return typeof g=="function"?Vt(g,d):n=d,_(u,m(M,{get when(){return e.running},get fallback(){return(()=>{var f=ty();return f.$$click=()=>e.onSend(),_(f,m(hg,{size:20,"aria-hidden":"true"})),Z(h=>{var b=v("chat.send"),y=!i();return b!==h.e&&te(f,"aria-label",h.e=b),y!==h.t&&(f.disabled=h.t=y),h},{e:void 0,t:void 0}),f})()},get children(){var f=Z2();return f.$$click=()=>e.onAbort(),_(f,m(xg,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",v("chat.abort"))),f}}),null),Z(f=>{var h=v("chat.attach"),b=e.attachments.count()>=Jn,y=v("chat.placeholder");return h!==f.e&&te(c,"aria-label",f.e=h),b!==f.t&&(c.disabled=f.t=b),y!==f.a&&te(d,"placeholder",f.a=y),f},{e:void 0,t:void 0,a:void 0}),Z(()=>d.value=e.value),a})()};qe(["click","input"]);const ry=rb(20);function iy(){const e=window.visualViewport;if(!e)return;const t=document.documentElement,n=()=>{const r=window.innerHeight-e.height-e.offsetTop,i=r>1?Math.round(r):0;t.style.setProperty("--kb-inset",`${i}px`)};n(),e.addEventListener("resize",n),e.addEventListener("scroll",n),Me(()=>{e.removeEventListener("resize",n),e.removeEventListener("scroll",n),t.style.removeProperty("--kb-inset")})}var oy=N('<div class="px-4 py-3">'),sy=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),ay=N('<div class="px-4 py-4">'),uy=N('<p class="m-0 py-8 text-center text-sm text-muted-foreground">'),cy=N('<div class="flex flex-col items-center gap-2 py-8 text-center"><p class="m-0 text-sm text-muted-foreground">');const ly=80;function dy(e){return e instanceof Element?e.closest('[data-file-link="true"]'):null}const fy=()=>{const e=pr(),t=ht();iy();const n=()=>_e()??"",[r,i]=G(null),o=()=>r()??e.id??"",[s,a]=G(""),[u,c]=G(!0),[l,d]=G(!1);let p;const[g,f]=G(null),[h,{refetch:b}]=nt(()=>n()||void 0,T=>ue.listSessions(T));Ae(()=>{const T=n();f(T?pl(T):null)}),Ae(()=>{if(h.state!=="ready")return;const T=n(),D=h();!T||!D||(f(D),gl(T,D))});const y=ge(()=>g()?.find(T=>T.id===o())),x=()=>y()?.specId,[E,w]=G(null),[C]=nt(()=>n()||void 0,T=>ue.listSpecs(T));Ae(()=>{const T=n();w(T?ls(T):null)}),Ae(()=>{if(C.state!=="ready")return;const T=n(),D=C();!T||!D||(w(D),ds(T,D))});const O=ge(()=>{const T=new Map;for(const D of E()??[])T.set(D.id,D);return T}),$=()=>O().get(x()??"")?.title||y()?.title||v("chat.untitled");Ae(()=>{const T=y();T&&d(!!T.running)});const A=kl({projectId:n,labels:Sl()}),[I]=nt(()=>ue.getGlobalConfig());Ae(()=>{const T=n();T&&vb(T)});const j=ge(()=>{const T=bb(yb(n()),I()?.customInstructions??[]).map(D=>{const X=`/${D.name}`;return{value:X,label:X,description:D.description||v("chat.customSlashCommandNoDescription"),replacement:hb(D.name,D.prefill),customId:D.id}});return[{value:"/yorz-debug",description:v("chat.slashCommandYorzDebug")},{value:"/yorz-spec",description:v("chat.slashCommandYorzSpec")},...T]}),F=cb({projectId:n,sessionId:o,specId:x,running:l,listPending:()=>h.loading,known:()=>!!y(),onSessionIdChange:T=>{i(T),t(`/sessions/${encodeURIComponent(T)}`,{replace:!0})},onSessionsChanged:()=>void b(),onRunningChange:(T,D)=>{T===o()&&d(D)},onSubjectChange:()=>c(!0),errorLabel:T=>v("chat.errorMessage",{message:T}),transcriptCache:ry});function P(T){return T.scrollHeight-T.scrollTop-T.clientHeight<=ly}Ae(()=>{if(F.blocks(),!u()||!p)return;const T=p;requestAnimationFrame(()=>{T.scrollTop=T.scrollHeight})});async function z(){const T=s().trim();if(!T)return;a(""),c(!0);const D=await F.send(T,A.draftId()??void 0);D==="sent"?A.reset():D==="not-started"&&(a(T),we(v("chat.sendFailed"),"error"))}function B(T){const D=dy(T.target);if(!D)return;const X=D.dataset.filePath;X&&(T.preventDefault(),si(X).then(pe=>we(v(pe?"chat.filePathCopied":"chat.filePathCopyFailed"),pe?"default":"error")))}return m(yt,{get title(){return $()},padded:!1,onBack:()=>t("/"),scrollRef:T=>p=T,onScroll:()=>p&&c(P(p)),get actions(){return m(M,{get when(){return x()},children:T=>(()=>{var D=sy();return D.$$click=()=>t(`/specs/${encodeURIComponent(T())}`),_(D,m(jc,{size:20,"aria-hidden":"true"})),Z(()=>te(D,"aria-label",v("chat.openSpec"))),D})()})},get footer(){return m(ny,{get value(){return s()},onInput:a,onSend:()=>void z(),onAbort:()=>void F.abort(),get running(){return l()},get starting(){return F.starting()},attachments:A,get projectId(){return n()},get slashCommands(){return j()}})},get children(){return m(M,{get when(){return n()},get fallback(){return(()=>{var T=ay();return _(T,m(Pt,{})),T})()},get children(){var T=oy();return T.$$click=B,_(T,m(M,{get when(){return!F.historyLoading()},get fallback(){return(()=>{var D=uy();return _(D,()=>v("common.loading")),D})()},get children(){return m(M,{get when(){return F.blocks().length>0},get fallback(){return(()=>{var D=cy(),X=D.firstChild;return _(X,(()=>{var pe=ze(()=>!!o());return()=>pe()?v("chat.empty"):v("chat.draftEmpty")})()),_(D,m(M,{get when(){return!o()},get children(){return m(dl,{})}}),null),D})()},get children(){return m(N2,{get blocks(){return F.blocks()},get expand(){return F.toolExpand}})}})}})),T}})}})};qe(["click"]);var Tu=11;function py(e,t){var n=t.attributes,r,i,o,s,a;if(!(t.nodeType===Tu||e.nodeType===Tu)){for(var u=n.length-1;u>=0;u--)r=n[u],i=r.name,o=r.namespaceURI,s=r.value,o?(i=r.localName||i,a=e.getAttributeNS(o,i),a!==s&&(r.prefix==="xmlns"&&(i=r.name),e.setAttributeNS(o,i,s))):(a=e.getAttribute(i),a!==s&&e.setAttribute(i,s));for(var c=e.attributes,l=c.length-1;l>=0;l--)r=c[l],i=r.name,o=r.namespaceURI,o?(i=r.localName||i,t.hasAttributeNS(o,i)||e.removeAttributeNS(o,i)):t.hasAttribute(i)||e.removeAttribute(i)}}var Rr,gy="http://www.w3.org/1999/xhtml",bt=typeof document>"u"?void 0:document,hy=!!bt&&"content"in bt.createElement("template"),my=!!bt&&bt.createRange&&"createContextualFragment"in bt.createRange();function by(e){var t=bt.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}function xy(e){Rr||(Rr=bt.createRange(),Rr.selectNode(bt.body));var t=Rr.createContextualFragment(e);return t.childNodes[0]}function _y(e){var t=bt.createElement("body");return t.innerHTML=e,t.childNodes[0]}function yy(e){return e=e.trim(),hy?by(e):my?xy(e):_y(e)}function Dr(e,t){var n=e.nodeName,r=t.nodeName,i,o;return n===r?!0:(i=n.charCodeAt(0),o=r.charCodeAt(0),i<=90&&o>=97?n===r.toUpperCase():o<=90&&i>=97?r===n.toUpperCase():!1)}function vy(e,t){return!t||t===gy?bt.createElement(e):bt.createElementNS(t,e)}function Ey(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}function ko(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var Nu={OPTION:function(e,t){var n=e.parentNode;if(n){var r=n.nodeName.toUpperCase();r==="OPTGROUP"&&(n=n.parentNode,r=n&&n.nodeName.toUpperCase()),r==="SELECT"&&!n.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}ko(e,t,"selected")},INPUT:function(e,t){ko(e,t,"checked"),ko(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n=-1,r=0,i=e.firstChild,o,s;i;)if(s=i.nodeName&&i.nodeName.toUpperCase(),s==="OPTGROUP")o=i,i=o.firstChild,i||(i=o.nextSibling,o=null);else{if(s==="OPTION"){if(i.hasAttribute("selected")){n=r;break}r++}i=i.nextSibling,!i&&o&&(i=o.nextSibling,o=null)}e.selectedIndex=n}}},Vn=1,Ru=11,Du=3,Ou=8;function rn(){}function wy(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function ky(e){return function(n,r,i){if(i||(i={}),typeof r=="string")if(n.nodeName==="#document"||n.nodeName==="HTML"){var o=r;r=bt.createElement("html"),r.innerHTML=o}else if(n.nodeName==="BODY"){var s=r;r=bt.createElement("html"),r.innerHTML=s;var a=r.querySelector("body");a&&(r=a)}else r=yy(r);else r.nodeType===Ru&&(r=r.firstElementChild);var u=i.getNodeKey||wy,c=i.onBeforeNodeAdded||rn,l=i.onNodeAdded||rn,d=i.onBeforeElUpdated||rn,p=i.onElUpdated||rn,g=i.onBeforeNodeDiscarded||rn,f=i.onNodeDiscarded||rn,h=i.onBeforeElChildrenUpdated||rn,b=i.skipFromChildren||rn,y=i.addChild||function(Q,L){return Q.appendChild(L)},x=i.childrenOnly===!0,E=Object.create(null),w=[];function C(Q){w.push(Q)}function O(Q,L){if(Q.nodeType===Vn)for(var ne=Q.firstChild;ne;){var H=void 0;L&&(H=u(ne))?C(H):(f(ne),ne.firstChild&&O(ne,L)),ne=ne.nextSibling}}function $(Q,L,ne){g(Q)!==!1&&(L&&L.removeChild(Q),f(Q),O(Q,ne))}function A(Q){if(Q.nodeType===Vn||Q.nodeType===Ru)for(var L=Q.firstChild;L;){var ne=u(L);ne&&(E[ne]=L),A(L),L=L.nextSibling}}A(n);function I(Q){l(Q);for(var L=Q.firstChild;L;){var ne=L.nextSibling,H=u(L);if(H){var S=E[H];S&&Dr(L,S)?(L.parentNode.replaceChild(S,L),F(S,L)):I(L)}else I(L);L=ne}}function j(Q,L,ne){for(;L;){var H=L.nextSibling;(ne=u(L))?C(ne):$(L,Q,!0),L=H}}function F(Q,L,ne){var H=u(L);if(H&&delete E[H],!ne){var S=d(Q,L);if(S===!1||(S instanceof HTMLElement&&(Q=S,A(Q)),e(Q,L),p(Q),h(Q,L)===!1))return}Q.nodeName!=="TEXTAREA"?P(Q,L):Nu.TEXTAREA(Q,L)}function P(Q,L){var ne=b(Q,L),H=L.firstChild,S=Q.firstChild,R,q,W,ie,he;e:for(;H;){for(ie=H.nextSibling,R=u(H);!ne&&S;){if(W=S.nextSibling,H.isSameNode&&H.isSameNode(S)){H=ie,S=W;continue e}q=u(S);var de=S.nodeType,ke=void 0;if(de===H.nodeType&&(de===Vn?(R?R!==q&&((he=E[R])?W===he?ke=!1:(Q.insertBefore(he,S),q?C(q):$(S,Q,!0),S=he,q=u(S)):ke=!1):q&&(ke=!1),ke=ke!==!1&&Dr(S,H),ke&&F(S,H)):(de===Du||de==Ou)&&(ke=!0,S.nodeValue!==H.nodeValue&&(S.nodeValue=H.nodeValue))),ke){H=ie,S=W;continue e}q?C(q):$(S,Q,!0),S=W}if(R&&(he=E[R])&&Dr(he,H))ne||y(Q,he),F(he,H);else{var Oe=c(H);Oe!==!1&&(Oe&&(H=Oe),H.actualize&&(H=H.actualize(Q.ownerDocument||bt)),y(Q,H),I(H))}H=ie,S=W}j(Q,S,q);var Ce=Nu[Q.nodeName];Ce&&Ce(Q,L)}var z=n,B=z.nodeType,T=r.nodeType;if(!x){if(B===Vn)T===Vn?Dr(n,r)||(f(n),z=Ey(n,vy(r.nodeName,r.namespaceURI))):z=r;else if(B===Du||B===Ou){if(T===B)return z.nodeValue!==r.nodeValue&&(z.nodeValue=r.nodeValue),z;z=r}}if(z===r)f(n);else{if(r.isSameNode&&r.isSameNode(z))return;if(F(z,r,x),w)for(var D=0,X=w.length;D<X;D++){var pe=E[w[D]];pe&&$(pe,pe.parentNode,!1)}}return!x&&z!==n&&n.parentNode&&(z.actualize&&(z=z.actualize(n.ownerDocument||bt)),n.parentNode.replaceChild(z,n)),z}}var Sy=ky(py);let So=null,$u=Promise.resolve();const Vo=new WeakMap;async function Cy(){return So||(So=Uc(()=>import("./mermaid.core-DWa29NaI.js").then(e=>e.bp),[]).then(e=>e.default)),So}function Ay(){return F0()==="dark"?"dark":"default"}function Co(){return new Promise(e=>{if(typeof window.requestAnimationFrame=="function"){window.requestAnimationFrame(()=>e());return}window.setTimeout(e,0)})}function Ty(e){const t=(Vo.get(e)??0)+1;return Vo.set(e,t),t}function Ao(e,t){return Vo.get(e)===t}async function Ny(e){const t=$u.then(e,e);$u=t.catch(()=>{}),await t}async function od(e,t={}){if(e.querySelector(".mermaid")===null)return()=>{};const n=Ty(e),r=await Cy();if(!Ao(e,n))return()=>{};if(await Co(),!Ao(e,n))return()=>{};let i=()=>{};function o(){i(),i=t.enhance?t.enhance(e):()=>{}}async function s(l){const d=l.filter(p=>p.isConnected&&e.contains(p));d.length!==0&&await Ny(async()=>{if(!Ao(e,n))return;const p=d.filter(f=>f.isConnected&&e.contains(f));if(p.length===0)return;const g=Ay();r.initialize({startOnLoad:!1,theme:g}),i(),i=()=>{},p.forEach(f=>{const h=f.getAttribute("data-mermaid-source");h&&(f.removeAttribute("data-processed"),f.textContent=h)});try{await r.run({nodes:p}),await Co(),o()}catch(f){console.error("[mermaid] render error:",f)}})}const a=Array.from(e.querySelectorAll(".mermaid:not([data-processed])"));await s(a),await Co(),o();const u=()=>void s(Array.from(e.querySelectorAll(".mermaid"))),c=new window.MutationObserver(u);return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-kb-theme"]}),()=>{i(),c.disconnect()}}const Ry=/^##\s+(?:\d+(?:\.\d+)*\.?\s+)?待确认(?:项|问题)\s*$/,Dy=/^##\s+/,Oy=/^###\s+(?:\d+(?:\.\d+)*\s+)?(.+\S)\s*$/,$y=/^\d+\.\s+(.*\S)\s*$/,Iy=/^\s*$/,Iu=/\s*[((]推荐[))]\s*$/,Mu=/\s*(自由文本)\s*$/,My=/^\[(choice|confirm)\]\s*/i,Ly=/^\*\*方案\*\*\s*[::]\s*(.*\S)?\s*$/,Fy=/^\*\*(?:影响|代价)\*\*\s*[::]\s*(.*\S)?\s*$/;function Py(e){const t=e.split(`
|
|
32
|
+
`);let n=0;for(;n<t.length&&!Ry.test(t[n]);)n+=1;if(n>=t.length)return[];n+=1;const r=[];let i=null;for(;n<t.length;){const o=t[n];if(Dy.test(o))break;const s=qy(o);s?(i={headingText:s,bodyLines:[]},r.push(i)):i&&i.bodyLines.push(o),n+=1}return r.map((o,s)=>By(o,s))}function By(e,t){const n=My.exec(e.headingText),r=n?.[1]?.toLowerCase(),i=n?e.headingText.slice(n[0].length):e.headingText,o=Mu.test(i),s=o?i.replace(Mu,"").trim():i.trim();if(r==="confirm"){const{plan:c,impact:l}=Uy(e.bodyLines);return{id:Lu(t,s),text:s,kind:"confirm",options:[],isFreeform:!1,plan:c,impact:l}}const a=zy(e.bodyLines,t,s),u=o||a.length===0;return{id:Lu(t,s),text:s,kind:u?"freeform":"choice",options:a,isFreeform:u}}function Uy(e){let t,n;for(const r of e){const i=r.trim(),o=Ly.exec(i);if(o){t=o[1]?.trim()||"";continue}const s=Fy.exec(i);s&&(n=s[1]?.trim()||"")}return{plan:t,impact:n}}function zy(e,t,n){const r=[];let i=0;for(const o of e){if(Iy.test(o))continue;const s=Hy(o);if(s===null)continue;const a=Iu.test(s),u=a?s.replace(Iu,"").trim():s.trim();u&&(a&&(i+=1),r.push({id:jy(t,r.length,u),label:u,recommended:a&&i===1}))}return i>=2&&console.warn(`[question-parse] 问题 "${n}" 含 ${i} 个 (推荐),已保留首个,其余降级`),r}function qy(e){const t=Oy.exec(e);return t?t[1]:null}function Hy(e){const t=$y.exec(e);return t?t[1]:null}function Lu(e,t){return`q-${e}-${sd(t)}`}function jy(e,t,n){return`q-${e}-o-${t}-${sd(n)}`}function sd(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const tr="__freeform__",Ky={accept:"确认,按此推进",rejectAlternative:"否决·换方案",rejectConstraint:"否决·补约束",rejectDropGoal:"否决·弃目标·废弃当前目标,继续其余",rejectDropSpec:"否决·弃目标·放弃整个 spec"},Gy="accept";function Wy(e){return e!==Gy}function Vy(e,t,n){const r=Ky[t],i=(n??"").trim();if(Wy(t)&&!i)return null;const o={questionId:e.id,questionText:e.text,selectedOptionLabel:r};return i&&(o.note=i),o}function Zy(e,t){const n=(t.note??"").trim();if(e.isFreeform)return n?{questionId:e.id,questionText:e.text,note:n}:null;const r=t.selectedOptionLabel;return r===tr?n?{questionId:e.id,questionText:e.text,note:n}:null:r?{questionId:e.id,questionText:e.text,selectedOptionLabel:r}:null}function ad(e){if(e.confirmTop==="accept")return"accept";if(e.confirmTop!=="reject")return null;if(e.confirmIntent==="alternative")return"rejectAlternative";if(e.confirmIntent==="constraint")return"rejectConstraint";if(e.confirmIntent==="dropGoal"){if(e.confirmDrop==="current")return"rejectDropGoal";if(e.confirmDrop==="spec")return"rejectDropSpec"}return null}function Yy(e){const t=ad(e);return t?t==="accept"?!0:e.note.trim().length>0:!1}function Xy(e){const t={};for(const n of e){if(n.kind==="confirm"){t[n.id]={note:"",confirmTop:"accept"};continue}const r=n.options.find(i=>i.recommended);t[n.id]={selectedOptionLabel:r?.label??n.options[0]?.label,note:""}}return t}function Qy(e,t){let n=0;for(const r of e){const i=t[r.id];if(!i){n+=1;continue}if(r.kind==="confirm"){Yy(i)||(n+=1);continue}const o=i.note??"";r.isFreeform||i.selectedOptionLabel===tr?o.trim()||(n+=1):i.selectedOptionLabel||(n+=1)}return n}function Jy(e,t){const n=[];for(const r of e){const i=t[r.id]??{note:""};if(r.kind==="confirm"){const s=ad(i);if(!s)continue;const a=Vy(r,s,i.note);if(!a)return{ok:!1,reason:"reasonRequired"};n.push(a);continue}const o=Zy(r,i);o&&n.push(o)}return{ok:!0,items:n}}function ev(e){return`f-${Date.now()}-${e}`}function tv(e){return e.map(t=>({sectionPath:t.sectionPath,quote:t.quote,note:t.note}))}function nv(e){return e?e.includes("🔴")?"border-l-2 border-l-destructive":e.includes("🟡")?"border-l-2 border-l-warning":"border-border":"border-border"}function rv(e,t){let n=e;for(;n&&n!==t;){if(n.nodeType===1){const i=n.tagName;if(i==="H2"||i==="H3")return n}let r=n.previousSibling;if(!r){n=n.parentNode;continue}for(;r?.lastChild;)r=r.lastChild;n=r}return null}function iv(e,t){return t.contains(e.startContainer)&&t.contains(e.endContainer)&&t.contains(e.commonAncestorContainer)}function ov(e,t,n){const r=n.throttleMs;let i,o="";const s=()=>{window.clearTimeout(i),i=window.setTimeout(()=>{const a=window.getSelection();if(!a||a.rangeCount===0||a.isCollapsed){o!==""&&(o="",t(null));return}const u=a.getRangeAt(0);if(!iv(u,e)){o!==""&&(o="",t(null));return}const c=a.toString();if(!c.trim()){o!==""&&(o="",t(null));return}const l=u.getBoundingClientRect(),d=rv(u.startContainer,e),p=n.noSectionLabel,g=d&&d.textContent?.trim()||p;o=c,t({text:c,rect:l,sectionPath:g})},r)};return document.addEventListener("selectionchange",s),()=>{document.removeEventListener("selectionchange",s),window.clearTimeout(i)}}var sv=N('<div class="fixed inset-0 z-[70] flex flex-col bg-background pt-safe pb-safe"role=dialog aria-modal=true><header class="flex shrink-0 justify-end px-2 py-1"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60"></button></header><div class="min-h-0 flex-1 overflow-auto p-4 [&>svg]:h-auto [&>svg]:max-w-none"style=touch-action:pinch-zoom>');const ud=e=>m(M,{get when(){return e.svg},children:t=>(()=>{var n=sv(),r=n.firstChild,i=r.firstChild,o=r.nextSibling;return i.$$click=()=>e.onClose(),_(i,m(vn,{size:20,"aria-hidden":"true"})),Z(s=>{var a=v("specDetail.viewDiagram"),u=v("common.close"),c=t();return a!==s.e&&te(n,"aria-label",s.e=a),u!==s.t&&te(i,"aria-label",s.t=u),c!==s.a&&(o.innerHTML=s.a=c),s},{e:void 0,t:void 0,a:void 0}),n})()});qe(["click"]);var av=N('<footer class="shrink-0 border-t border-border px-4 py-3">'),uv=N('<div class="fixed inset-0 z-[60] flex flex-col justify-end"role=dialog aria-modal=true><button type=button class="absolute inset-0 bg-black/40"></button><div class="animate-in slide-in-from-bottom-4 relative flex max-h-[85dvh] flex-col rounded-t-2xl bg-card px-safe pb-safe shadow-lg duration-150"><header class="flex h-12 shrink-0 items-center gap-3 border-b border-border px-4"><h2 class="min-w-0 flex-1 truncate text-base font-medium"></h2><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60"></button></header><div class="scroll-y min-h-0 flex-1 px-4 py-3">');const Pn=e=>m(M,{get when(){return e.open},get children(){var t=uv(),n=t.firstChild,r=n.nextSibling,i=r.firstChild,o=i.firstChild,s=o.nextSibling,a=i.nextSibling;return n.$$click=()=>e.onClose(),_(o,()=>e.title),s.$$click=()=>e.onClose(),_(s,m(vn,{size:20,"aria-hidden":"true"})),_(a,()=>e.children),_(r,m(M,{get when(){return e.footer},get children(){var u=av();return _(u,()=>e.footer),u}}),null),Z(u=>{var c=e.title,l=v("common.close"),d=v("common.close");return c!==u.e&&te(t,"aria-label",u.e=c),l!==u.t&&te(n,"aria-label",u.t=l),d!==u.a&&te(s,"aria-label",u.a=d),u},{e:void 0,t:void 0,a:void 0}),t}});qe(["click"]);var cv=N('<span class="mt-0.5 block text-xs text-muted-foreground">'),lv=N('<button type=button role=radio><span aria-hidden=true></span><span class="min-w-0 flex-1"><span class=block>'),dv=N("<div class=space-y-5>"),fv=N('<span class="text-xs text-muted-foreground">'),pv=N('<div class="flex items-center gap-3"><button type=button class="ml-auto min-h-11 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),gv=N('<p class="py-6 text-center text-sm text-muted-foreground">'),Fu=N("<p><span class=font-medium>:"),hv=N("<div>"),Pu=N("<div class=space-y-2 role=radiogroup>"),mv=N('<div class="space-y-2 border-l-2 border-border pl-3"role=radiogroup>'),bv=N('<div class="mt-2 space-y-2 border-l-2 border-border pl-3"role=radiogroup><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span><textarea rows=3 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),xv=N('<textarea rows=3 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),_v=N('<textarea rows=4 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),yv=N('<section><h3 class="mb-2 text-sm font-medium leading-relaxed">'),vv=N('<section class="rounded-lg border border-primary/40 bg-background p-3"><header class="mb-2 flex items-center gap-2"><h3 class="min-w-0 flex-1 text-sm font-medium"></h3><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60"></button></header><blockquote class="m-0 break-words border-l-2 border-border bg-muted/40 px-3 py-2 text-xs text-muted-foreground"><em></em> <!> “<!>”</blockquote><p class="m-0 mt-2 whitespace-pre-wrap break-words text-sm">!!!');const On=e=>(()=>{var t=lv(),n=t.firstChild,r=n.nextSibling,i=r.firstChild;return t.$$click=()=>e.onSelect(),_(i,()=>e.label),_(r,m(M,{get when(){return e.hint},get children(){var o=cv();return _(o,()=>e.hint),o}}),null),Z(o=>{var s=e.selected,a=Xe("flex min-h-11 w-full items-center gap-2 rounded-lg border px-3 py-2 text-left text-sm active:opacity-80",e.selected?"border-primary bg-primary/10":"border-border bg-background",e.accent&&!e.selected&&"bg-primary/5"),u=Xe("size-4 shrink-0 rounded-full border",e.selected?"border-[5px] border-primary":"border-muted-foreground/40");return s!==o.e&&te(t,"aria-checked",o.e=s),a!==o.t&&Le(t,o.t=a),u!==o.a&&Le(n,o.a=u),o},{e:void 0,t:void 0,a:void 0}),t})(),Ev=e=>{const[t,n]=G({}),[r,i]=G(!1);Ae(()=>{e.open&&n(Xy(e.questions))});const o=ge(()=>Qy(e.questions,t())),s=(d,p)=>n(g=>({...g,[d]:{...g[d]??{note:""},...p}})),a=d=>t()[d]??{note:""};function u(d,p){p==="accept"?s(d,{confirmTop:p,confirmIntent:void 0,confirmDrop:void 0,note:""}):s(d,{confirmTop:p})}function c(d,p){p==="dropGoal"?s(d,{confirmIntent:p}):s(d,{confirmIntent:p,confirmDrop:void 0})}async function l(){i(!0);try{const d=Jy(e.questions,t());if(!d.ok){we(v("specDetail.reasonRequired"),"error");return}const p=tv(e.freeforms);if(d.items.length===0&&p.length===0){we(v("specDetail.unanswered",{count:e.questions.length}),"error");return}const g={answers:d.items,freeformAnnotations:p};await ue.submitQuestionAnswers(e.projectId,e.specId,g);const{sessionId:f}=await ue.runAgent(e.projectId,e.specId);we(v("specDetail.submitted")),e.onSubmitted(f)}catch(d){we(d.message||v("specDetail.submitFailed"),"error")}finally{i(!1)}}return m(Pn,{get open(){return e.open},get title(){return v("specDetail.questions")},get onClose(){return e.onClose},get footer(){return(()=>{var d=pv(),p=d.firstChild;return _(d,m(M,{get when(){return o()>0},get children(){var g=fv();return _(g,()=>v("specDetail.unanswered",{count:o()})),g}}),p),p.$$click=()=>void l(),_(p,(()=>{var g=ze(()=>!!r());return()=>g()?v("specDetail.submitting"):v("specDetail.submit")})()),Z(()=>p.disabled=r()),d})()},get children(){return m(M,{get when(){return e.questions.length>0||e.freeforms.length>0},get fallback(){return(()=>{var d=gv();return _(d,()=>v("specDetail.questionsEmpty")),d})()},get children(){var d=dv();return _(d,m(Ke,{get each(){return e.questions},children:p=>(()=>{var g=yv(),f=g.firstChild;return _(f,()=>p.text),_(g,m(M,{get when(){return p.kind==="confirm"},get children(){return[(()=>{var h=hv();return _(h,m(M,{get when(){return p.plan},get children(){var b=Fu(),y=b.firstChild,x=y.firstChild;return _(y,()=>v("specDetail.plan"),x),_(b,()=>p.plan,null),b}}),null),_(h,m(M,{get when(){return p.impact},get children(){var b=Fu(),y=b.firstChild,x=y.firstChild;return _(y,()=>v("specDetail.impact"),x),_(b,()=>p.impact,null),b}}),null),Z(()=>Le(h,Xe("mb-2 space-y-1 rounded-md border bg-muted/40 px-3 py-2 text-xs",nv(p.impact)))),h})(),(()=>{var h=Pu();return _(h,m(On,{get label(){return v("specDetail.decisionAccept")},get selected(){return a(p.id).confirmTop==="accept"},onSelect:()=>u(p.id,"accept")}),null),_(h,m(On,{get label(){return v("specDetail.decisionReject")},get selected(){return a(p.id).confirmTop==="reject"},onSelect:()=>u(p.id,"reject")}),null),h})(),m(M,{get when(){return a(p.id).confirmTop==="reject"},get children(){var h=bv(),b=h.firstChild,y=b.firstChild,x=y.nextSibling;return _(h,m(Ke,{get each(){return[["alternative",v("specDetail.decisionAlternative")],["constraint",v("specDetail.decisionConstraint")],["dropGoal",v("specDetail.decisionDropGoal")]]},children:([E,w])=>m(On,{label:w,get selected(){return a(p.id).confirmIntent===E},onSelect:()=>c(p.id,E)})}),b),_(h,m(M,{get when(){return a(p.id).confirmIntent==="dropGoal"},get children(){var E=mv();return _(E,m(Ke,{get each(){return[["current",v("specDetail.decisionDropCurrent")],["spec",v("specDetail.decisionDropSpec")]]},children:([w,C])=>m(On,{label:C,get selected(){return a(p.id).confirmDrop===w},onSelect:()=>s(p.id,{confirmDrop:w})})})),E}}),b),_(y,()=>v("specDetail.rejectReason")),x.$$input=E=>s(p.id,{note:E.currentTarget.value}),Z(()=>te(x,"placeholder",v("specDetail.rejectReasonHint"))),Z(()=>x.value=a(p.id).note),h}})]}}),null),_(g,m(M,{get when(){return p.kind==="choice"},get children(){var h=Pu();return _(h,m(Ke,{get each(){return p.options},children:b=>m(On,{get label(){return b.label},get accent(){return b.recommended},get selected(){return a(p.id).selectedOptionLabel===b.label},onSelect:()=>s(p.id,{selectedOptionLabel:b.label})})}),null),_(h,m(On,{get label(){return v("specDetail.freeformOther")},get selected(){return a(p.id).selectedOptionLabel===tr},onSelect:()=>s(p.id,{selectedOptionLabel:tr})}),null),_(h,m(M,{get when(){return a(p.id).selectedOptionLabel===tr},get children(){var b=xv();return b.$$input=y=>s(p.id,{note:y.currentTarget.value}),Z(()=>te(b,"placeholder",v("specDetail.freeformHint"))),Z(()=>b.value=a(p.id).note),b}}),null),h}}),null),_(g,m(M,{get when(){return p.kind==="freeform"},get children(){var h=_v();return h.$$input=b=>s(p.id,{note:b.currentTarget.value}),Z(()=>te(h,"placeholder",v("specDetail.freeformHint"))),Z(()=>h.value=a(p.id).note),h}}),null),g})()}),null),_(d,m(Ke,{get each(){return e.freeforms},children:p=>(()=>{var g=vv(),f=g.firstChild,h=f.firstChild,b=h.nextSibling,y=f.nextSibling,x=y.firstChild,E=x.nextSibling,w=E.nextSibling,C=w.nextSibling,O=C.nextSibling;O.nextSibling;var $=y.nextSibling;return $.firstChild,_(h,()=>v("specDetail.annotationDraft")),b.$$click=()=>e.onRemoveFreeform(p.id),_(b,m(vn,{size:20,"aria-hidden":"true"})),_(x,()=>p.sectionPath),_(y,()=>v("specDetail.annotationQuoteConnector"),w),_(y,()=>p.quote.slice(0,200),O),_($,()=>p.note,null),Z(()=>te(b,"aria-label",v("specDetail.removeAnnotation"))),g})()}),null),d}})}})};qe(["click","input"]);var wv=N("<div>"),kv=N("<div><textarea>");const cd=e=>{let t,n,r=null;Me(()=>{r&&clearTimeout(r)});const i=td({projectId:()=>e.projectId,value:()=>e.value,onValueChange:a=>e.onValueChange(a),searchDebounceMs:nd}),o=()=>i.open()&&i.items().length>0;Ae(()=>{o()&&requestAnimationFrame(()=>n?.scrollIntoView({block:"nearest"}))});function s(a){const u=i.select(a);u.kind==="text"&&requestAnimationFrame(()=>{t&&(t.focus(),t.setSelectionRange(u.cursorPos,u.cursorPos))})}return(()=>{var a=kv(),u=a.firstChild;u.addEventListener("blur",()=>{r&&clearTimeout(r),r=setTimeout(i.close,rd)}),u.$$input=l=>{e.onValueChange(l.currentTarget.value),i.handleInput(l.currentTarget)};var c=t;return typeof c=="function"?Vt(c,u):t=u,_(a,m(M,{get when(){return o()},get children(){var l=wv(),d=n;return typeof d=="function"?Vt(d,l):n=l,_(l,m(id,{get items(){return i.items()},empty:!1,inline:!0,onSelect:s})),l}}),null),Z(l=>{var d=e.rows??5,p=e.class,g=e.placeholder;return d!==l.e&&te(u,"rows",l.e=d),p!==l.t&&Le(u,l.t=p),g!==l.a&&te(u,"placeholder",l.a=g),l},{e:void 0,t:void 0,a:void 0}),Z(()=>u.value=e.value),a})()};qe(["input"]);var Sv=N('<div class=space-y-4><div class="flex gap-2"role=radiogroup></div><label class=block><span class="mb-1 block text-xs text-muted-foreground">'),Cv=N('<button type=button class="ml-auto flex min-h-11 w-full items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),Av=N("<button type=button role=radio>");const Tv=[{value:"feat",labelKey:"specDetail.appendKindFeat"},{value:"refct",labelKey:"specDetail.appendKindRefct"},{value:"fix",labelKey:"specDetail.appendKindFix"}],Nv=e=>{const[t,n]=G("fix"),[r,i]=G(""),[o,s]=G(!1);Ae(()=>{e.open&&(n("fix"),i(""))});async function a(){const u=r().trim();if(!(!u||o())){s(!0);try{const c={kind:t(),description:u},l=await ue.appendItem(e.projectId,e.specId,c);if(l.busy){we(v("specDetail.appendSavedSpecBusy"),"error"),e.onSubmitted("");return}we(v("specDetail.appendSaved")),e.onSubmitted(l.sessionId??"")}catch(c){we(c.message||v("specDetail.appendFailed"),"error")}finally{s(!1)}}}return m(Pn,{get open(){return e.open},get title(){return v("specDetail.appendTask")},get onClose(){return e.onClose},get footer(){return(()=>{var u=Cv();return u.$$click=()=>void a(),_(u,(()=>{var c=ze(()=>!!o());return()=>c()?v("specDetail.submitting"):v("specDetail.submit")})()),Z(()=>u.disabled=o()||r().trim().length===0),u})()},get children(){var u=Sv(),c=u.firstChild,l=c.nextSibling,d=l.firstChild;return _(c,m(Ke,{each:Tv,children:p=>(()=>{var g=Av();return g.$$click=()=>n(p.value),_(g,()=>v(p.labelKey)),Z(f=>{var h=t()===p.value,b=Xe("min-h-11 flex-1 rounded-lg border text-sm active:opacity-80",t()===p.value?"border-primary bg-primary/10 font-medium":"border-border bg-background");return h!==f.e&&te(g,"aria-checked",f.e=h),b!==f.t&&Le(g,f.t=b),f},{e:void 0,t:void 0}),g})()})),_(d,()=>v("specDetail.appendDescription")),_(l,m(cd,{get projectId(){return e.projectId},rows:5,class:"w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary",get placeholder(){return v("specDetail.appendDescriptionHint")},get value(){return r()},onValueChange:i}),null),Z(()=>te(c,"aria-label",v("newSpec.type"))),u}})};qe(["click"]);var Rv=N('<div class="flex items-center"><button type=button class="ml-auto min-h-11 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),Dv=N('<div class=space-y-3><p class="text-xs text-muted-foreground"></p><blockquote class="m-0 break-words border-l-2 border-border bg-muted/40 px-3 py-2 text-sm text-muted-foreground"></blockquote><textarea rows=4 class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">');const Ov=200,$v=e=>{const[t,n]=G("");Ae(()=>{e.open&&n("")});const r=()=>t().trim().length>0;return m(Pn,{get open(){return e.open},get title(){return v("specDetail.annotateTitle")},get onClose(){return e.onClose},get footer(){return(()=>{var i=Rv(),o=i.firstChild;return o.$$click=()=>e.onSubmit(t().trim()),_(o,()=>v("specDetail.annotateSubmit")),Z(()=>o.disabled=!r()),i})()},get children(){return m(M,{get when(){return e.snap},children:i=>(()=>{var o=Dv(),s=o.firstChild,a=s.nextSibling,u=a.nextSibling;return _(s,()=>v("specDetail.annotateInSection",{section:i().sectionPath})),_(a,()=>i().text.slice(0,Ov)),u.$$input=c=>n(c.currentTarget.value),Z(()=>te(u,"placeholder",v("specDetail.annotatePlaceholder"))),Z(()=>u.value=t()),o})()})}})};qe(["click","input"]);var Iv=N('<div class="animate-in slide-in-from-bottom-4 fixed inset-x-0 bottom-0 z-50 border-t border-border bg-card shadow-lg duration-150 px-safe pb-safe"role=toolbar><div class="flex items-center gap-3 px-2 py-2"><button type=button class="min-h-11 flex-1 rounded-lg text-sm active:bg-accent"></button><button type=button class="min-h-11 flex-1 rounded-lg text-sm active:bg-accent"></button><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60">');const Mv=e=>m(M,{get when(){return e.snap},children:t=>(()=>{var n=Iv(),r=n.firstChild,i=r.firstChild,o=i.nextSibling,s=o.nextSibling;return i.$$click=()=>e.onAnnotate(t()),i.$$pointerdown=a=>a.preventDefault(),_(i,()=>v("specDetail.annotate")),o.$$click=()=>e.onExplain(t()),o.$$pointerdown=a=>a.preventDefault(),_(o,()=>v("specDetail.explain")),s.$$click=()=>e.onClose(),s.$$pointerdown=a=>a.preventDefault(),_(s,m(vn,{size:20,"aria-hidden":"true"})),Z(a=>{var u=v("specDetail.annotate"),c=v("specDetail.selectionClose");return u!==a.e&&te(n,"aria-label",a.e=u),c!==a.t&&te(s,"aria-label",a.t=c),a},{e:void 0,t:void 0}),n})()});qe(["pointerdown","click"]);var Bu=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Lv=N('<div class="px-4 py-4">'),Fv=N('<p class="px-4 py-8 text-center text-sm text-muted-foreground">'),Pv=N('<span class="flex items-center gap-1 text-primary"><span class="size-2 animate-pulse rounded-full bg-primary">'),Bv=N('<button type=button class="min-h-9 rounded-md border border-border px-3 text-xs text-muted-foreground active:bg-accent">'),Uv=N('<section class="border-b border-border px-4 py-3"><p class="text-sm leading-relaxed"></p><div class="mt-2 flex flex-wrap items-center gap-2 text-xs"><span></span><time class=text-muted-foreground></time></div><div class="mt-3 flex flex-wrap gap-2"><button type=button class="min-h-9 rounded-md border border-border px-3 text-xs active:bg-accent"></button><button type=button class="flex min-h-9 min-w-9 items-center justify-center rounded-md border border-border active:bg-accent">'),zv=N('<article class="markdown px-4 py-4">'),qv=N('<button type=button class="fixed bottom-6 right-4 z-40 flex size-10 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg active:opacity-80 disabled:opacity-40"><span class="absolute -right-1 -top-1 flex min-w-5 items-center justify-center rounded-full border border-background bg-destructive px-1 text-[11px] text-destructive-foreground">');const Hv=120,Uu=3,jv=150,Kv=250,zu=4e3,Gv=e=>new Promise(t=>setTimeout(t,e));async function Wv(e,t,n){for(let r=0;r<=Uu;r+=1)try{return await ue.getSpec(e,t)}catch(i){if(!i.message.startsWith("404"))throw i;r<Uu&&await Gv(jv)}return n??null}const Vv=()=>{const e=pr(),t=ht(),n=()=>_e()??"",[r,i]=G(0),[o,s]=G(!1),[a,u]=G(""),[c,l]=G(null),[d,p]=G(!1),[g,f]=G(!1),[h,b]=G(!1),[y,x]=G(null),[E,w]=G(null),[C,O]=G(!1),[$,A]=G(null),[I,j]=G([]),[F,{refetch:P}]=nt(()=>[n(),e.id,r()],async([S,R],q)=>Wv(S,R,q.value)),[z]=nt(()=>[n(),e.id,r()],async([S,R])=>{if(!S||!R)return{exists:!1,text:""};try{return await ue.getDebug(S,R)}catch{return{exists:!1,text:""}}}),B=ge(()=>{const S=F();return S?Py(S.body):[]}),T=ge(()=>B().length+I().length);Ae(()=>{const S=e.id,R=n();if(!S||!R)return;let q;const W=Vh(R,S,{onUpdated:()=>{q&&clearTimeout(q),q=setTimeout(()=>void dc(()=>i(ie=>ie+1)),Hv)}});Me(()=>{q&&clearTimeout(q),W()})}),Ae(()=>{const S=e.id,R=n();!S||!R||ue.getSpecSession(R,S).then(({sessionId:q,running:W})=>{q&&(u(q),s(W))}).catch(()=>{})}),Ae(()=>{const S=n(),R=a();if(!S||!R)return;const q=ul(S,{onStatus:W=>{W.sessionId===R&&s(W.running)}});Me(q)}),Ae(()=>{const S=n(),R=a();if(!S||!R)return;const q=oi(S,R,{onEvent:W=>{(W.type==="turn-completed"||W.type==="error")&&s(!1)}});Me(q)}),Ae(()=>{const S=c(),R=F();if(!S||!R)return;const q=n();let W=!0,ie;const he=ys(R.body,{specId:R.id,projectId:q||void 0});Sy(S,`<article>${he}</article>`,{childrenOnly:!0,onBeforeElUpdated:(de,ke)=>!(de.classList?.contains("mermaid")&&de.getAttribute("data-mermaid-source")===ke.getAttribute?.("data-mermaid-source"))}),od(S).then(de=>{if(!W){de();return}ie=de}),Me(()=>{W=!1,ie?.()})}),Ae(()=>{const S=c();if(!S)return;const R=ov(S,w,{noSectionLabel:v("specDetail.noSection"),throttleMs:Kv});Me(R)});function D(S){A(S),O(!0)}function X(S){const R=$();R&&(j(q=>[...q,{id:ev(q.length),sectionPath:R.sectionPath,quote:R.text,note:S}]),O(!1),w(null),we(v("specDetail.annotationSaved")))}function pe(S){j(R=>R.filter(q=>q.id!==S))}async function Q(S){if(S.text.length>zu){we(v("specDetail.explainTooLong",{max:zu}),"error");return}w(null),s(!0);try{const{sessionId:R}=await ue.explain(n(),e.id,S.text);u(R),t(`/sessions/${encodeURIComponent(R)}`)}catch(R){s(!1),we(R.message||v("specDetail.explainFailed"),"error")}}function L(S){if(!(S.target instanceof Element))return;const q=S.target.closest(".mermaid")?.querySelector("svg");q&&x(q.outerHTML)}function ne(){const S=a();S&&t(`/sessions/${encodeURIComponent(S)}`)}async function H(){const S=await si(xl(e.id));we(v(S?"specDetail.specPathCopied":"chat.filePathCopyFailed"),S?"default":"error"),b(!1)}return m(yt,{get title(){return e.id},padded:!1,onBack:()=>t("/specs"),get leading(){return m(M,{get when(){return a()},get children(){var S=Bu();return S.$$click=ne,_(S,m(Zp,{size:20,"aria-hidden":"true"})),Z(()=>te(S,"aria-label",v("specDetail.openSession"))),S}})},get actions(){return(()=>{var S=Bu();return S.$$click=()=>b(!0),_(S,m(or,{size:20,"aria-hidden":"true"})),Z(()=>te(S,"aria-label",v("specDetail.more"))),S})()},get children(){return[m(M,{get when(){return n()},get fallback(){return(()=>{var S=Lv();return _(S,m(Pt,{})),S})()},get children(){return m(M,{get when(){return!F.loading||F()},get fallback(){return m(ln,{})},get children(){return m(M,{get when(){return!F.error},get fallback(){return m(Xt,{get error(){return F.error},onRetry:()=>void P()})},get children(){return m(M,{get when(){return F()},get fallback(){return(()=>{var S=Fv();return _(S,()=>v("specDetail.notFound")),S})()},children:S=>[(()=>{var R=Uv(),q=R.firstChild,W=q.nextSibling,ie=W.firstChild,he=ie.nextSibling,de=W.nextSibling,ke=de.firstChild,Oe=ke.nextSibling;return _(q,()=>S().frontmatter.summary||v("common.pendingAgent")),_(ie,()=>S().frontmatter.stage),_(W,m(M,{get when(){return o()},get children(){var Ce=Pv();return Ce.firstChild,_(Ce,()=>v("specDetail.running"),null),Ce}}),he),_(he,()=>_l(S().frontmatter.updated_at)),ke.$$click=()=>f(!0),_(ke,()=>v("specDetail.appendTask")),_(de,m(M,{get when(){return z()?.exists},get children(){var Ce=Bv();return Ce.$$click=()=>t(`/specs/${encodeURIComponent(e.id)}/debug`),_(Ce,()=>v("specDetail.debug")),Ce}}),Oe),Oe.$$click=()=>t(`/specs/${encodeURIComponent(e.id)}/git`),_(Oe,m(is,{size:16,"aria-hidden":"true"})),Z(Ce=>{var Ye=Xe("rounded border px-1.5 py-0.5",ml(S().frontmatter.stage)),st=v("specDetail.git"),vt=v("specDetail.git");return Ye!==Ce.e&&Le(ie,Ce.e=Ye),st!==Ce.t&&te(Oe,"aria-label",Ce.t=st),vt!==Ce.a&&te(Oe,"title",Ce.a=vt),Ce},{e:void 0,t:void 0,a:void 0}),R})(),(()=>{var R=zv();return R.$$click=L,Vt(q=>l(q),R),R})(),m(M,{get when(){return T()>0},get children(){var R=qv(),q=R.firstChild;return R.$$click=()=>p(!0),_(R,m(Dp,{size:24,"aria-hidden":"true"}),q),_(q,T),Z(W=>{var ie=v("specDetail.questions"),he=o();return ie!==W.e&&te(R,"aria-label",W.e=ie),he!==W.t&&(R.disabled=W.t=he),W},{e:void 0,t:void 0}),R}}),m(Mv,{get snap(){return ze(()=>!!C())()?null:E()},onAnnotate:D,onExplain:R=>void Q(R),onClose:()=>w(null)}),m($v,{get open(){return C()},get snap(){return $()},onClose:()=>O(!1),onSubmit:X}),m(Ev,{get open(){return d()},get projectId(){return n()},get specId(){return S().id},get questions(){return B()},get freeforms(){return I()},onRemoveFreeform:pe,onClose:()=>p(!1),onSubmitted:R=>{p(!1),s(!0),j([]),R&&(u(R),t(`/sessions/${encodeURIComponent(R)}`))}}),m(Nv,{get open(){return g()},get projectId(){return n()},get specId(){return S().id},onClose:()=>f(!1),onSubmitted:R=>{f(!1),R&&(s(!0),u(R),t(`/sessions/${encodeURIComponent(R)}`))}})]})}})}})}}),m(Un,{get open(){return h()},get title(){return e.id},get items(){return[{label:v("specDetail.copySpecPath"),onSelect:()=>void H()}]},onClose:()=>b(!1)}),m(ud,{get svg(){return y()},onClose:()=>x(null)})]}})};qe(["click"]);var Zv=N('<article class="markdown px-4 py-4">'),Yv=N('<p class="border-b border-border px-4 py-3 text-sm leading-relaxed">');const Xv=()=>{const e=pr(),t=ht(),[n,r]=G(null),[i,o]=G(null),[s]=nt(()=>{const d=_e();return d?[d,e.id]:null},([d,p])=>ue.getSpec(d,p)),[a,{refetch:u}]=nt(()=>{const d=_e();return d?[d,e.id]:null},([d,p])=>ue.getDebug(d,p)),c=ge(()=>{const d=i2(a()?.text??"");return d.trim()?ys(d,{specId:e.id,projectId:_e()||void 0}):""});Ae(()=>{const d=n(),p=c();if(!d)return;d.innerHTML=p;let g=!0,f;od(d).then(h=>{if(!g){h();return}f=h}),Me(()=>{g=!1,f?.()})});function l(d){if(!(d.target instanceof Element))return;const p=d.target.closest(".mermaid")?.querySelector("svg");p&&o(p.outerHTML)}return m(yt,{get title(){return v("specDetail.debug")},padded:!1,onBack:()=>t(`/specs/${encodeURIComponent(e.id)}`),get children(){return[m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return[m(M,{get when(){return s()?.frontmatter.summary},children:d=>(()=>{var p=Yv();return _(p,d),p})()}),m(M,{get when(){return!a.loading},get fallback(){return m(ln,{})},get children(){return m(M,{get when(){return!a.error},get fallback(){return m(Xt,{get error(){return a.error},onRetry:()=>void u()})},get children(){return m(M,{get when(){return c()},get fallback(){return m(Tt,{get title(){return v("specDebug.empty")}})},get children(){var d=Zv();return d.$$click=l,Vt(r,d),d}})}})}})]}}),m(ud,{get svg(){return i()},onClose:()=>o(null)})]}})};qe(["click"]);const Qv={M:"text-warning",A:"text-success",D:"text-destructive","??":"text-info",R:"text-primary"};function Jv(e){return Qv[e]??""}function eE(e,t,n){const r=new Set(n.map(o=>o.path)),i=new Set;for(const o of e)r.has(o)&&i.add(o);return{selected:i,active:t&&r.has(t)?t:null}}function tE(e){return`${e?.index??""}${e?.worktree??""}`}var To,qu;function nE(){if(qu)return To;qu=1,To=l=>{if(!l)return[];if(typeof l!="string"||l.match(/^\s+$/))return[];const d=l.split(`
|
|
33
|
+
`);if(d.length===0)return[];const p=[];let g=null,f=null,h=0,b=0,y=null;const x=H=>{f?.changes.push({type:"normal",normal:!0,ln1:h++,ln2:b++,content:H}),y.oldLines--,y.newLines--},E=H=>{const[S,R]=n(H)??[];g={chunks:[],deletions:0,additions:0,from:S,to:R},p.push(g)},w=()=>{(!g||g.chunks.length)&&E()},C=(H,S)=>{w(),g.new=!0,g.newMode=S[1],g.from="/dev/null"},O=(H,S)=>{w(),g.deleted=!0,g.oldMode=S[1],g.to="/dev/null"},$=(H,S)=>{w(),g.oldMode=S[1]},A=(H,S)=>{w(),g.newMode=S[1]},I=(H,S)=>{w(),g.index=H.split(" ").slice(1),S[1]&&(g.oldMode=g.newMode=S[1].trim())},j=H=>{w(),g.from=i(H)},F=H=>{w(),g.to=i(H)},P=H=>+(H||1),z=(H,S)=>{g||E(H);const[R,q,W,ie]=S.slice(1);h=+R,b=+W,f={content:H,changes:[],oldStart:+R,oldLines:P(q),newStart:+W,newLines:P(ie)},y={oldLines:P(q),newLines:P(ie)},g.chunks.push(f)},B=H=>{f&&(f.changes.push({type:"del",del:!0,ln:h++,content:H}),g.deletions++,y.oldLines--)},T=H=>{f&&(f.changes.push({type:"add",add:!0,ln:b++,content:H}),g.additions++,y.newLines--)},D=H=>{if(!f)return;const[S]=f.changes.slice(-1);f.changes.push({type:S.type,[S.type]:!0,ln1:S.ln1,ln2:S.ln2,ln:S.ln,content:H})},X=[[/^diff\s/,E],[/^new file mode (\d+)$/,C],[/^deleted file mode (\d+)$/,O],[/^old mode (\d+)$/,$],[/^new mode (\d+)$/,A],[/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/,I],[/^---\s/,j],[/^\+\+\+\s/,F],[/^@@\s+-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/,z],[/^\$/,D]],pe=[[/^\$/,D],[/^-/,B],[/^\+/,T],[/^\s*/,x]],Q=H=>{for(const[S,R]of pe){const q=H.match(S);if(q){R(H,q);break}}y.oldLines===0&&y.newLines===0&&(y=null)},L=H=>{for(const[S,R]of X){const q=H.match(S);if(q){R(H,q);break}}},ne=H=>{y?Q(H):L(H)};for(const H of d)ne(H);return p};const e=/(a|i|w|c|o|1|2)\/.*(?=["']? ["']?(b|i|w|c|o|1|2)\/)|(b|i|w|c|o|1|2)\/.*$/g,t=/^(a|b|i|w|c|o|1|2)\//,n=l=>l?.match(e)?.map(d=>d.replace(t,"").replace(/("|')$/,"")),r=/^\\?['"]|\\?['"]$/g,i=l=>{let d=o(l,"-+").trim();return d=a(d),d.replace(r,"").replace(t,"")},o=(l,d)=>{l=c(l);const p=u(d);return l.replace(new RegExp(`^${p}+`),"")},s=/\t.*|\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(.\d+)?\s(\+|-)\d\d\d\d/,a=l=>{const d=s.exec(l);return d&&(l=l.substring(0,d.index).trim()),l},u=l=>l instanceof RegExp?l.source:`[${c(l).replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}]`,c=l=>`${l??""}`;return To}var rE=nE();const iE=ri(rE),oE={ts:"typescript",tsx:"typescript",mts:"typescript",cts:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",json:"json",css:"css",scss:"scss",less:"less",html:"xml",vue:"xml",xml:"xml",svg:"xml",md:"markdown",markdown:"markdown",sh:"bash",bash:"bash",zsh:"bash",yml:"yaml",yaml:"yaml",toml:"ini",ini:"ini",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",c:"c",h:"c",cpp:"cpp",hpp:"cpp",cs:"csharp",php:"php",sql:"sql"};function sE(e){const t=e.split(".").pop()?.toLowerCase()??"",n=oE[t];return n&&Yr.getLanguage(n)?n:void 0}function aE(e,t){if(!(!t||!e))try{return Yr.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return}}function uE(e){return e?iE(e).map(t=>({chunks:t.chunks.map(n=>({header:n.content,rows:n.changes.map(cE)}))})):[]}function cE(e){const t=e.type==="add"?"":e.type==="del"?e.ln:e.ln1,n=e.type==="del"?"":e.type==="add"?e.ln:e.ln2;return{oldLn:t,newLn:n,marker:e.content.slice(0,1),code:e.content.slice(1),tone:e.type==="add"?"add":e.type==="del"?"del":"normal"}}var lE=N('<button type=button class="flex shrink-0 items-center gap-2 border-b border-border bg-card px-4 py-2.5 text-left active:bg-accent disabled:opacity-40"><span class="min-w-0 flex-1 truncate font-mono text-sm"></span><span class="shrink-0 text-xs text-muted-foreground">'),dE=N("<div>"),Hu=N('<ul class="divide-y-[0.5px] divide-border">'),fE=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),pE=N('<div class="mb-2 flex rounded-lg border border-border p-0.5"role=radiogroup>'),gE=N('<textarea rows=1 class="w-full resize-none overflow-y-hidden rounded-lg border border-border bg-background px-3 py-2 text-base leading-6 outline-none focus:border-primary">'),hE=N('<button type=button class="min-h-11 shrink-0 rounded-lg px-3 text-sm active:bg-accent disabled:opacity-40">'),mE=N('<div class="shrink-0 border-t border-border bg-card px-safe pb-safe"><div class="px-4 pb-3 pt-2"><div class="flex items-center gap-2"><span class="min-w-0 flex-1 truncate text-xs text-muted-foreground"></span><button type=button class="min-h-11 shrink-0 rounded-lg px-4 text-sm text-destructive active:bg-accent disabled:opacity-40"></button><button type=button class="min-h-11 shrink-0 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),bE=N("<button type=button role=radio>"),xE=N('<div class="flex items-center active:bg-accent"><button type=button class="flex size-11 shrink-0 items-center justify-center"role=checkbox><span></span></button><button type=button><span></span><span class="truncate-start min-w-0 flex-1 font-mono text-xs">'),_E=N('<span class="shrink-0 text-xs text-warning">'),yE=N('<div class="code-highlight scroll-y min-h-0 flex-1 border-t border-border"><div class="sticky top-0 flex items-center gap-2 border-b border-border bg-card px-4 py-1.5"><span class="truncate-start min-w-0 flex-1 font-mono text-xs">'),ju=N('<p class="py-6 text-center text-sm text-muted-foreground">'),vE=N('<li><button type=button class="flex min-h-11 w-full items-center gap-2 py-2 text-left font-mono text-sm active:bg-accent disabled:opacity-40"><span class="min-w-0 flex-1 truncate">'),EE=N('<button type=button class="my-1 min-h-9 shrink-0 rounded-lg bg-primary px-3 text-xs font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),wE=N('<li><button type=button class="min-h-11 min-w-0 flex-1 truncate py-2 text-left font-mono text-sm active:opacity-80 disabled:opacity-40">'),kE=N('<input type=text class="mb-2 w-full rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary"autocapitalize=off autocorrect=off>'),No=N('<p class="p-4 text-sm text-muted-foreground">'),SE=N('<p class="p-4 text-sm text-destructive">'),CE=N('<div><div class="bg-muted px-2 py-0.5 font-mono text-[11px] text-muted-foreground">'),AE=N('<div><span class="w-9 shrink-0 select-none px-1 text-right text-muted-foreground"></span><span class="w-9 shrink-0 select-none px-1 text-right text-muted-foreground"></span><pre class="m-0 min-w-0 flex-1 whitespace-pre-wrap break-all px-1"><span>'),TE=N("<span>"),NE=N("<span class=hljs>");const Ku=5,ld=e=>{const[t,n]=G([]),[r,i]=G(new Set),[o,s]=G(null),[a,u]=G(""),[c,l]=G(!1),[d,p]=G(null),[g,f]=G("manual"),[h,b]=G(null),[y,x]=G(!1),[E,w]=G(!1),[C,O]=G(""),[$,A]=G(""),[I,j]=G(null),[F,P]=G(!1),[z,B]=G(!1),[T,D]=G(),X=()=>_e()??void 0,pe=()=>e.specId?.(),Q=ge(()=>!!pe()),L=ge(()=>d()!==null||h()!==null);let ne=null;Me(()=>ne?.()),Ae(()=>{const K=e.initialMessage?.()??"";K&&!c()&&u(K)}),Ae(()=>{a();const K=T();K?.isConnected&&er(K,Ku)});const[H,{refetch:S,mutate:R}]=nt(X,K=>ue.getGitBranches(K));function q(K){n(K);const V=eE(r(),o(),K);i(V.selected),s(V.active)}Ae(()=>{const K=X();if(!K)return;let V=!1,ae=!1;ue.getProjectChanges(K).then(Re=>{V||ae||q(Re.changes)}).catch(()=>{});const be=Xh(K,Re=>{ae=!0,q(Re)});Me(()=>{V=!0,be()})});const[W]=nt(()=>{const K=o(),V=X();return!K||!V?null:{pid:V,path:K,revision:tE(t().find(ae=>ae.path===K))}},K=>ue.getFileDiff(K.pid,K.path)),ie=ge(()=>{const K=C().trim().toLowerCase(),V=H()?.branches??[];return K?V.filter(ae=>ae.toLowerCase().includes(K)):V}),he=ge(()=>{const K=H(),V=[...K?.branches??[],...K?.remoteBranches??[]],ae=$().trim().toLowerCase();return ae?V.filter(be=>be.toLowerCase().includes(ae)):V}),de=ge(()=>t().length>0&&t().every(K=>r().has(K.path))),ke=ge(()=>L()?!1:g()==="agent"?!0:r().size>0&&a().trim().length>0),Oe=ge(()=>!L()&&(g()==="agent"||r().size>0));function Ce(K){i(V=>{const ae=new Set(V);return ae.has(K)?ae.delete(K):ae.add(K),ae})}function Ye(){i(de()?new Set:new Set(t().map(K=>K.path)))}async function st(K){const V=await ue.getProjectChanges(K);q(V.changes)}async function vt(K,V){const ae=X();if(!(!ae||L())){p(K);try{await V(ae)}catch(be){we(be.message,"error")}finally{p(null)}}}const dn=ht();async function fn(K){const V=X(),ae=pe();if(!(!V||!ae||L())){b(K);try{const be=await ue.gitOp(V,ae,K);ne?.(),ne=oi(V,be.sessionId,{onEvent:Re=>{(Re.type==="turn-completed"||Re.type==="error")&&(b(null),ne?.(),ne=null)}}),we(v("git.agentDispatched")),dn(`/sessions/${encodeURIComponent(be.sessionId)}`)}catch(be){b(null),we(be.message,"error")}}}const wn=()=>g()==="agent"?void fn("commit"):void vt("commit",async K=>{const V=a().trim();if(r().size===0)return void we(v("git.selectAtLeastOne"),"error");if(!V)return void we(v("git.enterCommitMsg"),"error");await ue.projectCommit(K,{message:V,paths:[...r()]}),i(new Set),s(null),u(""),we(v("git.committed")),await st(K)}),qn=()=>g()==="agent"?void fn("discard"):void vt("discard",async K=>{if(r().size===0)return void we(v("git.selectAtLeastOne"),"error");await ue.projectDiscard(K,{paths:[...r()]}),i(new Set),s(null),we(v("git.discarded")),await st(K)}),kn=()=>vt("push",async K=>{const V=await ue.projectPush(K);we(v("git.pushed",{branch:V.branch}))}),pn=()=>vt("pull",async K=>{const V=await ue.projectPull(K);we(V.updated?v("git.pulled",{branch:V.branch}):v("git.upToDate")),await st(K)}),Hn=K=>vt("checkout",async V=>{if(K===H()?.current)return;const ae=await ue.checkoutGitBranch(V,K);R(be=>({current:ae.current,branches:be?.branches.includes(ae.current)?be.branches:[...be?.branches??[],ae.current].sort(),remoteBranches:be?.remoteBranches??[]})),i(new Set),s(null),O(""),x(!1),we(v("git.switched",{branch:ae.current})),await st(V),await S()}),Sn=K=>vt("merge",async V=>{try{const ae=await ue.mergeGitBranch(V,K);we(ae.alreadyUpToDate?v("git.mergeUpToDate",{current:ae.current,branch:ae.merged}):v("git.merged",{current:ae.current,branch:ae.merged})),j(null),A(""),await st(V),await S()}finally{w(!1)}}),St=()=>{if(z())return[{label:v("git.discardConfirm"),tone:"destructive",onSelect:()=>{P(!1),B(!1),qn()}}];const K=[];return K.push({label:v("git.push"),onSelect:()=>{P(!1),kn()}}),K.push({label:v("git.pull"),onSelect:()=>{P(!1),pn()}}),K.push({label:v("git.mergeBranch"),onSelect:()=>{P(!1),j(null),A(""),w(!0)}}),K};return m(yt,{get title(){return e.title},fill:!0,get onBack(){return e.onBack},get actions(){return(()=>{var K=fE();return K.$$click=()=>{B(!1),P(!0)},_(K,m(or,{size:20,"aria-hidden":"true"})),Z(V=>{var ae=v("git.more"),be=L();return ae!==V.e&&te(K,"aria-label",V.e=ae),be!==V.t&&(K.disabled=V.t=be),V},{e:void 0,t:void 0}),K})()},get footer(){return m(M,{get when(){return _e()},get children(){var K=mE(),V=K.firstChild,ae=V.firstChild,be=ae.firstChild,Re=be.nextSibling,at=Re.nextSibling;return _(V,m(M,{get when(){return Q()},get children(){var De=pE();return _(De,m(Ke,{get each(){return[["manual",v("git.manualSelect")],["agent",v("git.agentSelect")]]},children:([He,je])=>(()=>{var dt=bE();return dt.$$click=()=>f(He),_(dt,je),Z(xt=>{var zt=g()===He,qt=Xe("min-h-9 flex-1 rounded-md text-xs active:opacity-80 disabled:opacity-40",g()===He?"bg-primary text-primary-foreground":"text-muted-foreground"),Ct=L();return zt!==xt.e&&te(dt,"aria-checked",xt.e=zt),qt!==xt.t&&Le(dt,xt.t=qt),Ct!==xt.a&&(dt.disabled=xt.a=Ct),xt},{e:void 0,t:void 0,a:void 0}),dt})()})),De}}),ae),_(V,m(M,{get when(){return g()==="manual"},get children(){var De=gE();return De.$$input=He=>{er(He.currentTarget,Ku),l(!0),u(He.currentTarget.value)},Vt(D,De),Z(He=>{var je=v("git.commitPlaceholder"),dt=L();return je!==He.e&&te(De,"placeholder",He.e=je),dt!==He.t&&(De.disabled=He.t=dt),He},{e:void 0,t:void 0}),Z(()=>De.value=a()),De}}),ae),_(ae,m(M,{get when(){return g()==="manual"},get children(){var De=hE();return De.$$click=Ye,_(De,(()=>{var He=ze(()=>!!de());return()=>He()?v("git.deselectAll"):v("git.selectAll")})()),Z(()=>De.disabled=L()||t().length===0),De}}),be),_(be,(()=>{var De=ze(()=>g()==="agent");return()=>De()?v("git.agentScope",{total:t().length}):v("git.fileCount",{selected:r().size,total:t().length})})()),Re.$$click=()=>{B(!0),P(!0)},_(Re,(()=>{var De=ze(()=>d()==="discard"||h()==="discard");return()=>De()?v("git.discarding"):v("git.discard")})()),at.$$click=()=>wn(),_(at,(()=>{var De=ze(()=>d()==="commit"||h()==="commit");return()=>De()?v("git.committing"):v("git.commit")})()),Z(De=>{var He=!Oe(),je=!ke();return He!==De.e&&(Re.disabled=De.e=He),je!==De.t&&(at.disabled=De.t=je),De},{e:void 0,t:void 0}),K}})},get children(){return[m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return[(()=>{var K=lE(),V=K.firstChild,ae=V.nextSibling;return K.$$click=()=>{O(""),x(!0)},_(K,m(is,{size:16,class:"shrink-0 text-muted-foreground","aria-hidden":"true"}),V),_(V,()=>H()?.current??v("git.branch")),_(ae,(()=>{var be=ze(()=>d()==="checkout");return()=>be()?v("common.loading"):v("git.switchBranch")})()),Z(()=>K.disabled=L()||H.loading),K})(),m(M,{get when(){return g()==="manual"},get fallback(){return m(Tt,{get title(){return v("git.agentModeHint")}})},get children(){return m(M,{get when(){return t().length>0},get fallback(){return m(Tt,{get title(){return v("git.empty")}})},get children(){return[(()=>{var K=dE();return _(K,m(Ke,{get each(){return t()},children:V=>(()=>{var ae=xE(),be=ae.firstChild,Re=be.firstChild,at=be.nextSibling,De=at.firstChild,He=De.nextSibling;return be.$$click=()=>Ce(V.path),_(Re,m(M,{get when(){return r().has(V.path)},get children(){return m(Bo,{size:14,"aria-hidden":"true"})}})),at.$$click=()=>s(je=>je===V.path?null:V.path),_(De,()=>V.status),_(He,()=>V.path),Z(je=>{var dt=r().has(V.path),xt=V.path,zt=L(),qt=Xe("flex h-5 w-5 items-center justify-center rounded border",r().has(V.path)?"border-primary bg-primary text-primary-foreground":"border-border"),Ct=Xe("flex min-w-0 flex-1 items-center gap-2 py-3 pr-4 text-left",o()===V.path&&"bg-accent"),gn=Xe("w-6 shrink-0 text-center text-xs font-bold",Jv(V.status));return dt!==je.e&&te(be,"aria-checked",je.e=dt),xt!==je.t&&te(be,"aria-label",je.t=xt),zt!==je.a&&(be.disabled=je.a=zt),qt!==je.o&&Le(Re,je.o=qt),Ct!==je.i&&Le(at,je.i=Ct),gn!==je.n&&Le(De,je.n=gn),je},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),ae})()})),Z(()=>Le(K,Xe("scroll-y min-h-0 divide-y-[0.5px] divide-border",o()?"max-h-[38dvh] shrink-0":"flex-1"))),K})(),m(M,{get when(){return o()},children:K=>(()=>{var V=yE(),ae=V.firstChild,be=ae.firstChild;return _(be,K),_(ae,m(M,{get when(){return W()?.truncated},get children(){var Re=_E();return _(Re,()=>v("git.diffTruncated")),Re}}),null),_(V,m(RE,{get path(){return K()},get patch(){return W()?.patch??""},get binary(){return W()?.binary??!1},get loading(){return W.loading},get error(){return ze(()=>!!W.error)()?W.error.message:null}}),null),V})()})]}})}})]}}),m(Un,{get open(){return F()},get description(){return ze(()=>!!z())()?ze(()=>g()==="agent")()?v("git.discardAllHint"):v("git.discardHint"):void 0},get items(){return St()},onClose:()=>{P(!1),B(!1)}}),m(Pn,{get open(){return y()},get title(){return v("git.switchBranch")},onClose:()=>x(!1),get children(){return[m(Gu,{get value(){return C()},onInput:O}),m(M,{get when(){return ie().length>0},get fallback(){return(()=>{var K=ju();return _(K,()=>v("git.noBranches")),K})()},get children(){var K=Hu();return _(K,m(Ke,{get each(){return ie()},children:V=>(()=>{var ae=vE(),be=ae.firstChild,Re=be.firstChild;return be.$$click=()=>void Hn(V),_(Re,V),_(be,m(M,{get when(){return V===H()?.current},get children(){return m(Bo,{size:16,class:"shrink-0 text-primary","aria-hidden":"true"})}}),null),Z(()=>be.disabled=L()||V===H()?.current),ae})()})),K}})]}}),m(Pn,{get open(){return E()},get title(){return v("git.mergeBranch")},onClose:()=>w(!1),get children(){return[m(Gu,{get value(){return $()},onInput:A}),m(M,{get when(){return he().length>0},get fallback(){return(()=>{var K=ju();return _(K,()=>v("git.noBranches")),K})()},get children(){var K=Hu();return _(K,m(Ke,{get each(){return he()},children:V=>(()=>{var ae=wE(),be=ae.firstChild;return be.$$click=()=>j(V),_(be,V),_(ae,m(M,{get when(){return I()===V},get children(){var Re=EE();return Re.$$click=()=>void Sn(V),_(Re,(()=>{var at=ze(()=>d()==="merge");return()=>at()?v("git.merging"):v("git.mergeAction")})()),Z(()=>Re.disabled=L()),Re}}),null),Z(Re=>{var at=Xe("flex items-center gap-2",I()===V&&"bg-accent"),De=V===H()?.current,He=V===H()?.current?v("git.mergeSelfHint"):V;return at!==Re.e&&Le(ae,Re.e=at),De!==Re.t&&(be.disabled=Re.t=De),He!==Re.a&&te(be,"title",Re.a=He),Re},{e:void 0,t:void 0,a:void 0}),ae})()})),K}})]}})]}})},Gu=e=>(()=>{var t=kE();return t.$$input=n=>e.onInput(n.currentTarget.value),te(t,"spellcheck",!1),Z(()=>te(t,"placeholder",v("git.branchFilterPlaceholder"))),Z(()=>t.value=e.value),t})(),RE=e=>{const t=ge(()=>uE(e.patch)),n=ge(()=>t().some(i=>i.chunks.length>0)),r=ge(()=>sE(e.path));return m(M,{get when(){return!e.loading},get fallback(){return(()=>{var i=No();return _(i,()=>v("git.diffLoading")),i})()},get children(){return m(M,{get when(){return!e.error},get fallback(){return(()=>{var i=SE();return _(i,()=>e.error),i})()},get children(){return m(M,{get when(){return!e.binary},get fallback(){return(()=>{var i=No();return _(i,()=>v("git.binaryFile")),i})()},get children(){return m(M,{get when(){return n()},get fallback(){return(()=>{var i=No();return _(i,()=>v("git.diffEmpty")),i})()},get children(){return m(Ke,{get each(){return t()},children:i=>m(Ke,{get each(){return i.chunks},children:o=>(()=>{var s=CE(),a=s.firstChild;return _(a,()=>o.header),_(s,m(Ke,{get each(){return o.rows},children:u=>{const c=u.tone==="add"?"bg-success/10":u.tone==="del"?"bg-destructive/10":"",l=u.tone==="add"?"text-success":u.tone==="del"?"text-destructive":"text-muted-foreground",d=aE(u.code,r());return(()=>{var p=AE(),g=p.firstChild,f=g.nextSibling,h=f.nextSibling,b=h.firstChild;return Le(p,`flex font-mono text-[11px] leading-snug ${c}`),_(g,()=>u.oldLn),_(f,()=>u.newLn),Le(b,`select-none ${l}`),_(b,()=>u.marker),_(h,m(M,{when:d,get fallback(){return(()=>{var y=TE();return _(y,()=>u.code),y})()},children:y=>(()=>{var x=NE();return Z(()=>x.innerHTML=y()),x})()}),null),p})()}}),null),s})()})})}})}})}})}})};qe(["click","input"]);const DE=()=>{const e=pr(),t=ht(),[n]=nt(()=>{const r=_e();return r?[r,e.id]:null},([r,i])=>ue.getSpec(r,i));return m(ld,{get title(){return e.id},onBack:()=>t(`/specs/${encodeURIComponent(e.id)}`),specId:()=>e.id,initialMessage:()=>Dm(e.id,n()?.frontmatter.summary)})},OE="yorz:new-spec-draft:";function $E(e){return e==="feat"||e==="refct"||e==="fix"}function vs(e){return`${OE}${e}`}function IE(e){if(!e||typeof window>"u")return{};try{const t=window.localStorage.getItem(vs(e));if(!t)return{};const n=JSON.parse(t);return{content:typeof n.content=="string"?n.content:void 0,type:$E(n.type)?n.type:void 0,useWorktree:typeof n.useWorktree=="boolean"?n.useWorktree:void 0}}catch{return{}}}function ME(e,t){if(!(!e||typeof window>"u"))try{const n=t.content.trim().length>0||t.type!=="feat"||t.useWorktree!==!1,r=vs(e);if(!n){window.localStorage.removeItem(r);return}window.localStorage.setItem(r,JSON.stringify(t))}catch{}}function Wu(e){return JSON.stringify(e)}function LE(e){if(!(!e||typeof window>"u"))try{window.localStorage.removeItem(vs(e))}catch{}}function FE(e){let t=new Set,n=!1;return{setBaseline(r){t=new Set(r),n=!1},async poll(){if(!n)try{const i=(await e.listSpecs()).find(o=>!t.has(o.id));if(!i||n)return;n=!0,e.onFound(i.id)}catch{}},found:()=>n}}var PE=N('<label class="flex h-16 w-24 items-center justify-center rounded border border-dashed border-border text-xl text-muted-foreground active:bg-accent">+<input type=file hidden multiple>'),BE=N('<p class="mt-1.5 text-xs text-destructive">'),UE=N('<p class="text-sm text-destructive">'),zE=N('<form class=space-y-5><fieldset><legend class="mb-2 text-xs text-muted-foreground"></legend><div class="flex gap-2"role=radiogroup></div><p class="mt-1.5 text-xs text-muted-foreground"></p></fieldset><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span></label><fieldset><legend class="mb-2 text-xs text-muted-foreground"></legend><div class="flex flex-wrap items-center gap-2"></div></fieldset><button type=submit class="flex min-h-12 w-full items-center justify-center rounded-lg bg-primary text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">'),qE=N("<button type=button role=radio>"),HE=N('<img class="h-16 w-24 rounded border object-cover">'),jE=N('<div class=relative><button type=button class="absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full border bg-background text-muted-foreground">'),KE=N('<div class="flex h-16 w-24 items-center justify-center rounded border bg-muted px-1 text-[10px] text-muted-foreground"><span class="truncate-start block w-full">');const Vu=[{value:"feat",labelKey:"newSpec.typeFeat",hintKey:"newSpec.typeFeatHint"},{value:"refct",labelKey:"newSpec.typeRefct",hintKey:"newSpec.typeRefctHint"},{value:"fix",labelKey:"newSpec.typeFix",hintKey:"newSpec.typeFixHint"}],GE=5,WE=()=>{const e=ht(),t=()=>_e()??"",[n,r]=G("feat"),[i,o]=G(""),[s,a]=G(!1),[u,c]=G(null),l=kl({projectId:t,labels:Sl()});let d=null,p=null,g=!1,f="";Me(()=>{d?.(),p?.()}),Ae(Qr(t,y=>{g=!0;const x=IE(y);o(x.content??""),r(x.type??"feat"),g=!1})),Ae(()=>{if(g||s())return;const y={content:i(),type:n(),useWorktree:!1};Wu(y)!==f&&(f="",ME(t(),y))});const h=FE({listSpecs:()=>ue.listSpecs(t()),onFound:y=>{d?.(),d=null,p?.(),p=null,e(`/specs/${encodeURIComponent(y)}`,{replace:!0})}});async function b(y){if(y.preventDefault(),s())return;c(null);const x=i().trim();if(x.length<GE){c(v("newSpec.requirementTooShort"));return}if(l.attachments().some(E=>E.status==="failed")){c(v("chat.attachFailed"));return}if(l.hasPending()){c(v("chat.attachUploading"));return}a(!0);try{const E=t();f=Wu({content:x,type:n(),useWorktree:!1}),LE(E);const w=await ue.listSpecs(E);h.setBaseline(w.map(A=>A.id));const C={type:n(),requirement:x},O=l.draftId();O&&(C.draftId=O);const $=await ue.createSpec(E,C);"draft"in $&&$.draft?(we(v("newSpec.drafting")),p=oi(E,$.sessionId,{onEvent:A=>{A.type==="error"&&(a(!1),c(A.message||v("newSpec.createFailed")),p?.(),p=null)}}),d=cs(E,()=>void h.poll()),h.poll()):"id"in $&&e(`/specs/${encodeURIComponent($.id)}`,{replace:!0})}catch(E){c(E.message||v("newSpec.createFailed")),a(!1)}}return m(yt,{get title(){return v("newSpec.title")},onBack:()=>e("/specs"),get children(){return m(M,{get when(){return t()},get fallback(){return m(Pt,{})},get children(){var y=zE(),x=y.firstChild,E=x.firstChild,w=E.nextSibling,C=w.nextSibling,O=x.nextSibling,$=O.firstChild,A=O.nextSibling,I=A.firstChild,j=I.nextSibling,F=A.nextSibling;return y.addEventListener("submit",P=>void b(P)),_(E,()=>v("newSpec.type")),_(w,m(Ke,{each:Vu,children:P=>(()=>{var z=qE();return z.$$click=()=>r(P.value),_(z,()=>v(P.labelKey)),Z(B=>{var T=n()===P.value,D=Xe("min-h-11 flex-1 rounded-lg border text-sm active:opacity-80",n()===P.value?"border-primary bg-primary/10 font-medium":"border-border bg-background");return T!==B.e&&te(z,"aria-checked",B.e=T),D!==B.t&&Le(z,B.t=D),B},{e:void 0,t:void 0}),z})()})),_(C,()=>v(Vu.find(P=>P.value===n())?.hintKey??"newSpec.typeFeatHint")),_($,()=>v("newSpec.requirement")),_(O,m(cd,{get projectId(){return t()},rows:8,class:"w-full resize-none rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary",get placeholder(){return v("newSpec.requirementHint")},get value(){return i()},onValueChange:o}),null),_(I,()=>v("newSpec.attachments")),_(j,m(Ke,{get each(){return l.attachments()},children:P=>(()=>{var z=jE(),B=z.firstChild;return _(z,m(M,{get when(){return P.previewUrl},get fallback(){return(()=>{var T=KE(),D=T.firstChild;return _(D,()=>P.name),T})()},get children(){var T=HE();return Z(D=>{var X=P.previewUrl,pe=P.name;return X!==D.e&&te(T,"src",D.e=X),pe!==D.t&&te(T,"alt",D.t=pe),D},{e:void 0,t:void 0}),T}}),B),B.$$click=()=>void l.removeAttachment(P.id),_(B,m(vn,{size:12,"aria-hidden":"true"})),Z(()=>te(B,"aria-label",v("common.close"))),z})()}),null),_(j,m(M,{get when(){return l.count()<Jn},get children(){var P=PE(),z=P.firstChild,B=z.nextSibling;return B.addEventListener("change",T=>void l.onFileInputChange(T)),te(B,"accept",wl),P}}),null),_(A,m(M,{get when(){return l.error()},get children(){var P=BE();return _(P,()=>l.error()),P}}),null),_(y,m(M,{get when(){return u()},get children(){var P=UE();return _(P,u),P}}),F),_(F,(()=>{var P=ze(()=>!!s());return()=>P()?v("newSpec.creating"):v("newSpec.create")})()),Z(()=>F.disabled=s()),y}})}})};qe(["click"]);function dd(e,t,n){const r=Math.max(0,(t??n)-e),i=Math.floor(r/1e3),o=Math.floor(i/3600),s=Math.floor(i%3600/60),a=i%60,u=c=>String(c).padStart(2,"0");return o>0?`${o}:${u(s)}:${u(a)}`:`${s}:${u(a)}`}var VE=N('<section class=mb-6><h2 class="mb-2 px-4 text-sm font-medium uppercase tracking-wide text-muted-foreground"></h2><div class="divide-y-[0.5px] divide-border border-y border-border bg-card">'),ZE=N('<button type=button class="flex w-full items-center gap-3 px-4 py-3 text-left active:bg-accent"><span class="min-w-0 flex-1"><span class="block truncate"></span><span class="block truncate text-sm text-muted-foreground">'),YE=N('<p class="px-4 py-4 text-center text-sm text-muted-foreground">'),XE=N("<div class=py-4>"),QE=N('<div class="flex items-center gap-2 px-4 py-2.5"><button type=button class="min-w-0 flex-1 text-left active:opacity-60"><span class="block truncate text-sm"></span><span class="mt-0.5 flex items-center gap-2 text-muted-foreground"><time></time><span>·</span><span class=truncate></span></span></button><span class="flex shrink-0 items-center gap-3"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60"></button><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">');const Zu=e=>(()=>{var t=VE(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.title),_(r,()=>e.children),t})(),Yu=e=>(()=>{var t=ZE(),n=t.firstChild,r=n.firstChild,i=r.nextSibling;return t.$$click=()=>e.onClick(),_(t,m(e.icon,{size:18,class:"shrink-0 text-muted-foreground"}),n),_(r,()=>e.label),_(i,()=>e.desc),_(t,m(Tp,{size:18,class:"shrink-0 text-muted-foreground"}),null),t})(),Xu=e=>(()=>{var t=YE();return _(t,()=>e.label),t})(),JE=()=>{const e=ht(),[t,{refetch:n,mutate:r}]=nt(()=>_e()??void 0,g=>ue.listCommandRuns(g));Ae(()=>{const g=_e();if(!g)return;const f=cl(g,h=>r(h));Me(()=>f())});const[i,o]=G(Date.now()),s=setInterval(()=>o(Date.now()),1e3);Me(()=>clearInterval(s));const a=ge(()=>(t()??[]).filter(g=>g.status==="running")),u=async g=>{const f=_e();if(f)try{await ue.clearCommandRun(f,g.runId),await ue.runCommand(f,g.commandId),we(v("ext.restarted"))}catch(h){we(h instanceof Error?h.message:String(h),"error")}},[c,l]=G(null),d=async g=>{const f=_e();if(l(null),!!f)try{await ue.stopCommandRun(f,g.runId),we(v("ext.stopped"))}catch(h){we(h instanceof Error?h.message:String(h),"error")}},p=()=>{const g=c();return g?[{label:v("ext.stopConfirm"),tone:"destructive",onSelect:()=>void d(g)}]:[]};return m(yt,{get title(){return v("ext.title")},padded:!1,get children(){return[(()=>{var g=XE();return _(g,m(Zu,{get title(){return v("ext.scripts")},get children(){return[m(Yu,{icon:vg,get label(){return v("ext.scripts")},get desc(){return v("ext.scriptsDesc")},onClick:()=>e("/ext/scripts")}),m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(M,{get when(){return!t.loading},get fallback(){return m(Xu,{get label(){return v("common.loading")}})},get children(){return m(M,{get when(){return!t.error},get fallback(){return m(Xt,{get error(){return t.error},onRetry:()=>void n()})},get children(){return m(M,{get when(){return a().length>0},get fallback(){return m(Xu,{get label(){return v("ext.runningEmpty")}})},get children(){return m(Ke,{get each(){return a()},children:f=>(()=>{var h=QE(),b=h.firstChild,y=b.firstChild,x=y.nextSibling,E=x.firstChild,w=E.nextSibling,C=w.nextSibling,O=b.nextSibling,$=O.firstChild,A=$.nextSibling;return b.$$click=()=>e(`/ext/runs/${encodeURIComponent(f.runId)}`),_(y,()=>f.name),_(E,()=>dd(f.startedAt,f.endedAt,i())),_(C,()=>f.cli),$.$$click=()=>void u(f),_($,m(fg,{size:20,"aria-hidden":"true"})),A.$$click=()=>l(f),_(A,m(vn,{size:20,"aria-hidden":"true"})),Z(I=>{var j=v("ext.restart"),F=v("ext.stop");return j!==I.e&&te($,"aria-label",I.e=j),F!==I.t&&te(A,"aria-label",I.t=F),I},{e:void 0,t:void 0}),h})()})}})}})}})}})]}}),null),_(g,m(Zu,{get title(){return v("ext.git")},get children(){return m(Yu,{icon:is,get label(){return v("ext.git")},get desc(){return v("ext.gitDesc")},onClick:()=>e("/ext/git")})}}),null),g})(),m(Un,{get open(){return c()!==null},get title(){return c()?.name},get description(){return v("ext.stopHint")},get items(){return p()},onClose:()=>l(null)})]}})};qe(["click"]);var ew=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),tw=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),nw=N('<span class="shrink-0 text-xs text-success">'),rw=N('<li class="no-callout flex select-none items-center gap-3 px-4 py-3"><span class="min-w-0 flex-1"><span class="block truncate"></span><span class="block truncate font-mono text-sm text-muted-foreground"></span></span><span class="flex shrink-0 items-center gap-3"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60"></button><button type=button class="tap-target flex items-center justify-center text-destructive active:opacity-60">'),iw=N('<div class=space-y-4><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span><input type=text maxlength=120 class="w-full rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary"></label><label class=block><span class="mb-1 block text-xs text-muted-foreground"></span><textarea rows=2 maxlength=2000 autocapitalize=off autocorrect=off class="w-full resize-none rounded-lg border border-border bg-background px-3 py-2 font-mono text-base outline-none focus:border-primary">'),ow=N('<button type=button class="flex min-h-11 w-full items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground active:opacity-80 disabled:opacity-40">');const sw=()=>{const e=ht(),[t,{refetch:n,mutate:r}]=nt(()=>_e()??void 0,f=>ue.listCommands(f)),[i,o]=G([]);Ae(()=>{const f=_e();if(!f)return;ue.listCommandRuns(f).then(o).catch(()=>{});const h=cl(f,b=>o(b));Me(()=>h())});const s=ge(()=>new Set(i().filter(f=>f.status==="running").map(f=>f.commandId))),[a,u]=G(null),[c,l]=G(!1),d=async f=>{const h=_e();if(h)try{const b=await ue.runCommand(h,f.id);e(`/ext/runs/${encodeURIComponent(b.runId)}`)}catch(b){we(b instanceof Error?b.message:v("scripts.runFailed"),"error")}},p=async f=>{const h=_e();if(h){u(null);try{await ue.deleteCommand(h,f.id),r(b=>(b??[]).filter(y=>y.id!==f.id)),we(v("scripts.deleted"))}catch(b){we(b instanceof Error?b.message:String(b),"error")}}},g=()=>{const f=a();return f?[{label:v("scripts.deleteConfirm"),tone:"destructive",onSelect:()=>void p(f)}]:[]};return m(yt,{get title(){return v("scripts.title")},padded:!1,onBack:()=>e("/ext"),get actions(){return(()=>{var f=tw();return f.$$click=()=>l(!0),_(f,m(os,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",v("scripts.add"))),f})()},get children(){return[m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(M,{get when(){return!t.loading},get fallback(){return m(ln,{})},get children(){return m(M,{get when(){return!t.error},get fallback(){return m(Xt,{get error(){return t.error},onRetry:()=>void n()})},get children(){return m(M,{get when(){return(t()??[]).length>0},get fallback(){return m(Tt,{get title(){return v("scripts.empty")},get hint(){return v("scripts.add")}})},get children(){var f=ew();return _(f,m(Ke,{get each(){return t()},children:h=>(()=>{var b=rw(),y=b.firstChild,x=y.firstChild,E=x.nextSibling,w=y.nextSibling,C=w.firstChild,O=C.nextSibling;return _(x,()=>h.name),_(E,()=>h.cli),_(b,m(M,{get when(){return s().has(h.id)},get children(){var $=nw();return _($,()=>v("scripts.running")),$}}),w),C.$$click=()=>void d(h),_(C,m(ig,{size:20,"aria-hidden":"true"})),O.$$click=()=>u(h),_(O,m(kg,{size:20,"aria-hidden":"true"})),Z($=>{var A=v("scripts.run"),I=v("scripts.delete");return A!==$.e&&te(C,"aria-label",$.e=A),I!==$.t&&te(O,"aria-label",$.t=I),$},{e:void 0,t:void 0}),b})()})),f}})}})}})}}),m(Un,{get open(){return a()!==null},get title(){return a()?.name},get description(){return v("scripts.deleteHint")},get items(){return g()},onClose:()=>u(null)}),m(aw,{get open(){return c()},onClose:()=>l(!1),onCreated:f=>{r(h=>[...h??[],f]),l(!1)}})]}})},aw=e=>{const[t,n]=G(""),[r,i]=G(""),[o,s]=G(!1);Ae(()=>{e.open&&(n(""),i(""))});const a=ge(()=>t().trim().length>0&&r().trim().length>0);async function u(){const c=_e();if(!(!c||!a()||o())){s(!0);try{const l=await ue.createCommand(c,{name:t().trim(),cli:r().trim()});we(v("scripts.created")),e.onCreated(l)}catch(l){we(l instanceof Error?l.message:String(l),"error")}finally{s(!1)}}}return m(Pn,{get open(){return e.open},get title(){return v("scripts.addTitle")},get onClose(){return e.onClose},get footer(){return(()=>{var c=ow();return c.$$click=()=>void u(),_(c,()=>v("scripts.submit")),Z(()=>c.disabled=o()||!a()),c})()},get children(){var c=iw(),l=c.firstChild,d=l.firstChild,p=d.nextSibling,g=l.nextSibling,f=g.firstChild,h=f.nextSibling;return _(d,()=>v("scripts.name")),p.$$input=b=>n(b.currentTarget.value),_(f,()=>v("scripts.cli")),h.$$input=b=>i(b.currentTarget.value),te(h,"spellcheck",!1),Z(b=>{var y=v("scripts.namePlaceholder"),x=v("scripts.cliPlaceholder");return y!==b.e&&te(p,"placeholder",b.e=y),x!==b.t&&te(h,"placeholder",b.t=x),b},{e:void 0,t:void 0}),Z(()=>p.value=t()),Z(()=>h.value=r()),c}})};qe(["click","input"]);function Qu(){return{text:"",nextOffset:0,truncated:!1}}function uw(e){return{text:e.text,nextOffset:e.offset+Zo(e.text),truncated:e.truncated}}function cw(e,t){return t.offset===e.nextOffset?{state:{text:e.text+t.chunk,nextOffset:e.nextOffset+Zo(t.chunk),truncated:e.truncated},needsRefetch:!1}:t.offset+Zo(t.chunk)<=e.nextOffset?{state:e,needsRefetch:!1}:{state:e,needsRefetch:!0}}function Ju(e,t){return e.text.length<=t?e:{text:e.text.slice(e.text.length-t),nextOffset:e.nextOffset,truncated:!0}}function Zo(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e).length:e.length}const lw=80,ec=4e5;function dw(e){const[t,{mutate:n}]=nt(()=>[e.projectId(),e.runId()],async([x,E])=>x&&E?ue.getCommandRun(x,E):null),[r,i]=G(Qu()),[o,s]=G(null),[a,u]=G(!1),[c,l]=G(Date.now());let d=null,p=null,g=!1;const f=setInterval(()=>l(Date.now()),1e3);Me(()=>clearInterval(f)),Me(()=>{p!==null&&window.clearTimeout(p)});function h(x){d=Ju(x,ec),p===null&&(p=window.setTimeout(()=>{p=null,d&&(i(d),d=null,e.onFlush?.())},lw))}async function b(){const x=e.projectId(),E=e.runId();if(!(!x||!E||g)){g=!0;try{const w=await ue.readCommandOutput(x,E),C=Ju(uw(w),ec);d=null,i(C),s(null),e.onReset?.()}catch(w){s(w.message)}finally{g=!1}}}Ae(()=>{const x=e.projectId(),E=e.runId();if(!x||!E)return;i(Qu()),b();const w=Yh(x,E,{onOutput:C=>{const O=d??r(),$=cw(O,C);$.needsRefetch?b():h($.state)},onRun:C=>n(C),onError:C=>s(C)});Me(w)});async function y(){const x=e.projectId(),E=t();if(!x||!E)return{ok:!1};u(!0);try{const w=await ue.stopCommandRun(x,E.runId);return n(w.run),{ok:!0}}catch(w){return{ok:!1,error:w.message}}finally{u(!1)}}return{run:t,text:()=>r().text,truncated:()=>r().truncated,loadError:o,stopping:a,now:c,reload:b,stop:y}}var fw=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),pw=N('<span class="text-xs text-muted-foreground">'),gw=N('<div class="border-b border-border bg-card px-4 py-2.5"><div class="flex items-center gap-2"><span></span><time class="text-xs text-muted-foreground"></time></div><p class="mt-1 truncate font-mono text-xs text-muted-foreground">'),hw=N('<p class="border-b border-border px-4 py-2 text-xs text-muted-foreground">'),mw=N('<p class="border-b border-border px-4 py-2 text-xs text-destructive">'),bw=N('<pre class="m-0 whitespace-pre-wrap break-all px-4 py-3 font-mono text-xs leading-snug">');const xw=160,_w={running:"text-success",exited:"text-muted-foreground",killed:"text-warning",failed:"text-destructive"},yw={running:"runOutput.statusRunning",exited:"runOutput.statusExited",killed:"runOutput.statusKilled",failed:"runOutput.statusFailed"},vw=()=>{const e=ht(),t=pr();let n,r=!0;const i=()=>{n&&(n.scrollTop=n.scrollHeight)},o=dw({projectId:()=>_e()??void 0,runId:()=>t.runId,onFlush:()=>{r&&i()},onReset:i}),[s,a]=G(!1),[u,c]=G(!1),l=()=>{a(!1),c(!1)},d=async()=>{l();const f=await o.stop();f.ok?we(v("runOutput.stopped")):f.error&&we(f.error,"error")},p=async f=>{l();const h=await si(f);we(v(h?"runOutput.copied":"runOutput.copyFailed"),h?"default":"error")},g=()=>{const f=o.run();if(!f)return[];if(u())return[{label:v("runOutput.stopConfirm"),tone:"destructive",onSelect:()=>void d()}];const h=[];return f.status==="running"&&h.push({label:v("runOutput.stop"),tone:"destructive",onSelect:()=>c(!0)}),h.push({label:v("runOutput.copyOutput"),onSelect:()=>void p(o.text())}),h.push({label:v("runOutput.copyPath"),onSelect:()=>void p(f.logFile)}),h};return m(yt,{get title(){return o.run()?.name||v("runOutput.title")},padded:!1,onBack:()=>e("/ext"),scrollRef:f=>n=f,onScroll:()=>{n&&(r=n.scrollHeight-n.scrollTop-n.clientHeight<=xw)},get actions(){return m(M,{get when(){return o.run()},get children(){var f=fw();return f.$$click=()=>{c(!1),a(!0)},_(f,m(or,{size:20,"aria-hidden":"true"})),Z(()=>te(f,"aria-label",v("specDetail.more"))),f}})},get children(){return[m(M,{get when(){return o.run()},get fallback(){return m(Tt,{get title(){return o.loadError()??v("common.loading")}})},children:f=>[(()=>{var h=gw(),b=h.firstChild,y=b.firstChild,x=y.nextSibling,E=b.nextSibling;return _(y,()=>v(yw[f().status])),_(x,()=>dd(f().startedAt,f().endedAt,o.now())),_(b,m(M,{get when(){return f().status!=="running"},get children(){var w=pw();return _(w,(()=>{var C=ze(()=>!!f().signal);return()=>C()?`${v("runOutput.signal")} ${f().signal}`:`${v("runOutput.exitCode")} ${f().exitCode??"—"}`})()),w}}),null),_(E,()=>f().cli),Z(()=>Le(y,`shrink-0 text-xs font-medium ${_w[f().status]}`)),h})(),m(M,{get when(){return o.truncated()},get children(){var h=hw();return _(h,()=>v("runOutput.truncated")),h}}),m(M,{get when(){return o.loadError()},get children(){var h=mw();return _(h,()=>o.loadError()),h}}),(()=>{var h=bw();return _(h,()=>o.text()||v("runOutput.outputEmpty")),h})()]}),m(Un,{get open(){return s()},get title(){return o.run()?.name},get description(){return ze(()=>!!u())()?v("runOutput.stopHint"):void 0},get items(){return g()},onClose:l})]}})};qe(["click"]);const Ew=()=>{const e=ht();return m(ld,{get title(){return v("git.title")},onBack:()=>e("/ext")})};function fd(e){if(!e.worktree)return e.name;const t=e.worktree.mainPath.split("/").filter(Boolean).pop()??e.worktree.mainPath,n=e.worktree.cleanSlug??e.worktree.branch.replace(/^wt\//,"");return`${t} · ${n}`}var ww=N('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),kw=N('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Sw=N('<li class="flex items-center pr-4 active:bg-accent"><button type=button class="flex min-w-0 flex-1 items-center gap-3 py-3 pl-4 text-left"><span class="flex w-5 shrink-0 justify-center"></span><span class="min-w-0 flex-1"><span class="block truncate"></span><span class="truncate-start mt-0.5 block text-sm text-muted-foreground"></span></span></button><button type=button class="tap-target flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60">');const Cw=()=>{const e=ht(),t=n=>{n.id!==_e()&&(jo(n.id),we(v("projects.switched")))};return m(yt,{get title(){return v("projects.title")},padded:!1,get actions(){return(()=>{var n=kw();return n.$$click=()=>e("/settings/global"),_(n,m(or,{size:20,"aria-hidden":"true"})),Z(()=>te(n,"aria-label",v("projects.globalSettings"))),n})()},get children(){return m(M,{get when(){return!$n.loading},get fallback(){return m(ln,{})},get children(){return m(M,{get when(){return!$n.error},get fallback(){return m(Xt,{get error(){return $n.error},onRetry:()=>void ll()})},get children(){return m(M,{get when(){return($n()??[]).length>0},get fallback(){return m(Tt,{get title(){return v("common.emptyProjects")},get hint(){return v("common.emptyProjectsHint")}})},get children(){var n=ww();return _(n,m(Ke,{get each(){return $n()},children:r=>(()=>{var i=Sw(),o=i.firstChild,s=o.firstChild,a=s.nextSibling,u=a.firstChild,c=u.nextSibling,l=o.nextSibling;return o.$$click=()=>t(r),_(s,m(M,{get when(){return r.id===_e()},get children(){return m(Bo,{size:18,class:"text-primary","aria-hidden":"true"})}})),_(u,()=>fd(r)),_(c,()=>r.path),l.$$click=d=>{d.stopPropagation(),jo(r.id),e("/settings/project")},_(l,m(or,{size:18,"aria-hidden":"true"})),Z(d=>{var p=r.id===_e()?"true":void 0,g=v("projects.projectSettings");return p!==d.e&&te(o,"aria-current",d.e=p),g!==d.t&&te(l,"aria-label",d.t=g),d},{e:void 0,t:void 0}),i})()})),n}})}})}})}})};qe(["click"]);var Aw=N('<section class=mb-6><h2 class="mb-2 px-1 text-xs font-medium uppercase tracking-wide text-muted-foreground"></h2><div class="divide-y-[0.5px] divide-border overflow-hidden rounded-lg border border-border bg-card">'),Tw=N('<div class="flex flex-wrap items-center justify-between gap-x-3 gap-y-2 px-4 py-3"><span class="shrink-0 text-sm"></span><div class="flex max-w-full shrink-0 flex-wrap overflow-hidden rounded-md border border-border"role=group>'),Nw=N("<button type=button>"),Rw=N('<label class="flex items-center justify-between gap-3 px-4 py-3"><span class="min-w-0 flex-1 text-sm"></span><input type=checkbox class="peer sr-only"><span aria-hidden=true><span>');const Zn=e=>(()=>{var t=Aw(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.title),_(r,()=>e.children),t})();function Yn(e){return(()=>{var t=Tw(),n=t.firstChild,r=n.nextSibling;return _(n,()=>e.label),_(r,m(Ke,{get each(){return e.options},children:i=>(()=>{var o=Nw();return o.$$click=()=>e.onChange(i.value),_(o,()=>i.label),Z(s=>{var a=Xe("min-h-9 px-3 text-xs transition-colors",e.value()===i.value?"bg-primary-soft text-foreground":"bg-background text-muted-foreground"),u=e.value()===i.value;return a!==s.e&&Le(o,s.e=a),u!==s.t&&te(o,"aria-pressed",s.t=u),s},{e:void 0,t:void 0}),o})()})),Z(()=>te(r,"aria-label",e.label)),t})()}const tc=e=>(()=>{var t=Rw(),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,o=i.firstChild;return _(n,()=>e.label),r.addEventListener("change",s=>e.onChange(s.currentTarget.checked)),Z(s=>{var a=Xe("relative h-6 w-10 shrink-0 rounded-full transition-colors peer-focus-visible:ring-[1.5px] peer-focus-visible:ring-ring",e.checked()?"bg-primary":"bg-muted"),u=Xe("absolute top-0.5 size-5 rounded-full bg-background shadow transition-[left]",e.checked()?"left-[1.125rem]":"left-0.5");return a!==s.e&&Le(i,s.e=a),u!==s.t&&Le(o,s.t=u),s},{e:void 0,t:void 0}),Z(()=>r.checked=e.checked()),t})();qe(["click"]);var nc=N('<div class="flex items-center justify-between px-4 py-3 text-sm"><span></span><span class=text-muted-foreground>');const Dw=[{value:"claude",label:"Claude"},{value:"codex",label:"Codex"},{value:"opencode",label:"opencode"}],Ow=[{value:"zh-CN",label:"中文"},{value:"en",label:"English"}],$w=()=>{const e=ht(),{lng:t,changeLanguage:n}=ss(),[r,{refetch:i,mutate:o}]=nt(()=>ue.getGlobalConfig()),s=async a=>{const u=r();o(a);try{const c=await ue.updateGlobalConfig(a);o(c.config)}catch(c){o(u),we(c instanceof Error?c.message:String(c),"error")}};return m(yt,{get title(){return v("globalSettings.title")},onBack:()=>e("/projects"),get children(){return m(M,{get when(){return!r.loading},get fallback(){return m(ln,{})},get children(){return m(M,{get when(){return!r.error},get fallback(){return m(Xt,{get error(){return r.error},onRetry:()=>void i()})},get children(){return m(M,{get when(){return r()},children:a=>[m(Zn,{get title(){return v("globalSettings.agent")},get children(){return m(Yn,{get label(){return v("globalSettings.defaultKind")},options:Dw,value:()=>a().agent.defaultKind,onChange:u=>void s({...a(),agent:{...a().agent,defaultKind:u}})})}}),m(Zn,{get title(){return v("globalSettings.notifications")},get children(){return[m(tc,{get label(){return v("globalSettings.sessionEndBanner")},checked:()=>a().notifications.sessionEnd.banner,onChange:u=>void s({...a(),notifications:{...a().notifications,sessionEnd:{...a().notifications.sessionEnd,banner:u}}})}),m(tc,{get label(){return v("globalSettings.sessionEndSound")},checked:()=>a().notifications.sessionEnd.sound,onChange:u=>void s({...a(),notifications:{...a().notifications,sessionEnd:{...a().notifications.sessionEnd,sound:u}}})})]}}),m(Zn,{get title(){return v("globalSettings.appearance")},get children(){return[m(Yn,{get label(){return v("globalSettings.themeMode")},get options(){return $c.map(u=>({value:u,label:v(`theme.${u}`)}))},value:Hr,onChange:U0}),m(Yn,{get label(){return v("globalSettings.themeName")},get options(){return Ic.map(u=>({value:u,label:v(`theme.${u}`)}))},value:jr,onChange:z0}),m(Yn,{get label(){return v("globalSettings.language")},options:Ow,value:()=>t().startsWith("zh")?"zh-CN":"en",onChange:u=>n(u)})]}}),m(Zn,{get title(){return v("globalSettings.about")},get children(){return[(()=>{var u=nc(),c=u.firstChild,l=c.nextSibling;return _(c,()=>v("globalSettings.version")),_(l,"0.9.3"),u})(),(()=>{var u=nc(),c=u.firstChild,l=c.nextSibling;return _(c,()=>v("globalSettings.installState")),_(l,(()=>{var d=ze(()=>!!tp());return()=>d()?v("globalSettings.installed"):v("globalSettings.browser")})()),u})()]}})]})}})}})}})},Iw=()=>[{value:"inherit",label:v("projectSettings.inherit")},{value:"claude",label:"Claude"},{value:"codex",label:"Codex"},{value:"opencode",label:"opencode"}],Mw=()=>{const e=ht(),[t,{refetch:n,mutate:r}]=nt(()=>_e()??void 0,a=>ue.getProjectConfig(a)),i=ge(()=>{const a=pm();return a?fd(a):v("projectSettings.title")}),o=async a=>{const u=_e(),c=t();if(!(!u||!c)){r({...c,agent:a});try{const l=await ue.updateProjectConfig(u,{agent:a,specsDir:c.specsDir});r(l.config)}catch(l){r(c),we(l instanceof Error?l.message:String(l),"error")}}},s=a=>void o({kind:a});return m(yt,{get title(){return i()},onBack:()=>e("/projects"),get children(){return m(M,{get when(){return _e()},get fallback(){return m(Pt,{})},get children(){return m(M,{get when(){return!t.loading},get fallback(){return m(ln,{})},get children(){return m(M,{get when(){return!t.error},get fallback(){return m(Xt,{get error(){return t.error},onRetry:()=>void n()})},get children(){return m(M,{get when(){return t()},children:a=>m(Zn,{get title(){return v("projectSettings.agent")},get children(){return m(Yn,{get label(){return v("projectSettings.kind")},get options(){return Iw()},value:()=>a().agent.kind,onChange:s})}})})}})}})}})}})},rc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ic=Gc,Lw=(e,t)=>n=>{var r;if(t?.variants==null)return ic(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(c=>{const l=n?.[c],d=o?.[c];if(l===null)return null;const p=rc(l)||rc(d);return i[c][p]}),a=n&&Object.entries(n).reduce((c,l)=>{let[d,p]=l;return p===void 0||(c[d]=p),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,l)=>{let{class:d,className:p,...g}=l;return Object.entries(g).every(f=>{let[h,b]=f;return Array.isArray(b)?b.includes({...o,...a}[h]):{...o,...a}[h]===b})?[...c,d,p]:c},[]);return ic(e,s,u,n?.class,n?.className)},Fw=Lw("inline-flex items-center justify-center rounded-md font-medium transition-[color,background-color,box-shadow] focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 select-none touch-manipulation",{variants:{variant:{default:"bg-primary text-primary-foreground shadow active:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm active:bg-destructive/90",outline:"border border-input bg-background shadow-sm active:bg-accent",secondary:"bg-secondary text-secondary-foreground shadow-sm active:bg-secondary/80",ghost:"active:bg-accent active:text-accent-foreground",link:"text-primary underline-offset-4 active:underline"},size:{default:"h-11 px-4 py-2",sm:"h-9 rounded-md px-3 text-sm",lg:"h-12 rounded-md px-8 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}});var Pw=N('<div class="flex flex-col items-center gap-4 py-16"><p class="text-sm text-muted-foreground">');const Bw=()=>m(yt,{get title(){return v("notFound.title")},get children(){var e=Pw(),t=e.firstChild;return _(t,()=>v("notFound.title")),_(e,m(Sc,{href:"/",get class(){return Fw({variant:"outline"})},get children(){return v("notFound.back")}}),null),e}});q0({persistHint:!0});ep();const pd=document.getElementById("app");if(!pd)throw new Error("missing #app root");nf(()=>m(Kf,{root:$h,base:Fo,get children(){return[m(mt,{path:"/",component:Nm}),m(mt,{path:"/specs",component:jm}),m(mt,{path:"/ext",component:JE}),m(mt,{path:"/projects",component:Cw}),m(mt,{path:["/sessions/new","/sessions/:id"],component:fy}),m(mt,{path:"/specs/new",component:WE}),m(mt,{path:"/specs/:id",component:Vv}),m(mt,{path:"/specs/:id/debug",component:Xv}),m(mt,{path:"/specs/:id/git",component:DE}),m(mt,{path:"/ext/scripts",component:sw}),m(mt,{path:"/ext/git",component:Ew}),m(mt,{path:"/ext/runs/:runId",component:vw}),m(mt,{path:"/settings/global",component:$w}),m(mt,{path:"/settings/project",component:Mw}),m(mt,{path:"*",component:Bw})]}}),pd);export{Uc as _,ri as g};
|