@yorz/cli 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-sdk/index.d.ts +4 -3
- package/dist/agent-sdk/index.js +3 -2
- package/dist/cli/index.js +6897 -274
- package/dist/gui/assets/{abnfDiagram-VRR7QNED-D6jGkm-z.js → abnfDiagram-VRR7QNED-Br8A6RUk.js} +1 -1
- package/dist/{gui-mobile/assets/arc-fOfkVV1E.js → gui/assets/arc-BNZF-XYv.js} +1 -1
- package/dist/{gui-mobile/assets/architectureDiagram-ZJ3FMSHR-D8wWOPnv.js → gui/assets/architectureDiagram-ZJ3FMSHR-Dl9THa2L.js} +1 -1
- package/dist/{gui-mobile/assets/blockDiagram-677ZJIJ3-B3dJVlA1.js → gui/assets/blockDiagram-677ZJIJ3-D-2owPWZ.js} +1 -1
- package/dist/gui/assets/{c4Diagram-LMCZKHZV-BGGvE2NS.js → c4Diagram-LMCZKHZV-CpOx6hTg.js} +1 -1
- package/dist/gui/assets/channel-Bf3xgAnb.js +1 -0
- package/dist/gui/assets/{chunk-2Q5K7J3B-7Ln3c0UE.js → chunk-2Q5K7J3B-B40RmE3d.js} +1 -1
- package/dist/gui/assets/{chunk-32BRIVSS-BCKEOVbY.js → chunk-32BRIVSS-BrNJz81X.js} +1 -1
- package/dist/gui/assets/{chunk-5VM5RSS4-DAJQb8ot.js → chunk-5VM5RSS4-CVqumv99.js} +1 -1
- package/dist/{gui-mobile/assets/chunk-EX3LRPZG-DUIxO-Ha.js → gui/assets/chunk-EX3LRPZG-D2K9iqmJ.js} +1 -1
- package/dist/gui/assets/{chunk-JWPE2WC7-DdS0F0Ce.js → chunk-JWPE2WC7-HEpHfS7t.js} +1 -1
- package/dist/gui/assets/{chunk-MOJQB5TN-BZZSKMI0.js → chunk-MOJQB5TN-u0_j3hH3.js} +1 -1
- package/dist/gui/assets/{chunk-RYQCIY6F-B-1EFLDG.js → chunk-RYQCIY6F-DSwSAQnJ.js} +1 -1
- package/dist/gui/assets/{chunk-V7JOEXUC-pJV4CXUK.js → chunk-V7JOEXUC-BNzztD3a.js} +1 -1
- package/dist/gui/assets/{chunk-VR4S4FIN-BOK4dvIO.js → chunk-VR4S4FIN-DizwLX2s.js} +1 -1
- package/dist/gui/assets/{chunk-XXDRQBXY-DHxKMKRx.js → chunk-XXDRQBXY-ngTYtCxj.js} +1 -1
- package/dist/gui/assets/classDiagram-OUVF2IWQ-CEEynI1x.js +1 -0
- package/dist/gui/assets/classDiagram-v2-EOCWNBFH-CEEynI1x.js +1 -0
- package/dist/{gui-mobile/assets/cose-bilkent-JH36ORCC-DrB1Tg4S.js → gui/assets/cose-bilkent-JH36ORCC-OTzs1-hb.js} +1 -1
- package/dist/gui/assets/{cynefin-VYW2F7L2-Dlnaehfc.js → cynefin-VYW2F7L2-DKOvpOnu.js} +1 -1
- package/dist/{gui-mobile/assets/cynefinDiagram-TSTJHNR4-Cou75BrF.js → gui/assets/cynefinDiagram-TSTJHNR4-G2TceZSR.js} +1 -1
- package/dist/gui/assets/{dagre-VKFMJZFB-CHRKHo63.js → dagre-VKFMJZFB-C7bX4NMr.js} +1 -1
- package/dist/gui/assets/{diagram-FQU43EPY-CjOuL948.js → diagram-FQU43EPY-DzZ_uozs.js} +1 -1
- package/dist/{gui-mobile/assets/diagram-G47NLZAW-LlIe5THI.js → gui/assets/diagram-G47NLZAW-CtUanX8u.js} +1 -1
- package/dist/gui/assets/{diagram-NH7WQ7WH-RF4bRWn3.js → diagram-NH7WQ7WH-Cj0b2ASJ.js} +1 -1
- package/dist/{gui-mobile/assets/diagram-OA4YK3LP-Cmys7bA4.js → gui/assets/diagram-OA4YK3LP-wbAJUivR.js} +1 -1
- package/dist/gui/assets/{diagram-WEI45ONY-soBxwLJr.js → diagram-WEI45ONY-8zb4nL1k.js} +1 -1
- package/dist/gui/assets/{ebnfDiagram-CCIWWBDH-w4xQvWu7.js → ebnfDiagram-CCIWWBDH-D22yXTH4.js} +1 -1
- package/dist/{gui-mobile/assets/erDiagram-Q63AITRT-RQSaq-xl.js → gui/assets/erDiagram-Q63AITRT-Ch6MTse3.js} +1 -1
- package/dist/gui/assets/{flowDiagram-23GEKE2U-S6GJBvAm.js → flowDiagram-23GEKE2U-DoWr52n6.js} +1 -1
- package/dist/{gui-mobile/assets/ganttDiagram-NO4QXBWP-B_1hou84.js → gui/assets/ganttDiagram-NO4QXBWP-Bn27EBp5.js} +1 -1
- package/dist/{gui-mobile/assets/gitGraphDiagram-IHSO6WYX-Bntc4YuC.js → gui/assets/gitGraphDiagram-IHSO6WYX-eNrZKJto.js} +1 -1
- package/dist/gui/assets/index-CGJqeBWy.css +1 -0
- package/dist/gui/assets/index-CnBmykN1.js +42 -0
- package/dist/gui/assets/{infoDiagram-FWYZ7A6U-BLoIcrqq.js → infoDiagram-FWYZ7A6U-thYTzFt4.js} +1 -1
- package/dist/gui/assets/{ishikawaDiagram-FXEZZL3T-COS_x7S2.js → ishikawaDiagram-FXEZZL3T-B9wHLiN6.js} +1 -1
- package/dist/{gui-mobile/assets/journeyDiagram-5HDEW3XC-CPzGmOhm.js → gui/assets/journeyDiagram-5HDEW3XC-DtAVTkgO.js} +1 -1
- package/dist/gui/assets/{kanban-definition-HUTT4EX6-B2ZpGDmS.js → kanban-definition-HUTT4EX6-Dz9RiLQ9.js} +1 -1
- package/dist/gui/assets/{linear-Bc2jjJG6.js → linear-CJZ3PkYv.js} +1 -1
- package/dist/{gui-mobile/assets/mermaid.core-DPv8yS1D.js → gui/assets/mermaid.core-ChZsXg3q.js} +4 -4
- package/dist/gui/assets/{mindmap-definition-LN4V7U3C-L9PGMaD8.js → mindmap-definition-LN4V7U3C-Bv4h8NN-.js} +1 -1
- package/dist/gui/assets/{pegDiagram-2B236MQR-Cp_O_2Yl.js → pegDiagram-2B236MQR-CUdmCL7t.js} +1 -1
- package/dist/gui/assets/{pieDiagram-ENE6RG2P-JOeaaIBy.js → pieDiagram-ENE6RG2P-DBGahumA.js} +1 -1
- package/dist/{gui-mobile/assets/quadrantDiagram-ABIIQ3AL--q3CuL0S.js → gui/assets/quadrantDiagram-ABIIQ3AL-RCEsINBH.js} +1 -1
- package/dist/gui/assets/{railroadDiagram-RFXS5EU6-DdsKvVq3.js → railroadDiagram-RFXS5EU6-BTVWIeOh.js} +1 -1
- package/dist/gui/assets/{requirementDiagram-TGXJPOKE-C2e-5gKe.js → requirementDiagram-TGXJPOKE-_ezgAovI.js} +1 -1
- package/dist/{gui-mobile/assets/sankeyDiagram-HTMAVEWB-BkL0YBZM.js → gui/assets/sankeyDiagram-HTMAVEWB-CzBFRwRS.js} +1 -1
- package/dist/{gui-mobile/assets/sequenceDiagram-DBY2YBRQ-RLeQ-NZr.js → gui/assets/sequenceDiagram-DBY2YBRQ-vVRMDvRP.js} +1 -1
- package/dist/gui/assets/{sizeCapture-X5ZJPWSS-BkgyhLhm.js → sizeCapture-X5ZJPWSS-XjYT_qs9.js} +1 -1
- package/dist/{gui-mobile/assets/stateDiagram-2N3HPSRC-B7KwOjk3.js → gui/assets/stateDiagram-2N3HPSRC-BvmUSBj7.js} +1 -1
- package/dist/gui/assets/stateDiagram-v2-6OUMAXLB-DapGdR4p.js +1 -0
- package/dist/{gui-mobile/assets/swimlanes-5IMT3BWC--T6Q0kax.js → gui/assets/swimlanes-5IMT3BWC-Q9EbvB5b.js} +2 -2
- package/dist/gui/assets/swimlanesDiagram-G3AALYLV-DKhxcy5X.js +8 -0
- package/dist/{gui-mobile/assets/timeline-definition-FHXFAJF6-DI_EGe4e.js → gui/assets/timeline-definition-FHXFAJF6-DgbXmUFv.js} +1 -1
- package/dist/gui/assets/{vennDiagram-L72KCM5P-Cm_0jga4.js → vennDiagram-L72KCM5P-HN495Jcc.js} +1 -1
- package/dist/gui/assets/{wardleyDiagram-EHGQE667-BXot5zEw.js → wardleyDiagram-EHGQE667-DO3Kcl1f.js} +1 -1
- package/dist/{gui-mobile/assets/xychartDiagram-FW5EYKEG-BsyRk0pH.js → gui/assets/xychartDiagram-FW5EYKEG-Dkev8MUn.js} +1 -1
- package/dist/gui/index.html +2 -2
- package/dist/gui-mobile/assets/{abnfDiagram-VRR7QNED-ChtWOBep.js → abnfDiagram-VRR7QNED-B8a9bP4Z.js} +1 -1
- package/dist/{gui/assets/arc-B0AlaXMb.js → gui-mobile/assets/arc-DMWvh_U2.js} +1 -1
- package/dist/{gui/assets/architectureDiagram-ZJ3FMSHR-lYOkjnK7.js → gui-mobile/assets/architectureDiagram-ZJ3FMSHR-CriuyKiK.js} +1 -1
- package/dist/{gui/assets/blockDiagram-677ZJIJ3-Cev5zm3W.js → gui-mobile/assets/blockDiagram-677ZJIJ3-C36Osy6t.js} +1 -1
- package/dist/gui-mobile/assets/{c4Diagram-LMCZKHZV-BIKVYi9n.js → c4Diagram-LMCZKHZV-D6F9TAnQ.js} +1 -1
- package/dist/gui-mobile/assets/channel-Pa9JU1-Q.js +1 -0
- package/dist/gui-mobile/assets/{chunk-2Q5K7J3B-DaK59vfz.js → chunk-2Q5K7J3B-DhslPOO5.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-32BRIVSS-B9aY48lV.js → chunk-32BRIVSS-CqWUTC4p.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-5VM5RSS4-CBJCiKzQ.js → chunk-5VM5RSS4-C6hfdixH.js} +1 -1
- package/dist/{gui/assets/chunk-EX3LRPZG-Ci9btN70.js → gui-mobile/assets/chunk-EX3LRPZG-BjIaj32A.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-JWPE2WC7-BjOGY2_Y.js → chunk-JWPE2WC7-CXSE1zoi.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-MOJQB5TN-BkEyo9AE.js → chunk-MOJQB5TN-k7ggc-5H.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-RYQCIY6F-pSJT0TQf.js → chunk-RYQCIY6F-HtP5QefR.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-V7JOEXUC-Cvb9dEtL.js → chunk-V7JOEXUC-CYYuHgUL.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-VR4S4FIN-C_b2s6K7.js → chunk-VR4S4FIN-BpCvkdOv.js} +1 -1
- package/dist/gui-mobile/assets/{chunk-XXDRQBXY-r1Sg_GN9.js → chunk-XXDRQBXY-BpQuZVjD.js} +1 -1
- package/dist/gui-mobile/assets/classDiagram-OUVF2IWQ-D8iVJmba.js +1 -0
- package/dist/gui-mobile/assets/classDiagram-v2-EOCWNBFH-D8iVJmba.js +1 -0
- package/dist/{gui/assets/cose-bilkent-JH36ORCC-BJFtw3LT.js → gui-mobile/assets/cose-bilkent-JH36ORCC-jOz8GIIT.js} +1 -1
- package/dist/gui-mobile/assets/{cynefin-VYW2F7L2-D59B5xxc.js → cynefin-VYW2F7L2-DtByhn4b.js} +1 -1
- package/dist/{gui/assets/cynefinDiagram-TSTJHNR4-b2oJIboT.js → gui-mobile/assets/cynefinDiagram-TSTJHNR4-DwDWb-Ju.js} +1 -1
- package/dist/gui-mobile/assets/{dagre-VKFMJZFB-CAZsA_3p.js → dagre-VKFMJZFB-pNrK4yk3.js} +1 -1
- package/dist/gui-mobile/assets/{diagram-FQU43EPY-B1VZqWBq.js → diagram-FQU43EPY-CdEnsu8F.js} +1 -1
- package/dist/{gui/assets/diagram-G47NLZAW-BLfHcDjU.js → gui-mobile/assets/diagram-G47NLZAW-BLuzoAuE.js} +1 -1
- package/dist/gui-mobile/assets/{diagram-NH7WQ7WH-CKrRUCjZ.js → diagram-NH7WQ7WH-Bpi99f_Z.js} +1 -1
- package/dist/{gui/assets/diagram-OA4YK3LP-CsggOsM1.js → gui-mobile/assets/diagram-OA4YK3LP-C0m0oiST.js} +1 -1
- package/dist/gui-mobile/assets/{diagram-WEI45ONY-lbL-O6_u.js → diagram-WEI45ONY-pdcoGVYg.js} +1 -1
- package/dist/gui-mobile/assets/{ebnfDiagram-CCIWWBDH-BQ2kUIrD.js → ebnfDiagram-CCIWWBDH-DzAqzu-j.js} +1 -1
- package/dist/{gui/assets/erDiagram-Q63AITRT-CiRMCy0t.js → gui-mobile/assets/erDiagram-Q63AITRT-CKbqKY5l.js} +1 -1
- package/dist/gui-mobile/assets/{flowDiagram-23GEKE2U-B3xF0bb-.js → flowDiagram-23GEKE2U-CKXhLUH5.js} +1 -1
- package/dist/{gui/assets/ganttDiagram-NO4QXBWP-Cc--Z47l.js → gui-mobile/assets/ganttDiagram-NO4QXBWP-exiET8aZ.js} +1 -1
- package/dist/{gui/assets/gitGraphDiagram-IHSO6WYX-BL9IXeiy.js → gui-mobile/assets/gitGraphDiagram-IHSO6WYX-DLe6IY6p.js} +1 -1
- package/dist/gui-mobile/assets/index-DL76Df2H.js +34 -0
- package/dist/gui-mobile/assets/index-DbWuq34n.css +1 -0
- package/dist/gui-mobile/assets/{infoDiagram-FWYZ7A6U-wVq8Af6M.js → infoDiagram-FWYZ7A6U-B04qIqaC.js} +1 -1
- package/dist/gui-mobile/assets/{ishikawaDiagram-FXEZZL3T-DRoyqq2d.js → ishikawaDiagram-FXEZZL3T-BfUyr0CR.js} +1 -1
- package/dist/{gui/assets/journeyDiagram-5HDEW3XC-BdAjBAfg.js → gui-mobile/assets/journeyDiagram-5HDEW3XC-gmwBMoty.js} +1 -1
- package/dist/gui-mobile/assets/{kanban-definition-HUTT4EX6-B-XbaSk9.js → kanban-definition-HUTT4EX6-D22Q3Up0.js} +1 -1
- package/dist/gui-mobile/assets/{linear-CWuS29Zf.js → linear-DQwTsNSF.js} +1 -1
- package/dist/{gui/assets/mermaid.core-DnFq6ht5.js → gui-mobile/assets/mermaid.core-D8lHksCk.js} +4 -4
- package/dist/gui-mobile/assets/{mindmap-definition-LN4V7U3C-BssTrViW.js → mindmap-definition-LN4V7U3C-DC_KwrL8.js} +1 -1
- package/dist/gui-mobile/assets/{pegDiagram-2B236MQR-CG1RF9PO.js → pegDiagram-2B236MQR-C6j0z0D4.js} +1 -1
- package/dist/gui-mobile/assets/{pieDiagram-ENE6RG2P-DXiL6_Gg.js → pieDiagram-ENE6RG2P-KHzkoE-g.js} +1 -1
- package/dist/{gui/assets/quadrantDiagram-ABIIQ3AL-CoJEZZ3Z.js → gui-mobile/assets/quadrantDiagram-ABIIQ3AL-DNShHbw9.js} +1 -1
- package/dist/gui-mobile/assets/{railroadDiagram-RFXS5EU6-CIYRGuj1.js → railroadDiagram-RFXS5EU6-RvPMC4lU.js} +1 -1
- package/dist/gui-mobile/assets/{requirementDiagram-TGXJPOKE-DQ78r_6c.js → requirementDiagram-TGXJPOKE-Z4MqXF1y.js} +1 -1
- package/dist/{gui/assets/sankeyDiagram-HTMAVEWB-CO1Vty3R.js → gui-mobile/assets/sankeyDiagram-HTMAVEWB-DL9TkB5D.js} +1 -1
- package/dist/{gui/assets/sequenceDiagram-DBY2YBRQ-Dy0-5y0A.js → gui-mobile/assets/sequenceDiagram-DBY2YBRQ-ejhB58rm.js} +1 -1
- package/dist/gui-mobile/assets/{sizeCapture-X5ZJPWSS-CPQtIaYS.js → sizeCapture-X5ZJPWSS-fAXplUDg.js} +1 -1
- package/dist/{gui/assets/stateDiagram-2N3HPSRC-BJ4KTZso.js → gui-mobile/assets/stateDiagram-2N3HPSRC-DVw54Vpx.js} +1 -1
- package/dist/gui-mobile/assets/stateDiagram-v2-6OUMAXLB-Cq_iPvyn.js +1 -0
- package/dist/{gui/assets/swimlanes-5IMT3BWC-Cb0fPcib.js → gui-mobile/assets/swimlanes-5IMT3BWC-BK2b0CK-.js} +2 -2
- package/dist/gui-mobile/assets/swimlanesDiagram-G3AALYLV-KQfs0uk_.js +8 -0
- package/dist/{gui/assets/timeline-definition-FHXFAJF6-kRq9L4-o.js → gui-mobile/assets/timeline-definition-FHXFAJF6-4sNUiJhu.js} +1 -1
- package/dist/gui-mobile/assets/{vennDiagram-L72KCM5P-BC17Rlh6.js → vennDiagram-L72KCM5P-BzbSNpD8.js} +1 -1
- package/dist/gui-mobile/assets/{wardleyDiagram-EHGQE667-88Ya72xv.js → wardleyDiagram-EHGQE667-Ic4j9Roh.js} +1 -1
- package/dist/{gui/assets/xychartDiagram-FW5EYKEG-vVYhUb0Q.js → gui-mobile/assets/xychartDiagram-FW5EYKEG-CE3h4iVU.js} +1 -1
- package/dist/gui-mobile/index.html +2 -2
- package/dist/gui-mobile/sw.js +1 -1
- package/dist/service/agent-sdk/types.d.ts +48 -3
- package/package.json +1 -1
- package/dist/gui/assets/channel-BrmRGdrm.js +0 -1
- package/dist/gui/assets/classDiagram-OUVF2IWQ-D9zopxCj.js +0 -1
- package/dist/gui/assets/classDiagram-v2-EOCWNBFH-D9zopxCj.js +0 -1
- package/dist/gui/assets/index-BkUpHOBt.js +0 -41
- package/dist/gui/assets/index-CMT0wDYi.css +0 -1
- package/dist/gui/assets/stateDiagram-v2-6OUMAXLB-CDeoXb_7.js +0 -1
- package/dist/gui/assets/swimlanesDiagram-G3AALYLV-CaeioVWR.js +0 -8
- package/dist/gui-mobile/assets/channel--lxp96YN.js +0 -1
- package/dist/gui-mobile/assets/classDiagram-OUVF2IWQ-BSdmSXqG.js +0 -1
- package/dist/gui-mobile/assets/classDiagram-v2-EOCWNBFH-BSdmSXqG.js +0 -1
- package/dist/gui-mobile/assets/index-BVmT9d8v.css +0 -1
- package/dist/gui-mobile/assets/index-CAQYJwvr.js +0 -33
- package/dist/gui-mobile/assets/stateDiagram-v2-6OUMAXLB-yhOeM-TY.js +0 -1
- package/dist/gui-mobile/assets/swimlanesDiagram-G3AALYLV-DHMi-Imw.js +0 -8
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const wx=!1,Sx=(e,t)=>e===t,Gr=Symbol("solid-proxy"),Pu=typeof Proxy=="function",Iu=Symbol("solid-track"),Kr={equals:Sx};let Mu=Gu;const tn=1,Wr=2,Lu={owned:null,cleanups:null,context:null,owner:null},S0={};var Ke=null;let T0=null,Tx=null,Ye=null,Dt=null,en=null,u0=0;function fn(e,t){const n=Ye,r=Ke,o=e.length===0,i=t===void 0?r:t,s=o?Lu:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>ut(()=>ir(s)));Ke=s,Ye=null;try{return Kt(a,!0)}finally{Ye=n,Ke=r}}function W(e,t){t=t?Object.assign({},Kr,t):Kr;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),qu(n,o));return[Hu.bind(n),r]}function Nx(e,t,n){const r=x0(e,t,!0,tn);jn(r)}function X(e,t,n){const r=x0(e,t,!1,tn);jn(r)}function Se(e,t,n){Mu=Mx;const r=x0(e,t,!1,tn);r.user=!0,en?en.push(r):jn(r)}function he(e,t,n){n=n?Object.assign({},Kr,n):Kr;const r=x0(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,jn(r),Hu.bind(r)}function Rx(e){return e&&typeof e=="object"&&"then"in e}function ot(e,t,n){let r,o,i;typeof t=="function"?(r=e,o=t,i={}):(r=!0,o=e,i=t||{});let s=null,a=S0,u=!1,c="initialValue"in i,x=typeof r=="function"&&he(r);const l=new Set,[f,p]=(i.storage||W)(i.initialValue),[d,h]=W(void 0),[g,m]=W(void 0,{equals:!1}),[E,C]=W(c?"ready":"unresolved");function A(w,O,N,R){return s===w&&(s=null,R!==void 0&&(c=!0),(w===a||O===a)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(R,{value:O})),a=S0,B(O,N)),O}function B(w,O){Kt(()=>{O===void 0&&p(()=>w),C(O!==void 0?"errored":c?"ready":"unresolved"),h(O);for(const N of l.keys())N.decrement();l.clear()},!1)}function y(){const w=Ox,O=f(),N=d();if(N!==void 0&&!s)throw N;return Ye&&Ye.user,O}function v(w=!0){if(w!==!1&&u)return;u=!1;const O=x?x():r;if(O==null||O===!1){A(s,ut(f));return}let N;const R=a!==S0?a:ut(()=>{try{return o(O,{value:f(),refetching:w})}catch(M){N=M}});if(N!==void 0){A(s,void 0,Mr(N),O);return}else if(!Rx(R))return A(s,R,void 0,O),R;return s=R,"v"in R?(R.s===1?A(s,R.v,void 0,O):A(s,void 0,Mr(R.v),O),R):(u=!0,queueMicrotask(()=>u=!1),Kt(()=>{C(c?"refreshing":"pending"),m()},!1),R.then(M=>A(R,M,void 0,O),M=>A(R,void 0,Mr(M),O)))}Object.defineProperties(y,{state:{get:()=>E()},error:{get:()=>d()},loading:{get(){const w=E();return w==="pending"||w==="refreshing"}},latest:{get(){if(!c)return y();const w=d();if(w&&!s)throw w;return f()}}});let k=Ke;return x?Nx(()=>(k=Ke,v(!1))):v(!1),[y,{refetch:w=>ui(k,()=>v(w)),mutate:p}]}function Uu(e){return Kt(e,!1)}function ut(e){if(Ye===null)return e();const t=Ye;Ye=null;try{return e()}finally{Ye=t}}function c0(e,t,n){const r=Array.isArray(e);let o,i=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(i)return i=!1,s;const u=ut(()=>t(a,o,s));return o=a,u}}function $x(e){Se(()=>ut(e))}function Ie(e){return Ke===null||(Ke.cleanups===null?Ke.cleanups=[e]:Ke.cleanups.push(e)),e}function zu(){return Ke}function ui(e,t){const n=Ke,r=Ye;Ke=e,Ye=null;try{return Kt(t,!0)}catch(o){xi(o)}finally{Ke=n,Ye=r}}function ju(e){const t=Ye,n=Ke;return Promise.resolve().then(()=>{Ye=t,Ke=n;let r;return Kt(e,!1),Ye=Ke=null,r?r.done:void 0})}const[t4,n4]=W(!1);function ci(e,t){const n=Symbol("context");return{id:n,Provider:Lx(n),defaultValue:e}}function l0(e){let t;return Ke&&Ke.context&&(t=Ke.context[e.id])!==void 0?t:e.defaultValue}function li(e){const t=he(e),n=he(()=>jo(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let Ox;function Hu(){if(this.sources&&this.state)if(this.state===tn)jn(this);else{const e=Dt;Dt=null,Kt(()=>Zr(this),!1),Dt=e}if(Ye){const e=this.observers;if(!e||e[e.length-1]!==Ye){const t=e?e.length:0;Ye.sources?(Ye.sources.push(this),Ye.sourceSlots.push(t)):(Ye.sources=[this],Ye.sourceSlots=[t]),e?(e.push(Ye),this.observerSlots.push(Ye.sources.length-1)):(this.observers=[Ye],this.observerSlots=[Ye.sources.length-1])}}return this.value}function qu(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Kt(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=T0&&T0.running;s&&T0.disposed.has(i),(s?!i.tState:!i.state)&&(i.pure?Dt.push(i):en.push(i),i.observers&&Ku(i)),s||(i.state=tn)}if(Dt.length>1e6)throw Dt=[],new Error},!1)),t}function jn(e){if(!e.fn)return;ir(e);const t=u0;Px(e,e.value,t)}function Px(e,t,n){let r;const o=Ke,i=Ye;Ye=Ke=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=tn,e.owned&&e.owned.forEach(ir),e.owned=null),e.updatedAt=n+1,xi(s)}finally{Ye=i,Ke=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?qu(e,r):e.value=r,e.updatedAt=n)}function x0(e,t,n,r=tn,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ke,context:Ke?Ke.context:null,pure:n};return Ke===null||Ke!==Lu&&(Ke.owned?Ke.owned.push(i):Ke.owned=[i]),i}function Vr(e){if(e.state===0)return;if(e.state===Wr)return Zr(e);if(e.suspense&&ut(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<u0);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===tn)jn(e);else if(e.state===Wr){const r=Dt;Dt=null,Kt(()=>Zr(e,t[0]),!1),Dt=r}}function Kt(e,t){if(Dt)return e();let n=!1;t||(Dt=[]),en?n=!0:en=[],u0++;try{const r=e();return Ix(n),r}catch(r){n||(en=null),Dt=null,xi(r)}}function Ix(e){if(Dt&&(Gu(Dt),Dt=null),e)return;const t=en;en=null,t.length&&Kt(()=>Mu(t),!1)}function Gu(e){for(let t=0;t<e.length;t++)Vr(e[t])}function Mx(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Vr(r)}for(t=0;t<n;t++)Vr(e[t])}function Zr(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const o=r.state;o===tn?r!==t&&(!r.updatedAt||r.updatedAt<u0)&&Vr(r):o===Wr&&Zr(r,t)}}}function Ku(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Wr,n.pure?Dt.push(n):en.push(n),n.observers&&Ku(n))}}function ir(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ir(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ir(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 Mr(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function xi(e,t=Ke){throw Mr(e)}function jo(e){if(typeof e=="function"&&!e.length)return jo(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=jo(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let o=0;o<r.length;o++)t.push(r[o]);else t.push(r)}return t}return e}function Lx(e,t){return function(r){let o;return X(()=>o=ut(()=>(Ke.context={...Ke.context,[e]:r.value},li(()=>r.children))),void 0),o}}const Ho=Symbol("fallback");function Yr(e){for(let t=0;t<e.length;t++)e[t]()}function Ux(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return Ie(()=>Yr(i)),()=>{let u=e()||[],c=u.length,x,l;return u[Iu],ut(()=>{let p,d,h,g,m,E,C,A,B;if(c===0)s!==0&&(Yr(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[Ho],o[0]=fn(y=>(i[0]=y,n.fallback())),s=1);else if(s===0){for(o=new Array(c),l=0;l<c;l++)r[l]=u[l],o[l]=fn(f);s=c}else{for(h=new Array(c),g=new Array(c),a&&(m=new Array(c)),E=0,C=Math.min(s,c);E<C&&r[E]===u[E];E++);for(C=s-1,A=c-1;C>=E&&A>=E&&r[C]===u[A];C--,A--)h[A]=o[C],g[A]=i[C],a&&(m[A]=a[C]);for(p=new Map,d=new Array(A+1),l=A;l>=E;l--)B=u[l],x=p.get(B),d[l]=x===void 0?-1:x,p.set(B,l);for(x=E;x<=C;x++)B=r[x],l=p.get(B),l!==void 0&&l!==-1?(h[l]=o[x],g[l]=i[x],a&&(m[l]=a[x]),l=d[l],p.set(B,l)):i[x]();for(l=E;l<c;l++)l in h?(o[l]=h[l],i[l]=g[l],a&&(a[l]=m[l],a[l](l))):o[l]=fn(f);o=o.slice(0,s=c),r=u.slice(0)}return o});function f(p){if(i[l]=p,a){const[d,h]=W(l);return a[l]=h,t(u[l],d)}return t(u[l])}}}function zx(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,u;return Ie(()=>Yr(i)),()=>{const c=e()||[],x=c.length;return c[Iu],ut(()=>{if(x===0)return a!==0&&(Yr(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[Ho],o[0]=fn(f=>(i[0]=f,n.fallback())),a=1),o;for(r[0]===Ho&&(i[0](),i=[],r=[],o=[],a=0),u=0;u<x;u++)u<r.length&&r[u]!==c[u]?s[u](()=>c[u]):u>=r.length&&(o[u]=fn(l));for(;u<r.length;u++)i[u]();return a=s.length=i.length=x,r=c.slice(0),o=o.slice(0,a)});function l(f){i[u]=f;const[p,d]=W(c[u]);return s[u]=d,t(p,u)}}}function b(e,t){return ut(()=>e(t||{}))}function _r(){return!0}const qo={get(e,t,n){return t===Gr?n:e.get(t)},has(e,t){return t===Gr?!0:e.has(t)},set:_r,deleteProperty:_r,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:_r,deleteProperty:_r}},ownKeys(e){return e.keys()}};function N0(e){return(e=typeof e=="function"?e():e)?e:{}}function jx(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function Me(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&Gr in a,e[s]=typeof a=="function"?(t=!0,he(a)):a}if(Pu&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const u=N0(e[a])[s];if(u!==void 0)return u}},has(s){for(let a=e.length-1;a>=0;a--)if(s in N0(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(N0(e[a])));return[...new Set(s)]}},qo);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 x=u[c];if(x==="__proto__"||x==="constructor")continue;const l=Object.getOwnPropertyDescriptor(a,x);if(!r[x])r[x]=l.get?{enumerable:!0,configurable:!0,get:jx.bind(n[x]=[l.get.bind(a)])}:l.value!==void 0?l:void 0;else{const f=n[x];f&&(l.get?f.push(l.get.bind(a)):l.value!==void 0&&f.push(()=>l.value))}}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const a=i[s],u=r[a];u&&u.get?Object.defineProperty(o,a,u):o[a]=u?u.value:void 0}return o}function Hn(e,...t){const n=t.length;if(Pu&&Gr in e){const o=n>1?t.flat():t[0],i=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)}},qo));return i.push(new Proxy({get(s){return o.includes(s)?void 0:e[s]},has(s){return o.includes(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.includes(s))}},qo)),i}const r=[];for(let o=0;o<=n;o++)r[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=n;for(let u=0;u<t.length;u++)if(t[u].includes(o)){i=u;break}const s=Object.getOwnPropertyDescriptor(e,o);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[i][o]=s.value:Object.defineProperty(r[i],o,s)}return r}const Hx=e=>`Stale read from <${e}>.`;function We(e){const t="fallback"in e&&{fallback:()=>e.fallback};return he(Ux(()=>e.each,e.children,t||void 0))}function Go(e){const t="fallback"in e&&{fallback:()=>e.fallback};return he(zx(()=>e.each,e.children,t||void 0))}function q(e){const t=e.keyed,n=he(()=>e.when,void 0,void 0),r=t?n:he(n,void 0,{equals:(o,i)=>!o==!i});return he(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?ut(()=>i(t?o:()=>{if(!ut(r))throw Hx("Show");return n()})):i}return e.fallback},void 0,void 0)}const qx=["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"],Gx=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...qx]),Kx=new Set(["innerHTML","textContent","innerText","children"]),Wx=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Vx=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 Zx(e,t){const n=Vx[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Yx=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Xx=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"]),Qx={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Ue=e=>he(()=>e());function Jx(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,u=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const x=i<r?a?n[a-1].nextSibling:n[i-a]:u;for(;a<i;)e.insertBefore(n[a++],x)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const x=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],x),t[o]=n[i]}else{if(!c){c=new Map;let l=a;for(;l<i;)c.set(n[l],l++)}const x=c.get(t[s]);if(x!=null)if(a<x&&x<i){let l=s,f=1,p;for(;++l<o&&l<i&&!((p=c.get(t[l]))==null||p!==x+f);)f++;if(f>x-a){const d=t[s];for(;a<x;)e.insertBefore(n[a++],d)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const ji="_$DX_DELEGATE";function ed(e,t,n,r={}){let o;return fn(i=>{o=i,t===document?e():D(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function P(e,t,n,r){let o;const i=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},s=t?()=>ut(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function He(e,t=window.document){const n=t[ji]||(t[ji]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ud))}}function re(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function td(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function nd(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function Ge(e,t){t==null?e.removeAttribute("class"):e.className=t}function Wu(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 o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function rd(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const a=o[i];!a||a==="undefined"||t[a]||(Hi(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){const a=r[i],u=!!t[a];!a||a==="undefined"||n[a]===u||!u||(Hi(e,a,!0),n[a]=u)}return n}function od(e,t,n){if(!t)return n?re(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 o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function id(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function hr(e,t={},n,r){const o={};return r||X(()=>o.children=sr(e,t.children,o.children)),X(()=>typeof t.ref=="function"&&Tt(t.ref,e)),X(()=>sd(e,t,n,!0,o,!0)),o}function Tt(e,t,n){return ut(()=>e(t,n))}function D(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return sr(e,t,r,n);X(o=>sr(e,t(),o,n),r)}function sd(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=qi(e,s,null,o[s],n,i,t)}for(const s in t){if(s==="children")continue;const a=t[s];o[s]=qi(e,s,a,o[s],n,i,t)}}function ad(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Hi(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function qi(e,t,n,r,o,i,s){let a,u,c,x,l;if(t==="style")return od(e,n,r);if(t==="classList")return rd(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),p=Yx.has(f);if(!p&&r){const d=Array.isArray(r)?r[0]:r;e.removeEventListener(f,d)}(p||n)&&(Wu(e,f,n,p),p&&He([f]))}else if(t.slice(0,5)==="attr:")re(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")nd(e,t.slice(5),n);else if((l=t.slice(0,5)==="prop:")||(c=Kx.has(t))||!o&&((x=Zx(t,e.tagName))||(u=Gx.has(t)))||(a=e.nodeName.includes("-")||"is"in s))l&&(t=t.slice(5),u=!0),t==="class"||t==="className"?Ge(e,n):a&&!u&&!c?e[ad(t)]=n:e[x||t]=n;else{const f=o&&t.indexOf(":")>-1&&Qx[t.split(":")[0]];f?td(e,f,t,n):re(e,Wx[t]||t,n)}return n}function ud(e){let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=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)&&i(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();i(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===o)break}}else a();i(r)}function sr(e,t,n,r,o){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(i==="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=wn(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean")n=wn(e,n,r);else{if(i==="function")return X(()=>{let a=t();for(;typeof a=="function";)a=a();n=sr(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],u=n&&Array.isArray(n);if(Ko(a,t,n,o))return X(()=>n=sr(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=wn(e,n,r),s)return n}else u?n.length===0?Gi(e,a,r):Jx(e,n,a):(n&&wn(e),Gi(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=wn(e,n,r,t);wn(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Ko(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],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))o=Ko(e,a,u)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=Ko(e,Array.isArray(a)?a:[a],Array.isArray(u)?u:[u])||o}else e.push(a),o=!0;else{const x=String(a);u&&u.nodeType===3&&u.data===x?e.push(u):e.push(document.createTextNode(x))}}return o}function Gi(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function wn(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const u=a.parentNode===e;!i&&!s?u?e.replaceChild(o,a):e.insertBefore(o,n):u&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}const cd=!1,ld="http://www.w3.org/2000/svg";function xd(e,t=!1,n=void 0){return t?document.createElementNS(ld,e):document.createElement(e,{is:n})}function dd(e,t){const n=he(e);return he(()=>{const r=n();switch(typeof r){case"function":return ut(()=>r(t));case"string":const o=Xx.has(r),i=xd(r,o,ut(()=>t.is));return hr(i,t,o),i}})}function Vu(e){const[,t]=Hn(e,["component"]);return dd(()=>e.component,t)}function Zu(){let e=new Set;function t(o){return e.add(o),()=>e.delete(o)}let n=!1;function r(o,i){if(n)return!(n=!1);const s={to:o,options:i,defaultPrevented:!1,preventDefault:()=>s.defaultPrevented=!0};for(const a of e)a.listener({...s,from:a.location,retry:u=>{u&&(n=!0),a.navigate(o,{...i,resolve:!1})}});return!s.defaultPrevented}return{subscribe:t,confirm:r}}let Wo;function di(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),Wo=window.history.state._depth}di();function fd(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function pd(e,t){let n=!1;return()=>{const r=Wo;di();const o=r==null?null:Wo-r;if(n){n=!1;return}o&&t(o)?(n=!0,window.history.go(-o)):e()}}const hd=/^(?:[a-z0-9]+:)?\/\//i,gd=/^\/+|(\/)\/+$/g,Yu="http://sr";function Bn(e,t=!1){const n=e.replace(gd,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function Lr(e,t,n){if(hd.test(t))return;const r=Bn(e),o=n&&Bn(n);let i="";return!o||t.startsWith("/")?i=r:o.toLowerCase().indexOf(r.toLowerCase())!==0?i=r+o:i=o,(i||"/")+Bn(t,!i)}function Ed(e,t){if(e==null)throw new Error(t);return e}function md(e,t){return Bn(e).replace(/\/*(\*.*)?$/g,"")+Bn(t)}function Xu(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 bd(e,t,n){const[r,o]=e.split("/*",2),i=r.split("/").filter(Boolean),s=i.length;return a=>{const u=a.split("/").filter(Boolean),c=u.length-s;if(c<0||c>0&&o===void 0&&!t)return null;const x={path:s?"":"/",params:{}},l=f=>n===void 0?void 0:n[f];for(let f=0;f<s;f++){const p=i[f],d=p[0]===":",h=d?u[f]:u[f].toLowerCase(),g=d?p.slice(1):p.toLowerCase();if(d&&R0(h,l(g)))x.params[g]=h;else if(d||!R0(h,g))return null;x.path+=`/${h}`}if(o){const f=c?u.slice(-c).join("/"):"";if(R0(f,l(o)))x.params[o]=f;else return null}return x}}function R0(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 Cd(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((o,i)=>o+(i.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function Qu(e){const t=new Map,n=zu();return new Proxy({},{get(r,o){return t.has(o)||ui(n,()=>t.set(o,he(()=>e()[o]))),t.get(o)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(r,o){return o in e()}})}function Ju(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 o=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)o.push(n+=t[1]),r=r.slice(t[0].length);return Ju(r).reduce((i,s)=>[...i,...o.map(a=>a+s)],[])}const Ad=100,ec=ci(),fi=ci(),Fn=()=>Ed(l0(ec),"<A> and 'use' router primitives can be only used inside a Route."),Bd=()=>l0(fi)||Fn().base,Dd=e=>{const t=Bd();return he(()=>t.resolvePath(e()))},Fd=e=>{const t=Fn();return he(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},pt=()=>Fn().navigatorFactory(),gr=()=>Fn().location,yd=()=>Fn().isRouting,Er=()=>Fn().params,vd=e=>{const t=Fn().beforeLeave.subscribe({listener:e,location:gr(),navigate:pt()});Ie(t)};function kd(e,t=""){const{component:n,preload:r,load:o,children:i,info:s}=e,a=!i||Array.isArray(i)&&!i.length,u={key:e,component:n,preload:r||o,info:s};return tc(e.path).reduce((c,x)=>{for(const l of Ju(x)){const f=md(t,l);let p=a?f:f.split("/*",1)[0];p=p.split("/").map(d=>d.startsWith(":")||d.startsWith("*")?d:encodeURIComponent(d)).join("/"),c.push({...u,originalPath:x,pattern:p,matcher:bd(p,!a,e.matchFilters)})}return c},[])}function _d(e,t=0){return{routes:e,score:Cd(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let o=e.length-1;o>=0;o--){const i=e[o],s=i.matcher(n);if(!s)return null;r.unshift({...s,route:i})}return r}}}function tc(e){return Array.isArray(e)?e:[e]}function nc(e,t="",n=[],r=[]){const o=tc(e);for(let i=0,s=o.length;i<s;i++){const a=o[i];if(a&&typeof a=="object"){a.hasOwnProperty("path")||(a.path="");const u=kd(a,t);for(const c of u){n.push(c);const x=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!x)nc(a.children,c.pattern,n,r);else{const l=_d([...n],r.length);r.push(l)}n.pop()}}}return n.length?r:r.sort((i,s)=>s.score-i.score)}function $0(e,t){for(let n=0,r=e.length;n<r;n++){const o=e[n].matcher(t);if(o)return o}return[]}function wd(e,t,n){const r=new URL(Yu),o=he(x=>{const l=e();try{return new URL(l,r)}catch{return console.error(`Invalid path ${l}`),x}},r,{equals:(x,l)=>x.href===l.href}),i=he(()=>o().pathname),s=he(()=>o().search,!0),a=he(()=>o().hash),u=()=>"",c=c0(s,()=>Xu(o()));return{get pathname(){return i()},get search(){return s()},get hash(){return a()},get state(){return t()},get key(){return u()},query:n?n(c):Qu(c)}}let An;function Sd(){return An}function Td(e,t,n,r={}){const{signal:[o,i],utils:s={}}=e,a=s.parsePath||(L=>L),u=s.renderPath||(L=>L),c=s.beforeLeave||Zu(),x=Lr("",r.base||"");if(x===void 0)throw new Error(`${x} is not a valid base path`);x&&!o().value&&i({value:x,replace:!0,scroll:!1});const[l,f]=W(!1);let p;const d=(L,H)=>{H.value===h()&&H.state===m()||(p===void 0&&f(!0),An=L,p=H,ju(()=>{p===H&&(g(p.value),E(p.state),B[1](K=>K.filter(_=>_.pending)))}).finally(()=>{p===H&&Uu(()=>{An=void 0,L==="navigate"&&R(p),f(!1),p=void 0})}))},[h,g]=W(o().value),[m,E]=W(o().state),C=wd(h,m,s.queryWrapper),A=[],B=W([]),y=he(()=>typeof r.transformUrl=="function"?$0(t(),r.transformUrl(C.pathname)):$0(t(),C.pathname)),v=()=>{const L=y(),H={};for(let K=0;K<L.length;K++)Object.assign(H,L[K].params);return H},k=s.paramsWrapper?s.paramsWrapper(v,t):Qu(v),w={pattern:x,path:()=>x,outlet:()=>null,resolvePath(L){return Lr(x,L)}};return X(c0(o,L=>d("native",L),{defer:!0})),{base:w,location:C,params:k,isRouting:l,renderPath:u,parsePath:a,navigatorFactory:N,matches:y,beforeLeave:c,preloadRoute:M,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:B};function O(L,H,K){ut(()=>{if(typeof H=="number"){H&&(s.go?s.go(H):console.warn("Router integration does not support relative routing"));return}const _=!H||H[0]==="?",{replace:G,resolve:I,scroll:S,state:U}={replace:!1,resolve:!_,scroll:!0,...K},z=I?L.resolvePath(H):Lr(_&&C.pathname||"",H);if(z===void 0)throw new Error(`Path '${H}' is not a routable path`);if(A.length>=Ad)throw new Error("Too many redirects");const $=h();(z!==$||U!==m())&&(cd||c.confirm(z,K)&&(A.push({value:$,replace:G,scroll:S,state:m()}),d("navigate",{value:z,state:U})))})}function N(L){return L=L||l0(fi)||w,(H,K)=>O(L,H,K)}function R(L){const H=A[0];H&&(i({...L,replace:H.replace,scroll:H.scroll}),A.length=0)}function M(L,H){const K=$0(t(),L.pathname),_=An;An="preload";for(let G in K){const{route:I,params:S}=K[G];I.component&&I.component.preload&&I.component.preload();const{preload:U}=I;H&&U&&ui(n(),()=>U({params:S,location:{pathname:L.pathname,search:L.search,hash:L.hash,query:Xu(L),state:null,key:""},intent:"preload"}))}An=_}}function Nd(e,t,n,r){const{base:o,location:i,params:s}=e,{pattern:a,component:u,preload:c}=r().route,x=he(()=>r().path);u&&u.preload&&u.preload();const l=c?c({params:s,location:i,intent:An||"initial"}):void 0;return{parent:t,pattern:a,path:x,outlet:()=>u?b(u,{params:s,location:i,data:l,get children(){return n()}}):n(),resolvePath(p){return Lr(o.path(),p,x())}}}const Rd=e=>t=>{const{base:n}=t,r=li(()=>t.children),o=he(()=>nc(r(),t.base||""));let i;const s=Td(e,o,()=>i,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(s),b(ec.Provider,{value:s,get children(){return b($d,{routerState:s,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[Ue(()=>(i=zu())&&null),b(Od,{routerState:s,get branches(){return o()}})]}})}})};function $d(e){const t=e.routerState.location,n=e.routerState.params,r=he(()=>e.preload&&ut(()=>{e.preload({params:n,location:t,intent:Sd()||"initial"})}));return b(q,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:o=>b(o,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function Od(e){const t=[];let n;const r=he(c0(e.routerState.matches,(o,i,s)=>{let a=i&&o.length===i.length;const u=[];for(let c=0,x=o.length;c<x;c++){const l=i&&i[c],f=o[c];s&&l&&f.route.key===l.route.key?u[c]=s[c]:(a=!1,t[c]&&t[c](),fn(p=>{t[c]=p,u[c]=Nd(e.routerState,u[c-1]||e.routerState.base,Ki(()=>r()[c+1]),()=>{const d=e.routerState.matches();return d[c]??d[0]})}))}return t.splice(o.length).forEach(c=>c()),s&&a?s:(n=u[0],u)}));return Ki(()=>r()&&n)()}const Ki=e=>()=>b(q,{get when(){return e()},keyed:!0,children:t=>b(fi.Provider,{value:t,get children(){return t.outlet()}})}),Ct=e=>{const t=li(()=>e.children);return Me(e,{get children(){return t()}})};function Pd([e,t],n,r){return[e,r?o=>t(r(o)):t]}function Id(e){let t=!1;const n=o=>typeof o=="string"?{value:o}:o,r=Pd(W(n(e.get()),{equals:(o,i)=>o.value===i.value&&o.state===i.state}),void 0,o=>(!t&&e.set(o),o));return e.init&&Ie(e.init((o=e.get())=>{t=!0,r[1](n(o)),t=!1})),Rd({signal:r,create:e.create,utils:e.utils})}function Md(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function Ld(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}const Ud=new Map;function zd({preload:e=!0,explicitLinks:t=!1,actionBase:n="/_server",transformUrl:r}={}){return o=>{const i=o.base.path(),s=o.navigatorFactory(o.base);let a,u;function c(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function x(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const g=h.composedPath().find(y=>y instanceof Node&&y.nodeName.toUpperCase()==="A");if(!g||t&&!g.hasAttribute("link"))return;const m=c(g),E=m?g.href.baseVal:g.href;if((m?g.target.baseVal:g.target)||!E&&!g.hasAttribute("state"))return;const A=(g.getAttribute("rel")||"").split(/\s+/);if(g.hasAttribute("download")||A&&A.includes("external"))return;const B=m?new URL(E,document.baseURI):new URL(E);if(!(B.origin!==window.location.origin||i&&B.pathname&&!B.pathname.toLowerCase().startsWith(i.toLowerCase())))return[g,B]}function l(h){const g=x(h);if(!g)return;const[m,E]=g,C=o.parsePath(E.pathname+E.search+E.hash),A=m.getAttribute("state");h.preventDefault(),s(C,{resolve:!1,replace:m.hasAttribute("replace"),scroll:!m.hasAttribute("noscroll"),state:A?JSON.parse(A):void 0})}function f(h){const g=x(h);if(!g)return;const[m,E]=g;r&&(E.pathname=r(E.pathname)),o.preloadRoute(E,m.getAttribute("preload")!=="false")}function p(h){clearTimeout(a);const g=x(h);if(!g)return u=null;const[m,E]=g;u!==m&&(r&&(E.pathname=r(E.pathname)),a=setTimeout(()=>{o.preloadRoute(E,m.getAttribute("preload")!=="false"),u=m},20))}function d(h){if(h.defaultPrevented)return;let g=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!g)return;if(!g.startsWith("https://action/")){const E=new URL(g,Yu);if(g=o.parsePath(E.pathname+E.search),!g.startsWith(n))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const m=Ud.get(g);if(m){h.preventDefault();const E=new FormData(h.target,h.submitter);m.call({r:o,f:h.target},h.target.enctype==="multipart/form-data"?E:new URLSearchParams(E))}}He(["click","submit"]),document.addEventListener("click",l),e&&(document.addEventListener("mousemove",p,{passive:!0}),document.addEventListener("focusin",f,{passive:!0}),document.addEventListener("touchstart",f,{passive:!0})),document.addEventListener("submit",d),Ie(()=>{document.removeEventListener("click",l),e&&(document.removeEventListener("mousemove",p),document.removeEventListener("focusin",f),document.removeEventListener("touchstart",f)),document.removeEventListener("submit",d)})}}function jd(e){const t=()=>{const r=window.location.pathname.replace(/^\/+/,"/")+window.location.search,o=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:o}},n=Zu();return Id({get:t,set({value:r,replace:o,scroll:i,state:s}){o?window.history.replaceState(fd(s),"",r):window.history.pushState(s,"",r),Ld(decodeURIComponent(window.location.hash.slice(1)),i),di()},init:r=>Md(window,"popstate",pd(r,o=>{if(o)return!n.confirm(o);{const i=t();return!n.confirm(i.value,{state:i.state})}})),create:zd({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl}),utils:{go:r=>window.history.go(r),beforeLeave:n}})(e)}var Hd=P("<a>");function rc(e){e=Me({inactiveClass:"inactive",activeClass:"active"},e);const[,t]=Hn(e,["href","state","class","activeClass","inactiveClass","end"]),n=Dd(()=>e.href),r=Fd(n),o=gr(),i=he(()=>{const s=n();if(s===void 0)return[!1,!1];const a=Bn(s.split(/[?#]/,1)[0]).toLowerCase(),u=decodeURI(Bn(o.pathname).toLowerCase());return[e.end?a===u:u.startsWith(a+"/")||u===a,a===u]});return(()=>{var s=Hd();return hr(s,Me(t,{get href(){return r()||e.href},get state(){return JSON.stringify(e.state)},get classList(){return{...e.class&&{[e.class]:!0},[e.inactiveClass]:!i()[0],[e.activeClass]:i()[0],...t.classList}},link:"",get"aria-current"(){return i()[1]?"page":void 0}}),!1,!1),s})()}const ke=e=>typeof e=="string",Vn=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Wi=e=>e==null?"":String(e),qd=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Gd=/###/g,Vi=e=>e&&e.includes("###")?e.replace(Gd,"."):e,Zi=e=>!e||ke(e),er=(e,t,n)=>{const r=ke(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Zi(e))return{};const i=Vi(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Zi(e)?{}:{obj:e,k:Vi(r[o])}},Yi=(e,t,n)=>{const{obj:r,k:o}=er(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=er(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=er(e,s,Object),a?.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Kd=(e,t,n,r)=>{const{obj:o,k:i}=er(e,t,Object);o[i]=o[i]||[],o[i].push(n)},Xr=(e,t)=>{const{obj:n,k:r}=er(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Wd=(e,t,n)=>{const r=Xr(e,n);return r!==void 0?r:Xr(t,n)},oc=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,r)?ke(e[r])||e[r]instanceof String||ke(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):oc(e[r],t[r],n):e[r]=t[r]);return e},Xt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Vd={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Zd=e=>ke(e)?e.replace(/[&<>"'\/]/g,t=>Vd[t]):e;class Yd{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 Xd=[" ",",","?","!",";"],Qd=new Yd(20),Jd=(e,t,n)=>{t=t||"",n=n||"";const r=Xd.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const o=Qd.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},Vo=(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 o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,a="";for(let u=i;u<r.length;++u)if(u!==i&&(a+=n),a+=r[u],s=o[a],s!==void 0){if(["string","number","boolean"].includes(typeof s)&&u<r.length-1)continue;i+=u-i+1;break}o=s}return o},ar=e=>e?.replace(/_/g,"-"),ef={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 Qr{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||ef,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,o){return o&&!this.debug?null:(t=t.map(i=>ke(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),ke(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Qr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Qr(this.logger,t)}}var Ht=new Qr;class d0{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+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=(...o)=>{n(...o),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let s=0;s<i;s++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,i])=>{for(let s=0;s<i;s++)o(t,...n)})}}class Xi extends d0{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,o={}){const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.includes(".")?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):ke(r)&&i?a.push(...r.split(i)):a.push(r)));const u=Xr(this.data,a);return!u&&!n&&!r&&t.includes(".")&&(t=a[0],n=a[1],r=a.slice(2).join(".")),u||!s||!ke(r)?u:Vo(this.data?.[t]?.[n],r,i)}addResource(t,n,r,o,i={silent:!1}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.includes(".")&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),Yi(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const i in r)(ke(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i,s={silent:!1,skipCopy:!1}){let a=[t,n];t.includes(".")&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let u=Xr(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?oc(u,r,i):u={...u,...r},Yi(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(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var ic={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{t=this.processors[i]?.process(t,n,r,o)??t}),t}};const sc=Symbol("i18next/PATH_KEY");function tf(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===sc?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function In(e,t){const{[sc]:n}=e(tf()),r=t?.keySeparator??".",o=t?.nsSeparator??":",i=t?.enableSelector==="strict";if(n.length>1&&o){const s=t?.ns,a=i?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(a&&(i?a:a.length>1?a.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const O0=e=>!ke(e)&&typeof e!="boolean"&&typeof e!="number";class Jr extends d0{constructor(t,n={}){super(),qd(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ht.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);if(o?.res===void 0)return!1;const i=O0(o.res);return!(r.returnObjects===!1&&i)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.includes(r),a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Jd(t,r,o);if(s&&!a){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:ke(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.includes(c[0]))&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:ke(i)?[i]:i}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=In(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(M=>typeof M=="function"?In(M,{...this.options,...o}):String(M));const i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:a,namespaces:u}=this.extractFromKey(t[t.length-1],o),c=u[u.length-1];let x=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;x===void 0&&(x=":");const l=o.lng||this.language,f=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return f?i?{res:`${c}${x}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${x}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:a;const p=this.resolve(t,o);let d=p?.res;const h=p?.usedKey||a,g=p?.exactUsedKey||a,m=["[object Number]","[object Function]","[object RegExp]"],E=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,A=o.count!==void 0&&!ke(o.count),B=Jr.hasDefaultValue(o),y=A?this.pluralResolver.getSuffix(l,o.count,o):"",v=o.ordinal&&A?this.pluralResolver.getSuffix(l,o.count,{ordinal:!1}):"",k=A&&!o.ordinal&&o.count===0,w=k&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${y}`]||o[`defaultValue${v}`]||o.defaultValue;let O=d;C&&!d&&B&&(O=w);const N=O0(O),R=Object.prototype.toString.apply(O);if(C&&O&&N&&!m.includes(R)&&!(ke(E)&&Array.isArray(O))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,O,{...o,ns:u}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(p.res=M,p.usedParams=this.getUsedParamsDetails(o),p):M}if(s){const M=Array.isArray(O),L=M?[]:{},H=M?g:h;for(const K in O)if(Object.prototype.hasOwnProperty.call(O,K)){const _=`${H}${s}${K}`;B&&!d?L[K]=this.translate(_,{...o,defaultValue:O0(w)?w[K]:void 0,joinArrays:!1,ns:u}):L[K]=this.translate(_,{...o,joinArrays:!1,ns:u}),L[K]===_&&(L[K]=O[K])}d=L}}else if(C&&ke(E)&&Array.isArray(d))d=d.join(E),d&&(d=this.extendTranslation(d,t,o,r));else{let M=!1,L=!1;!this.isValidLookup(d)&&B&&(M=!0,d=w),this.isValidLookup(d)||(L=!0,d=a);const K=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:d,_=B&&w!==d&&this.options.updateMissing;if(L||M||_){if(this.logger.log(_?"updateKey":"missingKey",l,c,A&&!_?`${a}${this.pluralResolver.getSuffix(l,o.count,o)}`:a,_?w:d),s){const U=this.resolve(a,{...o,keySeparator:!1});U&&U.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 G=[];const I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(let U=0;U<I.length;U++)G.push(I[U]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(o.lng||this.language):G.push(o.lng||this.language);const S=(U,z,$)=>{const j=B&&$!==d?$:K;this.options.missingKeyHandler?this.options.missingKeyHandler(U,c,z,j,_,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(U,c,z,j,_,o),this.emit("missingKey",U,c,z,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?G.forEach(U=>{const z=this.pluralResolver.getSuffixes(U,o);k&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!z.includes(`${this.options.pluralSeparator}zero`)&&z.push(`${this.options.pluralSeparator}zero`),z.forEach($=>{S([U],a+$,o[`defaultValue${$}`]||w)})}):S(G,a,w))}d=this.extendTranslation(d,t,o,p,r),L&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${c}${x}${a}`),(L||M)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${x}${a}`:a,M?d:void 0,o))}return i?(p.res=d,p.usedParams=this.getUsedParamsDetails(o),p):d}extendTranslation(t,n,r,o,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=ke(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const l=t.match(this.interpolator.nestingRegexp);c=l&&l.length}let x=r.replace&&!ke(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),t=this.interpolator.interpolate(t,x,r.lng||this.language||o.usedLng,r),u){const l=t.match(this.interpolator.nestingRegexp),f=l&&l.length;c<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...l)=>i?.[0]===l[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${l[0]} in key: ${n[0]}`),null):this.translate(...l,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=ke(s)?[s]:s;return t!=null&&a?.length&&r.applyPostProcessor!==!1&&(t=ic.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,i,s,a;return ke(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),x=c.key;o=x;let l=c.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const f=n.count!==void 0&&!ke(n.count),p=f&&!n.ordinal&&n.count===0,d=n.context!==void 0&&(ke(n.context)||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);l.forEach(g=>{this.isValidLookup(r)||(a=g,!this.checkedLoadedFor[`${h[0]}-${g}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${h[0]}-${g}`]=!0,this.logger.warn(`key "${o}" 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(m=>{if(this.isValidLookup(r))return;s=m;const E=[x];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(E,x,m,g,n);else{let A;f&&(A=this.pluralResolver.getSuffix(m,n.count,n));const B=`${this.options.pluralSeparator}zero`,y=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&A.startsWith(y)&&E.push(x+A.replace(y,this.options.pluralSeparator)),E.push(x+A),p&&E.push(x+B)),d){const v=`${x}${this.options.contextSeparator||"_"}${n.context}`;E.push(v),f&&(n.ordinal&&A.startsWith(y)&&E.push(v+A.replace(y,this.options.pluralSeparator)),E.push(v+A),p&&E.push(v+B))}}let C;for(;C=E.pop();)this.isValidLookup(r)||(i=C,r=this.getResource(m,g,C,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!ke(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o={...o,count:t.count}),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}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 Qi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ht.create("languageUtils")}getScriptPartFromCode(t){if(t=ar(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=ar(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ke(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 o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>s===i?!0:!s.includes("-")&&!i.includes("-")?!1:!!(s.includes("-")&&!i.includes("-")&&s.slice(0,s.indexOf("-"))===i||s.startsWith(i)&&i.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ke(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),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return ke(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):ke(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.includes(s)||i(this.formatLanguageCode(s))}),o}}const Ji={zero:0,one:1,two:2,few:3,many:4,other:5},es={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class nf{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ht.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ar(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),es;if(!t.match(/-|_/))return es;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[i]=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(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>Ji[o]-Ji[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const ts=(e,t,n,r=".",o=!0)=>{let i=Wd(e,t,n);return!i&&o&&ke(n)&&(i=Vo(e,n,r),i===void 0&&(i=Vo(t,n,r))),i},rf=e=>e.replace(/\$/g,"$$$$");class ns{constructor(t={}){this.logger=Ht.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:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:u,formatSeparator:c,unescapeSuffix:x,unescapePrefix:l,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:d,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:E}=t.interpolation;this.escape=n!==void 0?n:Zd,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Xt(i):s||"{{",this.suffix=a?Xt(a):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=x?"":l?Xt(l):"-",this.unescapeSuffix=this.unescapePrefix?"":x?Xt(x):"",this.nestingPrefix=f?Xt(f):p||Xt("$t("),this.nestingSuffix=d?Xt(d):h||Xt(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=E!==void 0?E:!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,o){let i,s,a;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(!p.includes(this.formatSeparator)){const m=ts(n,u,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...o,...n,interpolationkey:p}):m}const d=p.split(this.formatSeparator),h=d.shift().trim(),g=d.join(this.formatSeparator).trim();return this.format(ts(n,u,h,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...o,...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 x=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,l=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>p},{regex:this.regexp,safeValue:p=>this.escapeValue?this.escape(p):p}].forEach(p=>{for(a=0;i=p.regex.exec(t);){const d=i[1].trim();if(s=c(d),s===void 0)if(typeof x=="function"){const g=x(t,i,o);s=ke(g)?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,d))s="";else if(l){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${d} for interpolating ${t}`),s="";else!ke(s)&&!this.useRawValueToEscape&&(s=Wi(s));const h=p.safeValue(s);if(t=t.replace(i[0],rf(h)),l?(p.regex.lastIndex+=h.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,i,s;const a=(u,c)=>{const x=this.nestingOptionsSeparator;if(!u.includes(x))return u;const l=u.split(new RegExp(`${Xt(x)}[ ]*{`));let f=`{${l[1]}`;u=l[0],f=this.interpolate(f,s);const p=f.match(/'/g),d=f.match(/"/g);((p?.length??0)%2===0&&!d||(d?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,h),`${u}${x}${f}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!ke(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(c!==-1&&(u=o[1].slice(c).split(this.formatSeparator).map(x=>x.trim()).filter(Boolean),o[1]=o[1].slice(0,c)),i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!ke(i))return i;ke(i)||(i=Wi(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),u.length&&(i=u.reduce((x,l)=>this.format(x,l,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const of=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);t==="currency"&&!o.includes(":")?n.currency||(n.currency=o.trim()):t==="relativetime"&&!o.includes(":")?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...u]=s.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),x=a.trim();n[x]||(n[x]=c),c==="false"&&(n[x]=!1),c==="true"&&(n[x]=!0),isNaN(c)||(n[x]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},rs=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(ar(r),o),t[s]=a),a(n)}},sf=e=>(t,n,r)=>e(ar(n),r)(t);class af{constructor(t={}){this.logger=Ht.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?rs:sf;this.formats={number:r((o,i)=>{const s=new Intl.NumberFormat(o,{...i});return a=>s.format(a)}),currency:r((o,i)=>{const s=new Intl.NumberFormat(o,{...i,style:"currency"});return a=>s.format(a)}),datetime:r((o,i)=>{const s=new Intl.DateTimeFormat(o,{...i});return a=>s.format(a)}),relativetime:r((o,i)=>{const s=new Intl.RelativeTimeFormat(o,{...i});return a=>s.format(a,i.range||"day")}),list:r((o,i)=>{const s=new Intl.ListFormat(o,{...i});return a=>s.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=rs(n)}format(t,n,r,o={}){if(!n||t==null)return t;const i=n.split(this.formatSeparator),s=[];for(let u=0;u<i.length;u++){let c=i[u];for(;c.indexOf("(")>-1&&!c.includes(")")&&u+1<i.length;)c=`${c}${this.formatSeparator}${i[++u]}`;s.push(c)}return s.reduce((u,c)=>{const{formatName:x,formatOptions:l}=of(c);if(this.formats[x]){let f=u;try{const p=o?.formatParams?.[o.interpolationkey]||{},d=p.locale||p.lng||o.locale||o.lng||r;f=this.formats[x](u,d,{...l,...o,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${x}`);return u},t)}}const uf=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class cf extends d0{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ht.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},u={};return t.forEach(c=>{let x=!0;n.forEach(l=>{const f=`${c}|${l}`;!r.reload&&this.store.hasResourceBundle(c,l)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,x=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),u[l]===void 0&&(u[l]=!0)))}),x||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,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=>{Kd(u.loaded,[i],s),uf(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{a[c]||(a[c]={});const x=u.loaded[c];x.length&&x.forEach(l=>{a[c][l]===void 0&&(a[c][l]=!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,o=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,x)=>{if(this.readingCalls--,this.waitingReads.length>0){const l=this.waitingReads.shift();this.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}if(c&&x&&o<this.maxRetries){setTimeout(()=>{this.read(t,n,r,o+1,i*2,s)},i);return}s(c,x)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(t,n);c&&typeof c.then=="function"?c.then(x=>a(null,x)).catch(a):a(null,c)}catch(c){a(c)}return}return u(t,n,a)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ke(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ke(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.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("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i,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:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let x;c.length===5?x=c(t,n,r,o,u):x=c(t,n,r,o),x&&typeof x.then=="function"?x.then(l=>a(null,l)).catch(a):a(null,x)}catch(x){a(x)}else c(t,n,r,o,a,u)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const P0=()=>({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]),ke(e[1])&&(t.defaultValue=e[1]),ke(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}),os=e=>(ke(e.ns)&&(e.ns=[e.ns]),ke(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ke(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),wr=()=>{},lf=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class tr extends d0{constructor(t={},n){if(super(),this.options=os(t),this.services={},this.logger=Ht,this.modules={external:[]},lf(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&&(ke(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=P0();this.options={...r,...this.options,...os(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 o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Ht.init(o(this.modules.logger),this.options):Ht.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=af;const x=new Qi(this.options);this.store=new Xi(this.options.resources,this.options);const l=this.services;l.logger=Ht,l.resourceStore=this.store,l.languageUtils=x,l.pluralResolver=new nf(x,{prepend:this.options.pluralSeparator}),c&&(l.formatter=o(c),l.formatter.init&&l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new ns(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new cf(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new Jr(this.services,this.options),this.translator.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.external.forEach(f=>{f.init&&f.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]=(...x)=>this.store[c](...x)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...x)=>(this.store[c](...x),this)});const a=Vn(),u=()=>{const c=(x,l)=>{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(l),n(x,l)};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 o=ke(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&(i.includes(c)||i.push(c))})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=Vn();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,i=>{o.resolve(),r(i)}),o}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"&&ic.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=Vn();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?this.isLanguageChangingTo===t&&(o(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=ke(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(ke(a)?[a]:a);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,x=>{i(x,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,o){const i=o?.scopeNs,s=(a,u,...c)=>{let x;typeof u!="object"?x=this.options.overloadTranslationOptionHandler([a,u].concat(c)):x={...u},x.lng=x.lng||s.lng,x.lngs=x.lngs||s.lngs;const l=x.ns!==void 0&&x.ns!==null;x.ns=x.ns||s.ns,x.keyPrefix!==""&&(x.keyPrefix=x.keyPrefix||r||s.keyPrefix);const f={...this.options,...x};Array.isArray(i)&&!l&&(f.ns=i),typeof x.keyPrefix=="function"&&(x.keyPrefix=In(x.keyPrefix,f));const p=this.options.keySeparator||".";let d;return x.keyPrefix&&Array.isArray(a)?d=a.map(h=>(typeof h=="function"&&(h=In(h,f)),`${x.keyPrefix}${p}${h}`)):(typeof a=="function"&&(a=In(a,f)),d=x.keyPrefix?`${x.keyPrefix}${p}${a}`:a),this.t(d,x)};return ke(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],o=this.options?this.options.fallbackLng:!1,i=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)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=Vn();return this.options.ns?(ke(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Vn();ke(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>!o.includes(s)&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),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 o=new Intl.Locale(t);if(o&&o.getTextInfo){const i=o.getTextInfo();if(i&&i.direction)return i.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 Qi(P0());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 tr(t,n);return r.createInstance=tr.createInstance,r}cloneInstance(t={},n=wr){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new tr(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const a=Object.keys(this.store.data).reduce((u,c)=>(u[c]={...this.store.data[c]},u[c]=Object.keys(u[c]).reduce((x,l)=>(x[l]={...u[c][l]},x),u[c]),u),{});i.store=new Xi(a,o),i.services.resourceStore=i.store}if(t.interpolation){const u={...P0().interpolation,...this.options.interpolation,...t.interpolation},c={...o,interpolation:u};i.services.interpolator=new ns(c)}return i.translator=new Jr(i.services,o),i.translator.on("*",(a,...u)=>{i.emit(a,...u)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const at=tr.createInstance();at.createInstance;at.dir;at.init;at.loadResources;at.reloadResources;at.use;at.changeLanguage;at.getFixedT;at.t;at.exists;at.setDefaultNamespace;at.hasLoadedNamespace;at.loadNamespaces;at.loadLanguages;const{slice:xf,forEach:df}=[];function ff(e){return df.call(xf.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function pf(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 is=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,hf=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!is.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!is.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},ss={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=hf(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var gf={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return ss.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&typeof document<"u"&&ss.create(n,e,r,o,i)}},Ef={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 i=r.substring(1).split("&");for(let s=0;s<i.length;s++){const a=i[s].indexOf("=");a>0&&i[s].substring(0,a)===t&&(n=i[s].substring(a+1))}}return n}},mf={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const i=o.substring(1);if(t){const s=i.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=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Sn=null;const as=()=>{if(Sn!==null)return Sn;try{if(Sn=typeof window<"u"&&window.localStorage!==null,!Sn)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Sn=!1}return Sn};var bf={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&as())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&as()&&window.localStorage.setItem(n,e)}};let Tn=null;const us=()=>{if(Tn!==null)return Tn;try{if(Tn=typeof window<"u"&&window.sessionStorage!==null,!Tn)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Tn=!1}return Tn};var Cf={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&us())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&us()&&window.sessionStorage.setItem(n,e)}},Af={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},Bf={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}},Df={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}},Ff={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 ac=!1;try{document.cookie,ac=!0}catch{}const uc=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ac||uc.splice(1,1);const yf=()=>({order:uc,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class cc{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=ff(n,this.options||{},yf()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(gf),this.addDetector(Ef),this.addDetector(bf),this.addDetector(Cf),this.addDetector(Af),this.addDetector(Bf),this.addDetector(Df),this.addDetector(Ff),this.addDetector(mf)}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 o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!pf(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)}))}}cc.type="languageDetector";function vf(e,t={}){const{fallbackLng:n="zh-CN",persistKey:r}=t,o=at.use(cc).init({resources:e,fallbackLng:n,detection:{order:r?["localStorage","navigator"]:["navigator"],caches:r?["localStorage"]:[],...r?{lookupLocalStorage:r}:{}},interpolation:{escapeValue:!1}}),[i,s]=W(at.language||n),[a,u]=W(at.isInitialized);o.then(()=>{s(at.language||n),u(!0)}),at.on("languageChanged",l=>s(l));const c=(l,f)=>(i(),at.t(l,f));return{i18next:at,initPromise:o,t:c,useTranslation:()=>({t:c,lng:he(()=>i()),ready:he(()=>a()),changeLanguage:l=>{at.changeLanguage(l)}})}}const kf={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 补充",filterOptions:"筛选选项…",noMatchingOptions:"没有匹配的选项"},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",history:"历史",historySearchPlaceholder:"搜索提交信息或提交人",historyLoading:"加载提交历史…",historyEmpty:"没有匹配的提交记录",historyLoadMore:"加载更多",historyLoadingMore:"加载更多…",historyFilesLoading:"加载变更文件…",historyNoFiles:"该提交没有可显示的变更文件",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",model:"模型",reasoningEffort:"推理强度",agentDefaultOption:"--",notifications:"通知",pushNotification:"任务完成推送",pushUnavailable:"不可用",pushNeedsHttps:"启用推送需通过 HTTPS 或 localhost 访问。",pushNeedsInstall:"iOS 需先「添加到主屏幕」,并在 iOS 16.4+ 上使用。",pushPermissionDenied:"通知权限被拒绝,请在系统设置中允许。",pushFailed:"开启推送失败,请稍后重试。",appearance:"外观",themeMode:"亮暗模式",themeName:"主题风格",language:"语言",about:"关于",version:"版本",installState:"安装状态",installed:"已安装到主屏",browser:"浏览器内运行"},projectSettings:{title:"项目设置",agent:"Agent",kind:"Agent 类型",inherit:"跟随全局",model:"模型",reasoningEffort:"推理强度",agentDefaultOption:"--"},chat:{untitled:"未命名会话",empty:"这个会话还没有消息",draftEmpty:"说点什么,开始新会话",usageLoading:"正在查询当前模型剩余用量…",usageError:"{{kind}} 剩余用量查询失败。",usageAvailableNoDetails:"{{kind}} 已连接,但未返回可展示的剩余用量明细。",usageSummary:"{{kind}} 用量:{{details}}",usageWindow:"{{label}} 剩余约 {{remaining}}%(已用 {{used}}%,重置:{{reset}})",usageWindowUnknown:"{{label}} 剩余用量未知",usageResetUnknown:"未知",usageSeparator:" · ",placeholder:"/ 触发候选指令,@ 引用文件",send:"发送",abort:"中断",slashCommandNoMatch:"没有匹配的指令",slashCommandYorzDebug:"启动 debug 模式,尝试解决疑难问题",slashCommandYorzSpec:"基于上下文启动 spec 驱动开发",slashCommandNewSession:"在当前会话组中开始一个新 session",customSlashCommandNoDescription:"自定义指令",attach:"添加附件",attachmentLimit:"附件总数不能超过 {{max}} 个",attachUnsupported:"不支持的文件类型:{{name}}",attachUnsupportedMime:"不支持的 MIME:{{mime}}",attachTooBig:"{{name}} 超过 10 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:"查看图表",toggleOrientation:"切换横竖屏",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:"当前离线,展示的是缓存内容"},connection:{disconnected:"服务已断开",disconnectedToast:"与 YorZ 服务的连接已中断,正在执行的任务可能已停止,请稍候或重新启动服务"},notFound:{title:"页面不存在",back:"返回首页"},pair:{title:"配对",intro:"在 PC 端点击标题「YorZ」右侧的二维码图标,扫描二维码或手动输入配对码完成配对。",scan:"扫码",manual:"手动输入",scanHint:"把二维码对准取景框",cameraStart:"开启摄像头",cameraUnavailable:"摄像头不可用,请改用手动输入",codeLabel:"配对码",codePlaceholder:"输入 8 位配对码",submit:"配对",submitting:"配对中…",success:"配对成功",invalid:"配对码无效或已过期",tooMany:"尝试过于频繁,请稍后再试",failed:"配对失败,请重试"}},_f={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",filterOptions:"Filter options…",noMatchingOptions:"No matching options"},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",history:"History",historySearchPlaceholder:"Search commit message or author",historyLoading:"Loading commit history…",historyEmpty:"No matching commits",historyLoadMore:"Load more",historyLoadingMore:"Loading more…",historyFilesLoading:"Loading changed files…",historyNoFiles:"This commit has no changed files to show",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",model:"Model",reasoningEffort:"Reasoning effort",agentDefaultOption:"--",notifications:"Notifications",pushNotification:"Task completion push",pushUnavailable:"Unavailable",pushNeedsHttps:"Enabling push requires access over HTTPS or localhost.",pushNeedsInstall:"On iOS, add to home screen first and use iOS 16.4+.",pushPermissionDenied:"Notification permission denied. Allow it in system settings.",pushFailed:"Failed to enable push. Please try again.",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",model:"Model",reasoningEffort:"Reasoning effort",agentDefaultOption:"--"},chat:{untitled:"Untitled session",empty:"No messages in this session yet",draftEmpty:"Say something to start a new session",usageLoading:"Checking current model usage…",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",slashCommandNewSession:"Start a new session in the current conversation group",customSlashCommandNoDescription:"Custom command",attach:"Add attachment",attachmentLimit:"Cannot exceed {{max}} attachments",attachUnsupported:"Unsupported file type: {{name}}",attachUnsupportedMime:"Unsupported MIME: {{mime}}",attachTooBig:"{{name}} exceeds the 10 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",toggleOrientation:"Toggle orientation",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"},connection:{disconnected:"Service disconnected",disconnectedToast:"The connection to the YorZ service was lost; running tasks may have stopped. Please wait or restart the service."},notFound:{title:"Page not found",back:"Back to home"},pair:{title:"Pair",intro:"On your PC, click the QR icon next to the “YorZ” title, then scan the QR code or type the pairing code below.",scan:"Scan",manual:"Enter code",scanHint:"Point the camera at the QR code",cameraStart:"Start camera",cameraUnavailable:"Camera unavailable — use manual entry instead",codeLabel:"Pairing code",codePlaceholder:"Enter the 8-character code",submit:"Pair",submitting:"Pairing…",success:"Paired",invalid:"Pairing code is invalid or expired",tooMany:"Too many attempts, try again later",failed:"Pairing failed, please retry"}},lc=vf({"zh-CN":{translation:kf},en:{translation:_f}},{persistKey:"yorz.m.lang"}),xc=["system","light","dark"],dc=["terminal","graphite","paper"],fc="(prefers-color-scheme: dark)",pc="yorz.appearanceHint";function wf(e){return xc.includes(e)}function Sf(e){return dc.includes(e)}function Tf(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(pc);if(!e)return null;const t=JSON.parse(e);if(!t||typeof t!="object")return null;const{mode:n,name:r}=t;return!wf(n)||!Sf(r)?null:{mode:n,name:r}}catch{return null}}function Nf(e,t){if(!(typeof window>"u"))try{window.localStorage.setItem(pc,JSON.stringify({mode:e,name:t}))}catch{}}function hc(){return typeof window>"u"||!window.matchMedia?"light":window.matchMedia(fc).matches?"dark":"light"}function gc(e,t){return e==="light"||e==="dark"?e:t?"dark":"light"}const pi=Tf(),[e0,Rf]=W(pi?.mode??"system"),[t0,$f]=W(pi?.name??"paper"),[Of,Pf]=W(gc(pi?.mode??"system",hc()==="dark"));let Ec=!1;function If(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 n0(e,t){const n=gc(e,hc()==="dark");Pf(n),If(n,t),Ec&&Nf(e,t)}function Mf(e){Rf(e),n0(e,t0())}function Lf(e){$f(e),n0(e0(),e)}let cs=!1;function Uf(e={}){cs||(cs=!0,Ec=e.persistHint??!1,n0(e0(),t0()),!(typeof window>"u"||!window.matchMedia)&&window.matchMedia(fc).addEventListener("change",()=>{e0()==="system"&&n0("system",t0())}))}const Zo="/m",zf=["/","/specs","/ext","/projects"];function ur(e){return(e.startsWith(Zo)?e.slice(Zo.length):e).replace(/\/+$/,"")||"/"}function Yo(e){return zf.includes(ur(e))}const jf="modulepreload",Hf=function(e){return"/m/"+e},ls={},mc=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(x=>Promise.resolve(x).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");o=s(n.map(c=>{if(c=Hf(c),c in ls)return;ls[c]=!0;const x=c.endsWith(".css"),l=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const f=document.createElement("link");if(f.rel=x?"stylesheet":jf,x||(f.as="script"),f.crossOrigin="",f.href=c,u&&f.setAttribute("nonce",u),document.head.appendChild(f),x)return new Promise((p,d)=>{f.addEventListener("load",p),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function qf(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:o,onRegistered:i,onRegisteredSW:s,onRegisterError:a}=e;let u,c;const x=async(f=!0)=>{await c};async function l(){if("serviceWorker"in navigator){if(u=await mc(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:f}},[]).then(({Workbox:f})=>new f("/m/sw.js",{scope:"/m/",type:"classic"})).catch(f=>{a?.(f)}),!u)return;u.addEventListener("activated",f=>{(f.isUpdate||f.isExternal)&&(n?n():window.location.reload())}),u.addEventListener("installed",f=>{f.isUpdate||o?.()}),u.register({immediate:t}).then(f=>{s?s("/m/sw.js",f):i?.(f)}).catch(f=>{a?.(f)})}}return c=l(),x}const Gf="x-yorz-pair-token";let bc=()=>null,Cc=()=>{};function Kf(e){e.tokenProvider&&(bc=e.tokenProvider),e.onUnauthorized&&(Cc=e.onUnauthorized)}function Ac(){try{return bc()}catch{return null}}function Wf(){try{Cc()}catch{}}function Bc(e){const t=Ac();if(!t)return e??{};const n=new Headers(e?.headers);return n.set(Gf,t),{...e,headers:n}}function f0(e){const t=Ac();if(!t)return e;const n=e.includes("?")?"&":"?";return`${e}${n}token=${encodeURIComponent(t)}`}async function Ur(e,t){const n=await fetch(e,Bc(t));return n.status===401&&Wf(),n}function Ae(e){return`/api/projects/${encodeURIComponent(e)}`}async function zr(e){const t=await e.text();if(!t)return"";try{return JSON.parse(t).error??t}catch{return t}}async function ue(e,t){const n=await Ur(e,t);if(!n.ok){const r=await zr(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}const oe={listSpecs:e=>ue(`${Ae(e)}/specs`),getSpec:(e,t)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}`),deleteSpec:(e,t)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}`,{method:"DELETE"}),setStage:(e,t,n)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/stage`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({stage:n})}),createSpec:(e,t)=>Ur(`${Ae(e)}/specs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).then(async n=>{if(!n.ok){const r=await zr(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}),appendAnnotation:(e,t,n)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/inputs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({kind:"annotate",...n})}),submitQuestionAnswers:(e,t,n)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/questions/answers`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),runAgent:(e,t)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/run`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),appendItem:(e,t,n)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/appends`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),explain:(e,t,n)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/explain`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:n})}),gitOp:(e,t,n)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/git`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:n})}),getProjectChanges:e=>ue(`${Ae(e)}/git/changes`),getFileDiff:(e,t)=>ue(`${Ae(e)}/git/diff?path=${encodeURIComponent(t)}`),getGitHistory:(e,t="",n)=>{const r=new URLSearchParams;t.trim()&&r.set("q",t.trim()),n!==void 0&&r.set("cursor",String(n));const o=r.size?`?${r.toString()}`:"";return ue(`${Ae(e)}/git/history${o}`)},getGitCommitFiles:(e,t)=>ue(`${Ae(e)}/git/history/${encodeURIComponent(t)}/files`),getGitCommitFileDiff:(e,t,n)=>ue(`${Ae(e)}/git/history/${encodeURIComponent(t)}/diff?path=${encodeURIComponent(n)}`),getGitBranches:e=>ue(`${Ae(e)}/git/branches`),checkoutGitBranch:(e,t)=>ue(`${Ae(e)}/git/checkout`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({branch:t})}),createGitBranch:(e,t)=>ue(`${Ae(e)}/git/create-branch`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:t})}),gitFetch:e=>ue(`${Ae(e)}/git/fetch`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})}),mergeGitBranch:(e,t)=>ue(`${Ae(e)}/git/merge`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({branch:t})}),projectCommit:(e,t)=>ue(`${Ae(e)}/git/commit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),projectDiscard:(e,t)=>ue(`${Ae(e)}/git/discard`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),projectPush:e=>ue(`${Ae(e)}/git/push`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),projectPull:e=>ue(`${Ae(e)}/git/pull`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),getDebug:(e,t)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/debug`),listProjects:()=>ue("/api/projects"),listDirs:(e,t)=>{const n=new URLSearchParams;e!==void 0&&n.set("path",e),t&&n.set("showHidden","1");const r=n.toString();return ue(`/api/fs/list${r?`?${r}`:""}`)},createDir:(e,t)=>ue("/api/fs/mkdir",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({parent:e,name:t})}),addProject:async(e,t)=>{const n=await Ur("/api/projects",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,...t?.gitInit?{gitInit:!0}:{}})});if(n.status===409){const r=await n.json();if(r.needGitInit)return{ok:!1,needGitInit:!0,path:r.path??e}}if(!n.ok){const r=await zr(n);throw new Error(`${n.status} ${r||n.statusText}`)}return{ok:!0,project:await n.json()}},listSystemNotifications:()=>ue("/api/system-notifications"),deleteSystemNotification:e=>ue(`/api/system-notifications/${encodeURIComponent(e)}`,{method:"DELETE"}),updateSystemNotification:e=>ue(`/api/system-notifications/${encodeURIComponent(e)}/update`,{method:"POST"}),restartSystemNotification:e=>ue(`/api/system-notifications/${encodeURIComponent(e)}/restart`,{method:"POST"}),removeProject:e=>ue(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE"}),removeProjectWithFiles:e=>ue(`/api/projects/${encodeURIComponent(e)}?deleteFiles=true`,{method:"DELETE"}),createWorktree:(e,t)=>ue(`/api/projects/${encodeURIComponent(e)}/worktrees`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),mergeWorktreeToMain:(e,t)=>ue(`/api/projects/${encodeURIComponent(e)}/merge-main`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectConfig:e=>ue(`/api/projects/${encodeURIComponent(e)}/config`),updateProjectConfig:(e,t)=>ue(`/api/projects/${encodeURIComponent(e)}/config`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectCustomInstructions:e=>ue(`/api/projects/${encodeURIComponent(e)}/custom-instructions`),updateProjectCustomInstructions:(e,t)=>ue(`/api/projects/${encodeURIComponent(e)}/custom-instructions`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({customInstructions:t})}),getPairingCode:()=>ue("/api/pairing/code"),claimPairing:e=>ue("/api/pairing/claim",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:e})}),getVapidPublicKey:()=>ue("/api/push/vapid-public-key"),savePushSubscription:e=>ue("/api/push/subscriptions",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),deletePushSubscription:e=>ue("/api/push/subscriptions",{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({endpoint:e})}),getGlobalConfig:()=>ue("/api/global-config"),listGlobalAgents:()=>ue("/api/agents"),listGlobalAgentModels:e=>ue(`/api/agents/${encodeURIComponent(e)}/models`),updateGlobalConfig:e=>ue("/api/global-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),createDraft:e=>ue(`${Ae(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 o=await Ur(`${Ae(e)}/spec-drafts/${encodeURIComponent(t)}/attachments`,{method:"POST",body:r});if(!o.ok){const i=await zr(o);throw new Error(`${o.status} ${i||o.statusText}`)}return o.json()},deleteAttachment:(e,t,n)=>ue(`${Ae(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"DELETE"}),renameAttachment:(e,t,n,r)=>ue(`${Ae(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:r})}),draftAttachmentUrl:(e,t,n)=>`${Ae(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,chatAttachmentUrl:(e,t,n)=>`${Ae(e)}/chat-attachments/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,specAttachmentUrl:(e,t,n)=>`${Ae(e)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,listFiles:(e,t,n=50)=>ue(`${Ae(e)}/files?query=${encodeURIComponent(t)}&limit=${n}`),listSessions:e=>ue(`${Ae(e)}/sessions`),listAgents:e=>ue(`${Ae(e)}/agents`),listAgentModels:(e,t)=>ue(`${Ae(e)}/agents/${encodeURIComponent(t)}/models`),getAgentUsageStatus:e=>ue(`${Ae(e)}/agent-usage`),createSession:(e,t={})=>ue(`${Ae(e)}/sessions`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getSessionMessages:(e,t)=>ue(`${Ae(e)}/sessions/${encodeURIComponent(t)}/messages`),getSpecMessages:(e,t)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/messages`),getSessionGroupMessages:(e,t)=>ue(`${Ae(e)}/session-groups/${encodeURIComponent(t)}/messages`),sendSessionMessage:(e,t,n,r)=>ue(`${Ae(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)=>ue(`${Ae(e)}/sessions/${encodeURIComponent(t)}/abort`,{method:"POST"}),getSpecSession:(e,t)=>ue(`${Ae(e)}/specs/${encodeURIComponent(t)}/session`),listCommands:e=>ue(`${Ae(e)}/commands`),createCommand:(e,t)=>ue(`${Ae(e)}/commands`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),deleteCommand:(e,t)=>ue(`${Ae(e)}/commands/${encodeURIComponent(t)}`,{method:"DELETE"}),listCommandRuns:e=>ue(`${Ae(e)}/command-runs`),getCommandRun:(e,t)=>ue(`${Ae(e)}/command-runs/${encodeURIComponent(t)}`),runCommand:(e,t)=>ue(`${Ae(e)}/command-runs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({commandId:t})}),readCommandOutput:(e,t,n)=>ue(`${Ae(e)}/command-runs/${encodeURIComponent(t)}/output${n===void 0?"":`?offset=${n}`}`),stopCommandRun:(e,t)=>ue(`${Ae(e)}/command-runs/${encodeURIComponent(t)}/stop`,{method:"POST"}),clearCommandRun:(e,t)=>ue(`${Ae(e)}/command-runs/${encodeURIComponent(t)}`,{method:"DELETE"})},[r4,Vf]=W(!1),[Zf,Yf]=W(!1);let Dc=null;function Xf(){Dc?.(!0)}let xs=!1;function Qf(e){const t=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!t)return null;const n=Number(t[1]),r=Number(t[2])/100,o=Number(t[3])/100;if(![n,r,o].every(Number.isFinite))return null;const i=r*Math.min(o,1-o),s=a=>{const u=(a+n/30)%12,c=o-i*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 Jf(){if(typeof window>"u"||typeof document>"u")return;const e=document.documentElement,t=window.getComputedStyle(e).getPropertyValue("--background").trim(),n=Qf(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 e9(){if(typeof window>"u"||typeof document>"u")return;const e=()=>window.requestAnimationFrame(Jf);e(),new window.MutationObserver(e).observe(document.documentElement,{attributes:!0,attributeFilter:["data-kb-theme","data-kb-theme-name"]})}function t9(){xs||(xs=!0,e9(),!(typeof navigator>"u"||!("serviceWorker"in navigator))&&(Dc=qf({immediate:!0,onOfflineReady(){Vf(!0)},onNeedRefresh(){Yf(!0)},onRegisterError(e){console.error("[pwa] service worker 注册失败",e)}})))}function Fc(){return typeof window>"u"||typeof navigator>"u"||!window.isSecureContext?!1:"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window}function n9(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=atob(n),o=new Uint8Array(new ArrayBuffer(r.length));for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o}async function r9(){if(!Fc())throw new Error("push-unsupported");if(await Notification.requestPermission()!=="granted")throw new Error("permission-denied");const{publicKey:t}=await oe.getVapidPublicKey(),n=await navigator.serviceWorker.ready,o=await n.pushManager.getSubscription()??await n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:n9(t)});await oe.savePushSubscription(o.toJSON())}async function o9(){if(typeof navigator>"u"||!("serviceWorker"in navigator))return;const t=await(await navigator.serviceWorker.ready).pushManager.getSubscription();if(!t)return;const n=t.endpoint;try{await t.unsubscribe()}finally{await oe.deletePushSubscription(n).catch(()=>{})}}function ds(){if(typeof window>"u")return!1;const e=window.navigator.standalone;return window.matchMedia("(display-mode: standalone)").matches||e===!0}const Xo="yorz.m.token";function i9(){if(typeof window>"u")return null;try{return localStorage.getItem(Xo)}catch{return null}}function s9(e){if(!(typeof window>"u"))try{e?localStorage.setItem(Xo,e):localStorage.removeItem(Xo)}catch{}}const[yc,a9]=W(i9());function u9(){return!!yc()}function vc(e){a9(e),s9(e)}async function c9(e){const{token:t}=await oe.claimPairing(e.trim());vc(t)}function kc(){Kf({tokenProvider:()=>yc(),onUnauthorized:()=>vc(null)})}kc();function l9(){kc()}const fs="data-vt";function x9(){return typeof document<"u"&&typeof document.startViewTransition=="function"}function d9(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ps(e){return e.split("/").filter(Boolean).length}function f9(e,t){const n=ps(e),r=ps(t);return r>n?"forward":r<n?"back":"lateral"}function _c(e){const t=typeof window>"u"?"http://localhost":window.location.origin;try{return new URL(e,t).pathname}catch{return e}}function hs(e,t=600){return e()?Promise.resolve():new Promise(n=>{let r=!1,o;const i=setTimeout(s,t);function s(){r||(r=!0,clearTimeout(i),o?.(),n())}fn(a=>{o=a,Se(()=>{e()&&s()})})})}let Sr=null;function p9(e,t){const n=document.documentElement;Sr?.skipTransition(),n.setAttribute(fs,e);const r=document.startViewTransition(async()=>{await t()});Sr=r,r.finished.catch(()=>{}).finally(()=>{Sr===r&&(Sr=null,n.removeAttribute(fs))})}function h9(e,t){return e.defaultPrevented||e.enabled===!1||e.replace||typeof e.to=="string"&&_c(e.to)===e.fromPathname?null:t(e.fromPathname,e.to)}function g9(e){const t=gr(),n=yd();vd(r=>{const o=t.pathname,i=h9({fromPathname:o,to:r.to,replace:r.options?.replace,defaultPrevented:r.defaultPrevented,enabled:x9()&&!d9()},e.resolveDirection);if(!i)return;const s=typeof r.to=="number";r.preventDefault();const a=s?E9():void 0;p9(i,async()=>{a&&await a,r.retry(!0),s&&await hs(()=>t.pathname!==o),await hs(()=>!n())})})}function E9(e=600){return new Promise(t=>{let n=!1;function r(){n||(n=!0,clearTimeout(o),window.removeEventListener("popstate",r),t())}const o=setTimeout(r,e);window.addEventListener("popstate",r,{once:!0})})}/**
|
|
2
|
+
* @license lucide-solid v1.24.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/var m9={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"},Nn=m9,b9=ci({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),C9=P("<svg>"),A9=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},B9=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),D9=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),gs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),F9=e=>{const t=D9(e);return t.charAt(0).toUpperCase()+t.slice(1)},y9=e=>{const[t,n]=Hn(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=l0(b9);return(()=>{var o=C9();return hr(o,Me(Nn,{get width(){return t.size??r.size??Nn.width},get height(){return t.size??r.size??Nn.height},get stroke(){return t.color??r.color??Nn.stroke},get"stroke-width"(){return Ue(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Nn["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Nn["stroke-width"])},get class(){return B9("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${gs(F9(t.name))}`,`lucide-${gs(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!A9(n)?"true":void 0}},n),!0,!0),D(o,b(We,{get each(){return t.iconNode},children:([i,s])=>b(Vu,Me({component:i},s))})),o})()},Xe=y9,v9=[["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"}]],k9=e=>b(Xe,Me(e,{iconNode:v9,name:"blocks"})),_9=k9,w9=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],S9=e=>b(Xe,Me(e,{iconNode:w9,name:"check"})),p0=S9,T9=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],N9=e=>b(Xe,Me(e,{iconNode:T9,name:"chevron-down"})),hi=N9,R9=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$9=e=>b(Xe,Me(e,{iconNode:R9,name:"chevron-left"})),O9=$9,P9=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],I9=e=>b(Xe,Me(e,{iconNode:P9,name:"chevron-right"})),wc=I9,M9=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],L9=e=>b(Xe,Me(e,{iconNode:M9,name:"chevrons-up-down"})),U9=L9,z9=[["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"}]],j9=e=>b(Xe,Me(e,{iconNode:z9,name:"circle-question-mark"})),H9=j9,q9=[["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"}]],G9=e=>b(Xe,Me(e,{iconNode:q9,name:"cloud-off"})),K9=G9,W9=[["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"}]],V9=e=>b(Xe,Me(e,{iconNode:W9,name:"ellipsis"})),cr=V9,Z9=[["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"}]],Y9=e=>b(Xe,Me(e,{iconNode:Z9,name:"file-code-corner"})),X9=Y9,Q9=[["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"}]],J9=e=>b(Xe,Me(e,{iconNode:Q9,name:"file-text"})),Sc=J9,ep=[["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"}]],tp=e=>b(Xe,Me(e,{iconNode:ep,name:"folder-git-2"})),np=tp,rp=[["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"}]],op=e=>b(Xe,Me(e,{iconNode:rp,name:"git-branch"})),gi=op,ip=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sp=e=>b(Xe,Me(e,{iconNode:ip,name:"loader-circle"})),Ei=sp,ap=[["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"}]],up=e=>b(Xe,Me(e,{iconNode:ap,name:"message-square"})),cp=up,lp=[["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=>b(Xe,Me(e,{iconNode:lp,name:"messages-square"})),dp=xp,fp=[["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"}]],pp=e=>b(Xe,Me(e,{iconNode:fp,name:"paperclip"})),hp=pp,gp=[["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"}]],Ep=e=>b(Xe,Me(e,{iconNode:gp,name:"play"})),mp=Ep,bp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Cp=e=>b(Xe,Me(e,{iconNode:bp,name:"plus"})),mi=Cp,Ap=[["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"}]],Bp=e=>b(Xe,Me(e,{iconNode:Ap,name:"refresh-cw"})),Dp=Bp,Fp=[["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"}]],yp=e=>b(Xe,Me(e,{iconNode:Fp,name:"rotate-ccw"})),vp=yp,kp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],_p=e=>b(Xe,Me(e,{iconNode:kp,name:"rotate-cw"})),wp=_p,Sp=[["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"}]],Tp=e=>b(Xe,Me(e,{iconNode:Sp,name:"send"})),Np=Tp,Rp=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],$p=e=>b(Xe,Me(e,{iconNode:Rp,name:"square"})),Op=$p,Pp=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Ip=e=>b(Xe,Me(e,{iconNode:Pp,name:"terminal"})),Mp=Ip,Lp=[["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"}]],Up=e=>b(Xe,Me(e,{iconNode:Lp,name:"trash-2"})),zp=Up,jp=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],Hp=e=>b(Xe,Me(e,{iconNode:jp,name:"unplug"})),qp=Hp,Gp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kp=e=>b(Xe,Me(e,{iconNode:Gp,name:"x"})),hn=Kp;const[Es,ms]=W(typeof navigator>"u"?!0:navigator.onLine);function Wp(){if(typeof window>"u")return;const e=()=>ms(!0),t=()=>ms(!1);window.addEventListener("online",e),window.addEventListener("offline",t),Ie(()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)})}const F=lc.t,h0=lc.useTranslation;var Vp=P('<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">'),Zp=P('<div class="flex items-center gap-2 bg-warning px-4 py-1.5 text-xs text-warning-foreground"role=status><span>');const Yp=()=>b(q,{get when(){return!Es()||Zf()},get children(){return b(q,{get when(){return Es()},get fallback(){return(()=>{var e=Zp(),t=e.firstChild;return D(e,b(K9,{size:14,"aria-hidden":"true"}),t),D(t,()=>F("pwa.offline")),e})()},get children(){var e=Vp(),t=e.firstChild,n=t.nextSibling;return D(e,b(Dp,{size:14,"aria-hidden":"true"}),t),D(t,()=>F("pwa.needRefresh")),n.$$click=()=>Xf(),D(n,()=>F("pwa.refresh")),e}})}});He(["click"]);function Tc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Tc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tc(e))&&(r&&(r+=" "),r+=t);return r}const Xp=(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},Qp=(e,t)=>({classGroupId:e,validator:t}),Rc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),r0="-",bs=[],Jp="arbitrary..",eh=e=>{const t=nh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return th(s);const a=s.split(r0),u=a[0]===""&&a.length>1?1:0;return $c(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=r[s],c=n[s];return u?c?Xp(c,u):u:c||bs}return n[s]||bs}}},$c=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=$c(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(r0):e.slice(t).join(r0),u=s.length;for(let c=0;c<u;c++){const x=s[c];if(x.validator(a))return x.classGroupId}},th=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?Jp+r:void 0})(),nh=e=>{const{theme:t,classGroups:n}=e;return rh(n,t)},rh=(e,t)=>{const n=Rc();for(const r in e){const o=e[r];bi(o,n,r,t)}return n},bi=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];oh(s,t,n,r)}},oh=(e,t,n,r)=>{if(typeof e=="string"){ih(e,t,n);return}if(typeof e=="function"){sh(e,t,n,r);return}ah(e,t,n,r)},ih=(e,t,n)=>{const r=e===""?t:Oc(t,e);r.classGroupId=n},sh=(e,t,n,r)=>{if(uh(e)){bi(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Qp(n,e))},ah=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,u]=o[s];bi(u,Oc(t,a),n,r)}},Oc=(e,t)=>{let n=e;const r=t.split(r0),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Rc(),n.nextPart.set(s,a)),n=a}return n},uh=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ch=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Qo="!",Cs=":",lh=[],As=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),xh=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,u=0,c;const x=o.length;for(let h=0;h<x;h++){const g=o[h];if(s===0&&a===0){if(g===Cs){i.push(o.slice(u,h)),u=h+1;continue}if(g==="/"){c=h;continue}}g==="["?s++:g==="]"?s--:g==="("?a++:g===")"&&a--}const l=i.length===0?o:o.slice(u);let f=l,p=!1;l.endsWith(Qo)?(f=l.slice(0,-1),p=!0):l.startsWith(Qo)&&(f=l.slice(1),p=!0);const d=c&&c>u?c-u:void 0;return As(i,p,f,d)};if(t){const o=t+Cs,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):As(lh,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},dh=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",u=t.has(s);a||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},fh=e=>({cache:ch(e.cacheSize),parseClassName:xh(e),sortModifiers:dh(e),postfixLookupClassGroupIds:ph(e),...eh(e)}),ph=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},hh=/\s+/,gh=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],u=e.trim().split(hh);let c="";for(let x=u.length-1;x>=0;x-=1){const l=u[x],{isExternal:f,modifiers:p,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:g}=n(l);if(f){c=l+(c.length>0?" "+c:c);continue}let m=!!g,E;if(m){const v=h.substring(0,g);E=r(v);const k=E&&s[E]?r(h):void 0;k&&k!==E&&(E=k,m=!1)}else E=r(h);if(!E){if(!m){c=l+(c.length>0?" "+c:c);continue}if(E=r(h),!E){c=l+(c.length>0?" "+c:c);continue}m=!1}const C=p.length===0?"":p.length===1?p[0]:i(p).join(":"),A=d?C+Qo:C,B=A+E;if(a.indexOf(B)>-1)continue;a.push(B);const y=o(E,m);for(let v=0;v<y.length;++v){const k=y[v];a.push(A+k)}c=l+(c.length>0?" "+c:c)}return c},Eh=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Pc(n))&&(o&&(o+=" "),o+=r);return o},Pc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Pc(e[r]))&&(n&&(n+=" "),n+=t);return n},mh=(e,...t)=>{let n,r,o,i;const s=u=>{const c=t.reduce((x,l)=>l(x),e());return n=fh(c),r=n.cache.get,o=n.cache.set,i=a,a(u)},a=u=>{const c=r(u);if(c)return c;const x=gh(u,n);return o(u,x),x};return i=s,(...u)=>i(Eh(...u))},bh=[],ft=e=>{const t=n=>n[e]||bh;return t.isThemeGetter=!0,t},Ic=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ch=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ah=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bh=/\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$/,Dh=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fh=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>Ch.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),jt=e=>!!e&&Number.isInteger(Number(e)),I0=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),Qt=e=>Ah.test(e),Lc=()=>!0,vh=e=>Bh.test(e)&&!Dh.test(e),Ci=()=>!1,kh=e=>Fh.test(e),_h=e=>yh.test(e),wh=e=>!xe(e)&&!fe(e),Sh=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)),Th=e=>gn(e,jc,Ci),xe=e=>Ic.test(e),bn=e=>gn(e,Hc,vh),Bs=e=>gn(e,Lh,Pe),Nh=e=>gn(e,Gc,Lc),Rh=e=>gn(e,qc,Ci),Ds=e=>gn(e,Uc,Ci),$h=e=>gn(e,zc,_h),Tr=e=>gn(e,Kc,kh),fe=e=>Mc.test(e),Zn=e=>yn(e,Hc),Oh=e=>yn(e,qc),Fs=e=>yn(e,Uc),Ph=e=>yn(e,jc),Ih=e=>yn(e,zc),Nr=e=>yn(e,Kc,!0),Mh=e=>yn(e,Gc,!0),gn=(e,t,n)=>{const r=Ic.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yn=(e,t,n=!1)=>{const r=Mc.exec(e);return r?r[1]?t(r[1]):n:!1},Uc=e=>e==="position"||e==="percentage",zc=e=>e==="image"||e==="url",jc=e=>e==="length"||e==="size"||e==="bg-size",Hc=e=>e==="length",Lh=e=>e==="number",qc=e=>e==="family-name",Gc=e=>e==="number"||e==="weight",Kc=e=>e==="shadow",Uh=()=>{const e=ft("color"),t=ft("font"),n=ft("text"),r=ft("font-weight"),o=ft("tracking"),i=ft("leading"),s=ft("breakpoint"),a=ft("container"),u=ft("spacing"),c=ft("radius"),x=ft("shadow"),l=ft("inset-shadow"),f=ft("text-shadow"),p=ft("drop-shadow"),d=ft("blur"),h=ft("perspective"),g=ft("aspect"),m=ft("ease"),E=ft("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),fe,xe],y=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],k=()=>[fe,xe,u],w=()=>[cn,"full","auto",...k()],O=()=>[jt,"none","subgrid",fe,xe],N=()=>["auto",{span:["full",jt,fe,xe]},jt,fe,xe],R=()=>[jt,"auto",fe,xe],M=()=>["auto","min","max","fr",fe,xe],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...k()],_=()=>[cn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],G=()=>[cn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],I=()=>[cn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],S=()=>[e,fe,xe],U=()=>[...A(),Fs,Ds,{position:[fe,xe]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Ph,Th,{size:[fe,xe]}],j=()=>[I0,Zn,bn],Z=()=>["","none","full",c,fe,xe],te=()=>["",Pe,Zn,bn],ie=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Pe,I0,Fs,Ds],ve=()=>["","none",d,fe,xe],_e=()=>["none",Pe,fe,xe],Ne=()=>["none",Pe,fe,xe],Qe=()=>[Pe,fe,xe],Je=()=>[cn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qt],breakpoint:[Qt],color:[Lc],container:[Qt],"drop-shadow":[Qt],ease:["in","out","in-out"],font:[wh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qt],shadow:[Qt],spacing:["px",Pe],text:[Qt],"text-shadow":[Qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",cn,xe,fe,g]}],container:["container"],"container-type":[{"@container":["","normal","size",fe,xe]}],"container-named":[Sh],columns:[{columns:[Pe,xe,fe,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:B()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[jt,"auto",fe,xe]}],basis:[{basis:[cn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,cn,"auto","initial","none",xe]}],grow:[{grow:["",Pe,fe,xe]}],shrink:[{shrink:["",Pe,fe,xe]}],order:[{order:[jt,"first","last","none",fe,xe]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mbs:[{mbs:K()}],mbe:[{mbe:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[a,"screen",..._()]}],"min-w":[{"min-w":[a,"screen","none",..._()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,Zn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Mh,Nh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",I0,xe]}],"font-family":[{font:[Oh,Rh,t]}],"font-features":[{"font-features":[xe]}],"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:[o,fe,xe]}],"line-clamp":[{"line-clamp":[Pe,"none",fe,Bs]}],leading:[{leading:[i,...k()]}],"list-image":[{"list-image":["none",fe,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",fe,bn]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Pe,"auto",fe,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[jt,fe,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,xe]}],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",fe,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jt,fe,xe],radial:["",fe,xe],conic:[jt,fe,xe]},Ih,$h]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-bs":[{"border-bs":S()}],"border-color-be":[{"border-be":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,fe,xe]}],"outline-w":[{outline:["",Pe,Zn,bn]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",x,Nr,Tr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",l,Nr,Tr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Pe,bn]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",f,Nr,Tr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Pe,fe,xe]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[fe,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,xe]}],filter:[{filter:["","none",fe,xe]}],blur:[{blur:ve()}],brightness:[{brightness:[Pe,fe,xe]}],contrast:[{contrast:[Pe,fe,xe]}],"drop-shadow":[{"drop-shadow":["","none",p,Nr,Tr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Pe,fe,xe]}],"hue-rotate":[{"hue-rotate":[Pe,fe,xe]}],invert:[{invert:["",Pe,fe,xe]}],saturate:[{saturate:[Pe,fe,xe]}],sepia:[{sepia:["",Pe,fe,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,xe]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,fe,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,fe,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,fe,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,fe,xe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,fe,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,fe,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,fe,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,fe,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",fe,xe]}],ease:[{ease:["linear","initial",m,fe,xe]}],delay:[{delay:[Pe,fe,xe]}],animate:[{animate:["none",E,fe,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,fe,xe]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Qe()}],"skew-x":[{"skew-x":Qe()}],"skew-y":[{"skew-y":Qe()}],transform:[{transform:[fe,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],zoom:[{zoom:[jt,fe,xe]}],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",fe,xe]}],"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":S()}],"scrollbar-track-color":[{"scrollbar-track":S()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",fe,xe]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Pe,Zn,bn,Bs]}],stroke:[{stroke:["none",...S()]}],"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"]}},zh=mh(Uh);function rt(...e){return zh(Nc(e))}var jh=P('<nav class="shrink-0 border-t-[0.5px] border-border bg-card px-safe pb-safe"><ul class="flex items-stretch justify-around">'),Hh=P("<span>"),qh=P("<li class=flex-1>");const Gh=[{href:"/",labelKey:"nav.sessions",icon:dp,end:!0},{href:"/specs",labelKey:"nav.specs",icon:Sc,end:!1},{href:"/ext",labelKey:"nav.ext",icon:_9,end:!1},{href:"/projects",labelKey:"nav.projects",icon:np,end:!1}],Kh=()=>{const e=gr(),t=(n,r)=>{const o=ur(e.pathname);return r?o===n:o.startsWith(n)};return(()=>{var n=jh(),r=n.firstChild;return D(r,b(We,{each:Gh,children:o=>(()=>{var i=qh();return D(i,b(rc,{get href(){return o.href},get class(){return rt("flex h-14 flex-col items-center justify-center gap-0.5 text-[0.68rem] transition-colors",t(o.href,o.end)?"font-semibold text-primary":"text-muted-foreground active:text-foreground")},get"aria-current"(){return t(o.href,o.end)?"page":void 0},get children(){return[b(o.icon,{size:20,"aria-hidden":"true"}),(()=>{var s=Hh();return D(s,()=>F(o.labelKey)),s})()]}})),i})()})),X(()=>re(n,"aria-label",F("nav.sessions"))),n})()};var Wh=P('<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 Vh=3e3,[Zh,Wc]=W(null);let ys=0;function De(e,t="default"){ys+=1,Wc({message:e,tone:t,seq:ys})}const Yh=()=>{let e;const t=n=>{e&&clearTimeout(e),n&&(e=setTimeout(()=>{Wc(r=>r?.seq===n.seq?null:r)},Vh))};return Ie(()=>{e&&clearTimeout(e)}),b(q,{get when(){return Zh()},keyed:!0,children:n=>(t(n),(()=>{var r=Wh(),o=r.firstChild;return D(o,()=>n.message),X(()=>Ge(o,rt("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})())})},Xh=16e3,Qh=5e3,Jh=5e3;function eg(){const e=globalThis;return e.crypto?.randomUUID?e.crypto.randomUUID():`c-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}class tg{clientId=eg();source=null;handlers=new Map;syncTimer=null;syncInFlight=!1;syncPending=!1;lastFrameAt=0;watchdogTimer=null;visibilityBound=!1;connected=!0;connListeners=new Set;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 o=this.handlers.get(t);o&&(o.delete(n),o.size===0&&this.handlers.delete(t),this.scheduleSync())}}readyState(){return this.source?.readyState??2}ensureOpen(){if(this.source)return;const t=f0(`/api/events/stream?clientId=${encodeURIComponent(this.clientId)}`),n=new EventSource(t);this.source=n,this.lastFrameAt=Date.now(),this.startWatchdog(),n.addEventListener("open",()=>{this.lastFrameAt=Date.now(),this.markConnected(!0),this.scheduleSync(!0)}),n.addEventListener("server-heartbeat",r=>{this.lastFrameAt=Date.now(),this.markConnected(!0);let o={ts:Date.now()};try{o=JSON.parse(r.data)}catch{}for(const i of this.handlers.values())for(const s of i)try{s("server-heartbeat",o)}catch{}}),n.addEventListener("msg",r=>{this.lastFrameAt=Date.now(),this.markConnected(!0);let o;try{o=JSON.parse(r.data)}catch{return}const i=this.handlers.get(o.topic);if(i)for(const s of i)try{s(o.event,o.data)}catch{}}),n.addEventListener("error",()=>{})}startWatchdog(){if(this.watchdogTimer===null){const t=setInterval(()=>this.checkAlive(),Jh);t.unref?.(),this.watchdogTimer=t}!this.visibilityBound&&typeof document<"u"&&(this.visibilityBound=!0,document.addEventListener("visibilitychange",()=>{document.hidden||this.checkAlive()}))}checkAlive(){const t=this.source;if(!t)return;const n=Date.now()-this.lastFrameAt,r=t.readyState===2;(n>Qh||r)&&this.markConnected(!1),(n>Xh||r)&&this.reconnect()}markConnected(t){if(this.connected!==t){this.connected=t;for(const n of this.connListeners)try{n(t)}catch{}}}isConnected(){return this.connected}subscribeConnectionState(t){return this.connListeners.add(t),this.ensureOpen(),t(this.connected),()=>{this.connListeners.delete(t)}}reconnect(){const t=this.source;this.source=null;try{t?.close()}catch{}this.ensureOpen()}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",Bc({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))}}dispose(){this.watchdogTimer!==null&&(clearInterval(this.watchdogTimer),this.watchdogTimer=null),this.syncTimer!==null&&(clearTimeout(this.syncTimer),this.syncTimer=null);try{this.source?.close()}catch{}this.source=null,this.handlers.clear(),this.connListeners.clear(),this.connected=!0}}let Wt=new tg;function g0(e){const t=e;return t.readyState=()=>Wt.readyState(),t}function ng(e,t,n){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const r=`project:${e}:spec:${t}`,o=Wt.subscribe(r,(i,s)=>{switch(i){case"updated":n.onUpdated?.();break;case"server-heartbeat":n.onServerHeartbeat?.(s);break}});return g0(o)}function E0(e,t,n){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const r=`project:${e}:session:${t}`,o=Wt.subscribe(r,(i,s)=>{i==="session-msg"?n.onEvent?.(s):i==="ready"?n.onReady?.(s):i==="server-heartbeat"&&n.onServerHeartbeat?.(s)});return g0(o)}function Vc(e,t){if(!e){const o=(()=>{});return o.readyState=()=>2,o}const n=`project:${e}:sessions`,r=Wt.subscribe(n,(o,i)=>{o==="session-status"?t.onStatus?.(i):o==="server-heartbeat"&&t.onServerHeartbeat?.(i)});return g0(r)}function Ai(e,t){if(!e)return()=>{};const n=`project:${e}:specs`;return Wt.subscribe(n,r=>{r==="list-updated"&&t()})}function rg(e){return Wt.subscribe("projects",t=>{t==="projects-changed"&&e()})}function og(e){return Wt.subscribeConnectionState(e)}function Zc(e,t){if(!e)return()=>{};const n=`project:${e}:commands`;return Wt.subscribe(n,(r,o)=>{r==="runs-updated"&&t(o.runs)})}function ig(e,t,n){if(!e||!t)return()=>{};const r=`project:${e}:command:${t}`;return Wt.subscribe(r,(o,i)=>{if(o==="output-appended")n.onOutput?.(i);else if(o==="run-updated")n.onRun?.(i.run);else if(o==="ready"){const s=i.run;s&&n.onRun?.(s)}else o==="error"&&n.onError?.(String(i.error??"unknown error"))})}function sg(e,t){if(!e){const o=(()=>{});return o.readyState=()=>2,o}const n=`project:${e}:changes`,r=Wt.subscribe(n,(o,i)=>{o==="changes-updated"&&t(i.changes)});return g0(r)}const[ag,ug]=W(!0);function cg(){const e=og(ug);Ie(e)}function lg(e,t){if(typeof t=="number")return t===0?null:t<0?"back":"forward";const n=ur(e),r=ur(_c(t));return Yo(n)&&Yo(r)?"lateral":f9(n,r)}var xg=P('<main class="vt-page flex min-h-0 flex-1 flex-col">');const dg=e=>{Wp(),cg(),g9({resolveDirection:lg});const t=gr(),n=pt();return Se(()=>{ur(t.pathname)!=="/pair"&&!u9()&&n("/pair",{replace:!0})}),[b(Yp,{}),(()=>{var r=xg();return D(r,()=>e.children),r})(),b(q,{get when(){return Yo(t.pathname)},get children(){return b(Kh,{})}}),b(Yh,{})]};var fg=["second","minute","hour","day","week","month","year"];function pg(e,t){if(t===0)return["just now","right now"];var n=fg[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}var hg=["秒","分钟","小时","天","周","个月","年"];function gg(e,t){if(t===0)return["刚刚","片刻后"];var n=hg[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}var Jo={},qn=function(e,t){Jo[e]=t},Eg=function(e){return Jo[e]||Jo.en_US},M0=[60,60,24,7,365/7/12,12];function mg(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 bg(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,o=0;e>=M0[o]&&o<M0.length;o++)e/=M0[o];return e=Math.floor(e),o*=2,e>(o===0?9:1)&&(o+=1),t(e,o,r)[n].replace("%s",e.toString())}function Cg(e,t){var n=new Date;return(+n-+mg(e))/1e3}var Yc=function(e,t,n){var r=Cg(e);return bg(r,Eg(t))};qn("en_US",pg);qn("zh_CN",gg);function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr={},vs;function Ag(){if(vs)return Rr;vs=1,Object.defineProperty(Rr,"__esModule",{value:!0});var e=["秒","分钟","小时","天","周","个月","年"];function t(n,r){if(r===0)return["刚刚","片刻后"];var o=e[~~(r/2)];return[n+" "+o+"前",n+" "+o+"后"]}return Rr.default=t,Rr}var Bg=Ag();const Xc=mr(Bg);function Qc(e){return e?!!(e.startsWith("/")||/^data:image\//i.test(e)||e.startsWith("blob:")||/^https:\/\//i.test(e)):!1}const Jc=`
|
|
7
|
+
|
|
8
|
+
`,Dg="<!-- yorz:hidden -->",Fg=/<!-- yorz:hidden -->[\s\S]*?<!-- \/yorz:hidden -->\n?/g;function o0(e){return e.includes(Dg)?e.replace(Fg,"").trim():e}function yg(e,t){return t.type==="text"?t.contextKind?{kind:"context",contextKind:t.contextKind,text:t.text}:{kind:"text",role:e,text:o0(t.text)}:t.type==="tool-use"?{kind:"tool",name:t.name,input:t.input}:t.type==="image"?{kind:"image",role:"assistant",src:t.data,alt:t.alt}:{kind:"tool",result:t.text}}const ks=/!\[([^\]]*)\]\(([^)\s]*chat-attachments\/[^)\s]+)\)/g;function vg(e,t){if(!t||!e.includes("chat-attachments/"))return[];const n=[];ks.lastIndex=0;let r;for(;(r=ks.exec(e))!==null;){const o=r[1]??"",s=(r[2]??"").match(/chat-attachments\/([^/]+)\/attachments\/([^/?#]+)/);if(!s)continue;const a=decodeURIComponent(s[1]),u=decodeURIComponent(s[2]),c={kind:"image",role:"user",src:t(a,u)};o&&(c.alt=o),n.push(c)}return n}function el(e,t={}){const n=[];for(const r of e){let o=!1;for(const i of r.parts){const s=yg(r.role,i);if(s.kind==="text"){const a=n[n.length-1],u=!o&&a?.kind==="text"&&a.role===s.role;if(n.push(u?{...s,text:Jc+s.text}:s),o=!0,r.role==="user"&&i.type==="text")for(const c of vg(i.text,t.imageUrl))n.push(c)}else n.push(s)}}return n}function _s(e,t={}){const n=[];for(const r of e){const o=el(r.messages,t);o.length!==0&&(n.length>0&&n.push({kind:"divider",sessionId:r.sessionId,agentKind:r.kind,startedAt:r.createdAt}),n.push(...o))}return n}function kg(e,t){return!e||!t||e.endsWith(`
|
|
9
|
+
`)||t.startsWith(`
|
|
10
|
+
`)?e+t:e+Jc+t}function _g(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 ws(e,t,n){return`${e}#${t}:${n}`}function wg(e){const t=[];let n=null,r=0;const o=()=>`t${r++}`,i=()=>(n||(n={kind:"assistant",segments:[]},t.push(n)),n);for(const a of e){if(a.kind==="divider"){n=null,t.push({kind:"divider",sessionId:a.sessionId,agentKind:a.agentKind,startedAt:a.startedAt});continue}if(a.kind==="context"){n=null;const x=t[t.length-1];x?.kind==="context"?x.contexts.push(a):t.push({kind:"context",contexts:[a]});continue}if(a.kind==="text"&&a.role==="user"){n=null;const x=t[t.length-1];x?.kind==="user"?x.text=kg(x.text,a.text):t.push({kind:"user",text:a.text});continue}if(a.kind==="image"&&a.role==="user"){n=null;const x=t[t.length-1];x?.kind==="user"?(x.images??=[]).push(a):t.push({kind:"user",text:"",images:[a]});continue}const u=i(),c=u.segments[u.segments.length-1];if(a.kind==="text"){c?.kind==="text"?c.text+=a.text:u.segments.push({kind:"text",text:a.text});continue}if(a.kind==="image"){c?.kind==="image"?c.images.push(a):u.segments.push({kind:"image",images:[a]});continue}c?.kind==="tools"?a.result!==void 0&&a.name===void 0?_g(c.tools,a.result):c.tools.push({...a}):u.segments.push({kind:"tools",id:o(),tools:[{...a}]})}return t.map(a=>a.kind==="user"?{...a,text:o0(a.text)}:a.kind!=="assistant"?a:{...a,segments:a.segments.map(u=>u.kind==="text"?{...u,text:o0(u.text)}:u)}).filter(a=>a.kind!=="assistant"||a.segments.length>0)}function Sg(e){const t=o0(e.title),r=(/^\s*<!--\s*yorz:hidden\b/i.test(t)?"":t)||e.id;return r===e.title?e:{...e,title:r}}function Tg(e,t){const n=[],r=new Map;for(const o of e){const i=Sg(o),s=t(i.id),a=i.specId?void 0:i.groupId,u=i.specId??a;if(!u){n.push({key:i.id,sessions:[i],latest:i,updatedAt:i.updatedAt,running:s});continue}const c=`${i.specId?"spec":"chat"}:${u}`,x=r.get(c);if(!x){const l={key:u,specId:i.specId,groupId:a,sessions:[i],latest:i,updatedAt:i.updatedAt,running:s};r.set(c,l),n.push(l);continue}x.sessions.push(i),i.updatedAt>x.latest.updatedAt&&(x.latest=i),x.updatedAt=Math.max(x.updatedAt,i.updatedAt),x.running||=s}for(const o of r.values())o.sessions.sort((i,s)=>i.createdAt-s.createdAt);return n}const Ss=[["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 tl(e,t){return Ss[t]??Ss[0]}var Ng=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),Rg=P('<button type=button class="tap-target shrink-0 text-destructive active:opacity-60">'),$g=P('<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 Og=e=>(()=>{var t=$g(),n=t.firstChild,r=n.firstChild,o=r.nextSibling,i=o.nextSibling;return D(r,b(q,{get when(){return e.onBack},get children(){var s=Ng();return s.$$click=()=>e.onBack?.(),D(s,b(O9,{size:20,"aria-hidden":"true"})),X(()=>re(s,"aria-label",e.title)),s}}),null),D(r,()=>e.leading,null),D(o,()=>e.title),D(n,b(q,{get when(){return!ag()},get children(){var s=Rg();return s.$$click=()=>De(F("connection.disconnectedToast"),"error"),D(s,b(qp,{size:18,"aria-hidden":"true"})),X(()=>re(s,"aria-label",F("connection.disconnected"))),s}}),i),D(i,()=>e.actions),t})();He(["click"]);var Pg=P('<div class="scroll-y min-h-0 flex-1 px-safe"><div>'),Ig=P('<div class="flex min-h-0 flex-1 flex-col px-safe">');const Ft=e=>[b(Og,{get title(){return e.title},get actions(){return e.actions},get leading(){return e.leading},get onBack(){return e.onBack}}),b(q,{get when(){return!e.fill},get fallback(){return(()=>{var t=Ig();return D(t,()=>e.children),t})()},get children(){var t=Pg(),n=t.firstChild;Wu(t,"scroll",e.onScroll);var r=e.scrollRef;return typeof r=="function"?Tt(r,t):e.scrollRef=t,D(n,()=>e.children),X(()=>Ge(n,e.padded===!1?"":"px-4 py-4")),t}}),Ue(()=>e.footer)],Mg=2;function Lg(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 Ug(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:Lg(e.resetsAt,t)})}function zg(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")return"";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,Mg).map(o=>Ug(o,n)).join(n.t("chat.usageSeparator"))})}const ei="yorz.mobile.activeProjectId";function jg(){if(typeof window>"u")return null;try{return window.localStorage.getItem(ei)}catch{return null}}function Hg(e){if(!(typeof window>"u"))try{e?window.localStorage.setItem(ei,e):window.localStorage.removeItem(ei)}catch{}}const[me,qg]=W(jg());function ti(e){qg(e),Hg(e)}function Gg(e){const t=me();t&&e.some(n=>n.id===t)||ti(e[0]?.id??null)}const[Pn,{refetch:nl}]=ot(async()=>{const e=await oe.listProjects();return Gg(e),e});typeof window<"u"&&rg(()=>void nl());function Kg(){const e=me();if(e)return Pn()?.find(t=>t.id===e)}var Wg=P('<p class="text-xs text-muted-foreground/80">');const rl=()=>{const{lng:e}=h0(),[t]=ot(()=>me()||void 0,r=>oe.getAgentUsageStatus(r)),n=he(()=>(e(),t.error?"":zg(t.latest,t.loading,{t:F,formatTime:r=>r.toLocaleString(e())})));return b(q,{get when(){return n()},children:r=>(()=>{var o=Wg();return D(o,r),o})()})};var Vg=P('<p class="text-xs text-muted-foreground/80">'),Zg=P("<div class=pt-2>"),Yg=P('<div class="flex flex-col items-center gap-2 px-8 py-16 text-center"><p class="text-sm text-muted-foreground">'),Xg=P('<button type=button class="min-h-11 rounded-md border border-border px-4 text-sm active:bg-accent">');const It=e=>(()=>{var t=Yg(),n=t.firstChild;return D(n,()=>e.title),D(t,b(q,{get when(){return e.hint},get children(){var r=Vg();return D(r,()=>e.hint),r}}),null),D(t,b(q,{get when(){return e.action},get children(){var r=Zg();return D(r,()=>e.action),r}}),null),t})(),En=()=>b(It,{get title(){return F("common.loading")}}),nn=e=>b(It,{get title(){return F("common.error")},get hint(){return Ue(()=>e.error instanceof Error)()?e.error.message:String(e.error)},get action(){return(()=>{var t=Xg();return t.$$click=()=>e.onRetry(),D(t,()=>F("common.retry")),t})()}}),Mt=()=>b(It,{get title(){return F("common.noProject")},get hint(){return F("common.noProjectHint")}});He(["click"]);const Qg="yorz.m.sessions.",Jg=30,ol=e=>`${Qg}${e}`;function e1(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 il(e){try{const t=window.localStorage.getItem(ol(e));if(!t)return null;const n=JSON.parse(t);if(!Array.isArray(n))return null;const r=n.filter(e1);return r.length>0?r:null}catch{return null}}function sl(e,t){try{const n=t.slice(0,Jg).map(({running:r,...o})=>o);window.localStorage.setItem(ol(e),JSON.stringify(n))}catch{}}const t1="yorz.m.specs.",n1=100,ni=new Map,al=e=>`${t1}${e}`;function r1(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 Bi(e){const t=ni.get(e);if(t)return t;try{const n=window.localStorage.getItem(al(e));if(!n)return null;const r=JSON.parse(n);if(!Array.isArray(r))return null;const o=r.filter(r1);return o.length===0?null:(ni.set(e,o),o)}catch{return null}}function Di(e,t){const n=t.slice(0,n1);ni.set(e,n);try{window.localStorage.setItem(al(e),JSON.stringify(n))}catch{}}var o1=P('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),i1=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),s1=P('<span class="mt-0.5 line-clamp-2 min-h-8 break-words text-sm text-muted-foreground">'),a1=P('<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>');qn("en",tl);qn("zh-CN",Xc);const u1=()=>{const{lng:e}=h0(),t=pt(),[n,r]=W(null),[o,{refetch:i}]=ot(()=>me()??void 0,p=>oe.listSessions(p));Se(()=>{const p=me();r(p?il(p):null)}),Se(()=>{if(o.state!=="ready")return;const p=me(),d=o();!p||!d||(r(d),sl(p,d))}),Se(()=>{const p=me();if(!p)return;const d=Vc(p,{onStatus:h=>{r(g=>g&&g.map(m=>m.id===h.sessionId?{...m,running:h.running}:m))}});Ie(()=>d())});const s=he(()=>{const p=n();return p?Tg(p,d=>p.find(h=>h.id===d)?.running===!0):[]}),[a,u]=W(null),[c,{refetch:x}]=ot(()=>me()??void 0,p=>oe.listSpecs(p));Se(()=>{const p=me();u(p?Bi(p):null)}),Se(()=>{if(c.state!=="ready")return;const p=me(),d=c();!p||!d||(u(d),Di(p,d))}),Se(()=>{const p=me();if(!p)return;const d=Ai(p,()=>void x());Ie(()=>d())});const l=he(()=>{const p=new Map;for(const d of a()??[])p.set(d.id,d);return p}),f=p=>p?l().get(p):void 0;return b(Ft,{get title(){return F("sessions.title")},padded:!1,get actions(){return(()=>{var p=i1();return p.$$click=()=>t("/sessions/new"),D(p,b(mi,{size:20,"aria-hidden":"true"})),X(()=>re(p,"aria-label",F("sessions.new"))),p})()},get children(){return b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return b(q,{get when(){return n()},get fallback(){return b(q,{get when(){return!o.error},get fallback(){return b(nn,{get error(){return o.error},onRetry:()=>void i()})},get children(){return b(En,{})}})},get children(){return b(q,{get when(){return s().length>0},get fallback(){return b(It,{get title(){return F("sessions.empty")},get action(){return b(rl,{})}})},get children(){var p=o1();return D(p,b(We,{get each(){return s()},children:d=>(()=>{var h=a1(),g=h.firstChild,m=g.firstChild,E=m.firstChild,C=E.nextSibling,A=C.firstChild,B=A.nextSibling,y=B.nextSibling,v=m.nextSibling;return g.$$click=()=>t(`/sessions/${encodeURIComponent(d.latest.id)}`),D(E,()=>f(d.specId)?.title||d.latest.title),D(m,b(q,{get when(){return d.specId},get children(){var k=s1();return D(k,()=>f(d.specId)?.summary),k}}),C),D(A,()=>Yc(d.updatedAt,e())),D(y,()=>d.latest.kind),X(k=>{var w=rt("block break-words",d.specId?"line-clamp-1":"line-clamp-3"),O=rt("size-2 shrink-0 rounded-full",d.running?"bg-primary animate-pulse":"bg-transparent"),N=d.running?F("sessions.running"):void 0;return w!==k.e&&Ge(E,k.e=w),O!==k.t&&Ge(v,k.t=O),N!==k.a&&re(v,"aria-label",k.a=N),k},{e:void 0,t:void 0,a:void 0}),h})()})),p}})}})}})}})};He(["click"]);const Ts={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"},c1={feat:"text-success",refct:"text-info",fix:"text-destructive"};function ul(e){return Ts[e]??Ts.plan}function cl(e){const[t,n,...r]=e.split(".");return!t||!n||r.length===0?null:{prefix:t,type:n,suffix:r.join(".")}}function l1(e,t){const n=cl(e)?.type??e.split(".")[1]??"feat",r=t?.trim()??"";return r?`${n}: ${r}`:`${n}: update`}function ll(e){return`@.yorz/specs/${e}/spec.md`}function xl(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 x1=P('<p class="truncate text-sm font-medium">'),d1=P('<p class="mt-1 text-xs text-muted-foreground">'),f1=P('<div class="border-b border-border px-4 py-3 text-center">'),p1=P('<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">'),h1=P("<button type=button>");const Gn=e=>{let t=0;Se(()=>{e.open&&(t=Date.now())});const n=()=>{Date.now()-t<300||e.onClose()};return b(q,{get when(){return e.open},get children(){var r=p1(),o=r.firstChild,i=o.nextSibling,s=i.firstChild,a=s.firstChild,u=s.nextSibling;return r.$$contextmenu=c=>c.preventDefault(),o.$$click=n,D(s,b(q,{get when(){return e.title||e.description},get children(){var c=f1();return D(c,b(q,{get when(){return e.title},get children(){var x=x1();return D(x,()=>e.title),x}}),null),D(c,b(q,{get when(){return e.description},get children(){var x=d1();return D(x,()=>e.description),x}}),null),c}}),a),D(a,b(We,{get each(){return e.items},children:c=>(()=>{var x=h1();return x.$$click=()=>c.onSelect(),D(x,()=>c.label),X(()=>Ge(x,rt("flex h-12 w-full items-center justify-center text-sm active:bg-accent",c.tone==="destructive"&&"text-destructive"))),x})()})),u.$$click=()=>e.onClose(),D(u,()=>F("common.cancel")),X(()=>re(o,"aria-label",F("common.cancel"))),r}})};He(["contextmenu","click"]);async function m0(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}return g1(e)}function g1(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 E1(e){let t,n=null,r=!1,o;const i=c=>c.preventDefault(),s=()=>{o&&clearTimeout(o),o=void 0,document.removeEventListener("contextmenu",i,!0)},a=()=>{s(),document.addEventListener("contextmenu",i,!0),o=setTimeout(s,700)},u=()=>{t&&clearTimeout(t),t=void 0,n=null};return Ie(()=>{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 x=e.moveTolerance??10;(Math.abs(c.clientX-n.x)>x||Math.abs(c.clientY-n.y)>x)&&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 m1=P('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),b1=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),C1=P('<span class="line-clamp-2 text-sm text-muted-foreground">'),A1=P('<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>'),B1=P("<span>");const D1=()=>{const e=pt(),[t,n]=W(null),[r,{refetch:o}]=ot(()=>me()??void 0,d=>oe.listSpecs(d));Se(()=>{const d=me();n(d?Bi(d):null)}),Se(()=>{if(r.state!=="ready")return;const d=me(),h=r();!d||!h||(n(h),Di(d,h))}),Se(()=>{const d=me();if(!d)return;const h=Ai(d,()=>void o());Ie(()=>h())});const[i,s]=W(null),[a,u]=W(!1),c=()=>{s(null),u(!1)},x=d=>{u(!1),s(d)},l=async d=>{c();const h=await m0(ll(d.id));De(F(h?"specs.pathCopied":"specs.copyFailed"),h?"default":"error")},f=async d=>{const h=me();if(h){c();try{await oe.deleteSpec(h,d.id),De(F("specs.deleted")),await o()}catch(g){De(g instanceof Error?g.message:String(g),"error")}}},p=()=>{const d=i();return d?a()?[{label:F("specs.deleteConfirm"),tone:"destructive",onSelect:()=>void f(d)}]:[{label:F("specs.copyPath"),onSelect:()=>void l(d)},{label:F("specs.delete"),tone:"destructive",onSelect:()=>u(!0)}]:[]};return b(Ft,{get title(){return F("specs.title")},padded:!1,get actions(){return(()=>{var d=b1();return d.$$click=()=>e("/specs/new"),D(d,b(mi,{size:20,"aria-hidden":"true"})),X(()=>re(d,"aria-label",F("specs.new"))),d})()},get children(){return[b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return b(q,{get when(){return t()},get fallback(){return b(q,{get when(){return!r.error},get fallback(){return b(nn,{get error(){return r.error},onRetry:()=>void o()})},get children(){return b(En,{})}})},get children(){return b(q,{get when(){return(t()??[]).length>0},get fallback(){return b(It,{get title(){return F("specs.empty")}})},get children(){var d=m1();return D(d,b(We,{get each(){return t()},children:h=>{const g=cl(h.id),m=E1({onLongPress:()=>x(h),onClick:()=>e(`/specs/${encodeURIComponent(h.id)}`)});return(()=>{var E=A1(),C=E.firstChild,A=C.firstChild,B=A.firstChild,y=B.nextSibling,v=A.nextSibling;return hr(C,m,!1,!0),D(B,()=>h.stage),D(A,b(q,{when:g,children:k=>(()=>{var w=B1();return D(w,()=>k().type),X(()=>Ge(w,rt("text-[0.65rem] font-medium",c1[k().type]??"text-muted-foreground"))),w})()}),y),D(y,()=>xl(h.updated_at)),D(v,()=>h.title),D(C,b(q,{get when(){return h.summary},get children(){var k=C1();return D(k,()=>h.summary),k}}),null),X(()=>Ge(B,rt("rounded border px-1.5 py-0.5 text-[0.65rem] font-medium",ul(h.stage)))),E})()}})),d}})}})}}),b(Gn,{get open(){return i()!==null},get title(){return i()?.title||i()?.id},get description(){return Ue(()=>!!a())()?F("specs.deleteHint"):void 0},get items(){return p()},onClose:c})]}})};He(["click"]);function F1(e){const{sid:t,displayedSid:n,displayedSpecId:r,displayedGroupId:o,fresh:i,listPending:s,known:a,specId:u,groupId:c,running:x}=e;if(!t)return{action:"idle"};const l=n===t;return i&&l?{action:"fresh"}:!a&&s?{action:"hold"}:x&&l&&(r===u&&o===c)?{action:"keep"}:{action:"load",clear:!l,specId:u,...c?{groupId:c}:{}}}function y1(){let e=0;return{begin(){const t=++e;return()=>t===e},invalidate(){e+=1}}}const v1=20,k1="\0";function L0(e,t){return`${e}${k1}${t}`}function _1(e=v1){const t=new Map,n=Math.max(1,Math.floor(e));function r(o,i){t.delete(o),t.set(o,i)}return{get(o){const i=t.get(o);if(i)return r(o,i),i},set(o,i){for(r(o,i);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 dl(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 w1(e,t){return e.length!==t.length?!1:e.length===0?!0:dl(e[e.length-1],t[t.length-1])}function S1(e,t){if(e.length>t.length)return!1;for(let n=0;n<e.length;n++)if(!dl(e[n],t[n]))return!1;return!0}const T1=80,Ns=1500;function Rs(e){return new Promise(t=>window.setTimeout(t,e))}function N1(e){const[t,n]=W([]),r=he(()=>wg(t())),[o,i]=W(!1),[s,a]=W(!1),[u,c]=W({}),x={isExpanded:ee=>u()[ee]===!0,set:(ee,Q)=>c(Be=>Be[ee]===Q?Be:{...Be,[ee]:Q})};function l(){c(ee=>Object.keys(ee).length===0?ee:{})}const f=new Set,[p,d]=W(0);let h=new Set,g=!1,m,E;const[C,A]=W(0);let B=null;function y(){B==null&&(B=window.setTimeout(()=>{B=null,A(ee=>ee+1)},120))}let v="",k,w,O="";const N=y1();function R(ee){return v!==ee&&O!==ee?!1:ut(t).length>0}function M(ee,Q){if(O===Q||R(Q))return!0;const Be=e.transcriptCache?.get(L0(ee,Q));return!Be||Be.parts.length===0?!1:(Z(Be.parts),O=Q,!0)}const L=new Map;function H(ee){let Q=L.get(ee);if(!Q){let Be=()=>{};Q={promise:new Promise(ze=>{Be=ze}),resolve:Be},L.set(ee,Q)}return Q.promise}function K(ee){H(ee),L.get(ee)?.resolve()}function _(ee){f.delete(ee)&&ee===e.sessionId()&&d(Q=>Q+1)}let G="",I=null;function S(ee,Q){const Be=ee[ee.length-1];return Be&&Be.kind==="text"&&Be.role==="assistant"?[...ee.slice(0,-1),{...Be,text:Be.text+Q}]:[...ee,{kind:"text",role:"assistant",text:Q}]}function U(){I!=null&&(clearTimeout(I),I=null);const ee=G;G="",ee&&n(Q=>S(Q,ee))}function z(ee){G+=ee,I==null&&(I=window.setTimeout(U,T1))}function $(ee){U(),n(Q=>S(Q,ee))}function j(ee){U(),n(Q=>[...Q,ee])}function Z(ee=[]){I!=null&&(clearTimeout(I),I=null),G="",n(Q=>ee.length===0&&Q.length===0?Q:ee)}function te(ee){$(`
|
|
11
|
+
${e.errorLabel(ee)}
|
|
12
|
+
`)}Se(()=>{const ee=e.projectId(),Q=e.sessionId(),Be=e.specId(),be=e.groupId?.(),ze=Be||be?e.running():!1,ye=F1({sid:Q,displayedSid:v,displayedSpecId:k,displayedGroupId:w,fresh:f.has(Q),listPending:e.listPending?.()??!1,known:e.known?.()??!0,specId:Be,groupId:be,running:ze});if(p(),C(),!ee){a(!1);return}if(ye.action==="hold"){a(!M(ee,Q));return}if(ye.action==="idle"||ye.action==="keep"){a(!1);return}if(ye.action==="fresh"){a(!1),e.onSubjectChange?.();return}e.onSubjectChange?.(),ye.clear&&O!==Q&&(Z(),l()),ye.clear&&(h=new Set,g=!1,m&&m.sid!==Q&&(m=void 0),E?.sourceSid!==Q&&(E=void 0)),v=Q,k=ye.specId,w=ye.groupId;const st=N.begin();a(!M(ee,Q));const At={imageUrl:((V,J)=>f0(oe.chatAttachmentUrl(ee,V,J)))};(ye.specId?oe.getSpecMessages(ee,ye.specId).then(V=>({next:_s(V,At),folded:new Set(V.filter(J=>J.messages.length>0).map(J=>J.sessionId))})):ye.groupId?oe.getSessionGroupMessages(ee,ye.groupId).then(V=>({next:_s(V,At),folded:new Set(V.filter(J=>J.messages.length>0).map(J=>J.sessionId))})):oe.getSessionMessages(ee,Q).then(V=>({next:el(V,At),folded:new Set(V.length>0?[Q]:[])}))).then(({next:V,folded:J})=>{if(!st())return;m&&m.sid===Q&&J.has(Q)&&(m=void 0);const de=!!(ye.specId&&m&&m.sid===Q&&!J.has(Q));if(ye.specId&&!J.has(Q)&&g&&!de){a(!1);return}let Fe=V;if(de&&m){const qe=[];V.length>0&&qe.push({kind:"divider",sessionId:Q,agentKind:m.kind,startedAt:m.startedAt}),qe.push({kind:"text",role:"user",text:m.userText}),Fe=[...V,...qe]}if(E?.sourceSid===Q){const qe=E;Fe=[...Fe.filter(kt=>kt.kind!=="divider"||kt.sessionId!==qe.pendingSid),{kind:"divider",sessionId:qe.pendingSid,agentKind:qe.kind,startedAt:qe.startedAt}]}O="";const Re=ut(t),mt=w1(Re,Fe)||S1(Fe,Re);mt||Z(Fe),h=J,J.has(Q)&&(g=!1),a(!1);const Le=mt?Re:Fe;Le.length>0&&e.transcriptCache?.set(L0(ee,Q),{specId:ye.specId,groupId:ye.groupId,parts:Le})}).catch(()=>{st()&&a(!1)})}),Se(()=>{const ee=e.projectId(),Q=e.sessionId();if(!ee||!Q)return;const Be=E0(ee,Q,{onReady:()=>K(Q),onEvent:be=>{const ze=()=>{(e.specId()||e.groupId?.())&&Q===e.sessionId()&&!h.has(Q)&&(g=!0)};be.type==="text"?(z(be.delta),ze()):be.type==="tool-use"?(j({kind:"tool",name:be.name,input:be.input}),ze()):be.type==="tool-result"?(j({kind:"tool",result:be.text}),ze()):be.type==="image"?(j({kind:"image",role:"assistant",src:be.data}),ze()):be.type==="turn-completed"?(U(),_(Q),e.onRunningChange(Q,!1),(e.specId()||e.groupId?.())&&Q===e.sessionId()&&!h.has(Q)&&(g=!0,y())):be.type==="error"?(te(be.message),e.onRunningChange(Q,!1)):be.type==="session-started"&&be.sessionId!==Q&&Uu(()=>{f.has(Q)&&f.add(be.sessionId),v===Q&&(v=be.sessionId),e.onSessionIdChange(be.sessionId),e.onRunningChange(Q,!1),e.onRunningChange(be.sessionId,!0),e.onSessionsChanged?.()})}});Ie(()=>{L.delete(Q),Be()})}),Ie(()=>{I!=null&&clearTimeout(I),B!=null&&clearTimeout(B),N.invalidate();const ee=e.projectId(),Q=t();if(ee&&v&&Q.length>0){const Be=E?Q.filter(be=>be.kind!=="divider"||be.sessionId!==E?.pendingSid):Q;if(Be.length===0)return;e.transcriptCache?.set(L0(ee,v),{specId:k,groupId:w,parts:Be})}});function ie(){Z(),l(),N.invalidate(),a(!1),v="",k=void 0,w=void 0,O="",h=new Set,g=!1,m=void 0,E=void 0,B!=null&&(clearTimeout(B),B=null),e.onSubjectChange?.()}function ce(ee,Q,Be){!ee||!Q||(m={sid:ee,userText:Q,kind:Be,startedAt:Date.now()},g=!0,y())}function le(ee){const Q=e.sessionId();if(!Q||E?.sourceSid===Q)return;if(E){const be=E.pendingSid;n(ze=>ze.filter(ye=>ye.kind!=="divider"||ye.sessionId!==be))}const Be={sourceSid:Q,pendingSid:`__pending-new-session__:${Q}`,kind:ee,startedAt:Date.now()};E=Be,j({kind:"divider",sessionId:Be.pendingSid,agentKind:ee,startedAt:Be.startedAt}),a(!1)}function ve(){ie(),i(!1),f.clear(),d(ee=>ee+1),L.clear()}function _e(ee){return(ee??[]).map(Q=>{const Be={kind:"image",role:"user",src:Q.src};return Q.alt&&(Be.alt=Q.alt),Be})}async function Ne(ee,Q,Be){const be=e.projectId(),ze=e.sessionId();if(!be||!ee||o()||e.running())return"failed";if(e.onSubjectChange?.(),!ze)return Je(be,ee,Q,Be);j({kind:"text",role:"user",text:ee});for(const ye of _e(Be))j(ye);a(!1),e.onRunningChange(ze,!0);try{return await oe.sendSessionMessage(be,ze,ee,Q),"sent"}catch(ye){return te(ye.message),e.onRunningChange(ze,!1),"failed"}}async function Qe(ee,Q,Be){const be=e.projectId(),ze=e.sessionId();if(!be||!ze||!ee||o()||e.running())return"failed";e.onSubjectChange?.(),i(!0);try{let ye;try{ye=await oe.createSession(be,{groupFromSessionId:ze})}catch(Re){return te(Re.message),"not-started"}const st=ye.sessionId;f.add(st);const At=H(st),yt=ut(t),V=E?.sourceSid===ze?E:void 0;let J=!1;const de=yt.map(Re=>V&&Re.kind==="divider"&&Re.sessionId===V.pendingSid?(J=!0,{kind:"divider",sessionId:st,agentKind:ye.kind,startedAt:V.startedAt}):Re);!J&&yt.length>0&&de.push({kind:"divider",sessionId:st,agentKind:ye.kind,startedAt:Date.now()}),de.push({kind:"text",role:"user",text:ee}),de.push(..._e(Be)),E=void 0,Z(de),N.invalidate(),v=st,k=e.specId(),w=e.groupId?.(),O="",g=!1,e.onRunningChange(st,!0),e.onSessionIdChange(st),await Promise.race([At,Rs(Ns)]);let Fe;try{await oe.sendSessionMessage(be,st,ee,Q),Fe="sent"}catch(Re){te(Re.message),e.onRunningChange(st,!1),Fe="failed"}return e.onSessionsChanged?.(),Fe}finally{i(!1)}}async function Je(ee,Q,Be,be){i(!0);try{let ze;try{ze=(await oe.createSession(ee,{})).sessionId}catch(At){return te(At.message),"not-started"}f.add(ze);const ye=H(ze);Z([{kind:"text",role:"user",text:Q},..._e(be)]),l(),N.invalidate(),v=ze,k=void 0,w=void 0,O="",e.onRunningChange(ze,!0),e.onSessionIdChange(ze),await Promise.race([ye,Rs(Ns)]);let st;try{await oe.sendSessionMessage(ee,ze,Q,Be),st="sent"}catch(At){te(At.message),e.onRunningChange(ze,!1),st="failed"}return e.onSessionsChanged?.(),st}finally{i(!1)}}async function it(){const ee=e.projectId(),Q=e.sessionId();!ee||!Q||(await oe.abortSession(ee,Q).catch(()=>{}),e.onRunningChange(Q,!1))}return{blocks:r,running:e.running,starting:o,historyLoading:s,toolExpand:x,send:Ne,beginNewSessionBoundary:le,sendInNewSession:Qe,beginOptimisticRound:ce,abort:it,reset:ie,markPersisted:_,resetAll:ve}}function R1(e){const t=/^\/new(?:\s+([\s\S]*))?$/.exec(e.trim());return t?{content:(t[1]??"").trim()}:null}const fl="",$1=10*1024*1024,nr=10;function O1(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":"file"}function P1(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 $s(e){const t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}function I1(){return Math.random().toString(36).slice(2,8)}function pl(e){const t=e.labels,[n,r]=W([]),[o,i]=W(null),[s,a]=W(null),[u,c]=W(null),[x,l]=W(""),f=he(()=>n().length),p=he(()=>n().some(N=>N.status==="pending")),d=he(()=>n().some(N=>N.status==="failed"));Ie(()=>{for(const N of n())N.previewUrl&&URL.revokeObjectURL(N.previewUrl)});async function h(){const N=o();if(N)return N;const{draftId:R}=await oe.createDraft(e.projectId());return i(R),R}function g(N){r(R=>[...R,N])}function m(N,R){r(M=>M.map(L=>L.id===N?{...L,...R}:L))}function E(N){r(R=>{const M=[];for(const L of R){if(L.id===N){L.previewUrl&&URL.revokeObjectURL(L.previewUrl);continue}M.push(L)}return M})}async function C(N){a(null);const R=n(),M=nr-R.length;if(M<=0){a(t.attachmentLimit(nr));return}const L=[];for(const H of N.slice(0,M)){const K=P1(H),_=O1(K);if(K.size>$1){a(t.fileTooLarge(K.name));continue}const G=`att-${Date.now()}-${I1()}`,I=_==="image"?URL.createObjectURL(K):void 0;L.push({id:G,file:K,name:K.name,kind:_,previewUrl:I,status:"pending"})}if(L.length!==0){N.length>M&&a(t.attachmentRoomLimit(M,R.length,nr));for(const H of L)g(H);try{const H=await h();for(const K of L)try{const _=await oe.uploadAttachment(e.projectId(),H,K.file);m(K.id,{storedName:_.storedName,name:_.storedName,status:"uploaded"})}catch(_){m(K.id,{status:"failed",error:_.message})}}catch(H){a(H.message);for(const K of L)m(K.id,{status:"failed",error:H.message})}}}async function A(N){const R=N.currentTarget;if(!R.files)return;const M=Array.from(R.files);R.value="",await C(M)}async function B(N){const R=N.clipboardData?.items;if(!R)return;const M=[];for(const L of Array.from(R))if(L.kind==="file"&&L.type.startsWith("image/")){const H=L.getAsFile();H&&M.push(H)}M.length!==0&&(N.preventDefault(),await C(M))}async function y(N){const R=n().find(M=>M.id===N);if(R){if(R.storedName&&o())try{await oe.deleteAttachment(e.projectId(),o(),R.storedName)}catch(M){a(M.message)}E(N)}}function v(N){l($s(N.name)),c(N.id)}async function k(N){const R=x().trim();if(c(null),!(!R||!N.storedName||!o())&&R!==$s(N.name))try{const M=await oe.renameAttachment(e.projectId(),o(),N.storedName,R);m(N.id,{storedName:M.storedName,name:M.storedName})}catch(M){a(M.message)}}function w(){c(null)}function O(){const N=ut(n);for(const R of N)R.previewUrl&&URL.revokeObjectURL(R.previewUrl);N.length>0&&r([]),i(null),c(null),l(""),a(null)}return{attachments:n,draftId:o,error:s,setError:a,count:f,hasPending:p,hasFailed:d,renamingId:u,renameDraft:x,setRenameDraft:l,addFiles:C,onFileInputChange:A,onPaste:B,removeAttachment:y,beginRename:v,commitRename:k,cancelRename:w,reset:O}}function M1(e,t){const n=`/${e}`;return t.trim()?L1(t,e)?t:`${n} ${t}`:`${n} `}function L1(e,t){const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^/${n}(\\s|$)`).test(e.trimStart())}function U1(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[z1,j1]=W({});function H1(e){return e?z1()[e]??[]:[]}function Os(e,t){return j1(n=>({...n,[e]:t})),t}async function q1(e){if(!e)return[];try{const t=await oe.getProjectCustomInstructions(e);return Os(e,t.customInstructions)}catch{return Os(e,[])}}function hl(){return{attachmentLimit:e=>F("chat.attachmentLimit",{max:e}),unsupportedType:e=>F("chat.attachUnsupported",{name:e}),unsupportedMime:e=>F("chat.attachUnsupportedMime",{mime:e}),fileTooLarge:e=>F("chat.attachTooBig",{name:e}),attachmentRoomLimit:(e,t,n)=>F("chat.attachTooMany",{room:e,current:t,max:n})}}const Ps={};function G1(e){let t=Ps[e];if(t)return t;t=Ps[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 Un(e,t){typeof t!="string"&&(t=Un.defaultChars);const n=G1(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let i=0,s=r.length;i<s;i+=3){const a=parseInt(r.slice(i+1,i+3),16);if(a<128){o+=n[a];continue}if((a&224)===192&&i+3<s){const u=parseInt(r.slice(i+4,i+6),16);if((u&192)===128){const c=a<<6&1984|u&63;c<128?o+="��":o+=String.fromCharCode(c),i+=3;continue}}if((a&240)===224&&i+6<s){const u=parseInt(r.slice(i+4,i+6),16),c=parseInt(r.slice(i+7,i+9),16);if((u&192)===128&&(c&192)===128){const x=a<<12&61440|u<<6&4032|c&63;x<2048||x>=55296&&x<=57343?o+="���":o+=String.fromCharCode(x),i+=6;continue}}if((a&248)===240&&i+9<s){const u=parseInt(r.slice(i+4,i+6),16),c=parseInt(r.slice(i+7,i+9),16),x=parseInt(r.slice(i+10,i+12),16);if((u&192)===128&&(c&192)===128&&(x&192)===128){let l=a<<18&1835008|u<<12&258048|c<<6&4032|x&63;l<65536||l>1114111?o+="����":(l-=65536,o+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),i+=9;continue}}o+="�"}return o})}Un.defaultChars=";/?:@&=+$,#";Un.componentChars="";const Is={};function K1(e){let t=Is[e];if(t)return t;t=Is[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 br(e,t,n){typeof t!="string"&&(n=t,t=br.defaultChars),typeof n>"u"&&(n=!0);const r=K1(t);let o="";for(let i=0,s=e.length;i<s;i++){const a=e.charCodeAt(i);if(n&&a===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){o+=e.slice(i,i+3),i+=2;continue}if(a<128){o+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<s){const u=e.charCodeAt(i+1);if(u>=56320&&u<=57343){o+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[i])}return o}br.defaultChars=";/?:@&=+$,-_.!~*'()#";br.componentChars="-_.!~*'()";function Fi(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 i0(){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 W1=/^([a-z0-9.+-]+:)/i,V1=/:[0-9]*$/,Z1=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Y1=["<",">",'"',"`"," ","\r",`
|
|
13
|
+
`," "],X1=["{","}","|","\\","^","`"].concat(Y1),Q1=["'"].concat(X1),Ms=["%","/","?",";","#"].concat(Q1),Ls=["/","?","#"],J1=255,Us=/^[+a-z0-9A-Z_-]{0,63}$/,e8=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zs={javascript:!0,"javascript:":!0},js={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yi(e,t){if(e&&e instanceof i0)return e;const n=new i0;return n.parse(e,t),n}i0.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const c=Z1.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=W1.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=i.substr(0,2)==="//",o&&!(s&&zs[s])&&(i=i.substr(2),this.slashes=!0)),!zs[s]&&(o||s&&!js[s])){let c=-1;for(let d=0;d<Ls.length;d++)r=i.indexOf(Ls[d]),r!==-1&&(c===-1||r<c)&&(c=r);let x,l;c===-1?l=i.lastIndexOf("@"):l=i.lastIndexOf("@",c),l!==-1&&(x=i.slice(0,l),i=i.slice(l+1),this.auth=x),c=-1;for(let d=0;d<Ms.length;d++)r=i.indexOf(Ms[d]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=i.length),i[c-1]===":"&&c--;const f=i.slice(0,c);i=i.slice(c),this.parseHost(f),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const d=this.hostname.split(/\./);for(let h=0,g=d.length;h<g;h++){const m=d[h];if(m&&!m.match(Us)){let E="";for(let C=0,A=m.length;C<A;C++)m.charCodeAt(C)>127?E+="x":E+=m[C];if(!E.match(Us)){const C=d.slice(0,h),A=d.slice(h+1),B=m.match(e8);B&&(C.push(B[1]),A.unshift(B[2])),A.length&&(i=A.join(".")+i),this.hostname=C.join(".");break}}}}this.hostname.length>J1&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=i.indexOf("#");a!==-1&&(this.hash=i.substr(a),i=i.slice(0,a));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),js[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};i0.prototype.parseHost=function(e){let t=V1.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 t8=Object.freeze(Object.defineProperty({__proto__:null,decode:Un,encode:br,format:Fi,parse:yi},Symbol.toStringTag,{value:"Module"})),gl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,El=/[\0-\x1F\x7F-\x9F]/,n8=/[\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]/,vi=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,ml=/[\$\+<->\^`\|~\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]/,bl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,r8=Object.freeze(Object.defineProperty({__proto__:null,Any:gl,Cc:El,Cf:n8,P:vi,S:ml,Z:bl},Symbol.toStringTag,{value:"Module"})),o8=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))),i8=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var U0;const s8=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]]),a8=(U0=String.fromCodePoint)!==null&&U0!==void 0?U0: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 u8(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=s8.get(e))!==null&&t!==void 0?t:e}var Et;(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"})(Et||(Et={}));const c8=32;var dn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dn||(dn={}));function ri(e){return e>=Et.ZERO&&e<=Et.NINE}function l8(e){return e>=Et.UPPER_A&&e<=Et.UPPER_F||e>=Et.LOWER_A&&e<=Et.LOWER_F}function x8(e){return e>=Et.UPPER_A&&e<=Et.UPPER_Z||e>=Et.LOWER_A&&e<=Et.LOWER_Z||ri(e)}function d8(e){return e===Et.EQUALS||x8(e)}var gt;(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"})(gt||(gt={}));var Jt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Jt||(Jt={}));class f8{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=gt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Jt.Strict}startEntity(t){this.decodeMode=t,this.state=gt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case gt.EntityStart:return t.charCodeAt(n)===Et.NUM?(this.state=gt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=gt.NamedEntity,this.stateNamedEntity(t,n));case gt.NumericStart:return this.stateNumericStart(t,n);case gt.NumericDecimal:return this.stateNumericDecimal(t,n);case gt.NumericHex:return this.stateNumericHex(t,n);case gt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|c8)===Et.LOWER_X?(this.state=gt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=gt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const i=r-n;this.result=this.result*Math.pow(o,i)+parseInt(t.substr(n,i),o),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(ri(o)||l8(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(ri(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,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===Et.SEMI)this.consumed+=1;else if(this.decodeMode===Jt.Strict)return 0;return this.emitCodePoint(u8(this.result),this.consumed),this.errors&&(t!==Et.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],i=(o&dn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=p8(r,o,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Jt.Attribute&&(i===0||d8(s))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],i=(o&dn.VALUE_LENGTH)>>14,i!==0){if(s===Et.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Jt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&dn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~dn.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case gt.NamedEntity:return this.result!==0&&(this.decodeMode!==Jt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case gt.NumericDecimal:return this.emitNumericEntity(0,2);case gt.NumericHex:return this.emitNumericEntity(0,3);case gt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case gt.EntityStart:return 0}}}function Cl(e){let t="";const n=new f8(e,r=>t+=a8(r));return function(o,i){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(i);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const u=t+o.slice(s);return t="",u}}function p8(e,t,n,r){const o=(t&dn.BRANCH_LENGTH)>>7,i=t&dn.JUMP_TABLE;if(o===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=o?-1:e[n+u]-1}let s=n,a=s+o-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+o]}return-1}const Al=Cl(o8);Cl(i8);function h8(e,t=Jt.Legacy){return Al(e,t)}function g8(e){return Al(e,Jt.Strict)}function E8(e){return Object.prototype.toString.call(e)}function ki(e){return E8(e)==="[object String]"}const m8=Object.prototype.hasOwnProperty;function b8(e,t){return m8.call(e,t)}function b0(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 Bl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function _i(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 lr(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 Dl=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,C8=/&([a-z#][a-z0-9]{1,31});/gi,A8=new RegExp(Dl.source+"|"+C8.source,"gi"),B8=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function D8(e,t){if(t.charCodeAt(0)===35&&B8.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return _i(r)?lr(r):e}const n=h8(e);return n!==e?n:e}function F8(e){return e.indexOf("\\")<0?e:e.replace(Dl,"$1")}function zn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(A8,function(t,n,r){return n||D8(t,r)})}const y8=/[&<>"]/,v8=/[&<>"]/g,k8={"&":"&","<":"<",">":">",'"':"""};function _8(e){return k8[e]}function pn(e){return y8.test(e)?e.replace(v8,_8):e}const w8=/[.?*+^$[\]\\(){}|-]/g;function S8(e){return e.replace(w8,"\\$&")}function nt(e){switch(e){case 9:case 32:return!0}return!1}function xr(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 Fl(e){return vi.test(e)||ml.test(e)}function dr(e){return Fl(lr(e))}function fr(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 C0(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Hs(e){return e===32||e===9||e===10||e===13}function A0(e){let t=0;for(;t<e.length&&Hs(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Hs(e.charCodeAt(n));n--);return e.slice(t,n+1)}const T8={mdurl:t8,ucmicro:r8},N8=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Bl,asciiTrim:A0,assign:b0,escapeHtml:pn,escapeRE:S8,fromCodePoint:lr,has:b8,isMdAsciiPunct:fr,isPunctChar:Fl,isPunctCharCode:dr,isSpace:nt,isString:ki,isValidEntityCode:_i,isWhiteSpace:xr,lib:T8,normalizeReference:C0,unescapeAll:zn,unescapeMd:F8},Symbol.toStringTag,{value:"Module"}));function R8(e,t,n){let r,o,i,s;const a=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===93&&(r--,r===0)){o=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}}let c=-1;return o&&(c=e.pos),e.pos=u,c}function $8(e,t,n){let r,o=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return i;if(r===62)return i.pos=o+1,i.str=zn(e.slice(t+1,o)),i.ok=!0,i;if(r===92&&o+1<n){o+=2;continue}o++}return i}let s=0;for(;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(s++,s>32))return i;if(r===41){if(s===0)break;s--}o++}return t===o||s!==0||(i.str=zn(e.slice(t,o)),i.pos=o,i.ok=!0),i}function O8(e,t,n,r){let o,i=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(i>=n)return s;let a=e.charCodeAt(i);if(a!==34&&a!==39&&a!==40)return s;t++,i++,a===40&&(a=41),s.marker=a}for(;i<n;){if(o=e.charCodeAt(i),o===s.marker)return s.pos=i+1,s.str+=zn(e.slice(t,i)),s.ok=!0,s;if(o===40&&s.marker===41)return s;o===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=zn(e.slice(t,i)),s}const P8=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:$8,parseLinkLabel:R8,parseLinkTitle:O8},Symbol.toStringTag,{value:"Module"})),Vt={};Vt.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+pn(i.content)+"</code>"};Vt.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+pn(e[t].content)+`</code></pre>
|
|
14
|
+
`};Vt.fence=function(e,t,n,r,o){const i=e[t],s=i.info?zn(i.info).trim():"";let a="",u="";if(s){const x=s.split(/(\s+)/g);a=x[0],u=x.slice(2).join("")}let c;if(n.highlight?c=n.highlight(i.content,a,u)||pn(i.content):c=pn(i.content),c.indexOf("<pre")===0)return c+`
|
|
15
|
+
`;if(s){const x=i.attrIndex("class"),l=i.attrs?i.attrs.slice():[];x<0?l.push(["class",n.langPrefix+a]):(l[x]=l[x].slice(),l[x][1]+=" "+n.langPrefix+a);const f={attrs:l};return`<pre><code${o.renderAttrs(f)}>${c}</code></pre>
|
|
16
|
+
`}return`<pre><code${o.renderAttrs(i)}>${c}</code></pre>
|
|
17
|
+
`};Vt.image=function(e,t,n,r,o){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)};Vt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
18
|
+
`:`<br>
|
|
19
|
+
`};Vt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
20
|
+
`:`<br>
|
|
21
|
+
`:`
|
|
22
|
+
`};Vt.text=function(e,t){return pn(e[t].content)};Vt.html_block=function(e,t){return e[t].content};Vt.html_inline=function(e,t){return e[t].content};function Kn(){this.rules=b0({},Vt)}Kn.prototype.renderAttrs=function(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+pn(t.attrs[n][0])+'="'+pn(t.attrs[n][1])+'"';return o};Kn.prototype.renderToken=function(t,n,r){const o=t[n];let i="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
23
|
+
`),i+=(o.nesting===-1?"</":"<")+o.tag,i+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(i+=" /");let s=!1;if(o.block&&(s=!0,o.nesting===1&&n+1<t.length)){const a=t[n+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===o.tag)&&(s=!1)}return i+=s?`>
|
|
24
|
+
`:">",i};Kn.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let i=0,s=e.length;i<s;i++){const a=e[i].type;typeof o[a]<"u"?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r};Kn.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
|
|
25
|
+
`;break}return r};Kn.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let i=0,s=e.length;i<s;i++){const a=e[i].type;a==="inline"?r+=this.renderInline(e[i].children,t,n):typeof o[a]<"u"?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};function wt(){this.__rules__=[],this.__cache__=null}wt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};wt.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))})})};wt.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null};wt.prototype.before=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};wt.prototype.after=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};wt.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};wt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};wt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};wt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};wt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Lt(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}Lt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1};Lt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Lt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o};Lt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Lt.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 yl(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}yl.prototype.Token=Lt;const I8=/\r\n?|\n/g,M8=/\0/g;function L8(e){let t;t=e.src.replace(I8,`
|
|
26
|
+
`),t=t.replace(M8,"�"),e.src=t}function U8(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 z8(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function j8(e){return/^<a[>\s]/i.test(e)}function H8(e){return/^<\/a\s*>/i.test(e)}function q8(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 o=t[n].children,i=0;for(let s=o.length-1;s>=0;s--){const a=o[s];if(a.type==="link_close"){for(s--;o[s].level!==a.level&&o[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(j8(a.content)&&i>0&&i--,H8(a.content)&&i++),!(i>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const u=a.content;let c=e.md.linkify.match(u);const x=[];let l=a.level,f=0;c.length>0&&c[0].index===0&&s>0&&o[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const d=c[p].url,h=e.md.normalizeLink(d);if(!e.md.validateLink(h))continue;let g=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(g)?g=e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=e.md.normalizeLinkText(g):g=e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,"");const m=c[p].index;if(m>f){const B=new e.Token("text","",0);B.content=u.slice(f,m),B.level=l,x.push(B)}const E=new e.Token("link_open","a",1);E.attrs=[["href",h]],E.level=l++,E.markup="linkify",E.info="auto",x.push(E);const C=new e.Token("text","",0);C.content=g,C.level=l,x.push(C);const A=new e.Token("link_close","a",-1);A.level=--l,A.markup="linkify",A.info="auto",x.push(A),f=c[p].lastIndex}if(f<u.length){const p=new e.Token("text","",0);p.content=u.slice(f),p.level=l,x.push(p)}t[n].children=o=Bl(o,s,x)}}}}const vl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,G8=/\((c|tm|r)\)/i,K8=/\((c|tm|r)\)/ig,W8={c:"©",r:"®",tm:"™"};function V8(e,t){return W8[t.toLowerCase()]}function Z8(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(K8,V8)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Y8(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&vl.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 X8(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(G8.test(e.tokens[t].content)&&Z8(e.tokens[t].children),vl.test(e.tokens[t].content)&&Y8(e.tokens[t].children))}const Q8=/['"]/,qs=/['"]/g,Gs="’";function $r(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function J8(e,t){let n="",r=0;t.sort((o,i)=>o.pos-i.pos);for(let o=0;o<t.length;o++){const i=t[o];n+=e.slice(r,i.pos)+i.ch,r=i.pos+1}return n+e.slice(r)}function eE(e,t){let n;const r=[],o={};for(let i=0;i<e.length;i++){const s=e[i],a=e[i].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 x=u.length;e:for(;c<x;){qs.lastIndex=c;const l=qs.exec(u);if(!l)break;let f=!0,p=!0;c=l.index+1;const d=l[0]==="'";let h=32;if(l.index-1>=0)h=u.charCodeAt(l.index-1);else for(n=i-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 g=32;if(c<x)g=u.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}const m=fr(h)||dr(h),E=fr(g)||dr(g),C=xr(h),A=xr(g);if(A?f=!1:E&&(C||m||(f=!1)),C?p=!1:m&&(A||E||(p=!1)),g===34&&l[0]==='"'&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=m,p=E),!f&&!p){d&&$r(o,i,l.index,Gs);continue}if(p)for(n=r.length-1;n>=0;n--){let B=r[n];if(r[n].level<a)break;if(B.single===d&&r[n].level===a){B=r[n];let y,v;d?(y=t.md.options.quotes[2],v=t.md.options.quotes[3]):(y=t.md.options.quotes[0],v=t.md.options.quotes[1]),$r(o,i,l.index,v),$r(o,B.token,B.pos,y),r.length=n;continue e}}f?r.push({token:i,pos:l.index,single:d,level:a}):p&&d&&$r(o,i,l.index,Gs)}}Object.keys(o).forEach(function(i){e[i].content=J8(e[i].content,o[i])})}function tE(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Q8.test(e.tokens[t].content)||eE(e.tokens[t].children,e)}function nE(e){let t,n;const r=e.tokens,o=r.length;for(let i=0;i<o;i++){if(r[i].type!=="inline")continue;const s=r[i].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 z0=[["normalize",L8],["block",U8],["inline",z8],["linkify",q8],["replacements",X8],["smartquotes",tE],["text_join",nE]];function wi(){this.ruler=new wt;for(let e=0;e<z0.length;e++)this.ruler.push(z0[e][0],z0[e][1])}wi.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};wi.prototype.State=yl;function Zt(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 o=this.src;for(let i=0,s=0,a=0,u=0,c=o.length,x=!1;s<c;s++){const l=o.charCodeAt(s);if(!x)if(nt(l)){a++,l===9?u+=4-u%4:u++;continue}else x=!0;(l===10||s===c-1)&&(l!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),x=!1,a=0,u=0,i=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Zt.prototype.push=function(e,t,n){const r=new Lt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Zt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Zt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Zt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!nt(r))break}return t};Zt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!nt(this.src.charCodeAt(--t)))return t+1;return t};Zt.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};Zt.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};Zt.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const i=new Array(n-t);for(let s=0,a=t;a<n;a++,s++){let u=0;const c=this.bMarks[a];let x=c,l;for(a+1<n||o?l=this.eMarks[a]+1:l=this.eMarks[a];x<l&&u<r;){const f=this.src.charCodeAt(x);if(nt(f))f===9?u+=4-(u+this.bsCount[a])%4:u++;else if(x-c<this.tShift[a])u++;else break;x++}u>r?i[s]=new Array(u-r+1).join(" ")+this.src.slice(x,l):i[s]=this.src.slice(x,l)}return i.join("")};Zt.prototype.Token=Lt;const rE=65536;function j0(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Ks(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),i=!1,s=0,a="";for(;r<n;)o===124&&(i?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),i=o===92,r++,o=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function oE(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[o])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58&&!nt(a)||s===45&&nt(a))return!1;for(;i<e.eMarks[o];){const A=e.src.charCodeAt(i);if(A!==124&&A!==45&&A!==58&&!nt(A))return!1;i++}let u=j0(e,t+1),c=u.split("|");const x=[];for(let A=0;A<c.length;A++){const B=c[A].trim();if(!B){if(A===0||A===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(B))return!1;B.charCodeAt(B.length-1)===58?x.push(B.charCodeAt(0)===58?"center":"right"):B.charCodeAt(0)===58?x.push("left"):x.push("")}if(u=j0(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Ks(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const l=c.length;if(l===0||l!==x.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),h=[t,0];d.map=h;const g=e.push("thead_open","thead",1);g.map=[t,t+1];const m=e.push("tr_open","tr",1);m.map=[t,t+1];for(let A=0;A<c.length;A++){const B=e.push("th_open","th",1);x[A]&&(B.attrs=[["style","text-align:"+x[A]]]);const y=e.push("inline","",0);y.content=c[A].trim(),y.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let E,C=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let A=!1;for(let y=0,v=p.length;y<v;y++)if(p[y](e,o,n,!0)){A=!0;break}if(A||(u=j0(e,o).trim(),!u)||e.sCount[o]-e.blkIndent>=4||(c=Ks(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),C+=l-c.length,C>rE))break;if(o===t+2){const y=e.push("tbody_open","tbody",1);y.map=E=[t+2,0]}const B=e.push("tr_open","tr",1);B.map=[o,o+1];for(let y=0;y<l;y++){const v=e.push("td_open","td",1);x[y]&&(v.attrs=[["style","text-align:"+x[y]]]);const k=e.push("inline","",0);k.content=c[y]?c[y].trim():"",k.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return E&&(e.push("tbody_close","tbody",-1),E[1]=o),e.push("table_close","table",-1),h[1]=o,e.parentType=f,e.line=o,!0}function iE(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;const i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
27
|
+
`,i.map=[t,e.line],!0}function sE(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>i)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let u=o-a;if(u<3)return!1;const c=e.src.slice(a,o),x=e.src.slice(o,i);if(s===96&&x.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let l=t,f=!1;for(;l++,!(l>=n||(o=a=e.bMarks[l]+e.tShift[l],i=e.eMarks[l],o<i&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(o)===s&&!(e.sCount[l]-e.blkIndent>=4)&&(o=e.skipChars(o,s),!(o-a<u)&&(o=e.skipSpaces(o),!(o<i)))){f=!0;break}u=e.sCount[t],e.line=l+(f?1:0);const p=e.push("fence","code",0);return p.info=x,p.content=e.getLines(t+1,l,u,!0),p.markup=c,p.map=[t,e.line],!0}function aE(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const a=[],u=[],c=[],x=[],l=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p=!1,d;for(d=t;d<n;d++){const C=e.sCount[d]<e.blkIndent;if(o=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],o>=i)break;if(e.src.charCodeAt(o++)===62&&!C){let B=e.sCount[d]+1,y,v;e.src.charCodeAt(o)===32?(o++,B++,v=!1,y=!0):e.src.charCodeAt(o)===9?(y=!0,(e.bsCount[d]+B)%4===3?(o++,B++,v=!1):v=!0):y=!1;let k=B;for(a.push(e.bMarks[d]),e.bMarks[d]=o;o<i;){const w=e.src.charCodeAt(o);if(nt(w))w===9?k+=4-(k+e.bsCount[d]+(v?1:0))%4:k++;else break;o++}p=o>=i,u.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(y?1:0),c.push(e.sCount[d]),e.sCount[d]=k-B,x.push(e.tShift[d]),e.tShift[d]=o-e.bMarks[d];continue}if(p)break;let A=!1;for(let B=0,y=l.length;B<y;B++)if(l[B](e,d,n,!0)){A=!0;break}if(A){e.lineMax=d,e.blkIndent!==0&&(a.push(e.bMarks[d]),u.push(e.bsCount[d]),x.push(e.tShift[d]),c.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}a.push(e.bMarks[d]),u.push(e.bsCount[d]),x.push(e.tShift[d]),c.push(e.sCount[d]),e.sCount[d]=-1}const h=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const m=[t,0];g.map=m,e.md.block.tokenize(e,t,d);const E=e.push("blockquote_close","blockquote",-1);E.markup=">",e.lineMax=s,e.parentType=f,m[1]=e.line;for(let C=0;C<x.length;C++)e.bMarks[C+t]=a[C],e.tShift[C+t]=x[C],e.sCount[C+t]=c[C],e.bsCount[C+t]=u[C];return e.blkIndent=h,!0}function uE(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;i<o;){const c=e.src.charCodeAt(i++);if(c!==s&&!nt(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 Ws(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){const i=e.src.charCodeAt(r);if(!nt(i))return-1}return r}function Vs(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),i>=48&&i<=57){if(o-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return o<r&&(i=e.src.charCodeAt(o),!nt(i))?-1:o}function cE(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;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 lE(e,t,n,r){let o,i,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 x=!1;r&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(x=!0);let l,f,p;if((p=Vs(e,u))>=0){if(l=!0,s=e.bMarks[u]+e.tShift[u],f=Number(e.src.slice(s,p-1)),x&&f!==1)return!1}else if((p=Ws(e,u))>=0)l=!1;else return!1;if(x&&e.skipSpaces(p)>=e.eMarks[u])return!1;if(r)return!0;const d=e.src.charCodeAt(p-1),h=e.tokens.length;l?(a=e.push("ordered_list_open","ol",1),f!==1&&(a.attrs=[["start",f]])):a=e.push("bullet_list_open","ul",1);const g=[u,0];a.map=g,a.markup=String.fromCharCode(d);let m=!1;const E=e.md.block.ruler.getRules("list"),C=e.parentType;for(e.parentType="list";u<n;){i=p,o=e.eMarks[u];const A=e.sCount[u]+p-(e.bMarks[u]+e.tShift[u]);let B=A;for(;i<o;){const H=e.src.charCodeAt(i);if(H===9)B+=4-(B+e.bsCount[u])%4;else if(H===32)B++;else break;i++}const y=i;let v;y>=o?v=1:v=B-A,v>4&&(v=1);const k=A+v;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(d);const w=[u,0];a.map=w,l&&(a.info=e.src.slice(s,p-1));const O=e.tight,N=e.tShift[u],R=e.sCount[u],M=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=k,e.tight=!0,e.tShift[u]=y-e.bMarks[u],e.sCount[u]=B,y>=o&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||m)&&(c=!1),m=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=M,e.tShift[u]=N,e.sCount[u]=R,e.tight=O,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(d),u=e.line,w[1]=u,u>=n||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let L=!1;for(let H=0,K=E.length;H<K;H++)if(E[H](e,u,n,!0)){L=!0;break}if(L)break;if(l){if(p=Vs(e,u),p<0)break;s=e.bMarks[u]+e.tShift[u]}else if(p=Ws(e,u),p<0)break;if(d!==e.src.charCodeAt(p-1))break}return l?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(d),g[1]=u,e.line=u,e.parentType=C,c&&cE(e,h),!0}function xE(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function a(E){const C=e.lineMax;if(E>=C||e.isEmpty(E))return null;let A=!1;if(e.sCount[E]-e.blkIndent>3&&(A=!0),e.sCount[E]<0&&(A=!0),!A){const v=e.md.block.ruler.getRules("reference"),k=e.parentType;e.parentType="reference";let w=!1;for(let O=0,N=v.length;O<N;O++)if(v[O](e,E,C,!0)){w=!0;break}if(e.parentType=k,w)return null}const B=e.bMarks[E]+e.tShift[E],y=e.eMarks[E];return e.src.slice(B,y+1)}let u=e.src.slice(o,i+1);i=u.length;let c=-1;for(o=1;o<i;o++){const E=u.charCodeAt(o);if(E===91)return!1;if(E===93){c=o;break}else if(E===10){const C=a(s);C!==null&&(u+=C,i=u.length,s++)}else if(E===92&&(o++,o<i&&u.charCodeAt(o)===10)){const C=a(s);C!==null&&(u+=C,i=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(o=c+2;o<i;o++){const E=u.charCodeAt(o);if(E===10){const C=a(s);C!==null&&(u+=C,i=u.length,s++)}else if(!nt(E))break}const x=e.md.helpers.parseLinkDestination(u,o,i);if(!x.ok)return!1;const l=e.md.normalizeLink(x.str);if(!e.md.validateLink(l))return!1;o=x.pos;const f=o,p=s,d=o;for(;o<i;o++){const E=u.charCodeAt(o);if(E===10){const C=a(s);C!==null&&(u+=C,i=u.length,s++)}else if(!nt(E))break}let h=e.md.helpers.parseLinkTitle(u,o,i);for(;h.can_continue;){const E=a(s);if(E===null)break;u+=E,o=i,i=u.length,s++,h=e.md.helpers.parseLinkTitle(u,o,i,h)}let g;for(o<i&&d!==o&&h.ok?(g=h.str,o=h.pos):(g="",o=f,s=p);o<i;){const E=u.charCodeAt(o);if(!nt(E))break;o++}if(o<i&&u.charCodeAt(o)!==10&&g)for(g="",o=f,s=p;o<i;){const E=u.charCodeAt(o);if(!nt(E))break;o++}if(o<i&&u.charCodeAt(o)!==10)return!1;const m=C0(u.slice(1,c));return m?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[m]>"u"&&(e.env.references[m]={title:g,href:l}),e.line=s),!0):!1}const dE=["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"],fE="[a-zA-Z_:][a-zA-Z0-9:._-]*",pE="[^\"'=<>`\\x00-\\x20]+",hE="'[^']*'",gE='"[^"]*"',EE="(?:"+pE+"|"+hE+"|"+gE+")",mE="(?:\\s+"+fE+"(?:\\s*=\\s*"+EE+")?)",kl="<[A-Za-z][A-Za-z0-9\\-]*"+mE+"*\\s*\\/?>",_l="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",bE="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",CE="<[?][\\s\\S]*?[?]>",AE="<![A-Za-z][^>]*>",BE="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",DE=new RegExp("^(?:"+kl+"|"+_l+"|"+bE+"|"+CE+"|"+AE+"|"+BE+")"),FE=new RegExp("^(?:"+kl+"|"+_l+")"),Cn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+dE.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(FE.source+"\\s*$"),/^$/,!1]];function yE(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,i),a=0;for(;a<Cn.length&&!Cn[a][0].test(s);a++);if(a===Cn.length)return!1;if(r)return Cn[a][2];let u=t+1;const c=Cn[a][1].test("");if(!Cn[a][1].test(s)){for(;u<n&&!(e.sCount[u]<e.blkIndent&&(c||!e.isEmpty(u)));u++)if(o=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],s=e.src.slice(o,i),Cn[a][1].test(s)){s.length!==0&&u++;break}}e.line=u;const x=e.push("html_block","",0);return x.map=[t,u],x.content=e.getLines(t,u,e.blkIndent,!0),!0}function vE(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=i)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o<i&&a<=6;)a++,s=e.src.charCodeAt(++o);if(a>6||o<i&&!nt(s))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const u=e.skipCharsBack(i,35,o);u>o&&nt(e.src.charCodeAt(u-1))&&(i=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 x=e.push("inline","",0);x.content=A0(e.src.slice(o,i)),x.map=[t,e.line],x.children=[];const l=e.push("heading_close","h"+String(a),-1);return l.markup="########".slice(0,a),!0}function kE(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let i=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 p=e.bMarks[a]+e.tShift[a];const d=e.eMarks[a];if(p<d&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=d))){i=s===61?1:2;break}}if(e.sCount[a]<0)continue;let f=!1;for(let p=0,d=r.length;p<d;p++)if(r[p](e,a,n,!0)){f=!0;break}if(f)break}if(!i)return e.parentType=o,!1;const u=A0(e.getLines(t,a,e.blkIndent,!1));e.line=a+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const x=e.push("inline","",0);x.content=u,x.map=[t,e.line-1],x.children=[];const l=e.push("heading_close","h"+String(i),-1);return l.markup=String.fromCharCode(s),e.parentType=o,!0}function _E(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let x=0,l=r.length;x<l;x++)if(r[x](e,i,n,!0)){c=!0;break}if(c)break}const s=A0(e.getLines(t,i,e.blkIndent,!1));e.line=i;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=o,!0}const Or=[["table",oE,["paragraph","reference"]],["code",iE],["fence",sE,["paragraph","reference","blockquote","list"]],["blockquote",aE,["paragraph","reference","blockquote","list"]],["hr",uE,["paragraph","reference","blockquote","list"]],["list",lE,["paragraph","reference","blockquote"]],["reference",xE],["html_block",yE,["paragraph","reference","blockquote"]],["heading",vE,["paragraph","reference","blockquote"]],["lheading",kE],["paragraph",_E]];function B0(){this.ruler=new wt;for(let e=0;e<Or.length;e++)this.ruler.push(Or[e][0],Or[e][1],{alt:(Or[e][2]||[]).slice()})}B0.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,i=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>=i){e.line=n;break}const u=e.line;let c=!1;for(let x=0;x<o;x++)if(c=r[x](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)}};B0.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)};B0.prototype.State=Zt;function Cr(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}Cr.prototype.pushPending=function(){const e=new Lt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Cr.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Lt(e,t,n);let o=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=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};Cr.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const g=this.src.charCodeAt(e-2);o=(g&64512)===55296?65536+(g-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const s=i-e;let a=i<n?this.src.charCodeAt(i):32;if((a&64512)===55296){const g=this.src.charCodeAt(i+1);a=(g&64512)===56320?65536+(a-55296<<10)+(g-56320):65533}else(a&64512)===56320&&(a=65533);const u=fr(o)||dr(o),c=fr(a)||dr(a),x=xr(o),l=xr(a),f=!l&&(!c||x||u),p=!x&&(!u||l||c);return{can_open:f&&(t||!p||u),can_close:p&&(t||!f||c),length:s}};Cr.prototype.Token=Lt;function wE(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 SE(e,t){let n=e.pos;for(;n<e.posMax&&!wE(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const TE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function NE(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 o=e.pending.match(TE);if(!o)return!1;const i=o[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.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,-i.length);const x=e.push("link_open","a",1);x.attrs=[["href",c]],x.markup="linkify",x.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(a);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=a.length-i.length,!0}function RE(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let i=r-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),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<o&&nt(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Si=[];for(let e=0;e<256;e++)Si.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Si[e.charCodeAt(0)]=1});function $E(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!nt(o));)n++;return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const a=e.push("text_special","",0);o<256&&Si[o]!==0?a.content=i:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function OE(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(o,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=o)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<i&&e.src.charCodeAt(u)===96;)u++;const x=u-c;if(x===a){if(!t){const l=e.push("code_inline","code",0);l.markup=s,l.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[x]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}function PE(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const o=e.scanDelims(e.pos,!0);let i=o.length;const s=String.fromCharCode(r);if(i<2)return!1;let a;i%2&&(a=e.push("text","",0),a.content=s,i--);for(let u=0;u<i;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:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Zs(e,t){let n;const r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];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 i=r.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function IE(e){const t=e.tokens_meta,n=e.tokens_meta.length;Zs(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Zs(e,t[r].delimiters)}const wl={tokenize:PE,postProcess:IE};function ME(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const o=e.scanDelims(e.pos,r===42);for(let i=0;i<o.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function Ys(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const i=t[o.end],s=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===i.token+1,a=String.fromCharCode(o.marker),u=e.tokens[o.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[i.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[o.end+1].token].content="",r--)}}function LE(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ys(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ys(e,t[r].delimiters)}const Sl={tokenize:ME,postProcess:LE};function UE(e,t){let n,r,o,i,s="",a="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const x=e.pos,l=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let d=p+1;if(d<l&&e.src.charCodeAt(d)===40){for(c=!1,d++;d<l&&(n=e.src.charCodeAt(d),!(!nt(n)&&n!==10));d++);if(d>=l)return!1;if(u=d,o=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?d=o.pos:s="",u=d;d<l&&(n=e.src.charCodeAt(d),!(!nt(n)&&n!==10));d++);if(o=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<l&&u!==d&&o.ok)for(a=o.str,d=o.pos;d<l&&(n=e.src.charCodeAt(d),!(!nt(n)&&n!==10));d++);}(d>=l||e.src.charCodeAt(d)!==41)&&(c=!0),d++}if(c){if(typeof e.env.references>"u")return!1;if(d<l&&e.src.charCodeAt(d)===91?(u=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?r=e.src.slice(u,d++):d=p+1):d=p+1,r||(r=e.src.slice(f,p)),i=e.env.references[C0(r)],!i)return e.pos=x,!1;s=i.href,a=i.title}if(!t){e.pos=f,e.posMax=p;const h=e.push("link_open","a",1),g=[["href",s]];h.attrs=g,a&&g.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=d,e.posMax=l,!0}function zE(e,t){let n,r,o,i,s,a,u,c,x="";const l=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,d=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(d<0)return!1;if(i=d+1,i<f&&e.src.charCodeAt(i)===40){for(i++;i<f&&(n=e.src.charCodeAt(i),!(!nt(n)&&n!==10));i++);if(i>=f)return!1;for(c=i,a=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),a.ok&&(x=e.md.normalizeLink(a.str),e.md.validateLink(x)?i=a.pos:x=""),c=i;i<f&&(n=e.src.charCodeAt(i),!(!nt(n)&&n!==10));i++);if(a=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<f&&c!==i&&a.ok)for(u=a.str,i=a.pos;i<f&&(n=e.src.charCodeAt(i),!(!nt(n)&&n!==10));i++);else u="";if(i>=f||e.src.charCodeAt(i)!==41)return e.pos=l,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<f&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=d+1):i=d+1,o||(o=e.src.slice(p,d)),s=e.env.references[C0(o)],!s)return e.pos=l,!1;x=s.href,u=s.title}if(!t){r=e.src.slice(p,d);const h=[];e.md.inline.parse(r,e.md,e.env,h);const g=e.push("image","img",0),m=[["src",x],["alt",""]];g.attrs=m,g.children=h,g.content=r,u&&m.push(["title",u])}return e.pos=i,e.posMax=f,!0}const jE=/^([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])?)*)$/,HE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function qE(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(r+1,n);if(HE.test(i)){const s=e.md.normalizeLink(i);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(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(jE.test(i)){const s=e.md.normalizeLink("mailto:"+i);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(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function GE(e){return/^<a[>\s]/i.test(e)}function KE(e){return/^<\/a\s*>/i.test(e)}function WE(e){const t=e|32;return t>=97&&t<=122}function VE(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 o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!WE(o))return!1;const i=e.src.slice(r).match(DE);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],GE(s.content)&&e.linkLevel++,KE(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const ZE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,YE=/^&([a-z][a-z0-9]{1,31});/i;function XE(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 i=e.src.slice(n).match(ZE);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=e.push("text_special","",0);a.content=_i(s)?lr(s):lr(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(YE);if(i){const s=g8(i[0]);if(s!==i[0]){if(!t){const a=e.push("text_special","",0);a.content=s,a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Xs(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const i=[];for(let s=0;s<n;s++){const a=e[s];if(i.push(0),(e[r].marker!==a.marker||o!==a.token-1)&&(r=s),o=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-i[r]-1,x=c;for(;c>u;c-=i[c]+1){const l=e[c];if(l.marker===a.marker&&l.open&&l.end<0){let f=!1;if((l.close||a.open)&&(l.length+a.length)%3===0&&(l.length%3!==0||a.length%3!==0)&&(f=!0),!f){const p=c>0&&!e[c-1].open?i[c-1]+1:0;i[s]=s-c+p,i[c]=p,a.open=!1,l.end=s,l.close=!1,x=-1,o=-2;break}}}x!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=x)}}function QE(e){const t=e.tokens_meta,n=e.tokens_meta.length;Xs(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Xs(t[r].delimiters)}function JE(e){let t,n,r=0;const o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<i&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const H0=[["text",SE],["linkify",NE],["newline",RE],["escape",$E],["backticks",OE],["strikethrough",wl.tokenize],["emphasis",Sl.tokenize],["link",UE],["image",zE],["autolink",qE],["html_inline",VE],["entity",XE]],q0=[["balance_pairs",QE],["strikethrough",wl.postProcess],["emphasis",Sl.postProcess],["fragments_join",JE]];function Ar(){this.ruler=new wt;for(let e=0;e<H0.length;e++)this.ruler.push(H0[e][0],H0[e][1]);this.ruler2=new wt;for(let e=0;e<q0.length;e++)this.ruler2.push(q0[e][0],q0[e][1])}Ar.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<o){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++,i[t]=e.pos};Ar.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const i=e.pos;let s=!1;if(e.level<o){for(let a=0;a<n;a++)if(s=t[a](e,!1),s){if(i>=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()};Ar.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const i=this.ruler2.getRules(""),s=i.length;for(let a=0;a<s;a++)i[a](o)};Ar.prototype.State=Cr;function em(e){const t={};e=e||{},t.src_Any=gl.source,t.src_Cc=El.source,t.src_Z=bl.source,t.src_P=vi.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 oi(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function D0(e){return Object.prototype.toString.call(e)}function tm(e){return D0(e)==="[object String]"}function nm(e){return D0(e)==="[object Object]"}function rm(e){return D0(e)==="[object RegExp]"}function Qs(e){return D0(e)==="[object Function]"}function om(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Tl={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function im(e){return Object.keys(e||{}).reduce(function(t,n){return t||Tl.hasOwnProperty(n)},!1)}const sm={"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}}},am="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]",um="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function cm(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Js(){return function(e,t){t.normalize(e)}}function s0(e){const t=e.re=em(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(am),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 o=[];e.__compiled__={};function i(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,nm(u)){rm(u.validate)?c.validate=cm(u.validate):Qs(u.validate)?c.validate=u.validate:i(a,u),Qs(u.normalize)?c.normalize=u.normalize:u.normalize?i(a,u):c.normalize=Js();return}if(tm(u)){o.push(a);return}i(a,u)}),o.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:Js()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(om).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 Nl(e,t,n,r){const o=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function Nt(e,t){if(!(this instanceof Nt))return new Nt(e,t);t||im(e)&&(t=e,e={}),this.__opts__=oi({},Tl,t),this.__schemas__=oi({},sm,e),this.__compiled__={},this.__tlds__=um,this.__tlds_replaced__=!1,this.re={},s0(this)}Nt.prototype.add=function(t,n){return this.__schemas__[t]=n,s0(this),this};Nt.prototype.set=function(t){return this.__opts__=oi(this.__opts__,t),this};Nt.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)};Nt.prototype.pretest=function(t){return this.re.pretest.test(t)};Nt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};Nt.prototype.match=function(t){const n=[],r=[],o=[],i=[];let s,a,u;function c(f,p){return f?p?f.index!==p.index?f.index<p.index?f:p:f.lastIndex>=p.lastIndex?f:p:f:p}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;)o.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;)i.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const x=[0,0,0];let l=0;for(;;){const f=[r[x[0]],i[x[1]],o[x[2]]],p=c(c(f[0],f[1]),f[2]);if(!p)break;if(p===f[0]?x[0]++:p===f[1]?x[1]++:x[2]++,p.index<l)continue;const d=new Nl(t,p.schema,p.index,p.lastIndex);this.__compiled__[d.schema].normalize(d,this),n.push(d),l=p.lastIndex}return n.length?n:null};Nt.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 o=new Nl(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[o.schema].normalize(o,this),o};Nt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),s0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,s0(this),this)};Nt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Nt.prototype.onCompile=function(){};const Mn=2147483647,qt=36,Ti=1,pr=26,lm=38,xm=700,Rl=72,$l=128,Ol="-",dm=/^xn--/,fm=/[^\0-\x7F]/,pm=/[\x2E\u3002\uFF0E\uFF61]/g,hm={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G0=qt-Ti,Gt=Math.floor,K0=String.fromCharCode;function xn(e){throw new RangeError(hm[e])}function gm(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Pl(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(pm,".");const o=e.split("."),i=gm(o,t).join(".");return r+i}function Il(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const Em=e=>String.fromCodePoint(...e),mm=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:qt},ea=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ml=function(e,t,n){let r=0;for(e=n?Gt(e/xm):e>>1,e+=Gt(e/t);e>G0*pr>>1;r+=qt)e=Gt(e/G0);return Gt(r+(G0+1)*e/(e+lm))},Ll=function(e){const t=[],n=e.length;let r=0,o=$l,i=Rl,s=e.lastIndexOf(Ol);s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&xn("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const u=r;for(let x=1,l=qt;;l+=qt){a>=n&&xn("invalid-input");const f=mm(e.charCodeAt(a++));f>=qt&&xn("invalid-input"),f>Gt((Mn-r)/x)&&xn("overflow"),r+=f*x;const p=l<=i?Ti:l>=i+pr?pr:l-i;if(f<p)break;const d=qt-p;x>Gt(Mn/d)&&xn("overflow"),x*=d}const c=t.length+1;i=Ml(r-u,c,u==0),Gt(r/c)>Mn-o&&xn("overflow"),o+=Gt(r/c),r%=c,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Ul=function(e){const t=[];e=Il(e);const n=e.length;let r=$l,o=0,i=Rl;for(const u of e)u<128&&t.push(K0(u));const s=t.length;let a=s;for(s&&t.push(Ol);a<n;){let u=Mn;for(const x of e)x>=r&&x<u&&(u=x);const c=a+1;u-r>Gt((Mn-o)/c)&&xn("overflow"),o+=(u-r)*c,r=u;for(const x of e)if(x<r&&++o>Mn&&xn("overflow"),x===r){let l=o;for(let f=qt;;f+=qt){const p=f<=i?Ti:f>=i+pr?pr:f-i;if(l<p)break;const d=l-p,h=qt-p;t.push(K0(ea(p+d%h,0))),l=Gt(d/h)}t.push(K0(ea(l,0))),i=Ml(o,c,a===s),o=0,++a}++o,++r}return t.join("")},bm=function(e){return Pl(e,function(t){return dm.test(t)?Ll(t.slice(4).toLowerCase()):t})},Cm=function(e){return Pl(e,function(t){return fm.test(t)?"xn--"+Ul(t):t})},zl={version:"2.3.1",ucs2:{decode:Il,encode:Em},decode:Ll,encode:Ul,toASCII:Cm,toUnicode:bm},Am={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Bm={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"]}}},Dm={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"]}}},Fm={default:Am,zero:Bm,commonmark:Dm},ym=/^(vbscript|javascript|file|data):/,vm=/^data:image\/(gif|png|jpeg|webp);/;function km(e){const t=e.trim().toLowerCase();return ym.test(t)?vm.test(t):!0}const jl=["http:","https:","mailto:"];function _m(e){const t=yi(e,!0);if(t.hostname&&(!t.protocol||jl.indexOf(t.protocol)>=0))try{t.hostname=zl.toASCII(t.hostname)}catch{}return br(Fi(t))}function wm(e){const t=yi(e,!0);if(t.hostname&&(!t.protocol||jl.indexOf(t.protocol)>=0))try{t.hostname=zl.toUnicode(t.hostname)}catch{}return Un(Fi(t),Un.defaultChars+"%")}function Rt(e,t){if(!(this instanceof Rt))return new Rt(e,t);t||ki(e)||(t=e||{},e="default"),this.inline=new Ar,this.block=new B0,this.core=new wi,this.renderer=new Kn,this.linkify=new Nt,this.validateLink=km,this.normalizeLink=_m,this.normalizeLinkText=wm,this.utils=N8,this.helpers=b0({},P8),this.options={},this.configure(e),t&&this.set(t)}Rt.prototype.set=function(e){return b0(this.options,e),this};Rt.prototype.configure=function(e){const t=this;if(ki(e)){const n=e;if(e=Fm[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};Rt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Rt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Rt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Rt.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};Rt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Rt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Rt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var W0,ta;function Sm(){if(ta)return W0;ta=1;var e=!0,t=!1,n=!1;W0=function(h,g){g&&(e=!g.enabled,t=!!g.label,n=!!g.labelAfter),h.core.ruler.after("inline","github-task-lists",function(m){for(var E=m.tokens,C=2;C<E.length;C++)i(E,C)&&(s(E[C],m.Token),r(E[C-2],"class","task-list-item"+(e?"":" enabled")),r(E[o(E,C-2)],"class","contains-task-list"))})};function r(h,g,m){var E=h.attrIndex(g),C=[g,m];E<0?h.attrPush(C):h.attrs[E]=C}function o(h,g){for(var m=h[g].level-1,E=g-1;E>=0;E--)if(h[E].level===m)return E;return-1}function i(h,g){return l(h[g])&&f(h[g-1])&&p(h[g-2])&&d(h[g])}function s(h,g){if(h.children.unshift(a(h,g)),h.children[1].content=h.children[1].content.slice(3),h.content=h.content.slice(3),t)if(n){h.children.pop();var m="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);h.children[0].content=h.children[0].content.slice(0,-1)+' id="'+m+'">',h.children.push(x(h.content,m,g))}else h.children.unshift(u(g)),h.children.push(c(g))}function a(h,g){var m=new g("html_inline","",0),E=e?' disabled="" ':"";return h.content.indexOf("[ ] ")===0?m.content='<input class="task-list-item-checkbox"'+E+'type="checkbox">':(h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0)&&(m.content='<input class="task-list-item-checkbox" checked=""'+E+'type="checkbox">'),m}function u(h){var g=new h("html_inline","",0);return g.content="<label>",g}function c(h){var g=new h("html_inline","",0);return g.content="</label>",g}function x(h,g,m){var E=new m("html_inline","",0);return E.content='<label class="task-list-item-label" for="'+g+'">'+h+"</label>",E.attrs=[{for:g}],E}function l(h){return h.type==="inline"}function f(h){return h.type==="paragraph_open"}function p(h){return h.type==="list_item_open"}function d(h){return h.content.indexOf("[ ] ")===0||h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0}return W0}var Tm=Sm();const Nm=mr(Tm);var V0,na;function Rm(){if(na)return V0;na=1;function e(T){return T instanceof Map?T.clear=T.delete=T.set=function(){throw new Error("map is read-only")}:T instanceof Set&&(T.add=T.clear=T.delete=function(){throw new Error("set is read-only")}),Object.freeze(T),Object.getOwnPropertyNames(T).forEach(Y=>{const se=T[Y],Te=typeof se;(Te==="object"||Te==="function")&&!Object.isFrozen(se)&&e(se)}),T}class t{constructor(Y){Y.data===void 0&&(Y.data={}),this.data=Y.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(T){return T.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(T,...Y){const se=Object.create(null);for(const Te in T)se[Te]=T[Te];return Y.forEach(function(Te){for(const ct in Te)se[ct]=Te[ct]}),se}const o="</span>",i=T=>!!T.scope,s=(T,{prefix:Y})=>{if(T.startsWith("language:"))return T.replace("language:","language-");if(T.includes(".")){const se=T.split(".");return[`${Y}${se.shift()}`,...se.map((Te,ct)=>`${Te}${"_".repeat(ct+1)}`)].join(" ")}return`${Y}${T}`};class a{constructor(Y,se){this.buffer="",this.classPrefix=se.classPrefix,Y.walk(this)}addText(Y){this.buffer+=n(Y)}openNode(Y){if(!i(Y))return;const se=s(Y.scope,{prefix:this.classPrefix});this.span(se)}closeNode(Y){i(Y)&&(this.buffer+=o)}value(){return this.buffer}span(Y){this.buffer+=`<span class="${Y}">`}}const u=(T={})=>{const Y={children:[]};return Object.assign(Y,T),Y};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(Y){this.top.children.push(Y)}openNode(Y){const se=u({scope:Y});this.add(se),this.stack.push(se)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Y){return this.constructor._walk(Y,this.rootNode)}static _walk(Y,se){return typeof se=="string"?Y.addText(se):se.children&&(Y.openNode(se),se.children.forEach(Te=>this._walk(Y,Te)),Y.closeNode(se)),Y}static _collapse(Y){typeof Y!="string"&&Y.children&&(Y.children.every(se=>typeof se=="string")?Y.children=[Y.children.join("")]:Y.children.forEach(se=>{c._collapse(se)}))}}class x extends c{constructor(Y){super(),this.options=Y}addText(Y){Y!==""&&this.add(Y)}startScope(Y){this.openNode(Y)}endScope(){this.closeNode()}__addSublanguage(Y,se){const Te=Y.root;se&&(Te.scope=`language:${se}`),this.add(Te)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(T){return T?typeof T=="string"?T:T.source:null}function f(T){return h("(?=",T,")")}function p(T){return h("(?:",T,")*")}function d(T){return h("(?:",T,")?")}function h(...T){return T.map(se=>l(se)).join("")}function g(T){const Y=T[T.length-1];return typeof Y=="object"&&Y.constructor===Object?(T.splice(T.length-1,1),Y):{}}function m(...T){return"("+(g(T).capture?"":"?:")+T.map(Te=>l(Te)).join("|")+")"}function E(T){return new RegExp(T.toString()+"|").exec("").length-1}function C(T,Y){const se=T&&T.exec(Y);return se&&se.index===0}const A=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(T,{joinWith:Y}){let se=0;return T.map(Te=>{se+=1;const ct=se;let lt=l(Te),ge="";for(;lt.length>0;){const pe=A.exec(lt);if(!pe){ge+=lt;break}ge+=lt.substring(0,pe.index),lt=lt.substring(pe.index+pe[0].length),pe[0][0]==="\\"&&pe[1]?ge+="\\"+String(Number(pe[1])+ct):(ge+=pe[0],pe[0]==="("&&se++)}return ge}).map(Te=>`(${Te})`).join(Y)}const y=/\b\B/,v="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",w="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",N="\\b(0b[01]+)",R="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",M=(T={})=>{const Y=/^#![ ]*\//;return T.binary&&(T.begin=h(Y,/.*\b/,T.binary,/\b.*/)),r({scope:"meta",begin:Y,end:/$/,relevance:0,"on:begin":(se,Te)=>{se.index!==0&&Te.ignoreMatch()}},T)},L={begin:"\\\\[\\s\\S]",relevance:0},H={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[L]},K={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[L]},_={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/},G=function(T,Y,se={}){const Te=r({scope:"comment",begin:T,end:Y,contains:[]},se);Te.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 ct=m("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 Te.contains.push({begin:h(/[ ]+/,"(",ct,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Te},I=G("//","$"),S=G("/\\*","\\*/"),U=G("#","$"),z={scope:"number",begin:w,relevance:0},$={scope:"number",begin:O,relevance:0},j={scope:"number",begin:N,relevance:0},Z={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[L,{begin:/\[/,end:/\]/,relevance:0,contains:[L]}]},te={scope:"title",begin:v,relevance:0},ie={scope:"title",begin:k,relevance:0},ce={begin:"\\.\\s*"+k,relevance:0};var ve=Object.freeze({__proto__:null,APOS_STRING_MODE:H,BACKSLASH_ESCAPE:L,BINARY_NUMBER_MODE:j,BINARY_NUMBER_RE:N,COMMENT:G,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:I,C_NUMBER_MODE:$,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(T){return Object.assign(T,{"on:begin":(Y,se)=>{se.data._beginMatch=Y[1]},"on:end":(Y,se)=>{se.data._beginMatch!==Y[1]&&se.ignoreMatch()}})},HASH_COMMENT_MODE:U,IDENT_RE:v,MATCH_NOTHING_RE:y,METHOD_GUARD:ce,NUMBER_MODE:z,NUMBER_RE:w,PHRASAL_WORDS_MODE:_,QUOTE_STRING_MODE:K,REGEXP_MODE:Z,RE_STARTERS_RE:R,SHEBANG:M,TITLE_MODE:te,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:ie});function _e(T,Y){T.input[T.index-1]==="."&&Y.ignoreMatch()}function Ne(T,Y){T.className!==void 0&&(T.scope=T.className,delete T.className)}function Qe(T,Y){Y&&T.beginKeywords&&(T.begin="\\b("+T.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",T.__beforeBegin=_e,T.keywords=T.keywords||T.beginKeywords,delete T.beginKeywords,T.relevance===void 0&&(T.relevance=0))}function Je(T,Y){Array.isArray(T.illegal)&&(T.illegal=m(...T.illegal))}function it(T,Y){if(T.match){if(T.begin||T.end)throw new Error("begin & end are not supported with match");T.begin=T.match,delete T.match}}function ee(T,Y){T.relevance===void 0&&(T.relevance=1)}const Q=(T,Y)=>{if(!T.beforeMatch)return;if(T.starts)throw new Error("beforeMatch cannot be used with starts");const se=Object.assign({},T);Object.keys(T).forEach(Te=>{delete T[Te]}),T.keywords=se.keywords,T.begin=h(se.beforeMatch,f(se.begin)),T.starts={relevance:0,contains:[Object.assign(se,{endsParent:!0})]},T.relevance=0,delete se.beforeMatch},Be=["of","and","for","in","not","or","if","then","parent","list","value"],be="keyword";function ze(T,Y,se=be){const Te=Object.create(null);return typeof T=="string"?ct(se,T.split(" ")):Array.isArray(T)?ct(se,T):Object.keys(T).forEach(function(lt){Object.assign(Te,ze(T[lt],Y,lt))}),Te;function ct(lt,ge){Y&&(ge=ge.map(pe=>pe.toLowerCase())),ge.forEach(function(pe){const we=pe.split("|");Te[we[0]]=[lt,ye(we[0],we[1])]})}}function ye(T,Y){return Y?Number(Y):st(T)?0:1}function st(T){return Be.includes(T.toLowerCase())}const At={},yt=T=>{console.error(T)},V=(T,...Y)=>{console.log(`WARN: ${T}`,...Y)},J=(T,Y)=>{At[`${T}/${Y}`]||(console.log(`Deprecated as of ${T}. ${Y}`),At[`${T}/${Y}`]=!0)},de=new Error;function Fe(T,Y,{key:se}){let Te=0;const ct=T[se],lt={},ge={};for(let pe=1;pe<=Y.length;pe++)ge[pe+Te]=ct[pe],lt[pe+Te]=!0,Te+=E(Y[pe-1]);T[se]=ge,T[se]._emit=lt,T[se]._multi=!0}function Re(T){if(Array.isArray(T.begin)){if(T.skip||T.excludeBegin||T.returnBegin)throw yt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),de;if(typeof T.beginScope!="object"||T.beginScope===null)throw yt("beginScope must be object"),de;Fe(T,T.begin,{key:"beginScope"}),T.begin=B(T.begin,{joinWith:""})}}function mt(T){if(Array.isArray(T.end)){if(T.skip||T.excludeEnd||T.returnEnd)throw yt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),de;if(typeof T.endScope!="object"||T.endScope===null)throw yt("endScope must be object"),de;Fe(T,T.end,{key:"endScope"}),T.end=B(T.end,{joinWith:""})}}function Le(T){T.scope&&typeof T.scope=="object"&&T.scope!==null&&(T.beginScope=T.scope,delete T.scope)}function qe(T){Le(T),typeof T.beginScope=="string"&&(T.beginScope={_wrap:T.beginScope}),typeof T.endScope=="string"&&(T.endScope={_wrap:T.endScope}),Re(T),mt(T)}function kt(T){function Y(ge,pe){return new RegExp(l(ge),"m"+(T.case_insensitive?"i":"")+(T.unicodeRegex?"u":"")+(pe?"g":""))}class se{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(pe,we){we.position=this.position++,this.matchIndexes[this.matchAt]=we,this.regexes.push([we,pe]),this.matchAt+=E(pe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const pe=this.regexes.map(we=>we[1]);this.matcherRe=Y(B(pe,{joinWith:"|"}),!0),this.lastIndex=0}exec(pe){this.matcherRe.lastIndex=this.lastIndex;const we=this.matcherRe.exec(pe);if(!we)return null;const ht=we.findIndex((Wn,F0)=>F0>0&&Wn!==void 0),xt=this.matchIndexes[ht];return we.splice(0,ht),Object.assign(we,xt)}}class Te{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(pe){if(this.multiRegexes[pe])return this.multiRegexes[pe];const we=new se;return this.rules.slice(pe).forEach(([ht,xt])=>we.addRule(ht,xt)),we.compile(),this.multiRegexes[pe]=we,we}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(pe,we){this.rules.push([pe,we]),we.type==="begin"&&this.count++}exec(pe){const we=this.getMatcher(this.regexIndex);we.lastIndex=this.lastIndex;let ht=we.exec(pe);if(this.resumingScanAtSamePosition()&&!(ht&&ht.index===this.lastIndex)){const xt=this.getMatcher(0);xt.lastIndex=this.lastIndex+1,ht=xt.exec(pe)}return ht&&(this.regexIndex+=ht.position+1,this.regexIndex===this.count&&this.considerAll()),ht}}function ct(ge){const pe=new Te;return ge.contains.forEach(we=>pe.addRule(we.begin,{rule:we,type:"begin"})),ge.terminatorEnd&&pe.addRule(ge.terminatorEnd,{type:"end"}),ge.illegal&&pe.addRule(ge.illegal,{type:"illegal"}),pe}function lt(ge,pe){const we=ge;if(ge.isCompiled)return we;[Ne,it,qe,Q].forEach(xt=>xt(ge,pe)),T.compilerExtensions.forEach(xt=>xt(ge,pe)),ge.__beforeBegin=null,[Qe,Je,ee].forEach(xt=>xt(ge,pe)),ge.isCompiled=!0;let ht=null;return typeof ge.keywords=="object"&&ge.keywords.$pattern&&(ge.keywords=Object.assign({},ge.keywords),ht=ge.keywords.$pattern,delete ge.keywords.$pattern),ht=ht||/\w+/,ge.keywords&&(ge.keywords=ze(ge.keywords,T.case_insensitive)),we.keywordPatternRe=Y(ht,!0),pe&&(ge.begin||(ge.begin=/\B|\b/),we.beginRe=Y(we.begin),!ge.end&&!ge.endsWithParent&&(ge.end=/\B|\b/),ge.end&&(we.endRe=Y(we.end)),we.terminatorEnd=l(we.end)||"",ge.endsWithParent&&pe.terminatorEnd&&(we.terminatorEnd+=(ge.end?"|":"")+pe.terminatorEnd)),ge.illegal&&(we.illegalRe=Y(ge.illegal)),ge.contains||(ge.contains=[]),ge.contains=[].concat(...ge.contains.map(function(xt){return Ot(xt==="self"?ge:xt)})),ge.contains.forEach(function(xt){lt(xt,we)}),ge.starts&<(ge.starts,pe),we.matcher=ct(we),we}if(T.compilerExtensions||(T.compilerExtensions=[]),T.contains&&T.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return T.classNameAliases=r(T.classNameAliases||{}),lt(T)}function _t(T){return T?T.endsWithParent||_t(T.starts):!1}function Ot(T){return T.variants&&!T.cachedVariants&&(T.cachedVariants=T.variants.map(function(Y){return r(T,{variants:null},Y)})),T.cachedVariants?T.cachedVariants:_t(T)?r(T,{starts:T.starts?r(T.starts):null}):Object.isFrozen(T)?r(T):T}var vn="11.11.1";class kn extends Error{constructor(Y,se){super(Y),this.name="HTMLInjectionError",this.html=se}}const rn=n,Br=r,Ve=Symbol("nomatch"),_n=7,on=function(T){const Y=Object.create(null),se=Object.create(null),Te=[];let ct=!0;const lt="Could not find the language '{}', did you forget to load/include a language module?",ge={disableAutodetect:!0,name:"Plain text",contains:[]};let pe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:x};function we(ne){return pe.noHighlightRe.test(ne)}function ht(ne){let Ce=ne.className+" ";Ce+=ne.parentNode?ne.parentNode.className:"";const je=pe.languageDetectRe.exec(Ce);if(je){const et=an(je[1]);return et||(V(lt.replace("{}",je[1])),V("Falling back to no-highlight mode for this block.",ne)),et?je[1]:"no-highlight"}return Ce.split(/\s+/).find(et=>we(et)||an(et))}function xt(ne,Ce,je){let et="",dt="";typeof Ce=="object"?(et=ne,je=Ce.ignoreIllegals,dt=Ce.language):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("10.7.0",`Please use highlight(code, options) instead.
|
|
28
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),dt=ne,et=Ce),je===void 0&&(je=!0);const Pt={code:et,language:dt};Fr("before:highlight",Pt);const un=Pt.result?Pt.result:Wn(Pt.language,Pt.code,je);return un.code=Pt.code,Fr("after:highlight",un),un}function Wn(ne,Ce,je,et){const dt=Object.create(null);function Pt(ae,Ee){return ae.keywords[Ee]}function un(){if(!$e.keywords){bt.addText(tt);return}let ae=0;$e.keywordPatternRe.lastIndex=0;let Ee=$e.keywordPatternRe.exec(tt),Oe="";for(;Ee;){Oe+=tt.substring(ae,Ee.index);const Ze=zt.case_insensitive?Ee[0].toLowerCase():Ee[0],Bt=Pt($e,Ze);if(Bt){const[Yt,kx]=Bt;if(bt.addText(Oe),Oe="",dt[Ze]=(dt[Ze]||0)+1,dt[Ze]<=_n&&(kr+=kx),Yt.startsWith("_"))Oe+=Ee[0];else{const _x=zt.classNameAliases[Yt]||Yt;Ut(Ee[0],_x)}}else Oe+=Ee[0];ae=$e.keywordPatternRe.lastIndex,Ee=$e.keywordPatternRe.exec(tt)}Oe+=tt.substring(ae),bt.addText(Oe)}function yr(){if(tt==="")return;let ae=null;if(typeof $e.subLanguage=="string"){if(!Y[$e.subLanguage]){bt.addText(tt);return}ae=Wn($e.subLanguage,tt,!0,zi[$e.subLanguage]),zi[$e.subLanguage]=ae._top}else ae=y0(tt,$e.subLanguage.length?$e.subLanguage:null);$e.relevance>0&&(kr+=ae.relevance),bt.__addSublanguage(ae._emitter,ae.language)}function St(){$e.subLanguage!=null?yr():un(),tt=""}function Ut(ae,Ee){ae!==""&&(bt.startScope(Ee),bt.addText(ae),bt.endScope())}function Ii(ae,Ee){let Oe=1;const Ze=Ee.length-1;for(;Oe<=Ze;){if(!ae._emit[Oe]){Oe++;continue}const Bt=zt.classNameAliases[ae[Oe]]||ae[Oe],Yt=Ee[Oe];Bt?Ut(Yt,Bt):(tt=Yt,un(),tt=""),Oe++}}function Mi(ae,Ee){return ae.scope&&typeof ae.scope=="string"&&bt.openNode(zt.classNameAliases[ae.scope]||ae.scope),ae.beginScope&&(ae.beginScope._wrap?(Ut(tt,zt.classNameAliases[ae.beginScope._wrap]||ae.beginScope._wrap),tt=""):ae.beginScope._multi&&(Ii(ae.beginScope,Ee),tt="")),$e=Object.create(ae,{parent:{value:$e}}),$e}function Li(ae,Ee,Oe){let Ze=C(ae.endRe,Oe);if(Ze){if(ae["on:end"]){const Bt=new t(ae);ae["on:end"](Ee,Bt),Bt.isMatchIgnored&&(Ze=!1)}if(Ze){for(;ae.endsParent&&ae.parent;)ae=ae.parent;return ae}}if(ae.endsWithParent)return Li(ae.parent,Ee,Oe)}function Bx(ae){return $e.matcher.regexIndex===0?(tt+=ae[0],1):(w0=!0,0)}function Dx(ae){const Ee=ae[0],Oe=ae.rule,Ze=new t(Oe),Bt=[Oe.__beforeBegin,Oe["on:begin"]];for(const Yt of Bt)if(Yt&&(Yt(ae,Ze),Ze.isMatchIgnored))return Bx(Ee);return Oe.skip?tt+=Ee:(Oe.excludeBegin&&(tt+=Ee),St(),!Oe.returnBegin&&!Oe.excludeBegin&&(tt=Ee)),Mi(Oe,ae),Oe.returnBegin?0:Ee.length}function Fx(ae){const Ee=ae[0],Oe=Ce.substring(ae.index),Ze=Li($e,ae,Oe);if(!Ze)return Ve;const Bt=$e;$e.endScope&&$e.endScope._wrap?(St(),Ut(Ee,$e.endScope._wrap)):$e.endScope&&$e.endScope._multi?(St(),Ii($e.endScope,ae)):Bt.skip?tt+=Ee:(Bt.returnEnd||Bt.excludeEnd||(tt+=Ee),St(),Bt.excludeEnd&&(tt=Ee));do $e.scope&&bt.closeNode(),!$e.skip&&!$e.subLanguage&&(kr+=$e.relevance),$e=$e.parent;while($e!==Ze.parent);return Ze.starts&&Mi(Ze.starts,ae),Bt.returnEnd?0:Ee.length}function yx(){const ae=[];for(let Ee=$e;Ee!==zt;Ee=Ee.parent)Ee.scope&&ae.unshift(Ee.scope);ae.forEach(Ee=>bt.openNode(Ee))}let vr={};function Ui(ae,Ee){const Oe=Ee&&Ee[0];if(tt+=ae,Oe==null)return St(),0;if(vr.type==="begin"&&Ee.type==="end"&&vr.index===Ee.index&&Oe===""){if(tt+=Ce.slice(Ee.index,Ee.index+1),!ct){const Ze=new Error(`0 width match regex (${ne})`);throw Ze.languageName=ne,Ze.badRule=vr.rule,Ze}return 1}if(vr=Ee,Ee.type==="begin")return Dx(Ee);if(Ee.type==="illegal"&&!je){const Ze=new Error('Illegal lexeme "'+Oe+'" for mode "'+($e.scope||"<unnamed>")+'"');throw Ze.mode=$e,Ze}else if(Ee.type==="end"){const Ze=Fx(Ee);if(Ze!==Ve)return Ze}if(Ee.type==="illegal"&&Oe==="")return tt+=`
|
|
29
|
+
`,1;if(_0>1e5&&_0>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return tt+=Oe,Oe.length}const zt=an(ne);if(!zt)throw yt(lt.replace("{}",ne)),new Error('Unknown language: "'+ne+'"');const vx=kt(zt);let k0="",$e=et||vx;const zi={},bt=new pe.__emitter(pe);yx();let tt="",kr=0,mn=0,_0=0,w0=!1;try{if(zt.__emitTokens)zt.__emitTokens(Ce,bt);else{for($e.matcher.considerAll();;){_0++,w0?w0=!1:$e.matcher.considerAll(),$e.matcher.lastIndex=mn;const ae=$e.matcher.exec(Ce);if(!ae)break;const Ee=Ce.substring(mn,ae.index),Oe=Ui(Ee,ae);mn=ae.index+Oe}Ui(Ce.substring(mn))}return bt.finalize(),k0=bt.toHTML(),{language:ne,value:k0,relevance:kr,illegal:!1,_emitter:bt,_top:$e}}catch(ae){if(ae.message&&ae.message.includes("Illegal"))return{language:ne,value:rn(Ce),illegal:!0,relevance:0,_illegalBy:{message:ae.message,index:mn,context:Ce.slice(mn-100,mn+100),mode:ae.mode,resultSoFar:k0},_emitter:bt};if(ct)return{language:ne,value:rn(Ce),illegal:!1,relevance:0,errorRaised:ae,_emitter:bt,_top:$e};throw ae}}function F0(ne){const Ce={value:rn(ne),illegal:!1,relevance:0,_top:ge,_emitter:new pe.__emitter(pe)};return Ce._emitter.addText(ne),Ce}function y0(ne,Ce){Ce=Ce||pe.languages||Object.keys(Y);const je=F0(ne),et=Ce.filter(an).filter(Pi).map(St=>Wn(St,ne,!1));et.unshift(je);const dt=et.sort((St,Ut)=>{if(St.relevance!==Ut.relevance)return Ut.relevance-St.relevance;if(St.language&&Ut.language){if(an(St.language).supersetOf===Ut.language)return 1;if(an(Ut.language).supersetOf===St.language)return-1}return 0}),[Pt,un]=dt,yr=Pt;return yr.secondBest=un,yr}function xx(ne,Ce,je){const et=Ce&&se[Ce]||je;ne.classList.add("hljs"),ne.classList.add(`language-${et}`)}function v0(ne){let Ce=null;const je=ht(ne);if(we(je))return;if(Fr("before:highlightElement",{el:ne,language:je}),ne.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ne);return}if(ne.children.length>0&&(pe.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(ne)),pe.throwUnescapedHTML))throw new kn("One of your code blocks includes unescaped HTML.",ne.innerHTML);Ce=ne;const et=Ce.textContent,dt=je?xt(et,{language:je,ignoreIllegals:!0}):y0(et);ne.innerHTML=dt.value,ne.dataset.highlighted="yes",xx(ne,je,dt.language),ne.result={language:dt.language,re:dt.relevance,relevance:dt.relevance},dt.secondBest&&(ne.secondBest={language:dt.secondBest.language,relevance:dt.secondBest.relevance}),Fr("after:highlightElement",{el:ne,result:dt,text:et})}function dx(ne){pe=Br(pe,ne)}const fx=()=>{Dr(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function px(){Dr(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let $i=!1;function Dr(){function ne(){Dr()}if(document.readyState==="loading"){$i||window.addEventListener("DOMContentLoaded",ne,!1),$i=!0;return}document.querySelectorAll(pe.cssSelector).forEach(v0)}function hx(ne,Ce){let je=null;try{je=Ce(T)}catch(et){if(yt("Language definition for '{}' could not be registered.".replace("{}",ne)),ct)yt(et);else throw et;je=ge}je.name||(je.name=ne),Y[ne]=je,je.rawDefinition=Ce.bind(null,T),je.aliases&&Oi(je.aliases,{languageName:ne})}function gx(ne){delete Y[ne];for(const Ce of Object.keys(se))se[Ce]===ne&&delete se[Ce]}function Ex(){return Object.keys(Y)}function an(ne){return ne=(ne||"").toLowerCase(),Y[ne]||Y[se[ne]]}function Oi(ne,{languageName:Ce}){typeof ne=="string"&&(ne=[ne]),ne.forEach(je=>{se[je.toLowerCase()]=Ce})}function Pi(ne){const Ce=an(ne);return Ce&&!Ce.disableAutodetect}function mx(ne){ne["before:highlightBlock"]&&!ne["before:highlightElement"]&&(ne["before:highlightElement"]=Ce=>{ne["before:highlightBlock"](Object.assign({block:Ce.el},Ce))}),ne["after:highlightBlock"]&&!ne["after:highlightElement"]&&(ne["after:highlightElement"]=Ce=>{ne["after:highlightBlock"](Object.assign({block:Ce.el},Ce))})}function bx(ne){mx(ne),Te.push(ne)}function Cx(ne){const Ce=Te.indexOf(ne);Ce!==-1&&Te.splice(Ce,1)}function Fr(ne,Ce){const je=ne;Te.forEach(function(et){et[je]&&et[je](Ce)})}function Ax(ne){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),v0(ne)}Object.assign(T,{highlight:xt,highlightAuto:y0,highlightAll:Dr,highlightElement:v0,highlightBlock:Ax,configure:dx,initHighlighting:fx,initHighlightingOnLoad:px,registerLanguage:hx,unregisterLanguage:gx,listLanguages:Ex,getLanguage:an,registerAliases:Oi,autoDetection:Pi,inherit:Br,addPlugin:bx,removePlugin:Cx}),T.debugMode=function(){ct=!1},T.safeMode=function(){ct=!0},T.versionString=vn,T.regex={concat:h,lookahead:f,either:m,optional:d,anyNumberOfTimes:p};for(const ne in ve)typeof ve[ne]=="object"&&e(ve[ne]);return Object.assign(T,ve),T},sn=on({});return sn.newInstance=()=>on({}),V0=sn,sn.HighlightJS=sn,sn.default=sn,V0}var Z0,ra;function $m(){if(ra)return Z0;ra=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),o=/[\p{L}0-9._:-]+/u,i={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"}),x={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{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},i,{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:[x],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[x],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:x}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Z0=e,Z0}var Y0,oa;function Om(){if(oa)return Y0;oa=1;function e(t){const n=t.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const i={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,i]};i.contains.push(u);const c={match:/\\"/},x={className:"string",begin:/'/,end:/'/},l={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=t.SHEBANG({binary:`(${p.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},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],m=["true","false"],E={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["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"],y=["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:g,literal:m,built_in:[...C,...A,"set","shopt",...B,...y]},contains:[d,t.SHEBANG(),h,f,s,a,E,u,c,x,l,r]}}return Y0=e,Y0}var X0,ia;function Pm(){if(ia)return X0;ia=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+o+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},x={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})"/})]},l={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},f={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(x,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:n.optional(i)+t.IDENT_RE,relevance:0},d=n.optional(i)+t.IDENT_RE+"\\s*\\(",m={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"},E=[f,u,r,t.C_BLOCK_COMMENT_MODE,l,x],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:m,contains:E.concat([{begin:/\(/,end:/\)/,keywords:m,contains:E.concat(["self"]),relevance:0}]),relevance:0},A={begin:"("+a+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:m,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:m,relevance:0},{begin:d,returnBegin:!0,contains:[t.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,x,l,u,{begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,x,l,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:m,disableAutodetect:!0,illegal:"</",contains:[].concat(C,A,E,[f,{begin:t.IDENT_RE+"::",keywords:m},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:f,strings:x,keywords:m}}}return X0=e,X0}var Q0,sa;function Im(){if(sa)return Q0;sa=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+o+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},x={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})"/})]},l={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},f={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(x,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:n.optional(i)+t.IDENT_RE,relevance:0},d=n.optional(i)+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"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["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"],E=["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"],B={type:g,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},y={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},v=[y,f,u,r,t.C_BLOCK_COMMENT_MODE,l,x],k={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:v.concat([{begin:/\(/,end:/\)/,keywords:B,contains:v.concat(["self"]),relevance:0}]),relevance:0},w={className:"function",begin:"("+a+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:B,relevance:0},{begin:d,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[x,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,x,l,u,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,x,l,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(k,w,y,v,[f,{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:B,contains:["self",u]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Q0=e,Q0}var J0,aa;function Mm(){if(aa)return J0;aa=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"],o=["default","false","null","true"],i=["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:i.concat(s),built_in:n,literal:o},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},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},l={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=t.inherit(l,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},d=t.inherit(p,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,d]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},m=t.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]});p.contains=[g,h,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.C_BLOCK_COMMENT_MODE],d.contains=[m,h,f,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[x,g,h,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},A=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",B={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"}},E,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,C,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,C,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:"("+A+"\\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,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,c,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},B]}}return J0=e,J0}var eo,ua;function Lm(){if(ua)return eo;ua=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],o=["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(),i=["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 x=c.regex,l=e(c),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},p="and or not only",d=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",g=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[l.BLOCK_COMMENT,f,l.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[l.BLOCK_COMMENT,l.HEXCOLOR,l.IMPORTANT,l.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},l.FUNCTION_DISPATCH]},{begin:x.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:o.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,l.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return eo=u,eo}var to,ca;function Um(){if(ca)return to;ca=1;function e(t){const n=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},i={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}]},x={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=t.inherit(x,{contains:[]}),p=t.inherit(l,{contains:[]});x.contains.push(p),l.contains.push(f);let d=[r,c];return[x,l,f,p].forEach(E=>{E.contains=E.contains.concat(d)}),d=d.concat(x,l),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:d},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:d}]}]},r,s,x,l,{className:"quote",begin:"^>\\s+",contains:d,end:"$"},i,o,c,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return to=e,to}var no,la;function zm(){if(la)return no;la=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 no=e,no}var ro,xa;function jm(){if(xa)return ro;xa=1;function e(t){const n=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=n.concat(o,/(::\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:">"},x=[t.COMMENT("#","$",{contains:[u]}),t.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},f={className:"string",contains:[t.BACKSLASH_ESCAPE,l],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,l]})]}]},p="[1-9](_?[0-9])*|0",d="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${d}))?([eE][+-]?(${d})|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"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},v=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{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,l],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,x),relevance:0}].concat(c,x);l.contains=v,g.contains=v;const N=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:v}}];return x.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(N).concat(x).concat(v)}}return ro=e,ro}var oo,da;function Hm(){if(da)return oo;da=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 oo=e,oo}var io,fa;function qm(){if(fa)return io;fa=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 io=e,io}var so,pa;function Gm(){if(pa)return so;pa=1;function e(t){const n=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},o=t.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={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:[o,s,i,a,r,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,x=/"(\\"|[^"])*"/,l=/'[^']*'/,f=n.either(c,x,l),p=n.concat(f,"(\\s*\\.\\s*",f,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[o,u,s,i,a,r]}}]}}return so=e,so}var ao,ha;function Km(){if(ha)return ao;ha=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 o(s,a,u){return u===-1?"":s.replace(a,c=>o(s,a,u-1))}function i(s){const a=s.regex,u="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=u+o("(?:<"+u+"~~~(?:\\s*,\\s*"+u+"~~~)*>)?",/~~~/g,2),d={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"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:d,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:[g,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:d,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:d,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 ao=i,ao}var uo,ga;function Wm(){if(ga)return uo;ga=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"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["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(i,r,o);function u(c){const x=c.regex,l=(ie,{after:ce})=>{const le="</"+ie[0].slice(1);return ie.input.indexOf(le,ce)!==-1},f=e,p={begin:"<>",end:"</>"},d=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,ce)=>{const le=ie[0].length+ie.index,ve=ie.input[le];if(ve==="<"||ve===","){ce.ignoreMatch();return}ve===">"&&(l(ie,{after:le})||ce.ignoreMatch());let _e;const Ne=ie.input.substring(le);if(_e=Ne.match(/^\s*=/)){ce.ignoreMatch();return}if((_e=Ne.match(/^\s+extends\s+/))&&_e.index===0){ce.ignoreMatch();return}}},g={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},m="[0-9](_?[0-9])*",E=`\\.(${m})`,C="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${C})((${E})|\\.)?|(${E}))[eE][+-]?(${m})\\b`},{begin:`\\b(${C})\\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},B={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,B],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,B],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,B],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,B]},N={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:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},R=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,y,v,k,w,{match:/\$\d+/},A];B.contains=R.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(R)});const M=[].concat(N,B.contains),L=M.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(M)}]),H={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:L},K={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,x.concat(f,"(",x.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},_={relevance:0,match:x.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,...o]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function U(ie){return x.concat("(?!",ie.join("|"),")")}const z={match:x.concat(/\b/,U([...i,"super","import"].map(ie=>`${ie}\\s*\\(`)),f,x.lookahead(/\s*\(/)),className:"title.function",relevance:0},$={begin:x.concat(/\./,x.lookahead(x.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},Z="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",te={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,x.lookahead(Z)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:L,CLASS_REFERENCE:_},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,y,v,k,w,N,{match:/\$\d+/},A,_,{scope:"attr",match:f+x.lookahead(":"),relevance:0},te,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,c.REGEXP_MODE,{className:"function",begin:Z,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:g,contains:L}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:d},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,c.inherit(c.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},$,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},z,S,K,j,{match:/\$[(.]/}]}}return uo=u,uo}var co,Ea;function Vm(){if(Ea)return co;Ea=1;function e(t){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],i={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[n,r,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return co=e,co}var lo,ma;function Zm(){if(ma)return lo;ma=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 o(i){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:i.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},x={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},l={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[x,c]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,x,c]}]};c.contains.push(l);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(l,{className:"string"}),"self"]}]},d=r,h=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=g;return m.variants[1].contains=[g],g.variants[1].contains=[m],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,h,a,u,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.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:[g,i.C_LINE_COMMENT_MODE,h],relevance:0},i.C_LINE_COMMENT_MODE,h,f,p,l,i.C_NUMBER_MODE]},h]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,p]},l,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
30
|
+
`},d]}}return lo=o,lo}var xo,ba;function Ym(){if(ba)return xo;ba=1;const e=x=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:x.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:[x.APOS_STRING_MODE,x.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:x.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],o=["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(),i=["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=i.concat(s).sort().reverse();function c(x){const l=e(x),f=u,p="and or not only",d="[\\w-]+",h="("+d+"|@\\{"+d+"\\})",g=[],m=[],E=function(M){return{className:"string",begin:"~?"+M+".*?"+M}},C=function(M,L,H){return{className:M,begin:L,relevance:H}},A={$pattern:/[a-z-]+/,keyword:p,attribute:o.join(" ")},B={begin:"\\(",end:"\\)",contains:m,keywords:A,relevance:0};m.push(x.C_LINE_COMMENT_MODE,x.C_BLOCK_COMMENT_MODE,E("'"),E('"'),l.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},l.HEXCOLOR,B,C("variable","@@?"+d,10),C("variable","@\\{"+d+"\\}"),C("built_in","~?`[^`]*?`"),{className:"attribute",begin:d+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},l.IMPORTANT,{beginKeywords:"and not"},l.FUNCTION_DISPATCH);const y=m.concat({begin:/\{/,end:/\}/,contains:g}),v={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(m)},k={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:m}}]},w={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:m,relevance:0}},O={className:"variable",variants:[{begin:"@"+d+"\\s*:",relevance:15},{begin:"@"+d}],starts:{end:"[;}]",returnEnd:!0,contains:y}},N={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[x.C_LINE_COMMENT_MODE,x.C_BLOCK_COMMENT_MODE,v,C("keyword","all\\b"),C("variable","@\\{"+d+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},l.CSS_NUMBER_MODE,C("selector-tag",h,0),C("selector-id","#"+h),C("selector-class","\\."+h,0),C("selector-tag","&",0),l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:y},{begin:"!important"},l.FUNCTION_DISPATCH]},R={begin:d+`:(:)?(${f.join("|")})`,returnBegin:!0,contains:[N]};return g.push(x.C_LINE_COMMENT_MODE,x.C_BLOCK_COMMENT_MODE,w,O,R,k,N,v,l.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return xo=c,xo}var fo,Ca;function Xm(){if(Ca)return fo;Ca=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",o={begin:n,end:r,contains:["self"]},i=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[o],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:i.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:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[o],relevance:5}])}}return fo=e,fo}var po,Aa;function Qm(){if(Aa)return po;Aa=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]},o={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]},i={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,o,i,s,a]}}return po=e,po}var ho,Ba;function Jm(){if(Ba)return ho;Ba=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"],o=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},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]},x={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},l=[t.BACKSLASH_ESCAPE,s,c],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(g,m,E="\\1")=>{const C=E==="\\1"?E:n.concat(E,m);return n.concat(n.concat("(?:",g,")"),m,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,E,o)},d=(g,m,E)=>n.concat(n.concat("(?:",g,")"),m,/(?:\\.|[^\\\/])*?/,E,o),h=[c,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,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}]},x,{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:p("s|tr|y",n.either(...f,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",n.either(...f,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("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,x]},{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:i,contains:h}}return ho=e,ho}var go,Da;function eb(){if(Da)return go;Da=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 go=e,go}var Eo,Fa;function tb(){if(Fa)return Eo;Fa=1;function e(t){const n=t.regex,r=/(?![A-Za-z0-9])(?![$])/,o=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=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:"\\$+"+o},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},x=t.inherit(t.APOS_STRING_MODE,{illegal:null}),l=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(c)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(H,K)=>{K.data._beginMatch=H[1]||H[2]},"on:end":(H,K)=>{K.data._beginMatch!==H[1]&&K.ignoreMatch()}},p=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),d=`[
|
|
31
|
+
]`,h={scope:"string",variants:[l,x,f,p]},g={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},m=["false","null","true"],E=["__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"],C=["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"],B={keyword:E,literal:(H=>{const K=[];return H.forEach(_=>{K.push(_),_.toLowerCase()===_?K.push(_.toUpperCase()):K.push(_.toLowerCase())}),K})(m),built_in:C},y=H=>H.map(K=>K.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,n.concat(d,"+"),n.concat("(?!",y(C).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},k=n.concat(o,"\\b(?!\\()"),w={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,n.concat(/::/,n.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[i,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},N={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[O,a,w,t.C_BLOCK_COMMENT_MODE,h,g,v]},R={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",y(E).join("\\b|"),"|",y(C).join("\\b|"),"\\b)"),o,n.concat(d,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[N]};N.contains.push(R);const M=[O,w,t.C_BLOCK_COMMENT_MODE,h,g,v],L={begin:n.concat(/#\[\s*\\?/,n.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...M]},...M,{scope:"meta",variants:[{match:i},{match:s}]}]};return{case_insensitive:!1,keywords:B,contains:[L,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,R,w,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},v,{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:B,contains:["self",L,a,w,t.C_BLOCK_COMMENT_MODE,h,g]}]},{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,g]}}return Eo=e,Eo}var mo,ya;function nb(){if(ya)return mo;ya=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 mo=e,mo}var bo,va;function rb(){if(va)return bo;va=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return bo=e,bo}var Co,ka;function ob(){if(ka)return Co;ka=1;function e(t){const n=t.regex,r=/[\p{XID_Start}_]\p{XID_Continue}*/u,o=["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:o,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:/^(>>>|\.\.\.) /},x={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},l={begin:/\{\{/,relevance:0},f={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,l,x]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c,l,x]},{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,l,x]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,l,x]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",d=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,h=`\\b|${o.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${d}))[eE][+-]?(${p})[jJ]?(?=${h})`},{begin:`(${d})[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(${p})[jJ](?=${h})`}]},m={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",c,g,f,t.HASH_COMMENT_MODE]}]};return x.contains=[f,g,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[c,g,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,m,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[E]},{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:[g,E,f]}]}}return Co=e,Co}var Ao,_a;function ib(){if(_a)return Ao;_a=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Ao=e,Ao}var Bo,wa;function sb(){if(wa)return Bo;wa=1;function e(t){const n=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=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]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[i,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[s,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Bo=e,Bo}var Do,Sa;function ab(){if(Sa)return Do;Sa=1;function e(t){const n=t.regex,r=/(r#)?/,o=n.concat(r,t.UNDERSCORE_IDENT_RE),i=n.concat(r,t.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,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"],x=["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!"],l=["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:l,keyword:u,literal:c,built_in:x},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+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:x,type:l}},{className:"punctuation",begin:"->"},s]}}return Do=e,Do}var Fo,Ta;function ub(){if(Ta)return Fo;Ta=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],o=["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(),i=["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 x=e(c),l=s,f=i,p="@[a-z-]+",d="and or not only",g={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,x.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},x.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l.join("|")+")"},g,{begin:/\(/,end:/\)/,contains:[x.CSS_NUMBER_MODE]},x.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:[x.BLOCK_COMMENT,g,x.HEXCOLOR,x.CSS_NUMBER_MODE,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,x.IMPORTANT,x.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:p,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:o.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},g,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,x.HEXCOLOR,x.CSS_NUMBER_MODE]},x.FUNCTION_DISPATCH]}}return Fo=u,Fo}var yo,Na;function cb(){if(Na)return yo;Na=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 yo=e,yo}var vo,Ra;function lb(){if(Ra)return vo;Ra=1;function e(t){const n=t.regex,r=t.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={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"],x=["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"],l=["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"],f=["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"],p=["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"],d=l,h=[...x,...c].filter(y=>!l.includes(y)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},m={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:n.concat(/\b/,n.either(...d),/\s*\(/),relevance:0,keywords:{built_in:d}};function C(y){return n.concat(/\b/,n.either(...y.map(v=>v.replace(/\s+/,"\\s+"))),/\b/)}const A={scope:"keyword",match:C(p),relevance:0};function B(y,{exceptions:v,when:k}={}){const w=k;return v=v||[],y.map(O=>O.match(/\|\d+$/)||v.includes(O)?O:w(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(h,{when:y=>y.length<3}),literal:s,type:u,built_in:f},contains:[{scope:"type",match:C(a)},A,E,g,o,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,m]}}return vo=e,vo}var ko,$a;function xb(){if($a)return ko;$a=1;function e(k){return k?typeof k=="string"?k:k.source:null}function t(k){return n("(?=",k,")")}function n(...k){return k.map(O=>e(O)).join("")}function r(k){const w=k[k.length-1];return typeof w=="object"&&w.constructor===Object?(k.splice(k.length-1,1),w):{}}function o(...k){return"("+(r(k).capture?"":"?:")+k.map(N=>e(N)).join("|")+")"}const i=k=>n(/\b/,k,/\w$/.test(k)?/\b/:/\B/),s=["Protocol","Type"].map(i),a=["init","self"].map(i),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"],x=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["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"],d=o(/[/=\-+!*%<>&|^~?]/,/[\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=o(d,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),g=n(d,h,"*"),m=o(/[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]/),E=o(m,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),C=n(m,E,"*"),A=n(/[A-Z]/,E,"*"),B=["attached","autoclosure",n(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,C,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],y=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function v(k){const w={match:/\s+/,relevance:0},O=k.COMMENT("/\\*","\\*/",{contains:["self"]}),N=[k.C_LINE_COMMENT_MODE,O],R={match:[/\./,o(...s,...a)],className:{2:"keyword"}},M={match:n(/\./,o(...c)),relevance:0},L=c.filter(Ve=>typeof Ve=="string").concat(["_|0"]),H=c.filter(Ve=>typeof Ve!="string").concat(u).map(i),K={variants:[{className:"keyword",match:o(...H,...a)}]},_={$pattern:o(/\b\w+/,/#\w+/),keyword:L.concat(f),literal:x},G=[R,M,K],I={match:n(/\./,o(...p)),relevance:0},S={className:"built_in",match:n(/\b/,o(...p),/(?=\()/)},U=[I,S],z={match:/->/,relevance:0},$={className:"operator",relevance:0,variants:[{match:g},{match:`\\.(\\.|${h})+`}]},j=[z,$],Z="([0-9]_*)+",te="([0-9a-fA-F]_*)+",ie={className:"number",relevance:0,variants:[{match:`\\b(${Z})(\\.(${Z}))?([eE][+-]?(${Z}))?\\b`},{match:`\\b0x(${te})(\\.(${te}))?([pP][+-]?(${Z}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ce=(Ve="")=>({className:"subst",variants:[{match:n(/\\/,Ve,/[0\\tnr"']/)},{match:n(/\\/,Ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),le=(Ve="")=>({className:"subst",match:n(/\\/,Ve,/[\t ]*(?:[\r\n]|\r\n)/)}),ve=(Ve="")=>({className:"subst",label:"interpol",begin:n(/\\/,Ve,/\(/),end:/\)/}),_e=(Ve="")=>({begin:n(Ve,/"""/),end:n(/"""/,Ve),contains:[ce(Ve),le(Ve),ve(Ve)]}),Ne=(Ve="")=>({begin:n(Ve,/"/),end:n(/"/,Ve),contains:[ce(Ve),ve(Ve)]}),Qe={className:"string",variants:[_e(),_e("#"),_e("##"),_e("###"),Ne(),Ne("#"),Ne("##"),Ne("###")]},Je=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],it={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Je},ee=Ve=>{const _n=n(Ve,/\//),on=n(/\//,Ve);return{begin:_n,end:on,contains:[...Je,{scope:"comment",begin:`#(?!.*${on})`,end:/$/}]}},Q={scope:"regexp",variants:[ee("###"),ee("##"),ee("#"),it]},Be={match:n(/`/,C,/`/)},be={className:"variable",match:/\$\d+/},ze={className:"variable",match:`\\$${E}+`},ye=[Be,be,ze],st={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:y,contains:[...j,ie,Qe]}]}},At={scope:"keyword",match:n(/@/,o(...B),t(o(/\(/,/\s+/)))},yt={scope:"meta",match:n(/@/,C)},V=[st,At,yt],J={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)/,E,"+")},{className:"type",match:A,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,t(A)),relevance:0}]},de={begin:/</,end:/>/,keywords:_,contains:[...N,...G,...V,z,J]};J.contains.push(de);const Fe={match:n(C,/\s*:/),keywords:"_|0",relevance:0},Re={begin:/\(/,end:/\)/,relevance:0,keywords:_,contains:["self",Fe,...N,Q,...G,...U,...j,ie,Qe,...ye,...V,J]},mt={begin:/</,end:/>/,keywords:"repeat each",contains:[...N,J]},Le={begin:o(t(n(C,/\s*:/)),t(n(C,/\s+/,C,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:C}]},qe={begin:/\(/,end:/\)/,keywords:_,contains:[Le,...N,...G,...j,ie,Qe,...V,J,Re],endsParent:!0,illegal:/["']/},kt={match:[/(func|macro)/,/\s+/,o(Be.match,C,g)],className:{1:"keyword",3:"title.function"},contains:[mt,qe,w],illegal:[/\[/,/%/]},_t={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[mt,qe,w],illegal:/\[|%/},Ot={match:[/operator/,/\s+/,g],className:{1:"keyword",3:"title"}},vn={begin:[/precedencegroup/,/\s+/,A],className:{1:"keyword",3:"title"},contains:[J],keywords:[...l,...x],end:/}/},kn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},rn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Br={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,C,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:_,contains:[mt,...G,{begin:/:/,end:/\{/,keywords:_,contains:[{scope:"title.class.inherited",match:A},...G],relevance:0}]};for(const Ve of Qe.variants){const _n=Ve.contains.find(sn=>sn.label==="interpol");_n.keywords=_;const on=[...G,...U,...j,ie,Qe,...ye];_n.contains=[...on,{begin:/\(/,end:/\)/,contains:["self",...on]}]}return{name:"Swift",keywords:_,contains:[...N,kt,_t,kn,rn,Br,Ot,vn,{beginKeywords:"import",end:/$/,contains:[...N],relevance:0},Q,...G,...U,...j,ie,Qe,...ye,...V,J,Re]}}return ko=v,ko}var _o,Oa;function db(){if(Oa)return _o;Oa=1;function e(t){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={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,i]},u=t.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={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"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},m=[o,{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}},p,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},h,g,s,a],E=[...m];return E.pop(),E.push(u),d.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}return _o=e,_o}var wo,Pa;function fb(){if(Pa)return wo;Pa=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"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["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(i,r,o);function u(x){const l=x.regex,f=(ce,{after:le})=>{const ve="</"+ce[0].slice(1);return ce.input.indexOf(ve,le)!==-1},p=e,d={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,g={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ce,le)=>{const ve=ce[0].length+ce.index,_e=ce.input[ve];if(_e==="<"||_e===","){le.ignoreMatch();return}_e===">"&&(f(ce,{after:ve})||le.ignoreMatch());let Ne;const Qe=ce.input.substring(ve);if(Ne=Qe.match(/^\s*=/)){le.ignoreMatch();return}if((Ne=Qe.match(/^\s+extends\s+/))&&Ne.index===0){le.ignoreMatch();return}}},m={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},E="[0-9](_?[0-9])*",C=`\\.(${E})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",B={className:"number",variants:[{begin:`(\\b(${A})((${C})|\\.)?|(${C}))[eE][+-]?(${E})\\b`},{begin:`\\b(${A})\\b((${C})\\b|\\.)?|(${C})\\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},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[x.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[x.BACKSLASH_ESCAPE,y],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[x.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[x.BACKSLASH_ESCAPE,y]},R={className:"comment",variants:[x.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}]}]}),x.C_BLOCK_COMMENT_MODE,x.C_LINE_COMMENT_MODE]},M=[x.APOS_STRING_MODE,x.QUOTE_STRING_MODE,v,k,w,O,{match:/\$\d+/},B];y.contains=M.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(M)});const L=[].concat(R,y.contains),H=L.concat([{begin:/(\s*)\(/,end:/\)/,keywords:m,contains:["self"].concat(L)}]),K={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:H},_={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"}}]},G={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,...o]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[K],illegal:/%/},U={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(ce){return l.concat("(?!",ce.join("|"),")")}const $={match:l.concat(/\b/,z([...i,"super","import"].map(ce=>`${ce}\\s*\\(`)),p,l.lookahead(/\s*\(/)),className:"title.function",relevance:0},j={begin:l.concat(/\./,l.lookahead(l.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Z={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},K]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+x.UNDERSCORE_IDENT_RE+")\\s*=>",ie={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[K]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[x.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,x.APOS_STRING_MODE,x.QUOTE_STRING_MODE,v,k,w,O,R,{match:/\$\d+/},B,G,{scope:"attr",match:p+l.lookahead(":"),relevance:0},ie,{begin:"("+x.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[R,x.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:x.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:d.begin,end:d.end},{match:h},{begin:g.begin,"on:begin":g.isTrulyOpeningTag,end:g.end}],subLanguage:"xml",contains:[{begin:g.begin,end:g.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+x.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[K,x.inherit(x.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},j,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[K]},$,U,_,Z,{match:/\$[(.]/}]}}function c(x){const l=x.regex,f=u(x),p=e,d=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,x.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},g={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:d},contains:[f.exports.CLASS_REFERENCE]},m={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},E=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],C={$pattern:e,keyword:t.concat(E),literal:n,built_in:a.concat(d),"variable.language":s},A={className:"meta",begin:"@"+p},B=(w,O,N)=>{const R=w.contains.findIndex(M=>M.label===O);if(R===-1)throw new Error("can not find mode to replace");w.contains.splice(R,1,N)};Object.assign(f.keywords,C),f.exports.PARAMS_CONTAINS.push(A);const y=f.contains.find(w=>w.scope==="attr"),v=Object.assign({},y,{match:l.concat(p,l.lookahead(/\s*\?:/))});f.exports.PARAMS_CONTAINS.push([f.exports.CLASS_REFERENCE,y,v]),f.contains=f.contains.concat([A,h,g,v]),B(f,"shebang",x.SHEBANG()),B(f,"use_strict",m);const k=f.contains.find(w=>w.label==="func.def");return k.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return wo=c,wo}var So,Ia;function pb(){if(Ia)return So;Ia=1;function e(t){const n=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\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,i),/ *#/)},{begin:n.concat(/# */,u,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(s,i),/ +/,n.either(a,u),/ *#/)}]},x={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])|[%&])?/}]},l={className:"label",begin:/^\w+:/},f=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=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,o,c,x,l,f,p,{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:[p]}]}}return So=e,So}var To,Ma;function hb(){if(Ma)return To;Ma=1;function e(t){t.regex;const n=t.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=t.COMMENT(/;;/,/$/),o=["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"],i={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"},x={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:o},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,a,i,t.QUOTE_STRING_MODE,c,x,u]}}return To=e,To}var No,La;function gb(){if(La)return No;La=1;var e=Rm();return e.registerLanguage("xml",$m()),e.registerLanguage("bash",Om()),e.registerLanguage("c",Pm()),e.registerLanguage("cpp",Im()),e.registerLanguage("csharp",Mm()),e.registerLanguage("css",Lm()),e.registerLanguage("markdown",Um()),e.registerLanguage("diff",zm()),e.registerLanguage("ruby",jm()),e.registerLanguage("go",Hm()),e.registerLanguage("graphql",qm()),e.registerLanguage("ini",Gm()),e.registerLanguage("java",Km()),e.registerLanguage("javascript",Wm()),e.registerLanguage("json",Vm()),e.registerLanguage("kotlin",Zm()),e.registerLanguage("less",Ym()),e.registerLanguage("lua",Xm()),e.registerLanguage("makefile",Qm()),e.registerLanguage("perl",Jm()),e.registerLanguage("objectivec",eb()),e.registerLanguage("php",tb()),e.registerLanguage("php-template",nb()),e.registerLanguage("plaintext",rb()),e.registerLanguage("python",ob()),e.registerLanguage("python-repl",ib()),e.registerLanguage("r",sb()),e.registerLanguage("rust",ab()),e.registerLanguage("scss",ub()),e.registerLanguage("shell",cb()),e.registerLanguage("sql",lb()),e.registerLanguage("swift",xb()),e.registerLanguage("yaml",db()),e.registerLanguage("typescript",fb()),e.registerLanguage("vbnet",pb()),e.registerLanguage("wasm",hb()),e.HighlightJS=e,e.default=e,No=e,No}var Eb=gb();const a0=mr(Eb),$t=new Rt({html:!0,linkify:!0,breaks:!1,highlight(e,t){if(t&&a0.getLanguage(t))try{const n=a0.highlight(e,{language:t}).value;return`<pre><code class="hljs language-${t}">${n}</code></pre>`}catch{}return""}}),mb=/^<\/?(?:details|summary)>$/i,bb=/^<details\s+open\s*>$/i,Cb=/^<input class="task-list-item-checkbox"(?: checked="")? disabled="" type="checkbox">$/;function Ab(e){return mb.test(e)||bb.test(e)||Cb.test(e)}function Hl(e){const t=$t.utils.escapeHtml;let n="",r=0;const o=/<[^>]*>/g;let i;for(;(i=o.exec(e))!==null;){n+=t(e.slice(r,i.index));const s=i[0];n+=Ab(s)?s:t(s),r=i.index+s.length}return n+=t(e.slice(r)),n}$t.renderer.rules.html_block=(e,t)=>Hl(e[t].content);$t.renderer.rules.html_inline=(e,t)=>Hl(e[t].content);const Ua=$t.renderer.rules.image??((e,t,n,r,o)=>o.renderToken(e,t,n)),za=$t.renderer.rules.link_open??((e,t,n,r,o)=>o.renderToken(e,t,n)),Bb=$t.renderer.rules.fence??((e,t,n,r,o)=>o.renderToken(e,t,n));function ql(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:f0(`/api/projects/${encodeURIComponent(n)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(r[1])}`)}function Db(e){return e.replace(/:\d+(?::\d+)?$/,"")}function Fb(e){const n=Db(e).replace(/[?#].*$/,"").split(/[\\/]/).filter(Boolean).pop()??"";return/^\.[^./\\]+$/.test(n)||/\.[A-Za-z0-9][A-Za-z0-9_-]{0,15}$/.test(n)}function yb(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))&&Fb(e)}function Ro(e,t){e.attrs&&(e.attrs=e.attrs.filter(([n])=>n!==t))}function Rn(e,t,n){e.attrs||(e.attrs=[]);const r=e.attrs.find(([o])=>o===t);r?r[1]=n:e.attrs.push([t,n])}$t.renderer.rules.image=function(e,t,n,r,o){const i=r,s=e[t],a=s.attrs?.find(([u])=>u==="src");return i?.specId?(a&&(a[1]=ql(a[1],i.specId,i?.projectId)),Ua(e,t,n,r,o)):!a||!Qc(a[1])?$t.utils.escapeHtml(s.content??""):Ua(e,t,n,r,o)};$t.renderer.rules.link_open=function(e,t,n,r,o){const i=r,s=e[t],a=s.attrs?.find(([c])=>c==="href");if(i?.fileLinks==="copy"&&a&&yb(a[1])){const c=a[1];return Ro(s,"href"),Ro(s,"target"),Ro(s,"rel"),Rn(s,"role","button"),Rn(s,"tabindex","0"),Rn(s,"data-file-link","true"),Rn(s,"data-file-path",c),i.fileLinkTitle&&(Rn(s,"title",i.fileLinkTitle),Rn(s,"aria-label",i.fileLinkTitle)),za(e,t,n,r,o)}const u=i?.specId;if(u&&a){const c=ql(a[1],u,i?.projectId);if(c!==a[1]){a[1]=c;const x=s.attrs?.find(([l])=>l==="target");x?x[1]="_blank":s.attrs?.push(["target","_blank"]),s.attrs?.push(["rel","noopener noreferrer"])}}return za(e,t,n,r,o)};$t.renderer.rules.fence=function(e,t,n,r,o){const i=e[t],s=i.info.trim(),a=r?.mermaid??"diagram";if(s==="mermaid"&&a==="diagram"){const u=i.content;return`<div class="mermaid" data-mermaid-source="${u.replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">${u}</div>`}return Bb(e,t,n,r,o)};$t.use(Nm,{enabled:!1,label:!1});function Ni(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),$t.render(e,n)}function vb(e){return e.replace(/^\uFEFF?---[ \t]*\r?\n[\s\S]*?\r?\n---[ \t]*(?:\r?\n|$)/,"")}const kb=300;function _b(e,t=kb){const n=e.length;return n<=t?{truncated:!1,preview:e,length:n}:{truncated:!0,preview:e.slice(0,t),length:n}}var wb=P('<div class="scroll-y mt-1 max-h-96 space-y-2 rounded border bg-background p-2">'),Sb=P('<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>'),Tb=P('<div class="font-mono text-xs font-semibold">'),Nb=P("<div class=space-y-1>"),Rb=P('<button type=button class="flex min-h-11 items-center text-left text-xs text-muted-foreground active:opacity-60">'),$b=P("<div class=space-y-1><pre>");const Ob=e=>{const t=()=>e.expand.isExpanded(e.segment.id);return(()=>{var n=Sb(),r=n.firstChild,o=r.firstChild;return r.$$click=()=>e.expand.set(e.segment.id,!t()),D(r,b(hi,{size:14,get class(){return`shrink-0 transition-transform duration-150 ${t()?"":"-rotate-90"}`},"aria-hidden":"true"}),o),D(o,()=>F("chat.toolCollapsed",{count:e.segment.tools.length})),D(n,b(q,{get when(){return t()},get children(){var i=wb();return D(i,b(Go,{get each(){return e.segment.tools},children:(s,a)=>(()=>{var u=Nb();return D(u,b(q,{get when(){return s().name},get children(){var c=Tb();return D(c,()=>s().name),c}}),null),D(u,b(q,{get when(){return s().input!==void 0},get children(){return b(ja,{get text(){return Pb(s().input)},get expandKey(){return ws(e.segment.id,a,"input")},get expand(){return e.expand}})}}),null),D(u,b(q,{get when(){return s().result!==void 0},get children(){return b(ja,{get text(){return s().result??""},get expandKey(){return ws(e.segment.id,a,"result")},get expand(){return e.expand},wrap:!0})}}),null),u})()})),i}}),null),X(()=>re(r,"aria-expanded",t())),n})()},ja=e=>{const t=()=>_b(e.text),n=()=>e.expand.isExpanded(e.expandKey),r=()=>t().truncated&&!n();return(()=>{var o=$b(),i=o.firstChild;return D(i,(()=>{var s=Ue(()=>!!r());return()=>s()?`${t().preview}…`:e.text})()),D(o,b(q,{get when(){return t().truncated},get children(){var s=Rb();return s.$$click=()=>e.expand.set(e.expandKey,!n()),D(s,(()=>{var a=Ue(()=>!!n());return()=>a()?F("chat.toolTextCollapse"):F("chat.toolTextExpand",{count:t().length})})()),s}}),null),X(()=>Ge(i,`overflow-x-auto rounded bg-muted px-2 py-1 text-[11px] leading-snug ${e.wrap?"whitespace-pre-wrap":""}`)),o})()};function Pb(e){try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}He(["click"]);var Ib=P('<div class="scroll-y mt-1 max-h-72 space-y-2 rounded border border-dashed bg-muted/40 p-2">'),Mb=P('<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>'),Lb=P('<pre class="whitespace-pre-wrap rounded bg-background px-2 py-1 text-[11px] leading-snug text-muted-foreground">');const Ub=e=>{const t=()=>e.expand.isExpanded(e.expandKey);return(()=>{var n=Mb(),r=n.firstChild,o=r.firstChild;return r.$$click=()=>e.expand.set(e.expandKey,!t()),D(r,b(hi,{size:14,get class(){return`shrink-0 transition-transform duration-150 ${t()?"":"-rotate-90"}`},"aria-hidden":"true"}),o),D(o,()=>F("chat.agentContextCollapsed",{count:e.contexts.length})),D(n,b(q,{get when(){return t()},get children(){var i=Ib();return D(i,b(We,{get each(){return e.contexts},children:s=>(()=>{var a=Lb();return D(a,()=>s.text),a})()})),i}}),null),X(()=>re(r,"aria-expanded",t())),n})()};He(["click"]);var zb=P('<div class="fixed inset-0 z-[70] flex items-center justify-center bg-background/90 p-4"style=touch-action:pinch-zoom><img class="max-h-full max-w-full rounded-lg object-contain shadow-lg"style=touch-action:none><button type=button class="absolute right-3 top-3 flex h-9 w-9 items-center justify-center rounded-full bg-background/80 text-foreground shadow"aria-label=Close>');const jb=e=>b(q,{get when(){return Ue(()=>!!e.open)()&&e.src},get children(){var t=zb(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>e.onOpenChange(!1),n.$$click=o=>o.stopPropagation(),r.$$click=o=>{o.stopPropagation(),e.onOpenChange(!1)},D(r,b(hn,{class:"h-5 w-5"})),X(o=>{var i=e.src,s=e.alt??"";return i!==o.e&&re(n,"src",o.e=i),s!==o.t&&re(n,"alt",o.t=s),o},{e:void 0,t:void 0}),t}});He(["click"]);var Hb=P('<div class="mt-1 flex flex-wrap gap-1.5">'),qb=P('<img loading=lazy class="max-h-64 max-w-full cursor-zoom-in rounded border border-border object-contain">',!0,!1,!1),Gb=P('<div class="mb-2 whitespace-pre-wrap rounded-lg border border-primary/20 border-l-2 border-l-primary bg-primary/10 p-2 text-[0.95rem] font-medium [overflow-wrap:anywhere]">'),Kb=P("<span>"),Wb=P('<div class="mb-2 min-w-0 rounded-lg border bg-card p-2 [overflow-wrap:anywhere]">'),Vb=P('<div class="markdown chat-md">'),Zb=P('<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 Yb=e=>e.kind==="divider"?e:null,Xb=e=>e.kind==="context"?e:null,Qb=e=>e.kind==="assistant"?e:null,$o=e=>e.kind==="user"?e:null,Jb=e=>e.kind==="tools"?e:null,e6=e=>e.kind==="image"?e:null,t6=e=>e.kind==="text"?e.text:"",Ha=e=>{const[t,n]=W(),[r,o]=W(),[i,s]=W(!1),a=u=>{n(u.src),o(u.alt),s(!0)};return(()=>{var u=Hb();return D(u,b(We,{get each(){return e.images.filter(c=>Qc(c.src))},children:c=>(()=>{var x=qb();return x.$$click=()=>a(c),X(l=>{var f=c.src,p=c.alt??"";return f!==l.e&&re(x,"src",l.e=f),p!==l.t&&re(x,"alt",l.t=p),l},{e:void 0,t:void 0}),x})()}),null),D(u,b(jb,{get src(){return t()},get alt(){return r()},get open(){return i()},onOpenChange:s}),null),u})()},n6=e=>b(Go,{get each(){return e.blocks},children:(t,n)=>b(q,{get when(){return Yb(t())},get fallback(){return b(q,{get when(){return Xb(t())},get fallback(){return b(q,{get when(){return Qb(t())},get fallback(){return(()=>{var r=Gb();return D(r,b(q,{get when(){return $o(t())?.text},children:o=>(()=>{var i=Kb();return D(i,o),i})()}),null),D(r,b(q,{get when(){return $o(t())?.images?.length},get children(){return b(Ha,{get images(){return $o(t()).images}})}}),null),r})()},children:r=>(()=>{var o=Wb();return D(o,b(Go,{get each(){return r().segments},children:i=>b(q,{get when(){return e6(i())},get fallback(){return b(q,{get when(){return Jb(i())},get fallback(){return(()=>{var s=Vb();return X(()=>s.innerHTML=Ni(t6(i()),{mermaid:"code",fileLinks:"copy",fileLinkTitle:F("chat.copyFilePath")})),s})()},children:s=>b(Ob,{get segment(){return s()},get expand(){return e.expand}})})},children:s=>b(Ha,{get images(){return s().images}})})})),o})()})},children:r=>b(Ub,{get contexts(){return r().contexts},expandKey:`ctx${n}`,get expand(){return e.expand}})})},children:r=>(()=>{var o=Zb(),i=o.firstChild,s=i.nextSibling;return D(s,()=>r().agentKind),o})()})});He(["click"]);const r6=150,o6=16,i6=48,s6=24,a6=8;function Oo(e){return e.replace(/^\/+/,"")}function u6(e,t){return t===0?!0:/[\s/_.-]/.test(e[t-1]??"")}function qa(e,t){if(!e)return 0;const n=e.toLowerCase(),r=t.toLowerCase();let o=0,i=-1;for(let s=0;s<n.length;s++){const a=r.indexOf(n[s],i+1);if(a===-1)return null;o+=o6,a===s&&(o+=i6),a===i+1&&(o+=s6),u6(t,a)&&(o+=a6),o-=Math.max(0,a-i-1),i=a}return o-t.length*.01}function c6(e,t){const n=Oo(e.trim());if(!n)return 0;const r=qa(n,Oo(t.value)),o=t.label?qa(n,Oo(t.label)):null;return r==null?o:o==null?r:Math.max(r,o)}function l6(e,t){return t?e.map((n,r)=>{const o=c6(t,n);return o==null?null:{cmd:n,score:o,index:r}}).filter(n=>n!=null).sort((n,r)=>r.score-n.score||n.index-r.index).map(n=>n.cmd):e}function x6(e,t,n){const r=e.slice(0,t);if(n&&/^\/[\w-]*$/.test(r))return{kind:"slash",query:r.slice(1)};const o=r.lastIndexOf("@");if(o===-1)return null;const i=r.slice(o+1);return/^[\w./@-]*$/.test(i)?{kind:"mention",start:o,query:i}:null}function Ga(e,t,n){const r=t.kind==="slash"?0:t.start,o=e.slice(0,r),i=e.slice(r+1+t.query.length);return{next:o+n+i,cursorPos:o.length+n.length}}function d6(e){return e.kind==="mention"?`@${e.value}`:e.replacement??`${e.value} `}function Gl(e){const[t,n]=W(!1),[r,o]=W([]),[i,s]=W(0),[a,u]=W(!1);let c=null,x=null;Ie(()=>{x&&clearTimeout(x)});function l(){n(!1),u(!1),o([]),s(0),c=null,x&&(clearTimeout(x),x=null)}function f(E){x&&clearTimeout(x),x=setTimeout(async()=>{const C=e.projectId();if(C)try{const A=await oe.listFiles(C,E);if(c?.kind!=="mention"||c.query!==E)return;o(A.items.map(B=>({kind:"mention",value:B}))),s(0)}catch{o([])}},e.searchDebounceMs??r6)}function p(E){const C=e.slashCommands?.()??[],A=l6(C,E).map(B=>({kind:"slash",value:B.value,label:B.label??B.value,description:B.description,replacement:B.replacement,action:B.action,customId:B.customId,editable:B.editable,editLabel:B.editLabel,deletable:B.deletable,deleteLabel:B.deleteLabel,icon:B.icon,command:B}));o(A),s(0),A.length>0?(u(!1),n(!0)):e.slashEmptyEnabled?.()?(u(!0),n(!0)):l()}function d(E){const C=(e.slashCommands?.()??[]).length>0,A=x6(E.value,E.selectionStart,C);if(!A){l();return}if(c=A,A.kind==="slash"){p(A.query);return}u(!1),t()||n(!0),f(A.query)}function h(E){const C=c;if(!C)return{kind:"noop"};if(E.kind==="slash"&&E.action==="add"){const{next:y}=Ga(e.value(),C,"");return e.onValueChange(y),l(),{kind:"action",command:E.command}}const{next:A,cursorPos:B}=Ga(e.value(),C,d6(E));return e.onValueChange(A),l(),{kind:"text",cursorPos:B}}function g(E){const C=r();C.length!==0&&s(A=>(A+E+C.length)%C.length)}function m(E){if(!E)return;const C=r().filter(A=>A.kind!=="slash"||A.customId!==E);o(C),s(A=>Math.min(A,Math.max(0,C.length-1))),C.length===0&&l()}return{open:t,items:r,index:i,setIndex:s,slashEmpty:a,handleInput:d,select:h,close:l,moveIndex:g,removeSlashItem:m}}const Ka=24;function Yn(e,t=0){const n=Number.parseFloat(e);return Number.isFinite(n)?n:t}function rr(e,t){const n=window.getComputedStyle(e),r=Yn(n.lineHeight,Ka)||Ka,o=Yn(n.paddingTop)+Yn(n.paddingBottom),i=Yn(n.borderTopWidth)+Yn(n.borderBottomWidth);e.style.height="auto";const s=Math.max(e.scrollHeight-o,r),a=r*t,u=s>a;e.style.height=`${(u?a:s)+o+i}px`,e.style.overflowY=u?"auto":"hidden"}const Kl=280,Wl=150,f6=10;function p6(e){let t=null,n=!1;const r=()=>e.moveTolerance??f6,o=i=>t!=null&&t.id===i.pointerId;return{onPointerDown:i=>{i.button===0&&(n=!1,t={id:i.pointerId,x:i.clientX,y:i.clientY})},onPointerMove:i=>{if(!o(i))return;const s=r();(Math.abs(i.clientX-t.x)>s||Math.abs(i.clientY-t.y)>s)&&(t=null)},onPointerUp:i=>{if(!o(i))return;const s=r(),a=Math.abs(i.clientX-t.x)>s||Math.abs(i.clientY-t.y)>s;t=null,!a&&(n=!0,i.preventDefault(),e.onTap())},onPointerCancel:()=>{t=null,n=!1},onTouchEnd:i=>{n&&(n=!1,i.cancelable&&i.preventDefault())}}}var h6=P('<li class="px-4 py-3 text-sm text-muted-foreground">'),g6=P('<div data-testid=completion-bar><ul class="scroll-y m-0 max-h-[38dvh] list-none p-0">'),E6=P('<span class="shrink-0 text-muted-foreground">'),m6=P('<span class="block truncate text-xs text-muted-foreground">'),b6=P('<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 Vl=e=>(()=>{var t=g6(),n=t.firstChild;return D(n,b(q,{get when(){return e.empty},get children(){var r=h6();return D(r,()=>F("chat.slashCommandNoMatch")),r}}),null),D(n,b(We,{get each(){return e.items},children:r=>{const o=p6({onTap:()=>e.onSelect(r)});return(()=>{var i=b6(),s=i.firstChild,a=s.firstChild,u=a.firstChild;return hr(s,o,!1,!0),D(s,b(q,{get when(){return r.kind==="mention"},get children(){var c=E6();return D(c,b(X9,{size:16,"aria-hidden":"true"})),c}}),a),D(u,(()=>{var c=Ue(()=>r.kind==="slash");return()=>c()?r.label:r.value})()),D(a,b(q,{get when(){return Ue(()=>r.kind==="slash")()&&r.description},get children(){var c=m6();return D(c,(()=>{var x=Ue(()=>r.kind==="slash");return()=>x()?r.description:""})()),c}}),null),X(()=>Ge(u,r.kind==="slash"?"block truncate text-sm":"truncate-start block text-sm")),i})()}}),null),X(()=>Ge(t,rt("bg-card",e.inline?"mt-1 overflow-hidden rounded-lg border border-border":"border-b border-border"))),t})();var C6=P('<div class="flex gap-2 overflow-x-auto px-4 pt-2">'),A6=P('<p class="px-4 pt-2 text-xs text-destructive">'),B6=P('<button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-destructive active:opacity-60"><span class="pointer-events-none absolute -inset-1.5 animate-spin rounded-full border-2 border-destructive/25 border-t-destructive"aria-hidden=true>'),D6=P('<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">'),F6=P('<img class="h-14 w-20 rounded border object-cover">'),y6=P("<span>"),v6=P('<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">'),k6=P('<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">'),_6=P('<button type=button class="tap-target mb-3 flex shrink-0 items-center justify-center text-primary active:opacity-60 disabled:opacity-40">');const Po=5,w6=e=>{let t,n,r=null;Ie(()=>{r&&clearTimeout(r)});const o=()=>e.value.trim().length>0&&!e.starting&&!e.attachments.hasPending(),i=Gl({projectId:()=>e.projectId,value:()=>e.value,onValueChange:a=>e.onInput(a),slashCommands:()=>e.slashCommands,slashEmptyEnabled:()=>!0,searchDebounceMs:Kl});Se(()=>{e.value,n&&rr(n,Po)});function s(a){const u=i.select(a);u.kind==="text"&&requestAnimationFrame(()=>{n&&(n.focus(),n.setSelectionRange(u.cursorPos,u.cursorPos),rr(n,Po))})}return(()=>{var a=D6(),u=a.firstChild,c=u.firstChild,x=c.nextSibling,l=x.nextSibling;D(a,b(q,{get when(){return Ue(()=>!!i.open())()&&(i.items().length>0||i.slashEmpty())},get children(){return b(Vl,{get items(){return i.items()},get empty(){return i.slashEmpty()},onSelect:s})}}),u),D(a,b(q,{get when(){return e.attachments.attachments().length>0},get children(){var d=C6();return D(d,b(We,{get each(){return e.attachments.attachments()},children:h=>(()=>{var g=v6(),m=g.firstChild;return D(g,b(q,{get when(){return h.previewUrl},get fallback(){return(()=>{var E=k6(),C=E.firstChild;return D(C,()=>h.name),E})()},get children(){var E=F6();return X(C=>{var A=h.previewUrl,B=h.name;return A!==C.e&&re(E,"src",C.e=A),B!==C.t&&re(E,"alt",C.t=B),C},{e:void 0,t:void 0}),E}}),m),D(g,b(q,{get when(){return h.status!=="uploaded"},get children(){var E=y6();return D(E,()=>h.status==="failed"?"!":"…"),X(()=>Ge(E,`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"}`)),E}}),m),m.$$click=()=>void e.attachments.removeAttachment(h.id),D(m,b(hn,{size:12,"aria-hidden":"true"})),X(()=>re(m,"aria-label",F("common.close"))),g})()})),d}}),u),D(a,b(q,{get when(){return e.attachments.error()},get children(){var d=A6();return D(d,()=>e.attachments.error()),d}}),u),c.$$click=()=>t?.click(),D(c,b(hp,{size:20,"aria-hidden":"true"})),x.addEventListener("change",d=>void e.attachments.onFileInputChange(d));var f=t;typeof f=="function"?Tt(f,x):t=x,re(x,"accept",fl),l.addEventListener("blur",()=>{r&&clearTimeout(r),r=setTimeout(i.close,Wl)}),l.$$input=d=>{rr(d.currentTarget,Po),e.onInput(d.currentTarget.value),i.handleInput(d.currentTarget)};var p=n;return typeof p=="function"?Tt(p,l):n=l,D(u,b(q,{get when(){return e.running},get fallback(){return(()=>{var d=_6();return d.$$click=()=>e.onSend(),D(d,b(Np,{size:20,"aria-hidden":"true"})),X(h=>{var g=F("chat.send"),m=!o();return g!==h.e&&re(d,"aria-label",h.e=g),m!==h.t&&(d.disabled=h.t=m),h},{e:void 0,t:void 0}),d})()},get children(){var d=B6();return d.firstChild,d.$$click=()=>e.onAbort(),D(d,b(Op,{size:16,"aria-hidden":"true"}),null),X(()=>re(d,"aria-label",F("chat.abort"))),d}}),null),X(d=>{var h=F("chat.attach"),g=e.attachments.count()>=nr,m=F("chat.placeholder");return h!==d.e&&re(c,"aria-label",d.e=h),g!==d.t&&(c.disabled=d.t=g),m!==d.a&&re(l,"placeholder",d.a=m),d},{e:void 0,t:void 0,a:void 0}),X(()=>l.value=e.value),a})()};He(["click","input"]);const S6=_1(20);function T6(){const e=window.visualViewport;if(!e)return;const t=document.documentElement,n=()=>{const r=window.innerHeight-e.height-e.offsetTop,o=r>1?Math.round(r):0;t.style.setProperty("--kb-inset",`${o}px`)};n(),e.addEventListener("resize",n),e.addEventListener("scroll",n),Ie(()=>{e.removeEventListener("resize",n),e.removeEventListener("scroll",n),t.style.removeProperty("--kb-inset")})}var N6=P('<div class="px-2 py-3">'),R6=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),$6=P('<div class="px-4 py-4">'),O6=P('<p class="m-0 py-8 text-center text-sm text-muted-foreground">'),P6=P('<div class="flex flex-col items-center gap-2 py-8 text-center"><p class="m-0 text-sm text-muted-foreground">');const I6=80;function M6(e){return e instanceof Element?e.closest('[data-file-link="true"]'):null}const L6=()=>{const e=Er(),t=pt();T6();const n=()=>me()??"",[r,o]=W(null),i=()=>r()??e.id??"",[s,a]=W(""),[u,c]=W(!1),[x,l]=W(!0),[f,p]=W(!1);let d;const[h,g]=W(null),[m,{refetch:E}]=ot(()=>n()||void 0,_=>oe.listSessions(_));Se(()=>{const _=n();g(_?il(_):null)}),Se(()=>{if(m.state!=="ready")return;const _=n(),G=m();!_||!G||(g(G),sl(_,G))});const C=he(()=>h()?.find(_=>_.id===i())),A=()=>C()?.specId,[B,y]=W(null),[v]=ot(()=>n()||void 0,_=>oe.listSpecs(_));Se(()=>{const _=n();y(_?Bi(_):null)}),Se(()=>{if(v.state!=="ready")return;const _=n(),G=v();!_||!G||(y(G),Di(_,G))});const k=he(()=>{const _=new Map;for(const G of B()??[])_.set(G.id,G);return _}),w=()=>k().get(A()??"")?.title||C()?.title||F("chat.untitled");Se(()=>{const _=C();_&&p(!!_.running)}),$x(()=>{if(typeof document>"u")return;const _=()=>{document.visibilityState==="visible"&&n()&&E()};document.addEventListener("visibilitychange",_),Ie(()=>document.removeEventListener("visibilitychange",_))});const O=pl({projectId:n,labels:hl()}),[N]=ot(()=>oe.getGlobalConfig());Se(()=>{const _=n();_&&q1(_)});const R=he(()=>{const _=U1(H1(n()),N()?.customInstructions??[]).map(G=>{const I=`/${G.name}`;return{value:I,label:I,description:G.description||F("chat.customSlashCommandNoDescription"),replacement:M1(G.name,G.prefill),customId:G.id}});return[{value:"/new",description:F("chat.slashCommandNewSession")},{value:"/yorz-debug",description:F("chat.slashCommandYorzDebug")},{value:"/yorz-spec",description:F("chat.slashCommandYorzSpec")},..._]}),M=N1({projectId:n,sessionId:i,specId:A,groupId:()=>C()?.groupId,running:f,listPending:()=>m.loading,known:()=>!!C(),onSessionIdChange:_=>{o(_),t(`/sessions/${encodeURIComponent(_)}`,{replace:!0})},onSessionsChanged:()=>void E(),onRunningChange:(_,G)=>{_===i()&&p(G)},onSubjectChange:()=>l(!0),errorLabel:_=>F("chat.errorMessage",{message:_}),transcriptCache:S6});function L(_){return _.scrollHeight-_.scrollTop-_.clientHeight<=I6}Se(()=>{if(M.blocks(),!x()||!d)return;const _=d;requestAnimationFrame(()=>{_.scrollTop=_.scrollHeight})});async function H(){const _=s().trim(),G=R1(_),I=G?.content??_;if(M.starting()||f())return;if(G&&!I){a("");const Z=C()?.kind;i()&&Z&&(c(!0),M.beginNewSessionBoundary(Z));return}if(!I)return;a(""),l(!0);const S=O.draftId(),U=n(),z=S&&U?O.attachments().filter(Z=>Z.kind==="image"&&Z.storedName).map(Z=>({src:f0(oe.draftAttachmentUrl(U,S,Z.storedName)),alt:Z.name})):[],$=!!(i()&&(u()||G)),j=$?await M.sendInNewSession(I,O.draftId()??void 0,z):await M.send(I,O.draftId()??void 0,z);j==="sent"&&O.reset(),j==="not-started"?(a(_),$&&c(!0),De(F("chat.sendFailed"),"error")):$&&c(!1)}function K(_){const G=M6(_.target);if(!G)return;const I=G.dataset.filePath;I&&(_.preventDefault(),m0(I).then(S=>De(F(S?"chat.filePathCopied":"chat.filePathCopyFailed"),S?"default":"error")))}return b(Ft,{get title(){return w()},padded:!1,onBack:()=>t("/"),scrollRef:_=>d=_,onScroll:()=>d&&l(L(d)),get actions(){return b(q,{get when(){return A()},children:_=>(()=>{var G=R6();return G.$$click=()=>t(`/specs/${encodeURIComponent(_())}`),D(G,b(Sc,{size:20,"aria-hidden":"true"})),X(()=>re(G,"aria-label",F("chat.openSpec"))),G})()})},get footer(){return b(w6,{get value(){return s()},onInput:a,onSend:()=>void H(),onAbort:()=>void M.abort(),get running(){return f()},get starting(){return M.starting()},attachments:O,get projectId(){return n()},get slashCommands(){return R()}})},get children(){return b(q,{get when(){return n()},get fallback(){return(()=>{var _=$6();return D(_,b(Mt,{})),_})()},get children(){var _=N6();return _.$$click=K,D(_,b(q,{get when(){return!M.historyLoading()},get fallback(){return(()=>{var G=O6();return D(G,()=>F("common.loading")),G})()},get children(){return b(q,{get when(){return M.blocks().length>0},get fallback(){return(()=>{var G=P6(),I=G.firstChild;return D(I,(()=>{var S=Ue(()=>!!i());return()=>S()?F("chat.empty"):F("chat.draftEmpty")})()),D(G,b(q,{get when(){return!i()},get children(){return b(rl,{})}}),null),G})()},get children(){return b(n6,{get blocks(){return M.blocks()},get expand(){return M.toolExpand}})}})}})),_}})}})};He(["click"]);var Wa=11;function U6(e,t){var n=t.attributes,r,o,i,s,a;if(!(t.nodeType===Wa||e.nodeType===Wa)){for(var u=n.length-1;u>=0;u--)r=n[u],o=r.name,i=r.namespaceURI,s=r.value,i?(o=r.localName||o,a=e.getAttributeNS(i,o),a!==s&&(r.prefix==="xmlns"&&(o=r.name),e.setAttributeNS(i,o,s))):(a=e.getAttribute(o),a!==s&&e.setAttribute(o,s));for(var c=e.attributes,x=c.length-1;x>=0;x--)r=c[x],o=r.name,i=r.namespaceURI,i?(o=r.localName||o,t.hasAttributeNS(i,o)||e.removeAttributeNS(i,o)):t.hasAttribute(o)||e.removeAttribute(o)}}var Pr,z6="http://www.w3.org/1999/xhtml",vt=typeof document>"u"?void 0:document,j6=!!vt&&"content"in vt.createElement("template"),H6=!!vt&&vt.createRange&&"createContextualFragment"in vt.createRange();function q6(e){var t=vt.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}function G6(e){Pr||(Pr=vt.createRange(),Pr.selectNode(vt.body));var t=Pr.createContextualFragment(e);return t.childNodes[0]}function K6(e){var t=vt.createElement("body");return t.innerHTML=e,t.childNodes[0]}function W6(e){return e=e.trim(),j6?q6(e):H6?G6(e):K6(e)}function Ir(e,t){var n=e.nodeName,r=t.nodeName,o,i;return n===r?!0:(o=n.charCodeAt(0),i=r.charCodeAt(0),o<=90&&i>=97?n===r.toUpperCase():i<=90&&o>=97?r===n.toUpperCase():!1)}function V6(e,t){return!t||t===z6?vt.createElement(e):vt.createElementNS(t,e)}function Z6(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}function Io(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var Va={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)}Io(e,t,"selected")},INPUT:function(e,t){Io(e,t,"checked"),Io(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 o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n=-1,r=0,o=e.firstChild,i,s;o;)if(s=o.nodeName&&o.nodeName.toUpperCase(),s==="OPTGROUP")i=o,o=i.firstChild,o||(o=i.nextSibling,i=null);else{if(s==="OPTION"){if(o.hasAttribute("selected")){n=r;break}r++}o=o.nextSibling,!o&&i&&(o=i.nextSibling,i=null)}e.selectedIndex=n}}},Xn=1,Za=11,Ya=3,Xa=8;function ln(){}function Y6(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function X6(e){return function(n,r,o){if(o||(o={}),typeof r=="string")if(n.nodeName==="#document"||n.nodeName==="HTML"){var i=r;r=vt.createElement("html"),r.innerHTML=i}else if(n.nodeName==="BODY"){var s=r;r=vt.createElement("html"),r.innerHTML=s;var a=r.querySelector("body");a&&(r=a)}else r=W6(r);else r.nodeType===Za&&(r=r.firstElementChild);var u=o.getNodeKey||Y6,c=o.onBeforeNodeAdded||ln,x=o.onNodeAdded||ln,l=o.onBeforeElUpdated||ln,f=o.onElUpdated||ln,p=o.onBeforeNodeDiscarded||ln,d=o.onNodeDiscarded||ln,h=o.onBeforeElChildrenUpdated||ln,g=o.skipFromChildren||ln,m=o.addChild||function(I,S){return I.appendChild(S)},E=o.childrenOnly===!0,C=Object.create(null),A=[];function B(I){A.push(I)}function y(I,S){if(I.nodeType===Xn)for(var U=I.firstChild;U;){var z=void 0;S&&(z=u(U))?B(z):(d(U),U.firstChild&&y(U,S)),U=U.nextSibling}}function v(I,S,U){p(I)!==!1&&(S&&S.removeChild(I),d(I),y(I,U))}function k(I){if(I.nodeType===Xn||I.nodeType===Za)for(var S=I.firstChild;S;){var U=u(S);U&&(C[U]=S),k(S),S=S.nextSibling}}k(n);function w(I){x(I);for(var S=I.firstChild;S;){var U=S.nextSibling,z=u(S);if(z){var $=C[z];$&&Ir(S,$)?(S.parentNode.replaceChild($,S),N($,S)):w(S)}else w(S);S=U}}function O(I,S,U){for(;S;){var z=S.nextSibling;(U=u(S))?B(U):v(S,I,!0),S=z}}function N(I,S,U){var z=u(S);if(z&&delete C[z],!U){var $=l(I,S);if($===!1||($ instanceof HTMLElement&&(I=$,k(I)),e(I,S),f(I),h(I,S)===!1))return}I.nodeName!=="TEXTAREA"?R(I,S):Va.TEXTAREA(I,S)}function R(I,S){var U=g(I,S),z=S.firstChild,$=I.firstChild,j,Z,te,ie,ce;e:for(;z;){for(ie=z.nextSibling,j=u(z);!U&&$;){if(te=$.nextSibling,z.isSameNode&&z.isSameNode($)){z=ie,$=te;continue e}Z=u($);var le=$.nodeType,ve=void 0;if(le===z.nodeType&&(le===Xn?(j?j!==Z&&((ce=C[j])?te===ce?ve=!1:(I.insertBefore(ce,$),Z?B(Z):v($,I,!0),$=ce,Z=u($)):ve=!1):Z&&(ve=!1),ve=ve!==!1&&Ir($,z),ve&&N($,z)):(le===Ya||le==Xa)&&(ve=!0,$.nodeValue!==z.nodeValue&&($.nodeValue=z.nodeValue))),ve){z=ie,$=te;continue e}Z?B(Z):v($,I,!0),$=te}if(j&&(ce=C[j])&&Ir(ce,z))U||m(I,ce),N(ce,z);else{var _e=c(z);_e!==!1&&(_e&&(z=_e),z.actualize&&(z=z.actualize(I.ownerDocument||vt)),m(I,z),w(z))}z=ie,$=te}O(I,$,Z);var Ne=Va[I.nodeName];Ne&&Ne(I,S)}var M=n,L=M.nodeType,H=r.nodeType;if(!E){if(L===Xn)H===Xn?Ir(n,r)||(d(n),M=Z6(n,V6(r.nodeName,r.namespaceURI))):M=r;else if(L===Ya||L===Xa){if(H===L)return M.nodeValue!==r.nodeValue&&(M.nodeValue=r.nodeValue),M;M=r}}if(M===r)d(n);else{if(r.isSameNode&&r.isSameNode(M))return;if(N(M,r,E),A)for(var K=0,_=A.length;K<_;K++){var G=C[A[K]];G&&v(G,G.parentNode,!1)}}return!E&&M!==n&&n.parentNode&&(M.actualize&&(M=M.actualize(n.ownerDocument||vt)),n.parentNode.replaceChild(M,n)),M}}var Q6=X6(U6);let Mo=null,Qa=Promise.resolve();const ii=new WeakMap,J6=30,Ja=3;async function e2(e,t){for(let n=0;n<J6;n+=1){if(!Hr(e,t))return!1;if(e.isConnected)return!0;await jr()}return e.querySelectorAll(".mermaid").length,!1}function t2(e){return Array.from(e.querySelectorAll(".mermaid")).filter(t=>{const n=t.getAttribute("data-mermaid-source");return n!==null&&n!==""&&t.querySelector("svg")===null})}async function n2(){return Mo||(Mo=mc(()=>import("./mermaid.core-D8lHksCk.js").then(e=>e.bp),[]).then(e=>e.default)),Mo}function r2(){return Of()==="dark"?"dark":"default"}function jr(){return new Promise(e=>{if(typeof window.requestAnimationFrame=="function"){window.requestAnimationFrame(()=>e());return}window.setTimeout(e,0)})}function o2(e){const t=(ii.get(e)??0)+1;return ii.set(e,t),t}function Hr(e,t){return ii.get(e)===t}async function i2(e){const t=Qa.then(e,e);Qa=t.catch(()=>{}),await t}async function Zl(e,t={}){if(e.querySelector(".mermaid")===null)return()=>{};const n=o2(e),r=await n2();if(!Hr(e,n))return()=>{};if(!await e2(e,n))return()=>{};let o=()=>{},i=!1;function s(){o(),o=t.enhance?t.enhance(e):()=>{}}async function a(l){const f=l.filter(p=>p.isConnected&&e.contains(p));if(f.length===0){l.length;return}await i2(async()=>{if(!Hr(e,n))return;const p=f.filter(h=>h.isConnected&&e.contains(h));if(p.length===0){f.length;return}const d=r2();r.initialize({startOnLoad:!1,theme:d}),o(),o=()=>{},p.forEach(h=>{const g=h.getAttribute("data-mermaid-source");g&&(h.removeAttribute("data-processed"),h.textContent=g)});try{await r.run({nodes:p}),await jr(),s()}catch(h){i=!0,console.error("[mermaid] render error:",h)}})}let u=Array.from(e.querySelectorAll(".mermaid:not([data-processed])"));for(let l=1;l<=Ja&&(u.length>0&&await a(u),!(i||!Hr(e,n)));l+=1){const f=t2(e);if(f.length===0)break;if(l===Ja){f.length;break}await jr(),u=f}await jr(),s();const c=()=>void a(Array.from(e.querySelectorAll(".mermaid"))),x=new window.MutationObserver(c);return x.observe(document.documentElement,{attributes:!0,attributeFilter:["data-kb-theme"]}),()=>{o(),x.disconnect()}}const s2=/^##\s+(?:\d+(?:\.\d+)*\.?\s+)?待确认(?:项|问题)\s*$/,a2=/^##\s+/,u2=/^###\s+(?:\d+(?:\.\d+)*\s+)?(.+\S)\s*$/,c2=/^\d+\.\s+(.*\S)\s*$/,si=/^\s*$/,eu=/\s*[((]推荐[))]\s*$/,tu=/\s*(自由文本)\s*$/,l2=/^\[(choice|confirm)\]\s*/i,x2=/^\*\*方案\*\*\s*[::]\s*(.*\S)?\s*$/,d2=/^\*\*(?:影响|代价)\*\*\s*[::]\s*(.*\S)?\s*$/;function f2(e){const t=e.split(`
|
|
32
|
+
`);let n=0;for(;n<t.length&&!s2.test(t[n]);)n+=1;if(n>=t.length)return[];n+=1;const r=[];let o=null;for(;n<t.length;){const i=t[n];if(a2.test(i))break;const s=m2(i);s?(o={headingText:s,bodyLines:[]},r.push(o)):o&&o.bodyLines.push(i),n+=1}return r.map((i,s)=>p2(i,s))}function p2(e,t){const n=l2.exec(e.headingText),r=n?.[1]?.toLowerCase(),o=n?e.headingText.slice(n[0].length):e.headingText,i=tu.test(o),s=i?o.replace(tu,"").trim():o.trim();if(r==="confirm"){const{plan:x,impact:l}=g2(e.bodyLines);return{id:nu(t,s),text:s,kind:"confirm",options:[],isFreeform:!1,plan:x,impact:l}}const a=E2(e.bodyLines,t,s),u=i||a.length===0,c=h2(e.bodyLines);return{id:nu(t,s),text:s,kind:u?"freeform":"choice",options:a,isFreeform:u,...c?{description:c}:{}}}function h2(e){const t=[];for(const n of e){if(Yl(n)!==null)break;t.push(n)}for(;t.length&&si.test(t[0]);)t.shift();for(;t.length&&si.test(t[t.length-1]);)t.pop();if(t.length!==0)return t.join(`
|
|
33
|
+
`)}function g2(e){let t,n;for(const r of e){const o=r.trim(),i=x2.exec(o);if(i){t=i[1]?.trim()||"";continue}const s=d2.exec(o);s&&(n=s[1]?.trim()||"")}return{plan:t,impact:n}}function E2(e,t,n){const r=[];let o=0;for(const i of e){if(si.test(i))continue;const s=Yl(i);if(s===null)continue;const a=eu.test(s),u=a?s.replace(eu,"").trim():s.trim();u&&(a&&(o+=1),r.push({id:b2(t,r.length,u),label:u,recommended:a&&o===1}))}return o>=2&&console.warn(`[question-parse] 问题 "${n}" 含 ${o} 个 (推荐),已保留首个,其余降级`),r}function m2(e){const t=u2.exec(e);return t?t[1]:null}function Yl(e){const t=c2.exec(e);return t?t[1]:null}function nu(e,t){return`q-${e}-${Xl(t)}`}function b2(e,t,n){return`q-${e}-o-${t}-${Xl(n)}`}function Xl(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 or="__freeform__",C2={accept:"确认,按此推进",rejectAlternative:"否决·换方案",rejectConstraint:"否决·补约束",rejectDropGoal:"否决·弃目标·废弃当前目标,继续其余",rejectDropSpec:"否决·弃目标·放弃整个 spec"},A2="accept";function B2(e){return e!==A2}function D2(e,t,n){const r=C2[t],o=(n??"").trim();if(B2(t)&&!o)return null;const i={questionId:e.id,questionText:e.text,selectedOptionLabel:r};return o&&(i.note=o),i}function F2(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===or?n?{questionId:e.id,questionText:e.text,note:n}:null:r?{questionId:e.id,questionText:e.text,selectedOptionLabel:r}:null}function Ql(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 y2(e){const t=Ql(e);return t?t==="accept"?!0:e.note.trim().length>0:!1}function v2(e){const t={};for(const n of e){if(n.kind==="confirm"){t[n.id]={note:"",confirmTop:"accept"};continue}const r=n.options.find(o=>o.recommended);t[n.id]={selectedOptionLabel:r?.label??n.options[0]?.label,note:""}}return t}function k2(e,t){let n=0;for(const r of e){const o=t[r.id];if(!o){n+=1;continue}if(r.kind==="confirm"){y2(o)||(n+=1);continue}const i=o.note??"";r.isFreeform||o.selectedOptionLabel===or?i.trim()||(n+=1):o.selectedOptionLabel||(n+=1)}return n}function _2(e,t){const n=[];for(const r of e){const o=t[r.id]??{note:""};if(r.kind==="confirm"){const s=Ql(o);if(!s)continue;const a=D2(r,s,o.note);if(!a)return{ok:!1,reason:"reasonRequired"};n.push(a);continue}const i=F2(r,o);i&&n.push(i)}return{ok:!0,items:n}}function w2(e){return`f-${Date.now()}-${e}`}function S2(e){return e.map(t=>({sectionPath:t.sectionPath,quote:t.quote,note:t.note}))}function T2(e){return e?e.includes("🔴")?"border-l-2 border-l-destructive":e.includes("🟡")?"border-l-2 border-l-warning":"border-border":"border-border"}function N2(e,t){let n=e;for(;n&&n!==t;){if(n.nodeType===1){const o=n.tagName;if(o==="H2"||o==="H3")return n}let r=n.previousSibling;if(!r){n=n.parentNode;continue}for(;r?.lastChild;)r=r.lastChild;n=r}return null}function R2(e,t){return t.contains(e.startContainer)&&t.contains(e.endContainer)&&t.contains(e.commonAncestorContainer)}function $2(e,t,n){const r=n.throttleMs;let o,i="";const s=()=>{window.clearTimeout(o),o=window.setTimeout(()=>{const a=window.getSelection();if(!a||a.rangeCount===0||a.isCollapsed){i!==""&&(i="",t(null));return}const u=a.getRangeAt(0);if(!R2(u,e)){i!==""&&(i="",t(null));return}const c=a.toString();if(!c.trim()){i!==""&&(i="",t(null));return}const x=u.getBoundingClientRect(),l=N2(u.startContainer,e),f=n.noSectionLabel,p=l&&l.textContent?.trim()||f;i=c,t({text:c,rect:x,sectionPath:p})},r)};return document.addEventListener("selectionchange",s),()=>{document.removeEventListener("selectionchange",s),window.clearTimeout(o)}}var O2=P('<div class="fixed inset-0 z-[70] overflow-hidden bg-background"role=dialog aria-modal=true><div class="absolute inset-0 flex items-center justify-center"style=touch-action:none><div class="origin-center will-change-transform [&>svg]:block [&>svg]:h-auto [&>svg]:max-w-none"></div></div><div class="absolute right-0 top-0 flex items-center gap-3 px-3 pt-safe"><button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">');const ru=.25,P2=8,I2=2.5,ou=32,M2=10,L2=300;function iu(e,t,n){return Math.min(n,Math.max(t,e))}function su(e){if(!e)return null;const t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:null}function U2(e){const t=e.getBoundingClientRect();if(t.width>0&&t.height>0)return{width:t.width,height:t.height};const n=e.getAttribute("viewBox")?.trim().split(/[\s,]+/).map(Number);return n?.length===4&&n[2]>0&&n[3]>0?{width:n[2],height:n[3]}:{width:su(e.getAttribute("width"))??0,height:su(e.getAttribute("height"))??0}}const Jl=e=>{const[t,n]=W(1),[r,o]=W(0),[i,s]=W(0),[a,u]=W(0);let c,x,l=0,f=0,p="none",d=0,h=0,g=0,m=0,E=0,C=!1,A=0,B=1,y=0,v=0;const k=()=>`translate(${r()}px, ${i()}px) scale(${t()}) rotate(${a()}deg)`;function w(){const _=c;if(!_)return;const G=_.getBoundingClientRect(),I=a()===90,S=I?f:l,U=I?l:f;if(S<=0||U<=0||G.width<=0||G.height<=0){n(1),o(0),s(0);return}const z=Math.min((G.width-ou)/S,(G.height-ou)/U);n(iu(z,ru,I2)),o(0),s(0)}Se(()=>{if(!e.svg)return;u(0),n(1),o(0),s(0);const G=requestAnimationFrame(()=>{const I=x?.querySelector("svg");if(!I)return;const S=U2(I);l=S.width,f=S.height,w()});Ie(()=>cancelAnimationFrame(G))});function O(){u(_=>_===0?90:0),w()}function N(_,G,I,S){const U=c,z=(_+I)/2,$=(G+S)/2;if(!U)return{x:z,y:$,px:0,py:0};const j=U.getBoundingClientRect();return{x:z,y:$,px:z-(j.left+j.width/2),py:$-(j.top+j.height/2)}}function R(_){if(_.touches.length===1){p="pan";const G=_.touches[0];d=G.clientX,h=G.clientY,g=r(),m=i(),E=performance.now(),C=!1}else if(_.touches.length===2){p="pinch";const G=_.touches[0],I=_.touches[1];A=Math.hypot(G.clientX-I.clientX,G.clientY-I.clientY),B=t();const S=N(G.clientX,G.clientY,I.clientX,I.clientY);y=S.px,v=S.py,g=r(),m=i(),C=!0}}function M(_){if(_.preventDefault(),p==="pan"&&_.touches.length===1){const G=_.touches[0],I=G.clientX-d,S=G.clientY-h;!C&&Math.hypot(I,S)>M2&&(C=!0),o(g+I),s(m+S)}else if(p==="pinch"&&_.touches.length>=2){const G=_.touches[0],I=_.touches[1],S=Math.hypot(G.clientX-I.clientX,G.clientY-I.clientY);if(A<=0)return;const U=iu(B*(S/A),ru,P2);o(y-(y-g)/B*U),s(v-(v-m)/B*U),n(U)}}function L(_){if(p==="pan"&&!C&&_.touches.length===0&&performance.now()-E<L2){_.preventDefault(),p="none",e.onClose();return}if(_.touches.length===0)p="none";else if(_.touches.length===1){const G=_.touches[0];p="pan",d=G.clientX,h=G.clientY,g=r(),m=i(),E=performance.now(),C=!0}}function H(){p="none"}const K=_=>{c=_,_.addEventListener("touchstart",R,{passive:!1}),_.addEventListener("touchmove",M,{passive:!1}),_.addEventListener("touchend",L,{passive:!1}),_.addEventListener("touchcancel",H,{passive:!1}),Ie(()=>{_.removeEventListener("touchstart",R),_.removeEventListener("touchmove",M),_.removeEventListener("touchend",L),_.removeEventListener("touchcancel",H)})};return b(q,{get when(){return e.svg},children:_=>(()=>{var G=O2(),I=G.firstChild,S=I.firstChild,U=I.nextSibling,z=U.firstChild;Tt(K,I);var $=x;return typeof $=="function"?Tt($,S):x=S,z.$$click=O,D(z,b(wp,{size:20,"aria-hidden":"true"})),X(j=>{var Z=F("specDetail.viewDiagram"),te=k(),ie=_(),ce=F("specDetail.toggleOrientation");return Z!==j.e&&re(G,"aria-label",j.e=Z),te!==j.t&&id(S,"transform",j.t=te),ie!==j.a&&(S.innerHTML=j.a=ie),ce!==j.o&&re(z,"aria-label",j.o=ce),j},{e:void 0,t:void 0,a:void 0,o:void 0}),G})()})};He(["click"]);var z2=P('<footer class="shrink-0 border-t border-border px-4 py-3">'),j2=P('<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 Dn=e=>b(q,{get when(){return e.open},get children(){var t=j2(),n=t.firstChild,r=n.nextSibling,o=r.firstChild,i=o.firstChild,s=i.nextSibling,a=o.nextSibling;return n.$$click=()=>e.onClose(),D(i,()=>e.title),s.$$click=()=>e.onClose(),D(s,b(hn,{size:20,"aria-hidden":"true"})),D(a,()=>e.children),D(r,b(q,{get when(){return e.footer},get children(){var u=z2();return D(u,()=>e.footer),u}}),null),X(u=>{var c=e.title,x=F("common.close"),l=F("common.close");return c!==u.e&&re(t,"aria-label",u.e=c),x!==u.t&&re(n,"aria-label",u.t=x),l!==u.a&&re(s,"aria-label",u.a=l),u},{e:void 0,t:void 0,a:void 0}),t}});He(["click"]);var H2=P('<span class="mt-0.5 block text-xs text-muted-foreground">'),q2=P('<button type=button role=radio><span aria-hidden=true></span><span class="min-w-0 flex-1"><span class=block>'),G2=P("<div class=space-y-5>"),K2=P('<span class="text-xs text-muted-foreground">'),W2=P('<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">'),V2=P('<p class="py-6 text-center text-sm text-muted-foreground">'),Z2=P('<p class="mb-2 whitespace-pre-wrap break-words text-xs text-muted-foreground">'),au=P("<p><span class=font-medium>:"),Y2=P("<div>"),uu=P("<div class=space-y-2 role=radiogroup>"),X2=P('<div class="space-y-2 border-l-2 border-border pl-3"role=radiogroup>'),Q2=P('<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">'),J2=P('<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">'),e5=P('<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">'),t5=P('<section><h3 class="mb-2 text-sm font-medium leading-relaxed">'),n5=P('<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 $n=e=>(()=>{var t=q2(),n=t.firstChild,r=n.nextSibling,o=r.firstChild;return t.$$click=()=>e.onSelect(),D(o,()=>e.label),D(r,b(q,{get when(){return e.hint},get children(){var i=H2();return D(i,()=>e.hint),i}}),null),X(i=>{var s=e.selected,a=rt("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=rt("size-4 shrink-0 rounded-full border",e.selected?"border-[5px] border-primary":"border-muted-foreground/40");return s!==i.e&&re(t,"aria-checked",i.e=s),a!==i.t&&Ge(t,i.t=a),u!==i.a&&Ge(n,i.a=u),i},{e:void 0,t:void 0,a:void 0}),t})(),r5=e=>{const[t,n]=W({}),[r,o]=W(!1);Se(()=>{e.open&&n(v2(e.questions))});const i=he(()=>k2(e.questions,t())),s=(l,f)=>n(p=>({...p,[l]:{...p[l]??{note:""},...f}})),a=l=>t()[l]??{note:""};function u(l,f){f==="accept"?s(l,{confirmTop:f,confirmIntent:void 0,confirmDrop:void 0,note:""}):s(l,{confirmTop:f})}function c(l,f){f==="dropGoal"?s(l,{confirmIntent:f}):s(l,{confirmIntent:f,confirmDrop:void 0})}async function x(){o(!0);try{const l=_2(e.questions,t());if(!l.ok){De(F("specDetail.reasonRequired"),"error");return}const f=S2(e.freeforms);if(l.items.length===0&&f.length===0){De(F("specDetail.unanswered",{count:e.questions.length}),"error");return}const p={answers:l.items,freeformAnnotations:f};await oe.submitQuestionAnswers(e.projectId,e.specId,p);const{sessionId:d}=await oe.runAgent(e.projectId,e.specId);De(F("specDetail.submitted")),e.onSubmitted(d)}catch(l){De(l.message||F("specDetail.submitFailed"),"error")}finally{o(!1)}}return b(Dn,{get open(){return e.open},get title(){return F("specDetail.questions")},get onClose(){return e.onClose},get footer(){return(()=>{var l=W2(),f=l.firstChild;return D(l,b(q,{get when(){return i()>0},get children(){var p=K2();return D(p,()=>F("specDetail.unanswered",{count:i()})),p}}),f),f.$$click=()=>void x(),D(f,(()=>{var p=Ue(()=>!!r());return()=>p()?F("specDetail.submitting"):F("specDetail.submit")})()),X(()=>f.disabled=r()),l})()},get children(){return b(q,{get when(){return e.questions.length>0||e.freeforms.length>0},get fallback(){return(()=>{var l=V2();return D(l,()=>F("specDetail.questionsEmpty")),l})()},get children(){var l=G2();return D(l,b(We,{get each(){return e.questions},children:f=>(()=>{var p=t5(),d=p.firstChild;return D(d,()=>f.text),D(p,b(q,{get when(){return f.description},get children(){var h=Z2();return D(h,()=>f.description),h}}),null),D(p,b(q,{get when(){return f.kind==="confirm"},get children(){return[(()=>{var h=Y2();return D(h,b(q,{get when(){return f.plan},get children(){var g=au(),m=g.firstChild,E=m.firstChild;return D(m,()=>F("specDetail.plan"),E),D(g,()=>f.plan,null),g}}),null),D(h,b(q,{get when(){return f.impact},get children(){var g=au(),m=g.firstChild,E=m.firstChild;return D(m,()=>F("specDetail.impact"),E),D(g,()=>f.impact,null),g}}),null),X(()=>Ge(h,rt("mb-2 space-y-1 rounded-md border bg-muted/40 px-3 py-2 text-xs",T2(f.impact)))),h})(),(()=>{var h=uu();return D(h,b($n,{get label(){return F("specDetail.decisionAccept")},get selected(){return a(f.id).confirmTop==="accept"},onSelect:()=>u(f.id,"accept")}),null),D(h,b($n,{get label(){return F("specDetail.decisionReject")},get selected(){return a(f.id).confirmTop==="reject"},onSelect:()=>u(f.id,"reject")}),null),h})(),b(q,{get when(){return a(f.id).confirmTop==="reject"},get children(){var h=Q2(),g=h.firstChild,m=g.firstChild,E=m.nextSibling;return D(h,b(We,{get each(){return[["alternative",F("specDetail.decisionAlternative")],["constraint",F("specDetail.decisionConstraint")],["dropGoal",F("specDetail.decisionDropGoal")]]},children:([C,A])=>b($n,{label:A,get selected(){return a(f.id).confirmIntent===C},onSelect:()=>c(f.id,C)})}),g),D(h,b(q,{get when(){return a(f.id).confirmIntent==="dropGoal"},get children(){var C=X2();return D(C,b(We,{get each(){return[["current",F("specDetail.decisionDropCurrent")],["spec",F("specDetail.decisionDropSpec")]]},children:([A,B])=>b($n,{label:B,get selected(){return a(f.id).confirmDrop===A},onSelect:()=>s(f.id,{confirmDrop:A})})})),C}}),g),D(m,()=>F("specDetail.rejectReason")),E.$$input=C=>s(f.id,{note:C.currentTarget.value}),X(()=>re(E,"placeholder",F("specDetail.rejectReasonHint"))),X(()=>E.value=a(f.id).note),h}})]}}),null),D(p,b(q,{get when(){return f.kind==="choice"},get children(){var h=uu();return D(h,b(We,{get each(){return f.options},children:g=>b($n,{get label(){return g.label},get accent(){return g.recommended},get selected(){return a(f.id).selectedOptionLabel===g.label},onSelect:()=>s(f.id,{selectedOptionLabel:g.label})})}),null),D(h,b($n,{get label(){return F("specDetail.freeformOther")},get selected(){return a(f.id).selectedOptionLabel===or},onSelect:()=>s(f.id,{selectedOptionLabel:or})}),null),D(h,b(q,{get when(){return a(f.id).selectedOptionLabel===or},get children(){var g=J2();return g.$$input=m=>s(f.id,{note:m.currentTarget.value}),X(()=>re(g,"placeholder",F("specDetail.freeformHint"))),X(()=>g.value=a(f.id).note),g}}),null),h}}),null),D(p,b(q,{get when(){return f.kind==="freeform"},get children(){var h=e5();return h.$$input=g=>s(f.id,{note:g.currentTarget.value}),X(()=>re(h,"placeholder",F("specDetail.freeformHint"))),X(()=>h.value=a(f.id).note),h}}),null),p})()}),null),D(l,b(We,{get each(){return e.freeforms},children:f=>(()=>{var p=n5(),d=p.firstChild,h=d.firstChild,g=h.nextSibling,m=d.nextSibling,E=m.firstChild,C=E.nextSibling,A=C.nextSibling,B=A.nextSibling,y=B.nextSibling;y.nextSibling;var v=m.nextSibling;return v.firstChild,D(h,()=>F("specDetail.annotationDraft")),g.$$click=()=>e.onRemoveFreeform(f.id),D(g,b(hn,{size:20,"aria-hidden":"true"})),D(E,()=>f.sectionPath),D(m,()=>F("specDetail.annotationQuoteConnector"),A),D(m,()=>f.quote.slice(0,200),y),D(v,()=>f.note,null),X(()=>re(g,"aria-label",F("specDetail.removeAnnotation"))),p})()}),null),l}})}})};He(["click","input"]);var o5=P("<div>"),i5=P("<div><textarea>");const ex=e=>{let t,n,r=null;Ie(()=>{r&&clearTimeout(r)});const o=Gl({projectId:()=>e.projectId,value:()=>e.value,onValueChange:a=>e.onValueChange(a),searchDebounceMs:Kl}),i=()=>o.open()&&o.items().length>0;Se(()=>{i()&&requestAnimationFrame(()=>n?.scrollIntoView({block:"nearest"}))});function s(a){const u=o.select(a);u.kind==="text"&&requestAnimationFrame(()=>{t&&(t.focus(),t.setSelectionRange(u.cursorPos,u.cursorPos))})}return(()=>{var a=i5(),u=a.firstChild;u.addEventListener("blur",()=>{r&&clearTimeout(r),r=setTimeout(o.close,Wl)}),u.$$input=x=>{e.onValueChange(x.currentTarget.value),o.handleInput(x.currentTarget)};var c=t;return typeof c=="function"?Tt(c,u):t=u,D(a,b(q,{get when(){return i()},get children(){var x=o5(),l=n;return typeof l=="function"?Tt(l,x):n=x,D(x,b(Vl,{get items(){return o.items()},empty:!1,inline:!0,onSelect:s})),x}}),null),X(x=>{var l=e.rows??5,f=e.class,p=e.placeholder;return l!==x.e&&re(u,"rows",x.e=l),f!==x.t&&Ge(u,x.t=f),p!==x.a&&re(u,"placeholder",x.a=p),x},{e:void 0,t:void 0,a:void 0}),X(()=>u.value=e.value),a})()};He(["input"]);var s5=P('<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">'),a5=P('<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">'),u5=P("<button type=button role=radio>");const c5=[{value:"feat",labelKey:"specDetail.appendKindFeat"},{value:"refct",labelKey:"specDetail.appendKindRefct"},{value:"fix",labelKey:"specDetail.appendKindFix"}],l5=e=>{const[t,n]=W("fix"),[r,o]=W(""),[i,s]=W(!1);Se(()=>{e.open&&(n("fix"),o(""))});async function a(){const u=r().trim();if(!(!u||i())){s(!0);try{const c={kind:t(),description:u},x=await oe.appendItem(e.projectId,e.specId,c);if(x.busy){De(F("specDetail.appendSavedSpecBusy"),"error"),e.onSubmitted("");return}De(F("specDetail.appendSaved")),e.onSubmitted(x.sessionId??"")}catch(c){De(c.message||F("specDetail.appendFailed"),"error")}finally{s(!1)}}}return b(Dn,{get open(){return e.open},get title(){return F("specDetail.appendTask")},get onClose(){return e.onClose},get footer(){return(()=>{var u=a5();return u.$$click=()=>void a(),D(u,(()=>{var c=Ue(()=>!!i());return()=>c()?F("specDetail.submitting"):F("specDetail.submit")})()),X(()=>u.disabled=i()||r().trim().length===0),u})()},get children(){var u=s5(),c=u.firstChild,x=c.nextSibling,l=x.firstChild;return D(c,b(We,{each:c5,children:f=>(()=>{var p=u5();return p.$$click=()=>n(f.value),D(p,()=>F(f.labelKey)),X(d=>{var h=t()===f.value,g=rt("min-h-11 flex-1 rounded-lg border text-sm active:opacity-80",t()===f.value?"border-primary bg-primary/10 font-medium":"border-border bg-background");return h!==d.e&&re(p,"aria-checked",d.e=h),g!==d.t&&Ge(p,d.t=g),d},{e:void 0,t:void 0}),p})()})),D(l,()=>F("specDetail.appendDescription")),D(x,b(ex,{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 F("specDetail.appendDescriptionHint")},get value(){return r()},onValueChange:o}),null),X(()=>re(c,"aria-label",F("newSpec.type"))),u}})};He(["click"]);var x5=P('<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">'),d5=P('<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 f5=200,p5=e=>{const[t,n]=W("");Se(()=>{e.open&&n("")});const r=()=>t().trim().length>0;return b(Dn,{get open(){return e.open},get title(){return F("specDetail.annotateTitle")},get onClose(){return e.onClose},get footer(){return(()=>{var o=x5(),i=o.firstChild;return i.$$click=()=>e.onSubmit(t().trim()),D(i,()=>F("specDetail.annotateSubmit")),X(()=>i.disabled=!r()),o})()},get children(){return b(q,{get when(){return e.snap},children:o=>(()=>{var i=d5(),s=i.firstChild,a=s.nextSibling,u=a.nextSibling;return D(s,()=>F("specDetail.annotateInSection",{section:o().sectionPath})),D(a,()=>o().text.slice(0,f5)),u.$$input=c=>n(c.currentTarget.value),X(()=>re(u,"placeholder",F("specDetail.annotatePlaceholder"))),X(()=>u.value=t()),i})()})}})};He(["click","input"]);var h5=P('<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 g5=e=>b(q,{get when(){return e.snap},children:t=>(()=>{var n=h5(),r=n.firstChild,o=r.firstChild,i=o.nextSibling,s=i.nextSibling;return o.$$click=()=>e.onAnnotate(t()),o.$$pointerdown=a=>a.preventDefault(),D(o,()=>F("specDetail.annotate")),i.$$click=()=>e.onExplain(t()),i.$$pointerdown=a=>a.preventDefault(),D(i,()=>F("specDetail.explain")),s.$$click=()=>e.onClose(),s.$$pointerdown=a=>a.preventDefault(),D(s,b(hn,{size:20,"aria-hidden":"true"})),X(a=>{var u=F("specDetail.annotate"),c=F("specDetail.selectionClose");return u!==a.e&&re(n,"aria-label",a.e=u),c!==a.t&&re(s,"aria-label",a.t=c),a},{e:void 0,t:void 0}),n})()});He(["pointerdown","click"]);var cu=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),E5=P('<div class="px-4 py-4">'),m5=P('<p class="px-4 py-8 text-center text-sm text-muted-foreground">'),b5=P('<span class="flex items-center gap-1 text-primary"><span class="size-2 animate-pulse rounded-full bg-primary">'),C5=P('<button type=button class="min-h-9 rounded-md border border-border px-3 text-xs text-muted-foreground active:bg-accent">'),A5=P('<section class="border-b border-border px-2 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">'),B5=P('<article class="markdown px-2 py-4">'),D5=P('<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 F5=120,lu=3,y5=150,v5=250,xu=4e3,k5=e=>new Promise(t=>setTimeout(t,e));async function _5(e,t,n){for(let r=0;r<=lu;r+=1)try{return await oe.getSpec(e,t)}catch(o){if(!o.message.startsWith("404"))throw o;r<lu&&await k5(y5)}return n??null}const w5=()=>{const e=Er(),t=pt(),n=()=>me()??"",[r,o]=W(0),[i,s]=W(!1),[a,u]=W(""),[c,x]=W(null),[l,f]=W(!1),[p,d]=W(!1),[h,g]=W(!1),[m,E]=W(null),[C,A]=W(null),[B,y]=W(!1),[v,k]=W(null),[w,O]=W([]),[N,{refetch:R}]=ot(()=>[n(),e.id,r()],async([$,j],Z)=>_5($,j,Z.value)),[M]=ot(()=>[n(),e.id,r()],async([$,j])=>{if(!$||!j)return{exists:!1,text:""};try{return await oe.getDebug($,j)}catch{return{exists:!1,text:""}}}),L=he(()=>{const $=N();return $?f2($.body):[]}),H=he(()=>L().length+w().length);Se(()=>{const $=e.id,j=n();if(!$||!j)return;let Z;const te=ng(j,$,{onUpdated:()=>{Z&&clearTimeout(Z),Z=setTimeout(()=>void ju(()=>o(ie=>ie+1)),F5)}});Ie(()=>{Z&&clearTimeout(Z),te()})}),Se(()=>{const $=e.id,j=n();!$||!j||oe.getSpecSession(j,$).then(({sessionId:Z,running:te})=>{Z&&(u(Z),s(te))}).catch(()=>{})}),Se(()=>{const $=n(),j=a();if(!$||!j)return;const Z=Vc($,{onStatus:te=>{te.sessionId===j&&s(te.running)}});Ie(Z)}),Se(()=>{const $=n(),j=a();if(!$||!j)return;const Z=E0($,j,{onEvent:te=>{(te.type==="turn-completed"||te.type==="error")&&s(!1)}});Ie(Z)}),Se(()=>{const $=c(),j=N();if(!$||!j)return;const Z=n();let te=!0,ie;const ce=Ni(j.body,{specId:j.id,projectId:Z||void 0});Q6($,`<article>${ce}</article>`,{childrenOnly:!0,onBeforeElUpdated:(le,ve)=>!(le.classList?.contains("mermaid")&&le.getAttribute("data-mermaid-source")===ve.getAttribute?.("data-mermaid-source"))}),Zl($).then(le=>{if(!te){le();return}ie=le}),Ie(()=>{te=!1,ie?.()})}),Se(()=>{const $=c();if(!$)return;const j=$2($,A,{noSectionLabel:F("specDetail.noSection"),throttleMs:v5});Ie(j)});function K($){k($),y(!0)}function _($){const j=v();j&&(O(Z=>[...Z,{id:w2(Z.length),sectionPath:j.sectionPath,quote:j.text,note:$}]),y(!1),A(null),De(F("specDetail.annotationSaved")))}function G($){O(j=>j.filter(Z=>Z.id!==$))}async function I($){if($.text.length>xu){De(F("specDetail.explainTooLong",{max:xu}),"error");return}A(null),s(!0);try{const{sessionId:j}=await oe.explain(n(),e.id,$.text);u(j),t(`/sessions/${encodeURIComponent(j)}`)}catch(j){s(!1),De(j.message||F("specDetail.explainFailed"),"error")}}function S($){if(!($.target instanceof Element))return;const Z=$.target.closest(".mermaid")?.querySelector("svg");Z&&E(Z.outerHTML)}function U(){const $=a();$&&t(`/sessions/${encodeURIComponent($)}`)}async function z(){const $=await m0(ll(e.id));De(F($?"specDetail.specPathCopied":"chat.filePathCopyFailed"),$?"default":"error"),g(!1)}return b(Ft,{get title(){return e.id},padded:!1,onBack:()=>t("/specs"),get leading(){return b(q,{get when(){return a()},get children(){var $=cu();return $.$$click=U,D($,b(cp,{size:20,"aria-hidden":"true"})),X(()=>re($,"aria-label",F("specDetail.openSession"))),$}})},get actions(){return(()=>{var $=cu();return $.$$click=()=>g(!0),D($,b(cr,{size:20,"aria-hidden":"true"})),X(()=>re($,"aria-label",F("specDetail.more"))),$})()},get children(){return[b(q,{get when(){return n()},get fallback(){return(()=>{var $=E5();return D($,b(Mt,{})),$})()},get children(){return b(q,{get when(){return!N.loading||N()},get fallback(){return b(En,{})},get children(){return b(q,{get when(){return!N.error},get fallback(){return b(nn,{get error(){return N.error},onRetry:()=>void R()})},get children(){return b(q,{get when(){return N()},get fallback(){return(()=>{var $=m5();return D($,()=>F("specDetail.notFound")),$})()},children:$=>[(()=>{var j=A5(),Z=j.firstChild,te=Z.nextSibling,ie=te.firstChild,ce=ie.nextSibling,le=te.nextSibling,ve=le.firstChild,_e=ve.nextSibling;return D(Z,()=>$().frontmatter.summary||F("common.pendingAgent")),D(ie,()=>$().frontmatter.stage),D(te,b(q,{get when(){return i()},get children(){var Ne=b5();return Ne.firstChild,D(Ne,()=>F("specDetail.running"),null),Ne}}),ce),D(ce,()=>xl($().frontmatter.updated_at)),ve.$$click=()=>d(!0),D(ve,()=>F("specDetail.appendTask")),D(le,b(q,{get when(){return M()?.exists},get children(){var Ne=C5();return Ne.$$click=()=>t(`/specs/${encodeURIComponent(e.id)}/debug`),D(Ne,()=>F("specDetail.debug")),Ne}}),_e),_e.$$click=()=>t(`/specs/${encodeURIComponent(e.id)}/git`),D(_e,b(gi,{size:16,"aria-hidden":"true"})),X(Ne=>{var Qe=rt("rounded border px-1.5 py-0.5",ul($().frontmatter.stage)),Je=F("specDetail.git"),it=F("specDetail.git");return Qe!==Ne.e&&Ge(ie,Ne.e=Qe),Je!==Ne.t&&re(_e,"aria-label",Ne.t=Je),it!==Ne.a&&re(_e,"title",Ne.a=it),Ne},{e:void 0,t:void 0,a:void 0}),j})(),(()=>{var j=B5();return j.$$click=S,Tt(Z=>x(Z),j),j})(),b(q,{get when(){return H()>0},get children(){var j=D5(),Z=j.firstChild;return j.$$click=()=>f(!0),D(j,b(H9,{size:24,"aria-hidden":"true"}),Z),D(Z,H),X(te=>{var ie=F("specDetail.questions"),ce=i();return ie!==te.e&&re(j,"aria-label",te.e=ie),ce!==te.t&&(j.disabled=te.t=ce),te},{e:void 0,t:void 0}),j}}),b(g5,{get snap(){return Ue(()=>!!B())()?null:C()},onAnnotate:K,onExplain:j=>void I(j),onClose:()=>A(null)}),b(p5,{get open(){return B()},get snap(){return v()},onClose:()=>y(!1),onSubmit:_}),b(r5,{get open(){return l()},get projectId(){return n()},get specId(){return $().id},get questions(){return L()},get freeforms(){return w()},onRemoveFreeform:G,onClose:()=>f(!1),onSubmitted:j=>{f(!1),s(!0),O([]),j&&(u(j),t(`/sessions/${encodeURIComponent(j)}`))}}),b(l5,{get open(){return p()},get projectId(){return n()},get specId(){return $().id},onClose:()=>d(!1),onSubmitted:j=>{d(!1),j&&(s(!0),u(j),t(`/sessions/${encodeURIComponent(j)}`))}})]})}})}})}}),b(Gn,{get open(){return h()},get title(){return e.id},get items(){return[{label:F("specDetail.copySpecPath"),onSelect:()=>void z()}]},onClose:()=>g(!1)}),b(Jl,{get svg(){return m()},onClose:()=>E(null)})]}})};He(["click"]);var S5=P('<article class="markdown px-4 py-4">'),T5=P('<p class="border-b border-border px-4 py-3 text-sm leading-relaxed">');const N5=()=>{const e=Er(),t=pt(),[n,r]=W(null),[o,i]=W(null),[s]=ot(()=>{const l=me();return l?[l,e.id]:null},([l,f])=>oe.getSpec(l,f)),[a,{refetch:u}]=ot(()=>{const l=me();return l?[l,e.id]:null},([l,f])=>oe.getDebug(l,f)),c=he(()=>{const l=vb(a()?.text??"");return l.trim()?Ni(l,{specId:e.id,projectId:me()||void 0}):""});Se(()=>{const l=n(),f=c();if(!l)return;l.innerHTML=f;let p=!0,d;Zl(l).then(h=>{if(!p){h();return}d=h}),Ie(()=>{p=!1,d?.()})});function x(l){if(!(l.target instanceof Element))return;const f=l.target.closest(".mermaid")?.querySelector("svg");f&&i(f.outerHTML)}return b(Ft,{get title(){return F("specDetail.debug")},padded:!1,onBack:()=>t(`/specs/${encodeURIComponent(e.id)}`),get children(){return[b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return[b(q,{get when(){return s()?.frontmatter.summary},children:l=>(()=>{var f=T5();return D(f,l),f})()}),b(q,{get when(){return!a.loading},get fallback(){return b(En,{})},get children(){return b(q,{get when(){return!a.error},get fallback(){return b(nn,{get error(){return a.error},onRetry:()=>void u()})},get children(){return b(q,{get when(){return c()},get fallback(){return b(It,{get title(){return F("specDebug.empty")}})},get children(){var l=S5();return l.$$click=x,Tt(r,l),l}})}})}})]}}),b(Jl,{get svg(){return o()},onClose:()=>i(null)})]}})};He(["click"]);const R5={M:"text-warning",A:"text-success",D:"text-destructive","??":"text-info",R:"text-primary"};function $5(e){return R5[e]??""}function O5(e,t,n){const r=new Set(n.map(i=>i.path)),o=new Set;for(const i of e)r.has(i)&&o.add(i);return{selected:o,active:t&&r.has(t)?t:null}}function P5(e){return`${e?.index??""}${e?.worktree??""}`}var Lo,du;function I5(){if(du)return Lo;du=1,Lo=x=>{if(!x)return[];if(typeof x!="string"||x.match(/^\s+$/))return[];const l=x.split(`
|
|
34
|
+
`);if(l.length===0)return[];const f=[];let p=null,d=null,h=0,g=0,m=null;const E=z=>{d?.changes.push({type:"normal",normal:!0,ln1:h++,ln2:g++,content:z}),m.oldLines--,m.newLines--},C=z=>{const[$,j]=n(z)??[];p={chunks:[],deletions:0,additions:0,from:$,to:j},f.push(p)},A=()=>{(!p||p.chunks.length)&&C()},B=(z,$)=>{A(),p.new=!0,p.newMode=$[1],p.from="/dev/null"},y=(z,$)=>{A(),p.deleted=!0,p.oldMode=$[1],p.to="/dev/null"},v=(z,$)=>{A(),p.oldMode=$[1]},k=(z,$)=>{A(),p.newMode=$[1]},w=(z,$)=>{A(),p.index=z.split(" ").slice(1),$[1]&&(p.oldMode=p.newMode=$[1].trim())},O=z=>{A(),p.from=o(z)},N=z=>{A(),p.to=o(z)},R=z=>+(z||1),M=(z,$)=>{p||C(z);const[j,Z,te,ie]=$.slice(1);h=+j,g=+te,d={content:z,changes:[],oldStart:+j,oldLines:R(Z),newStart:+te,newLines:R(ie)},m={oldLines:R(Z),newLines:R(ie)},p.chunks.push(d)},L=z=>{d&&(d.changes.push({type:"del",del:!0,ln:h++,content:z}),p.deletions++,m.oldLines--)},H=z=>{d&&(d.changes.push({type:"add",add:!0,ln:g++,content:z}),p.additions++,m.newLines--)},K=z=>{if(!d)return;const[$]=d.changes.slice(-1);d.changes.push({type:$.type,[$.type]:!0,ln1:$.ln1,ln2:$.ln2,ln:$.ln,content:z})},_=[[/^diff\s/,C],[/^new file mode (\d+)$/,B],[/^deleted file mode (\d+)$/,y],[/^old mode (\d+)$/,v],[/^new mode (\d+)$/,k],[/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/,w],[/^---\s/,O],[/^\+\+\+\s/,N],[/^@@\s+-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/,M],[/^\$/,K]],G=[[/^\$/,K],[/^-/,L],[/^\+/,H],[/^\s*/,E]],I=z=>{for(const[$,j]of G){const Z=z.match($);if(Z){j(z,Z);break}}m.oldLines===0&&m.newLines===0&&(m=null)},S=z=>{for(const[$,j]of _){const Z=z.match($);if(Z){j(z,Z);break}}},U=z=>{m?I(z):S(z)};for(const z of l)U(z);return f};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=x=>x?.match(e)?.map(l=>l.replace(t,"").replace(/("|')$/,"")),r=/^\\?['"]|\\?['"]$/g,o=x=>{let l=i(x,"-+").trim();return l=a(l),l.replace(r,"").replace(t,"")},i=(x,l)=>{x=c(x);const f=u(l);return x.replace(new RegExp(`^${f}+`),"")},s=/\t.*|\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(.\d+)?\s(\+|-)\d\d\d\d/,a=x=>{const l=s.exec(x);return l&&(x=x.substring(0,l.index).trim()),x},u=x=>x instanceof RegExp?x.source:`[${c(x).replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}]`,c=x=>`${x??""}`;return Lo}var M5=I5();const L5=mr(M5),U5={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 z5(e){const t=e.split(".").pop()?.toLowerCase()??"",n=U5[t];return n&&a0.getLanguage(n)?n:void 0}function j5(e,t){if(!(!t||!e))try{return a0.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return}}function H5(e){return e?L5(e).map(t=>({chunks:t.chunks.map(n=>({header:n.content,rows:n.changes.map(q5)}))})):[]}function q5(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 G5=P('<span class="shrink-0 text-xs text-warning">'),K5=P('<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"></span><button type=button class="tap-target -mr-1 flex shrink-0 items-center justify-center text-muted-foreground active:opacity-60">'),Uo=P('<p class="p-4 text-sm text-muted-foreground">'),W5=P('<p class="p-4 text-sm text-destructive">'),V5=P('<div><div class="bg-muted px-2 py-0.5 font-mono text-[11px] text-muted-foreground">'),Z5=P('<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>'),Y5=P("<span>"),X5=P("<span class=hljs>");const tx=e=>(()=>{var t=K5(),n=t.firstChild,r=n.firstChild,o=r.nextSibling;return D(r,()=>e.path),D(n,b(q,{get when(){return e.truncated},get children(){var i=G5();return D(i,()=>F("git.diffTruncated")),i}}),o),o.$$click=()=>e.onClose(),D(o,b(hn,{size:16,"aria-hidden":"true"})),D(t,b(Q5,{get path(){return e.path},get patch(){return e.patch},get binary(){return e.binary},get loading(){return e.loading},get error(){return e.error}}),null),X(()=>re(o,"aria-label",F("common.close"))),t})(),Q5=e=>{const t=he(()=>H5(e.patch)),n=he(()=>t().some(o=>o.chunks.length>0)),r=he(()=>z5(e.path));return b(q,{get when(){return!e.loading},get fallback(){return(()=>{var o=Uo();return D(o,()=>F("git.diffLoading")),o})()},get children(){return b(q,{get when(){return!e.error},get fallback(){return(()=>{var o=W5();return D(o,()=>e.error),o})()},get children(){return b(q,{get when(){return!e.binary},get fallback(){return(()=>{var o=Uo();return D(o,()=>F("git.binaryFile")),o})()},get children(){return b(q,{get when(){return n()},get fallback(){return(()=>{var o=Uo();return D(o,()=>F("git.diffEmpty")),o})()},get children(){return b(We,{get each(){return t()},children:o=>b(We,{get each(){return o.chunks},children:i=>(()=>{var s=V5(),a=s.firstChild;return D(a,()=>i.header),D(s,b(We,{get each(){return i.rows},children:u=>{const c=u.tone==="add"?"bg-success/10":u.tone==="del"?"bg-destructive/10":"",x=u.tone==="add"?"text-success":u.tone==="del"?"text-destructive":"text-muted-foreground",l=j5(u.code,r());return(()=>{var f=Z5(),p=f.firstChild,d=p.nextSibling,h=d.nextSibling,g=h.firstChild;return Ge(f,`flex font-mono text-[11px] leading-snug ${c}`),D(p,()=>u.oldLn),D(d,()=>u.newLn),Ge(g,`select-none ${x}`),D(g,()=>u.marker),D(h,b(q,{when:l,get fallback(){return(()=>{var m=Y5();return D(m,()=>u.code),m})()},children:m=>(()=>{var E=X5();return X(()=>E.innerHTML=m()),E})()}),null),f})()}}),null),s})()})})}})}})}})}})};He(["click"]);var J5=P('<button type=button class="flex size-11 shrink-0 items-center justify-center"role=checkbox><span>'),eC=P("<span class=text-muted-foreground> → "),tC=P('<div class="flex items-center active:bg-accent"><button type=button><span></span><span class="truncate-start min-w-0 flex-1 font-mono text-xs">');const nx=e=>b(We,{get each(){return e.files},children:t=>(()=>{var n=tC(),r=n.firstChild,o=r.firstChild,i=o.nextSibling;return D(n,b(q,{get when(){return Ue(()=>!!e.selectedPaths)()&&e.onToggle},get children(){var s=J5(),a=s.firstChild;return s.$$click=()=>e.onToggle?.(t.path),D(a,b(q,{get when(){return e.selectedPaths?.has(t.path)},get children(){return b(p0,{size:14,"aria-hidden":"true"})}})),X(u=>{var c=e.selectedPaths?.has(t.path)??!1,x=t.path,l=e.disabled,f=rt("flex h-5 w-5 items-center justify-center rounded border",e.selectedPaths?.has(t.path)?"border-primary bg-primary text-primary-foreground":"border-border");return c!==u.e&&re(s,"aria-checked",u.e=c),x!==u.t&&re(s,"aria-label",u.t=x),l!==u.a&&(s.disabled=u.a=l),f!==u.o&&Ge(a,u.o=f),u},{e:void 0,t:void 0,a:void 0,o:void 0}),s}}),r),r.$$click=()=>e.onSelect(t.path),D(o,()=>t.status),D(i,b(q,{get when(){return t.renamedFrom},get children(){var s=eC(),a=s.firstChild;return D(s,()=>t.renamedFrom,a),s}}),null),D(i,()=>t.path,null),X(s=>{var a=rt("flex min-h-11 min-w-0 flex-1 items-center gap-2 py-2 pr-4 text-left",!e.selectedPaths&&"pl-4",e.activePath===t.path&&"bg-accent"),u=t.renamedFrom?`${t.renamedFrom} → ${t.path}`:t.path,c=rt("w-6 shrink-0 text-center text-xs font-bold",$5(t.status));return a!==s.e&&Ge(r,s.e=a),u!==s.t&&re(r,"title",s.t=u),c!==s.a&&Ge(o,s.a=c),s},{e:void 0,t:void 0,a:void 0}),n})()});He(["click"]);var nC=P('<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">'),rC=P("<div>"),fu=P('<ul class="divide-y-[0.5px] divide-border">'),oC=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),iC=P('<div class="mb-2 flex rounded-lg border border-border p-0.5"role=radiogroup>'),sC=P('<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">'),aC=P('<button type=button class="min-h-11 shrink-0 rounded-lg px-3 text-sm active:bg-accent disabled:opacity-40">'),uC=P('<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">'),cC=P("<button type=button role=radio>"),pu=P('<p class="py-6 text-center text-sm text-muted-foreground">'),lC=P('<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">'),xC=P('<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">'),dC=P('<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">'),fC=P('<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>');const hu=5,rx=e=>{const[t,n]=W([]),[r,o]=W(new Set),[i,s]=W(null),[a,u]=W(""),[c,x]=W(!1),[l,f]=W(null),[p,d]=W("manual"),[h,g]=W(null),[m,E]=W(!1),[C,A]=W(!1),[B,y]=W(""),[v,k]=W(""),[w,O]=W(null),[N,R]=W(!1),[M,L]=W(!1),[H,K]=W(),_=()=>me()??void 0,G=()=>e.specId?.(),I=he(()=>!!G()),S=he(()=>l()!==null||h()!==null);let U=null;Ie(()=>U?.()),Se(()=>{const V=e.initialMessage?.()??"";V&&!c()&&u(V)}),Se(()=>{a();const V=H();V?.isConnected&&rr(V,hu)});const[z,{refetch:$,mutate:j}]=ot(_,V=>oe.getGitBranches(V));function Z(V){n(V);const J=O5(r(),i(),V);o(J.selected),s(J.active)}Se(()=>{const V=_();if(!V)return;let J=!1,de=!1;oe.getProjectChanges(V).then(Re=>{J||de||Z(Re.changes)}).catch(()=>{});const Fe=sg(V,Re=>{de=!0,Z(Re)});Ie(()=>{J=!0,Fe()})});const[te]=ot(()=>{const V=i(),J=_();return!V||!J?null:{pid:J,path:V,revision:P5(t().find(de=>de.path===V))}},V=>oe.getFileDiff(V.pid,V.path)),ie=he(()=>{const V=B().trim().toLowerCase(),J=z()?.branches??[];return V?J.filter(de=>de.toLowerCase().includes(V)):J}),ce=he(()=>{const V=z(),J=[...V?.branches??[],...V?.remoteBranches??[]],de=v().trim().toLowerCase();return de?J.filter(Fe=>Fe.toLowerCase().includes(de)):J}),le=he(()=>t().length>0&&t().every(V=>r().has(V.path))),ve=he(()=>S()?!1:p()==="agent"?!0:r().size>0&&a().trim().length>0),_e=he(()=>!S()&&(p()==="agent"||r().size>0));function Ne(V){o(J=>{const de=new Set(J);return de.has(V)?de.delete(V):de.add(V),de})}function Qe(){o(le()?new Set:new Set(t().map(V=>V.path)))}async function Je(V){const J=await oe.getProjectChanges(V);Z(J.changes)}async function it(V,J){const de=_();if(!(!de||S())){f(V);try{await J(de)}catch(Fe){De(Fe.message,"error")}finally{f(null)}}}const ee=pt();async function Q(V){const J=_(),de=G();if(!(!J||!de||S())){g(V);try{const Fe=await oe.gitOp(J,de,V);U?.(),U=E0(J,Fe.sessionId,{onEvent:Re=>{(Re.type==="turn-completed"||Re.type==="error")&&(g(null),U?.(),U=null)}}),De(F("git.agentDispatched")),ee(`/sessions/${encodeURIComponent(Fe.sessionId)}`)}catch(Fe){g(null),De(Fe.message,"error")}}}const Be=()=>p()==="agent"?void Q("commit"):void it("commit",async V=>{const J=a().trim();if(r().size===0)return void De(F("git.selectAtLeastOne"),"error");if(!J)return void De(F("git.enterCommitMsg"),"error");await oe.projectCommit(V,{message:J,paths:[...r()]}),o(new Set),s(null),u(""),De(F("git.committed")),await Je(V)}),be=()=>p()==="agent"?void Q("discard"):void it("discard",async V=>{if(r().size===0)return void De(F("git.selectAtLeastOne"),"error");await oe.projectDiscard(V,{paths:[...r()]}),o(new Set),s(null),De(F("git.discarded")),await Je(V)}),ze=()=>it("push",async V=>{const J=await oe.projectPush(V);De(F("git.pushed",{branch:J.branch}))}),ye=()=>it("pull",async V=>{const J=await oe.projectPull(V);De(J.updated?F("git.pulled",{branch:J.branch}):F("git.upToDate")),await Je(V)}),st=V=>it("checkout",async J=>{if(V===z()?.current)return;const de=await oe.checkoutGitBranch(J,V);j(Fe=>({current:de.current,branches:Fe?.branches.includes(de.current)?Fe.branches:[...Fe?.branches??[],de.current].sort(),remoteBranches:Fe?.remoteBranches??[]})),o(new Set),s(null),y(""),E(!1),De(F("git.switched",{branch:de.current})),await Je(J),await $()}),At=V=>it("merge",async J=>{try{const de=await oe.mergeGitBranch(J,V);De(de.alreadyUpToDate?F("git.mergeUpToDate",{current:de.current,branch:de.merged}):F("git.merged",{current:de.current,branch:de.merged})),O(null),k(""),await Je(J),await $()}finally{A(!1)}}),yt=()=>{if(M())return[{label:F("git.discardConfirm"),tone:"destructive",onSelect:()=>{R(!1),L(!1),be()}}];const V=[];return e.onOpenHistory&&V.push({label:F("git.history"),onSelect:()=>{R(!1),e.onOpenHistory?.()}}),V.push({label:F("git.push"),onSelect:()=>{R(!1),ze()}}),V.push({label:F("git.pull"),onSelect:()=>{R(!1),ye()}}),V.push({label:F("git.mergeBranch"),onSelect:()=>{R(!1),O(null),k(""),A(!0)}}),V};return b(Ft,{get title(){return e.title},fill:!0,get onBack(){return e.onBack},get actions(){return(()=>{var V=oC();return V.$$click=()=>{L(!1),R(!0)},D(V,b(cr,{size:20,"aria-hidden":"true"})),X(J=>{var de=F("git.more"),Fe=S();return de!==J.e&&re(V,"aria-label",J.e=de),Fe!==J.t&&(V.disabled=J.t=Fe),J},{e:void 0,t:void 0}),V})()},get footer(){return b(q,{get when(){return me()},get children(){var V=uC(),J=V.firstChild,de=J.firstChild,Fe=de.firstChild,Re=Fe.nextSibling,mt=Re.nextSibling;return D(J,b(q,{get when(){return I()},get children(){var Le=iC();return D(Le,b(We,{get each(){return[["manual",F("git.manualSelect")],["agent",F("git.agentSelect")]]},children:([qe,kt])=>(()=>{var _t=cC();return _t.$$click=()=>d(qe),D(_t,kt),X(Ot=>{var vn=p()===qe,kn=rt("min-h-9 flex-1 rounded-md text-xs active:opacity-80 disabled:opacity-40",p()===qe?"bg-primary text-primary-foreground":"text-muted-foreground"),rn=S();return vn!==Ot.e&&re(_t,"aria-checked",Ot.e=vn),kn!==Ot.t&&Ge(_t,Ot.t=kn),rn!==Ot.a&&(_t.disabled=Ot.a=rn),Ot},{e:void 0,t:void 0,a:void 0}),_t})()})),Le}}),de),D(J,b(q,{get when(){return p()==="manual"},get children(){var Le=sC();return Le.$$input=qe=>{rr(qe.currentTarget,hu),x(!0),u(qe.currentTarget.value)},Tt(K,Le),X(qe=>{var kt=F("git.commitPlaceholder"),_t=S();return kt!==qe.e&&re(Le,"placeholder",qe.e=kt),_t!==qe.t&&(Le.disabled=qe.t=_t),qe},{e:void 0,t:void 0}),X(()=>Le.value=a()),Le}}),de),D(de,b(q,{get when(){return p()==="manual"},get children(){var Le=aC();return Le.$$click=Qe,D(Le,(()=>{var qe=Ue(()=>!!le());return()=>qe()?F("git.deselectAll"):F("git.selectAll")})()),X(()=>Le.disabled=S()||t().length===0),Le}}),Fe),D(Fe,(()=>{var Le=Ue(()=>p()==="agent");return()=>Le()?F("git.agentScope",{total:t().length}):F("git.fileCount",{selected:r().size,total:t().length})})()),Re.$$click=()=>{L(!0),R(!0)},D(Re,(()=>{var Le=Ue(()=>l()==="discard"||h()==="discard");return()=>Le()?F("git.discarding"):F("git.discard")})()),mt.$$click=()=>Be(),D(mt,(()=>{var Le=Ue(()=>l()==="commit"||h()==="commit");return()=>Le()?F("git.committing"):F("git.commit")})()),X(Le=>{var qe=!_e(),kt=!ve();return qe!==Le.e&&(Re.disabled=Le.e=qe),kt!==Le.t&&(mt.disabled=Le.t=kt),Le},{e:void 0,t:void 0}),V}})},get children(){return[b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return[(()=>{var V=nC(),J=V.firstChild,de=J.nextSibling;return V.$$click=()=>{y(""),E(!0)},D(V,b(gi,{size:16,class:"shrink-0 text-muted-foreground","aria-hidden":"true"}),J),D(J,()=>z()?.current??F("git.branch")),D(de,(()=>{var Fe=Ue(()=>l()==="checkout");return()=>Fe()?F("common.loading"):F("git.switchBranch")})()),X(()=>V.disabled=S()||z.loading),V})(),b(q,{get when(){return p()==="manual"},get fallback(){return b(It,{get title(){return F("git.agentModeHint")}})},get children(){return b(q,{get when(){return t().length>0},get fallback(){return b(It,{get title(){return F("git.empty")}})},get children(){return[(()=>{var V=rC();return D(V,b(nx,{get files(){return t()},get activePath(){return i()},get selectedPaths(){return r()},get disabled(){return S()},onToggle:Ne,onSelect:J=>s(de=>de===J?null:J)})),X(()=>Ge(V,rt("scroll-y min-h-0 divide-y-[0.5px] divide-border",i()?"max-h-[38dvh] shrink-0":"flex-1"))),V})(),b(q,{get when(){return i()},children:V=>b(tx,{get path(){return V()},get patch(){return te()?.patch??""},get binary(){return te()?.binary??!1},get truncated(){return te()?.truncated??!1},get loading(){return te.loading},get error(){return Ue(()=>!!te.error)()?te.error.message:null},onClose:()=>s(null)})})]}})}})]}}),b(Gn,{get open(){return N()},get description(){return Ue(()=>!!M())()?Ue(()=>p()==="agent")()?F("git.discardAllHint"):F("git.discardHint"):void 0},get items(){return yt()},onClose:()=>{R(!1),L(!1)}}),b(Dn,{get open(){return m()},get title(){return F("git.switchBranch")},onClose:()=>E(!1),get children(){return[b(gu,{get value(){return B()},onInput:y}),b(q,{get when(){return ie().length>0},get fallback(){return(()=>{var V=pu();return D(V,()=>F("git.noBranches")),V})()},get children(){var V=fu();return D(V,b(We,{get each(){return ie()},children:J=>(()=>{var de=lC(),Fe=de.firstChild,Re=Fe.firstChild;return Fe.$$click=()=>void st(J),D(Re,J),D(Fe,b(q,{get when(){return J===z()?.current},get children(){return b(p0,{size:16,class:"shrink-0 text-primary","aria-hidden":"true"})}}),null),X(()=>Fe.disabled=S()||J===z()?.current),de})()})),V}})]}}),b(Dn,{get open(){return C()},get title(){return F("git.mergeBranch")},onClose:()=>A(!1),get children(){return[b(gu,{get value(){return v()},onInput:k}),b(q,{get when(){return ce().length>0},get fallback(){return(()=>{var V=pu();return D(V,()=>F("git.noBranches")),V})()},get children(){var V=fu();return D(V,b(We,{get each(){return ce()},children:J=>(()=>{var de=dC(),Fe=de.firstChild;return Fe.$$click=()=>O(J),D(Fe,J),D(de,b(q,{get when(){return w()===J},get children(){var Re=xC();return Re.$$click=()=>void At(J),D(Re,(()=>{var mt=Ue(()=>l()==="merge");return()=>mt()?F("git.merging"):F("git.mergeAction")})()),X(()=>Re.disabled=S()),Re}}),null),X(Re=>{var mt=rt("flex items-center gap-2",w()===J&&"bg-accent"),Le=J===z()?.current,qe=J===z()?.current?F("git.mergeSelfHint"):J;return mt!==Re.e&&Ge(de,Re.e=mt),Le!==Re.t&&(Fe.disabled=Re.t=Le),qe!==Re.a&&re(Fe,"title",Re.a=qe),Re},{e:void 0,t:void 0,a:void 0}),de})()})),V}})]}})]}})},gu=e=>(()=>{var t=fC();return t.$$input=n=>e.onInput(n.currentTarget.value),re(t,"spellcheck",!1),X(()=>re(t,"placeholder",F("git.branchFilterPlaceholder"))),X(()=>t.value=e.value),t})();He(["click","input"]);const pC=()=>{const e=Er(),t=pt(),[n]=ot(()=>{const r=me();return r?[r,e.id]:null},([r,o])=>oe.getSpec(r,o));return b(rx,{get title(){return e.id},onBack:()=>t(`/specs/${encodeURIComponent(e.id)}`),specId:()=>e.id,initialMessage:()=>l1(e.id,n()?.frontmatter.summary)})},hC="yorz:new-spec-draft:";function gC(e){return e==="feat"||e==="refct"||e==="fix"}function Ri(e){return`${hC}${e}`}function EC(e){if(!e||typeof window>"u")return{};try{const t=window.localStorage.getItem(Ri(e));if(!t)return{};const n=JSON.parse(t);return{content:typeof n.content=="string"?n.content:void 0,type:gC(n.type)?n.type:void 0,useWorktree:typeof n.useWorktree=="boolean"?n.useWorktree:void 0}}catch{return{}}}function mC(e,t){if(!(!e||typeof window>"u"))try{const n=t.content.trim().length>0||t.type!=="feat"||t.useWorktree!==!1,r=Ri(e);if(!n){window.localStorage.removeItem(r);return}window.localStorage.setItem(r,JSON.stringify(t))}catch{}}function Eu(e){return JSON.stringify(e)}function bC(e){if(!(!e||typeof window>"u"))try{window.localStorage.removeItem(Ri(e))}catch{}}function CC(e){let t=new Set,n=!1;return{setBaseline(r){t=new Set(r),n=!1},async poll(){if(!n)try{const o=(await e.listSpecs()).find(i=>!t.has(i.id));if(!o||n)return;n=!0,e.onFound(o.id)}catch{}},found:()=>n}}var AC=P('<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>'),BC=P('<p class="mt-1.5 text-xs text-destructive">'),DC=P('<p class="text-sm text-destructive">'),FC=P('<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">'),yC=P("<button type=button role=radio>"),vC=P('<img class="h-16 w-24 rounded border object-cover">'),kC=P('<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">'),_C=P('<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 mu=[{value:"feat",labelKey:"newSpec.typeFeat",hintKey:"newSpec.typeFeatHint"},{value:"refct",labelKey:"newSpec.typeRefct",hintKey:"newSpec.typeRefctHint"},{value:"fix",labelKey:"newSpec.typeFix",hintKey:"newSpec.typeFixHint"}],wC=5,SC=()=>{const e=pt(),t=()=>me()??"",[n,r]=W("feat"),[o,i]=W(""),[s,a]=W(!1),[u,c]=W(null),x=pl({projectId:t,labels:hl()});let l=null,f=null,p=!1,d="";Ie(()=>{l?.(),f?.()}),Se(c0(t,m=>{p=!0;const E=EC(m);i(E.content??""),r(E.type??"feat"),p=!1})),Se(()=>{if(p||s())return;const m={content:o(),type:n(),useWorktree:!1};Eu(m)!==d&&(d="",mC(t(),m))});const h=CC({listSpecs:()=>oe.listSpecs(t()),onFound:m=>{l?.(),l=null,f?.(),f=null,e(`/specs/${encodeURIComponent(m)}`,{replace:!0})}});async function g(m){if(m.preventDefault(),s())return;c(null);const E=o().trim();if(E.length<wC){c(F("newSpec.requirementTooShort"));return}if(x.attachments().some(C=>C.status==="failed")){c(F("chat.attachFailed"));return}if(x.hasPending()){c(F("chat.attachUploading"));return}a(!0);try{const C=t();d=Eu({content:E,type:n(),useWorktree:!1}),bC(C);const A=await oe.listSpecs(C);h.setBaseline(A.map(k=>k.id));const B={type:n(),requirement:E},y=x.draftId();y&&(B.draftId=y);const v=await oe.createSpec(C,B);"draft"in v&&v.draft?(De(F("newSpec.drafting")),f=E0(C,v.sessionId,{onEvent:k=>{k.type==="error"&&(a(!1),c(k.message||F("newSpec.createFailed")),f?.(),f=null)}}),l=Ai(C,()=>void h.poll()),h.poll()):"id"in v&&e(`/specs/${encodeURIComponent(v.id)}`,{replace:!0})}catch(C){c(C.message||F("newSpec.createFailed")),a(!1)}}return b(Ft,{get title(){return F("newSpec.title")},onBack:()=>e("/specs"),get children(){return b(q,{get when(){return t()},get fallback(){return b(Mt,{})},get children(){var m=FC(),E=m.firstChild,C=E.firstChild,A=C.nextSibling,B=A.nextSibling,y=E.nextSibling,v=y.firstChild,k=y.nextSibling,w=k.firstChild,O=w.nextSibling,N=k.nextSibling;return m.addEventListener("submit",R=>void g(R)),D(C,()=>F("newSpec.type")),D(A,b(We,{each:mu,children:R=>(()=>{var M=yC();return M.$$click=()=>r(R.value),D(M,()=>F(R.labelKey)),X(L=>{var H=n()===R.value,K=rt("min-h-11 flex-1 rounded-lg border text-sm active:opacity-80",n()===R.value?"border-primary bg-primary/10 font-medium":"border-border bg-background");return H!==L.e&&re(M,"aria-checked",L.e=H),K!==L.t&&Ge(M,L.t=K),L},{e:void 0,t:void 0}),M})()})),D(B,()=>F(mu.find(R=>R.value===n())?.hintKey??"newSpec.typeFeatHint")),D(v,()=>F("newSpec.requirement")),D(y,b(ex,{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 F("newSpec.requirementHint")},get value(){return o()},onValueChange:i}),null),D(w,()=>F("newSpec.attachments")),D(O,b(We,{get each(){return x.attachments()},children:R=>(()=>{var M=kC(),L=M.firstChild;return D(M,b(q,{get when(){return R.previewUrl},get fallback(){return(()=>{var H=_C(),K=H.firstChild;return D(K,()=>R.name),H})()},get children(){var H=vC();return X(K=>{var _=R.previewUrl,G=R.name;return _!==K.e&&re(H,"src",K.e=_),G!==K.t&&re(H,"alt",K.t=G),K},{e:void 0,t:void 0}),H}}),L),L.$$click=()=>void x.removeAttachment(R.id),D(L,b(hn,{size:12,"aria-hidden":"true"})),X(()=>re(L,"aria-label",F("common.close"))),M})()}),null),D(O,b(q,{get when(){return x.count()<nr},get children(){var R=AC(),M=R.firstChild,L=M.nextSibling;return L.addEventListener("change",H=>void x.onFileInputChange(H)),re(L,"accept",fl),R}}),null),D(k,b(q,{get when(){return x.error()},get children(){var R=BC();return D(R,()=>x.error()),R}}),null),D(m,b(q,{get when(){return u()},get children(){var R=DC();return D(R,u),R}}),N),D(N,(()=>{var R=Ue(()=>!!s());return()=>R()?F("newSpec.creating"):F("newSpec.create")})()),X(()=>N.disabled=s()),m}})}})};He(["click"]);function ox(e,t,n){const r=Math.max(0,(t??n)-e),o=Math.floor(r/1e3),i=Math.floor(o/3600),s=Math.floor(o%3600/60),a=o%60,u=c=>String(c).padStart(2,"0");return i>0?`${i}:${u(s)}:${u(a)}`:`${s}:${u(a)}`}var TC=P('<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">'),NC=P('<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">'),RC=P('<p class="px-4 py-4 text-center text-sm text-muted-foreground">'),$C=P("<div class=py-4>"),OC=P('<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 bu=e=>(()=>{var t=TC(),n=t.firstChild,r=n.nextSibling;return D(n,()=>e.title),D(r,()=>e.children),t})(),Cu=e=>(()=>{var t=NC(),n=t.firstChild,r=n.firstChild,o=r.nextSibling;return t.$$click=()=>e.onClick(),D(t,b(e.icon,{size:18,class:"shrink-0 text-muted-foreground"}),n),D(r,()=>e.label),D(o,()=>e.desc),D(t,b(wc,{size:18,class:"shrink-0 text-muted-foreground"}),null),t})(),Au=e=>(()=>{var t=RC();return D(t,()=>e.label),t})(),PC=()=>{const e=pt(),[t,{refetch:n,mutate:r}]=ot(()=>me()??void 0,p=>oe.listCommandRuns(p));Se(()=>{const p=me();if(!p)return;const d=Zc(p,h=>r(h));Ie(()=>d())});const[o,i]=W(Date.now()),s=setInterval(()=>i(Date.now()),1e3);Ie(()=>clearInterval(s));const a=he(()=>(t()??[]).filter(p=>p.status==="running")),u=async p=>{const d=me();if(d)try{await oe.clearCommandRun(d,p.runId),await oe.runCommand(d,p.commandId),De(F("ext.restarted"))}catch(h){De(h instanceof Error?h.message:String(h),"error")}},[c,x]=W(null),l=async p=>{const d=me();if(x(null),!!d)try{await oe.stopCommandRun(d,p.runId),De(F("ext.stopped"))}catch(h){De(h instanceof Error?h.message:String(h),"error")}},f=()=>{const p=c();return p?[{label:F("ext.stopConfirm"),tone:"destructive",onSelect:()=>void l(p)}]:[]};return b(Ft,{get title(){return F("ext.title")},padded:!1,get children(){return[(()=>{var p=$C();return D(p,b(bu,{get title(){return F("ext.scripts")},get children(){return[b(Cu,{icon:Mp,get label(){return F("ext.scripts")},get desc(){return F("ext.scriptsDesc")},onClick:()=>e("/ext/scripts")}),b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return b(q,{get when(){return!t.loading},get fallback(){return b(Au,{get label(){return F("common.loading")}})},get children(){return b(q,{get when(){return!t.error},get fallback(){return b(nn,{get error(){return t.error},onRetry:()=>void n()})},get children(){return b(q,{get when(){return a().length>0},get fallback(){return b(Au,{get label(){return F("ext.runningEmpty")}})},get children(){return b(We,{get each(){return a()},children:d=>(()=>{var h=OC(),g=h.firstChild,m=g.firstChild,E=m.nextSibling,C=E.firstChild,A=C.nextSibling,B=A.nextSibling,y=g.nextSibling,v=y.firstChild,k=v.nextSibling;return g.$$click=()=>e(`/ext/runs/${encodeURIComponent(d.runId)}`),D(m,()=>d.name),D(C,()=>ox(d.startedAt,d.endedAt,o())),D(B,()=>d.cli),v.$$click=()=>void u(d),D(v,b(vp,{size:20,"aria-hidden":"true"})),k.$$click=()=>x(d),D(k,b(hn,{size:20,"aria-hidden":"true"})),X(w=>{var O=F("ext.restart"),N=F("ext.stop");return O!==w.e&&re(v,"aria-label",w.e=O),N!==w.t&&re(k,"aria-label",w.t=N),w},{e:void 0,t:void 0}),h})()})}})}})}})}})]}}),null),D(p,b(bu,{get title(){return F("ext.git")},get children(){return b(Cu,{icon:gi,get label(){return F("ext.git")},get desc(){return F("ext.gitDesc")},onClick:()=>e("/ext/git")})}}),null),p})(),b(Gn,{get open(){return c()!==null},get title(){return c()?.name},get description(){return F("ext.stopHint")},get items(){return f()},onClose:()=>x(null)})]}})};He(["click"]);var IC=P('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),MC=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),LC=P('<span class="shrink-0 text-xs text-success">'),UC=P('<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">'),zC=P('<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">'),jC=P('<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 HC=()=>{const e=pt(),[t,{refetch:n,mutate:r}]=ot(()=>me()??void 0,d=>oe.listCommands(d)),[o,i]=W([]);Se(()=>{const d=me();if(!d)return;oe.listCommandRuns(d).then(i).catch(()=>{});const h=Zc(d,g=>i(g));Ie(()=>h())});const s=he(()=>new Set(o().filter(d=>d.status==="running").map(d=>d.commandId))),[a,u]=W(null),[c,x]=W(!1),l=async d=>{const h=me();if(h)try{const g=await oe.runCommand(h,d.id);e(`/ext/runs/${encodeURIComponent(g.runId)}`)}catch(g){De(g instanceof Error?g.message:F("scripts.runFailed"),"error")}},f=async d=>{const h=me();if(h){u(null);try{await oe.deleteCommand(h,d.id),r(g=>(g??[]).filter(m=>m.id!==d.id)),De(F("scripts.deleted"))}catch(g){De(g instanceof Error?g.message:String(g),"error")}}},p=()=>{const d=a();return d?[{label:F("scripts.deleteConfirm"),tone:"destructive",onSelect:()=>void f(d)}]:[]};return b(Ft,{get title(){return F("scripts.title")},padded:!1,onBack:()=>e("/ext"),get actions(){return(()=>{var d=MC();return d.$$click=()=>x(!0),D(d,b(mi,{size:20,"aria-hidden":"true"})),X(()=>re(d,"aria-label",F("scripts.add"))),d})()},get children(){return[b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return b(q,{get when(){return!t.loading},get fallback(){return b(En,{})},get children(){return b(q,{get when(){return!t.error},get fallback(){return b(nn,{get error(){return t.error},onRetry:()=>void n()})},get children(){return b(q,{get when(){return(t()??[]).length>0},get fallback(){return b(It,{get title(){return F("scripts.empty")},get hint(){return F("scripts.add")}})},get children(){var d=IC();return D(d,b(We,{get each(){return t()},children:h=>(()=>{var g=UC(),m=g.firstChild,E=m.firstChild,C=E.nextSibling,A=m.nextSibling,B=A.firstChild,y=B.nextSibling;return D(E,()=>h.name),D(C,()=>h.cli),D(g,b(q,{get when(){return s().has(h.id)},get children(){var v=LC();return D(v,()=>F("scripts.running")),v}}),A),B.$$click=()=>void l(h),D(B,b(mp,{size:20,"aria-hidden":"true"})),y.$$click=()=>u(h),D(y,b(zp,{size:20,"aria-hidden":"true"})),X(v=>{var k=F("scripts.run"),w=F("scripts.delete");return k!==v.e&&re(B,"aria-label",v.e=k),w!==v.t&&re(y,"aria-label",v.t=w),v},{e:void 0,t:void 0}),g})()})),d}})}})}})}}),b(Gn,{get open(){return a()!==null},get title(){return a()?.name},get description(){return F("scripts.deleteHint")},get items(){return p()},onClose:()=>u(null)}),b(qC,{get open(){return c()},onClose:()=>x(!1),onCreated:d=>{r(h=>[...h??[],d]),x(!1)}})]}})},qC=e=>{const[t,n]=W(""),[r,o]=W(""),[i,s]=W(!1);Se(()=>{e.open&&(n(""),o(""))});const a=he(()=>t().trim().length>0&&r().trim().length>0);async function u(){const c=me();if(!(!c||!a()||i())){s(!0);try{const x=await oe.createCommand(c,{name:t().trim(),cli:r().trim()});De(F("scripts.created")),e.onCreated(x)}catch(x){De(x instanceof Error?x.message:String(x),"error")}finally{s(!1)}}}return b(Dn,{get open(){return e.open},get title(){return F("scripts.addTitle")},get onClose(){return e.onClose},get footer(){return(()=>{var c=jC();return c.$$click=()=>void u(),D(c,()=>F("scripts.submit")),X(()=>c.disabled=i()||!a()),c})()},get children(){var c=zC(),x=c.firstChild,l=x.firstChild,f=l.nextSibling,p=x.nextSibling,d=p.firstChild,h=d.nextSibling;return D(l,()=>F("scripts.name")),f.$$input=g=>n(g.currentTarget.value),D(d,()=>F("scripts.cli")),h.$$input=g=>o(g.currentTarget.value),re(h,"spellcheck",!1),X(g=>{var m=F("scripts.namePlaceholder"),E=F("scripts.cliPlaceholder");return m!==g.e&&re(f,"placeholder",g.e=m),E!==g.t&&re(h,"placeholder",g.t=E),g},{e:void 0,t:void 0}),X(()=>f.value=t()),X(()=>h.value=r()),c}})};He(["click","input"]);function Bu(){return{text:"",nextOffset:0,truncated:!1}}function GC(e){return{text:e.text,nextOffset:e.offset+ai(e.text),truncated:e.truncated}}function KC(e,t){return t.offset===e.nextOffset?{state:{text:e.text+t.chunk,nextOffset:e.nextOffset+ai(t.chunk),truncated:e.truncated},needsRefetch:!1}:t.offset+ai(t.chunk)<=e.nextOffset?{state:e,needsRefetch:!1}:{state:e,needsRefetch:!0}}function Du(e,t){return e.text.length<=t?e:{text:e.text.slice(e.text.length-t),nextOffset:e.nextOffset,truncated:!0}}function ai(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e).length:e.length}const WC=80,Fu=4e5;function VC(e){const[t,{mutate:n}]=ot(()=>[e.projectId(),e.runId()],async([E,C])=>E&&C?oe.getCommandRun(E,C):null),[r,o]=W(Bu()),[i,s]=W(null),[a,u]=W(!1),[c,x]=W(Date.now());let l=null,f=null,p=!1;const d=setInterval(()=>x(Date.now()),1e3);Ie(()=>clearInterval(d)),Ie(()=>{f!==null&&window.clearTimeout(f)});function h(E){l=Du(E,Fu),f===null&&(f=window.setTimeout(()=>{f=null,l&&(o(l),l=null,e.onFlush?.())},WC))}async function g(){const E=e.projectId(),C=e.runId();if(!(!E||!C||p)){p=!0;try{const A=await oe.readCommandOutput(E,C),B=Du(GC(A),Fu);l=null,o(B),s(null),e.onReset?.()}catch(A){s(A.message)}finally{p=!1}}}Se(()=>{const E=e.projectId(),C=e.runId();if(!E||!C)return;o(Bu()),g();const A=ig(E,C,{onOutput:B=>{const y=l??r(),v=KC(y,B);v.needsRefetch?g():h(v.state)},onRun:B=>n(B),onError:B=>s(B)});Ie(A)});async function m(){const E=e.projectId(),C=t();if(!E||!C)return{ok:!1};u(!0);try{const A=await oe.stopCommandRun(E,C.runId);return n(A.run),{ok:!0}}catch(A){return{ok:!1,error:A.message}}finally{u(!1)}}return{run:t,text:()=>r().text,truncated:()=>r().truncated,loadError:i,stopping:a,now:c,reload:g,stop:m}}var ZC=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),YC=P('<span class="text-xs text-muted-foreground">'),XC=P('<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">'),QC=P('<p class="border-b border-border px-4 py-2 text-xs text-muted-foreground">'),JC=P('<p class="border-b border-border px-4 py-2 text-xs text-destructive">'),e3=P('<pre class="m-0 whitespace-pre-wrap break-all px-4 py-3 font-mono text-xs leading-snug">');const t3=160,n3={running:"text-success",exited:"text-muted-foreground",killed:"text-warning",failed:"text-destructive"},r3={running:"runOutput.statusRunning",exited:"runOutput.statusExited",killed:"runOutput.statusKilled",failed:"runOutput.statusFailed"},o3=()=>{const e=pt(),t=Er();let n,r=!0;const o=()=>{n&&(n.scrollTop=n.scrollHeight)},i=VC({projectId:()=>me()??void 0,runId:()=>t.runId,onFlush:()=>{r&&o()},onReset:o}),[s,a]=W(!1),[u,c]=W(!1),x=()=>{a(!1),c(!1)},l=async()=>{x();const d=await i.stop();d.ok?De(F("runOutput.stopped")):d.error&&De(d.error,"error")},f=async d=>{x();const h=await m0(d);De(F(h?"runOutput.copied":"runOutput.copyFailed"),h?"default":"error")},p=()=>{const d=i.run();if(!d)return[];if(u())return[{label:F("runOutput.stopConfirm"),tone:"destructive",onSelect:()=>void l()}];const h=[];return d.status==="running"&&h.push({label:F("runOutput.stop"),tone:"destructive",onSelect:()=>c(!0)}),h.push({label:F("runOutput.copyOutput"),onSelect:()=>void f(i.text())}),h.push({label:F("runOutput.copyPath"),onSelect:()=>void f(d.logFile)}),h};return b(Ft,{get title(){return i.run()?.name||F("runOutput.title")},padded:!1,onBack:()=>e("/ext"),scrollRef:d=>n=d,onScroll:()=>{n&&(r=n.scrollHeight-n.scrollTop-n.clientHeight<=t3)},get actions(){return b(q,{get when(){return i.run()},get children(){var d=ZC();return d.$$click=()=>{c(!1),a(!0)},D(d,b(cr,{size:20,"aria-hidden":"true"})),X(()=>re(d,"aria-label",F("specDetail.more"))),d}})},get children(){return[b(q,{get when(){return i.run()},get fallback(){return b(It,{get title(){return i.loadError()??F("common.loading")}})},children:d=>[(()=>{var h=XC(),g=h.firstChild,m=g.firstChild,E=m.nextSibling,C=g.nextSibling;return D(m,()=>F(r3[d().status])),D(E,()=>ox(d().startedAt,d().endedAt,i.now())),D(g,b(q,{get when(){return d().status!=="running"},get children(){var A=YC();return D(A,(()=>{var B=Ue(()=>!!d().signal);return()=>B()?`${F("runOutput.signal")} ${d().signal}`:`${F("runOutput.exitCode")} ${d().exitCode??"—"}`})()),A}}),null),D(C,()=>d().cli),X(()=>Ge(m,`shrink-0 text-xs font-medium ${n3[d().status]}`)),h})(),b(q,{get when(){return i.truncated()},get children(){var h=QC();return D(h,()=>F("runOutput.truncated")),h}}),b(q,{get when(){return i.loadError()},get children(){var h=JC();return D(h,()=>i.loadError()),h}}),(()=>{var h=e3();return D(h,()=>i.text()||F("runOutput.outputEmpty")),h})()]}),b(Gn,{get open(){return s()},get title(){return i.run()?.name},get description(){return Ue(()=>!!u())()?F("runOutput.stopHint"):void 0},get items(){return p()},onClose:x})]}})};He(["click"]);const i3=()=>{const e=pt();return b(rx,{get title(){return F("git.title")},onBack:()=>e("/ext"),onOpenHistory:()=>e("/ext/git/history")})};var s3=P('<div class="shrink-0 border-b border-border bg-card px-4 py-3"><input type=search class="w-full rounded-lg border border-border bg-background px-3 py-2 text-base outline-none focus:border-primary">'),a3=P('<button type=button class="flex min-h-12 w-full items-center justify-center gap-2 px-4 text-sm text-primary active:bg-accent disabled:opacity-40">'),u3=P("<div>"),c3=P('<div class="divide-y-[0.5px] divide-border border-t bg-muted/20">'),l3=P('<article><button type=button class="grid min-h-14 w-full grid-cols-[1fr_auto] gap-x-3 gap-y-1 px-4 py-2 text-left active:bg-accent"><span class="flex min-w-0 items-center gap-2 text-sm font-medium"><span class="line-clamp-2 break-words"></span></span><time class="text-xs text-muted-foreground"></time><span class="col-start-1 ml-6 truncate text-xs text-muted-foreground"></span><code class="col-start-2 text-xs text-muted-foreground">'),x3=P("<p>");qn("en",tl);qn("zh-CN",Xc);const d3=()=>{const e=pt(),{lng:t}=h0(),[n,r]=W(""),[o,i]=W(""),[s,a]=W([]),[u,c]=W(null),[x,l]=W(!0),[f,p]=W(!1),[d,h]=W(null),[g,m]=W(null),[E,C]=W([]),[A,B]=W(!1),[y,v]=W(null),[k,w]=W(null);let O,N=0,R=0,M="";Ie(()=>clearTimeout(O));async function L(I){const S=me();if(!S){l(!1);return}const U=++N;i(I),l(!0),p(!1),h(null),a([]),c(null),m(null),w(null);try{const z=await oe.getGitHistory(S,I);if(U!==N)return;a(z.commits),c(z.nextCursor)}catch(z){U===N&&h(z.message)}finally{U===N&&l(!1)}}Se(()=>{const I=me();!I||I===M||(M=I,L(n().trim()))});function H(I){r(I),clearTimeout(O),O=setTimeout(()=>void L(I.trim()),250)}async function K(){const I=me(),S=u();if(!I||S===null||f())return;const U=N;p(!0),h(null);try{const z=await oe.getGitHistory(I,o(),S);if(U!==N)return;a($=>{const j=new Set($.map(Z=>Z.sha));return[...$,...z.commits.filter(Z=>!j.has(Z.sha))]}),c(z.nextCursor)}catch(z){U===N&&h(z.message)}finally{U===N&&p(!1)}}async function _(I){const S=me();if(!S)return;if(g()===I.sha){m(null),w(null);return}const U=++R;m(I.sha),C([]),w(null),B(!0),v(null);try{const z=await oe.getGitCommitFiles(S,I.sha);U===R&&C(z.files)}catch(z){U===R&&v(z.message)}finally{U===R&&B(!1)}}const[G]=ot(()=>{const I=me(),S=g(),U=k();return I&&S&&U?{pid:I,sha:S,path:U}:null},I=>oe.getGitCommitFileDiff(I.pid,I.sha,I.path));return b(Ft,{get title(){return F("git.history")},fill:!0,onBack:()=>e("/ext/git"),get children(){return b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return[(()=>{var I=s3(),S=I.firstChild;return S.$$input=U=>H(U.currentTarget.value),X(U=>{var z=F("git.historySearchPlaceholder"),$=F("git.historySearchPlaceholder");return z!==U.e&&re(S,"placeholder",U.e=z),$!==U.t&&re(S,"aria-label",U.t=$),U},{e:void 0,t:void 0}),X(()=>S.value=n()),I})(),(()=>{var I=u3();return D(I,b(q,{get when(){return!x()},get fallback(){return b(On,{loading:!0,get text(){return F("git.historyLoading")}})},get children(){return b(q,{get when(){return!d()},get fallback(){return b(On,{get text(){return d()},tone:"error"})},get children(){return b(q,{get when(){return s().length>0},get fallback(){return b(On,{get text(){return F("git.historyEmpty")}})},get children(){return[b(We,{get each(){return s()},children:S=>(()=>{var U=l3(),z=U.firstChild,$=z.firstChild,j=$.firstChild,Z=$.nextSibling,te=Z.nextSibling,ie=te.nextSibling;return z.$$click=()=>void _(S),D($,(()=>{var ce=Ue(()=>g()===S.sha);return()=>ce()?b(hi,{size:16,class:"shrink-0"}):b(wc,{size:16,class:"shrink-0"})})(),j),D(j,()=>S.subject),D(Z,()=>Yc(S.committedAt,t())),D(te,()=>S.authorName),D(ie,()=>S.sha.slice(0,8)),D(U,b(q,{get when(){return g()===S.sha},get children(){var ce=c3();return D(ce,b(q,{get when(){return!A()},get fallback(){return b(On,{loading:!0,get text(){return F("git.historyFilesLoading")}})},get children(){return b(q,{get when(){return!y()},get fallback(){return b(On,{get text(){return y()},tone:"error"})},get children(){return b(q,{get when(){return E().length>0},get fallback(){return b(On,{get text(){return F("git.historyNoFiles")}})},get children(){return b(nx,{get files(){return E()},get activePath(){return k()},onSelect:le=>w(ve=>ve===le?null:le)})}})}})}})),ce}}),null),X(ce=>{var le=g()===S.sha,ve=S.committedAt,_e=S.committedAt;return le!==ce.e&&re(z,"aria-expanded",ce.e=le),ve!==ce.t&&re(Z,"datetime",ce.t=ve),_e!==ce.a&&re(Z,"title",ce.a=_e),ce},{e:void 0,t:void 0,a:void 0}),U})()}),b(q,{get when(){return u()!==null},get children(){var S=a3();return S.$$click=()=>void K(),D(S,b(q,{get when(){return f()},get children(){return b(Ei,{size:16,class:"animate-spin"})}}),null),D(S,(()=>{var U=Ue(()=>!!f());return()=>U()?F("git.historyLoadingMore"):F("git.historyLoadMore")})(),null),X(()=>S.disabled=f()),S}})]}})}})}})),X(()=>Ge(I,rt("scroll-y min-h-0 divide-y-[0.5px] divide-border bg-card",k()?"max-h-[52dvh] shrink-0":"flex-1"))),I})(),b(q,{get when(){return k()},children:I=>b(tx,{get path(){return I()},get patch(){return G()?.patch??""},get binary(){return G()?.binary??!1},get truncated(){return G()?.truncated??!1},get loading(){return G.loading},get error(){return Ue(()=>!!G.error)()?G.error.message:null},onClose:()=>w(null)})})]}})}})},On=e=>(()=>{var t=x3();return D(t,b(q,{get when(){return e.loading},get children(){return b(Ei,{size:16,class:"animate-spin"})}}),null),D(t,()=>e.text,null),X(()=>Ge(t,rt("flex items-center justify-center gap-2 px-4 py-8 text-center text-sm",e.tone==="error"?"text-destructive":"text-muted-foreground"))),t})();He(["input","click"]);function ix(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}`}function yu(e){return(e[0]??"?").toUpperCase()}function f3(e){const t=new Set(e.map(s=>s.id)),n=new Map,r=s=>s.worktree&&t.has(s.worktree.mainProjectId)?s.worktree.mainProjectId:s.id;e.forEach((s,a)=>{const u=r(s),c=n.get(u);c?c.push(a):n.set(u,[a])});const o=Array.from(n.entries()).map(([s,a])=>({key:s,idxs:a,freshness:Math.min(...a)}));o.sort((s,a)=>s.freshness-a.freshness||(s.key<a.key?-1:s.key>a.key?1:0));const i=[];for(const s of o){const a=s.idxs.length>=2,u=[...s.idxs].sort((l,f)=>{const p=e[l].id===s.key?0:1,d=e[f].id===s.key?0:1;return p-d||l-f}),c=u.find(l=>e[l].id===s.key)??u[0],x=yu(e[c].name);u.forEach((l,f)=>{i.push({project:e[l],groupId:s.key,grouped:a,indexInGroup:a?f:0,groupSize:s.idxs.length,letter:a?x:yu(e[l].name)})})}return i}var p3=P('<ul class="divide-y-[0.5px] divide-border border-b-[0.5px] border-border bg-card">'),h3=P('<button type=button class="tap-target flex items-center justify-center text-muted-foreground active:opacity-60">'),g3=P('<li class="relative 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 E3=()=>{const e=pt(),t=n=>{n.id!==me()&&(ti(n.id),De(F("projects.switched")))};return b(Ft,{get title(){return F("projects.title")},padded:!1,get actions(){return(()=>{var n=h3();return n.$$click=()=>e("/settings/global"),D(n,b(cr,{size:20,"aria-hidden":"true"})),X(()=>re(n,"aria-label",F("projects.globalSettings"))),n})()},get children(){return b(q,{get when(){return!Pn.loading},get fallback(){return b(En,{})},get children(){return b(q,{get when(){return!Pn.error},get fallback(){return b(nn,{get error(){return Pn.error},onRetry:()=>void nl()})},get children(){return b(q,{get when(){return(Pn()??[]).length>0},get fallback(){return b(It,{get title(){return F("common.emptyProjects")},get hint(){return F("common.emptyProjectsHint")}})},get children(){var n=p3();return D(n,b(We,{get each(){return f3(Pn()??[])},children:r=>{const o=r.project;return(()=>{var i=g3(),s=i.firstChild,a=s.firstChild,u=a.nextSibling,c=u.firstChild,x=c.nextSibling,l=s.nextSibling;return s.$$click=()=>t(o),D(a,b(q,{get when(){return o.id===me()},get children(){return b(p0,{size:18,class:"text-primary","aria-hidden":"true"})}})),D(c,()=>ix(o)),D(x,()=>o.path),l.$$click=f=>{f.stopPropagation(),ti(o.id),e("/settings/project")},D(l,b(cr,{size:18,"aria-hidden":"true"})),X(f=>{var p=o.id===me()?"true":void 0,d=F("projects.projectSettings");return p!==f.e&&re(s,"aria-current",f.e=p),d!==f.t&&re(l,"aria-label",f.t=d),f},{e:void 0,t:void 0}),i})()}})),n}})}})}})}})};He(["click"]);var m3=P('<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">'),b3=P('<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>'),C3=P("<button type=button>"),A3=P('<label class="flex items-center justify-between gap-3 px-4 py-3"><span class="flex min-w-0 flex-1 items-center gap-2 text-sm"></span><input type=checkbox class="peer sr-only"><span aria-hidden=true><span>');const Jn=e=>(()=>{var t=m3(),n=t.firstChild,r=n.nextSibling;return D(n,()=>e.title),D(r,()=>e.children),t})();function zo(e){return(()=>{var t=b3(),n=t.firstChild,r=n.nextSibling;return D(n,()=>e.label),D(r,b(We,{get each(){return e.options},children:o=>(()=>{var i=C3();return i.$$click=()=>e.onChange(o.value),D(i,()=>o.label),X(s=>{var a=rt("min-h-9 px-3 text-xs transition-colors",e.value()===o.value?"bg-primary-soft text-foreground":"bg-background text-muted-foreground"),u=e.value()===o.value;return a!==s.e&&Ge(i,s.e=a),u!==s.t&&re(i,"aria-pressed",s.t=u),s},{e:void 0,t:void 0}),i})()})),X(()=>re(r,"aria-label",e.label)),t})()}const B3=e=>(()=>{var t=A3(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild;return D(n,()=>e.label,null),D(n,b(q,{get when(){return e.busy?.()},get children(){return b(Ei,{"aria-hidden":"true",class:"size-3.5 shrink-0 animate-spin text-muted-foreground"})}}),null),r.addEventListener("change",s=>e.onChange(s.currentTarget.checked)),X(s=>{var a=e.busy?.(),u=rt("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",e.busy?.()&&"opacity-60"),c=rt("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&&(r.disabled=s.e=a),u!==s.t&&Ge(o,s.t=u),c!==s.a&&Ge(i,s.a=c),s},{e:void 0,t:void 0,a:void 0}),X(()=>r.checked=e.checked()),t})();He(["click"]);var D3=P('<div class="flex items-center justify-between gap-3 px-4 py-3"><span class="min-w-0 flex-1 text-sm"></span><button type=button class="flex min-h-11 min-w-0 max-w-[65%] items-center gap-2 rounded-md border border-input bg-background px-3 text-sm text-foreground disabled:opacity-60"><span class="min-w-0 flex-1 truncate text-left">'),F3=P('<input type=search class="mb-3 h-11 w-full rounded-md border border-input bg-background px-3 text-sm focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring">'),y3=P('<ul class="divide-y-[0.5px] divide-border">'),v3=P('<p class="py-6 text-center text-sm text-muted-foreground">'),k3=P('<li><button type=button class="flex min-h-11 w-full items-center gap-2 py-2 text-left text-sm"><span class="min-w-0 flex-1 truncate">');function Ln(e){const[t,n]=W(!1),[r,o]=W(""),i=he(()=>e.options.find(c=>c.value===e.value())??null),s=he(()=>{const c=r().trim().toLocaleLowerCase();return c?e.options.filter(x=>x.value===""||x.label.toLocaleLowerCase().includes(c)||x.value.toLocaleLowerCase().includes(c)):e.options}),a=()=>{n(!1),o("")},u=c=>{e.onChange(c),a()};return[(()=>{var c=D3(),x=c.firstChild,l=x.nextSibling,f=l.firstChild;return D(x,()=>e.label),l.$$click=()=>n(!0),D(f,()=>i()?.label??e.value()),D(l,b(U9,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),null),X(p=>{var d=e.disabled?.(),h=e.label;return d!==p.e&&(l.disabled=p.e=d),h!==p.t&&re(l,"aria-label",p.t=h),p},{e:void 0,t:void 0}),c})(),b(Dn,{get open(){return t()},get title(){return e.label},onClose:a,get children(){return[b(q,{get when(){return e.searchable},get children(){var c=F3();return c.$$input=x=>o(x.currentTarget.value),X(()=>re(c,"placeholder",e.filterPlaceholder)),X(()=>c.value=r()),c}}),b(q,{get when(){return s().length>0},get fallback(){return(()=>{var c=v3();return D(c,()=>e.emptyText),c})()},get children(){var c=y3();return D(c,b(We,{get each(){return s()},children:x=>(()=>{var l=k3(),f=l.firstChild,p=f.firstChild;return f.$$click=()=>u(x.value),D(p,()=>x.label),D(f,b(q,{get when(){return x.value===e.value()},get children(){return b(p0,{class:"size-4 shrink-0 text-primary","aria-hidden":"true"})}}),null),X(d=>{var h=x.label,g=x.value===e.value();return h!==d.e&&re(f,"title",d.e=h),g!==d.t&&re(f,"aria-pressed",d.t=g),d},{e:void 0,t:void 0}),l})()})),c}})]}})]}He(["click","input"]);function sx(){let e=Promise.resolve(),t=0;return{enqueue(n){const r=++t,o=e.then(n.task);return e=o.then(()=>{},()=>{}),o.then(i=>{r===t&&n.onLatestSuccess?.(i)},i=>{r===t&&n.onLatestError?.(i)})},whenIdle(){return e}}}var vu=P('<div class="flex items-center justify-between px-4 py-3 text-sm"><span></span><span class=text-muted-foreground>'),_3=P('<span class="text-xs text-muted-foreground">'),w3=P('<div class="flex flex-col gap-1 px-4 py-3"><div class="flex items-center justify-between"><span class="text-sm text-muted-foreground"></span><span class="text-xs text-muted-foreground"></span></div><span class="text-xs text-muted-foreground">');const ku={claude:"Claude",codex:"Codex",opencode:"opencode",pi:"Pi"},S3=[{value:"zh-CN",label:"中文"},{value:"en",label:"English"}],T3=()=>{const e=pt(),{lng:t,changeLanguage:n}=h0(),[r,{refetch:o,mutate:i}]=ot(()=>oe.getGlobalConfig()),[s]=ot(()=>oe.listGlobalAgents()),[a]=ot(()=>r()?.agent.defaultKind,m=>oe.listGlobalAgentModels(m)),u=Fc(),[c,x]=W(!1),l=sx(),f=()=>{const E=(s()??[]).map(B=>({value:B.id,label:B.source==="external"?B.displayName:ku[B.id]??B.displayName})),C=E.length>0?E:Object.entries(ku).map(([B,y])=>({value:B,label:y})),A=r()?.agent.defaultKind;return A&&!C.some(B=>B.value===A)&&C.push({value:A,label:A}),C},p=m=>{const E=[{value:"",label:F("globalSettings.agentDefaultOption")},...(a()?.models??[]).map(A=>({value:A.id,label:A.displayName}))],C=m.agent.model??"";return C&&!E.some(A=>A.value===C)&&E.push({value:C,label:C}),E},d=m=>{const E=m.agent.model??"",C=E?a()?.models.find(y=>y.id===E)?.reasoningEfforts??[]:a()?.defaultReasoningEfforts??[],A=[{value:"",label:F("globalSettings.agentDefaultOption")},...C.map(y=>({value:y.id,label:y.displayName}))],B=m.agent.reasoningEffort??"";return B&&!A.some(y=>y.value===B)&&A.push({value:B,label:B}),A},h=async m=>{const E=r();i(m),await l.enqueue({task:()=>oe.updateGlobalConfig(m),onLatestSuccess:C=>i(C.config),onLatestError:C=>{i(E),De(C instanceof Error?C.message:String(C),"error")}})},g=async(m,E)=>{if(!c()){x(!0);try{E?await r9():await o9(),await h({...m,notifications:{...m.notifications,push:{enabled:E}}})}catch(C){console.error("[push] toggle failed",C);const A=C instanceof Error?C.message:String(C);if(A==="permission-denied")De(F("globalSettings.pushPermissionDenied"),"error");else if(A==="push-unsupported")De(F("globalSettings.pushNeedsHttps"),"error");else{const B=C instanceof Error?`${C.name}: ${C.message}`:String(C);De(`${F("globalSettings.pushFailed")}(${B})`,"error")}}finally{x(!1)}}};return b(Ft,{get title(){return F("globalSettings.title")},onBack:()=>e("/projects"),get children(){return b(q,{get when(){return!r.loading},get fallback(){return b(En,{})},get children(){return b(q,{get when(){return!r.error},get fallback(){return b(nn,{get error(){return r.error},onRetry:()=>void o()})},get children(){return b(q,{get when(){return r()},children:m=>[b(Jn,{get title(){return F("globalSettings.agent")},get children(){return[b(Ln,{get label(){return F("globalSettings.defaultKind")},get options(){return f()},value:()=>m().agent.defaultKind,onChange:E=>void h({...m(),agent:{defaultKind:E}})}),b(Ln,{get label(){return F("globalSettings.model")},get options(){return p(m())},value:()=>m().agent.model??"",get searchable(){return(a()?.models.length??0)>10},get filterPlaceholder(){return F("common.filterOptions")},get emptyText(){return F("common.noMatchingOptions")},disabled:()=>a.loading||p(m()).length<=1,onChange:E=>void h({...m(),agent:{defaultKind:m().agent.defaultKind,...E?{model:E}:{}}})}),b(Ln,{get label(){return F("globalSettings.reasoningEffort")},get options(){return d(m())},value:()=>m().agent.reasoningEffort??"",disabled:()=>a.loading||d(m()).length<=1,onChange:E=>void h({...m(),agent:{defaultKind:m().agent.defaultKind,...m().agent.model?{model:m().agent.model}:{},...E?{reasoningEffort:E}:{}}})})]}}),b(Jn,{get title(){return F("globalSettings.notifications")},get children(){return b(q,{when:u,get fallback(){return(()=>{var E=w3(),C=E.firstChild,A=C.firstChild,B=A.nextSibling,y=C.nextSibling;return D(A,()=>F("globalSettings.pushNotification")),D(B,()=>F("globalSettings.pushUnavailable")),D(y,()=>F("globalSettings.pushNeedsHttps")),D(E,b(q,{get when(){return!ds()},get children(){var v=_3();return D(v,()=>F("globalSettings.pushNeedsInstall")),v}}),null),E})()},get children(){return b(B3,{get label(){return F("globalSettings.pushNotification")},checked:()=>m().notifications.push.enabled,busy:c,onChange:E=>void g(m(),E)})}})}}),b(Jn,{get title(){return F("globalSettings.appearance")},get children(){return[b(zo,{get label(){return F("globalSettings.themeMode")},get options(){return xc.map(E=>({value:E,label:F(`theme.${E}`)}))},value:e0,onChange:Mf}),b(zo,{get label(){return F("globalSettings.themeName")},get options(){return dc.map(E=>({value:E,label:F(`theme.${E}`)}))},value:t0,onChange:Lf}),b(zo,{get label(){return F("globalSettings.language")},options:S3,value:()=>t().startsWith("zh")?"zh-CN":"en",onChange:E=>n(E)})]}}),b(Jn,{get title(){return F("globalSettings.about")},get children(){return[(()=>{var E=vu(),C=E.firstChild,A=C.nextSibling;return D(C,()=>F("globalSettings.version")),D(A,"0.14.0"),E})(),(()=>{var E=vu(),C=E.firstChild,A=C.nextSibling;return D(C,()=>F("globalSettings.installState")),D(A,(()=>{var B=Ue(()=>!!ds());return()=>B()?F("globalSettings.installed"):F("globalSettings.browser")})()),E})()]}})]})}})}})}})},_u={claude:"Claude",codex:"Codex",opencode:"opencode",pi:"Pi"},N3=()=>{const e=pt(),[t,{refetch:n,mutate:r}]=ot(()=>me()??void 0,g=>oe.getProjectConfig(g)),[o]=ot(()=>me()??void 0,g=>oe.listAgents(g)),i=he(()=>{const g=me(),m=t()?.agent.kind;return g&&m&&m!=="inherit"?{pid:g,kind:m}:void 0}),[s]=ot(i,({pid:g,kind:m})=>oe.listAgentModels(g,m)),a=sx(),u=()=>{const g=[{value:"inherit",label:F("projectSettings.inherit")},...(o()??[]).map(E=>({value:E.id,label:E.source==="external"?E.displayName:_u[E.id]??E.displayName}))],m=t()?.agent.kind;return m&&!g.some(E=>E.value===m)&&g.push({value:m,label:_u[m]??m}),g},c=g=>{const m=[{value:"",label:F("projectSettings.agentDefaultOption")},...(s()?.models??[]).map(C=>({value:C.id,label:C.displayName}))],E=g.agent.model??"";return E&&!m.some(C=>C.value===E)&&m.push({value:E,label:E}),m},x=g=>{const m=g.agent.model??"",E=m?s()?.models.find(B=>B.id===m)?.reasoningEfforts??[]:s()?.defaultReasoningEfforts??[],C=[{value:"",label:F("projectSettings.agentDefaultOption")},...E.map(B=>({value:B.id,label:B.displayName}))],A=g.agent.reasoningEffort??"";return A&&!C.some(B=>B.value===A)&&C.push({value:A,label:A}),C},l=he(()=>{const g=Kg();return g?ix(g):F("projectSettings.title")}),f=async g=>{const m=me(),E=t();!m||!E||(r({...E,agent:g}),await a.enqueue({task:()=>oe.updateProjectConfig(m,{agent:g,specsDir:E.specsDir}),onLatestSuccess:C=>r(C.config),onLatestError:C=>{r(E),De(C instanceof Error?C.message:String(C),"error")}}))},p=g=>void f({kind:g}),d=(g,m)=>void f({kind:g.agent.kind,...m?{model:m}:{}}),h=(g,m)=>void f({kind:g.agent.kind,...g.agent.model?{model:g.agent.model}:{},...m?{reasoningEffort:m}:{}});return b(Ft,{get title(){return l()},onBack:()=>e("/projects"),get children(){return b(q,{get when(){return me()},get fallback(){return b(Mt,{})},get children(){return b(q,{get when(){return!t.loading},get fallback(){return b(En,{})},get children(){return b(q,{get when(){return!t.error},get fallback(){return b(nn,{get error(){return t.error},onRetry:()=>void n()})},get children(){return b(q,{get when(){return t()},children:g=>b(Jn,{get title(){return F("projectSettings.agent")},get children(){return[b(Ln,{get label(){return F("projectSettings.kind")},get options(){return u()},value:()=>g().agent.kind,onChange:p}),b(Ln,{get label(){return F("projectSettings.model")},get options(){return c(g())},value:()=>g().agent.model??"",get searchable(){return(s()?.models.length??0)>10},get filterPlaceholder(){return F("common.filterOptions")},get emptyText(){return F("common.noMatchingOptions")},disabled:()=>g().agent.kind==="inherit"||s.loading||c(g()).length<=1,onChange:m=>d(g(),m)}),b(Ln,{get label(){return F("projectSettings.reasoningEffort")},get options(){return x(g())},value:()=>g().agent.reasoningEffort??"",disabled:()=>g().agent.kind==="inherit"||s.loading||x(g()).length<=1,onChange:m=>h(g(),m)})]}})})}})}})}})}})};function R3(e){return(...t)=>{for(const n of e)n&&n(...t)}}function $3(...e){return R3(e)}function O3(e){return Object.prototype.toString.call(e)==="[object String]"}function P3(e,t){return Me(e,t)}var Qn=new Map,wu=new Set;function Su(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=Qn.get(n.target);r||(r=new Set,Qn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Qn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Qn.delete(n.target)),Qn.size===0)){for(const o of wu)o();wu.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Su():document.addEventListener("DOMContentLoaded",Su));function I3(e,t){const[n,r]=W(Tu(t?.()));return Se(()=>{r(e()?.tagName.toLowerCase()||Tu(t?.()))}),n}function Tu(e){return O3(e)?e:void 0}function M3(e){const[t,n]=Hn(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return b(Vu,Me(n,{get component(){return t.as}}))}var L3=Object.defineProperty,U3=(e,t)=>{for(var n in t)L3(e,n,{get:t[n],enumerable:!0})},z3={};U3(z3,{Button:()=>ux,Root:()=>ax});var j3=["button","color","file","image","reset","submit"];function H3(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?j3.indexOf(e.type)!==-1:!1}function ax(e){let t;const n=P3({type:"button"},e),[r,o]=Hn(n,["ref","type","disabled"]),i=I3(()=>t,()=>"button"),s=he(()=>{const c=i();return c==null?!1:H3({tagName:c,type:r.type})}),a=he(()=>i()==="input"),u=he(()=>i()==="a"&&t?.getAttribute("href")!=null);return b(M3,Me({as:"button",ref(c){var x=$3(l=>t=l,r.ref);typeof x=="function"&&x(c)},get type(){return Ue(()=>!!(s()||a()))()?r.type:void 0},get role(){return!s()&&!u()?"button":void 0},get tabIndex(){return!s()&&!u()&&!r.disabled?0:void 0},get disabled(){return Ue(()=>!!(s()||a()))()?r.disabled:void 0},get"aria-disabled"(){return!s()&&!a()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var ux=ax;const Nu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ru=Nc,q3=(e,t)=>n=>{var r;if(t?.variants==null)return Ru(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const x=n?.[c],l=i?.[c];if(x===null)return null;const f=Nu(x)||Nu(l);return o[c][f]}),a=n&&Object.entries(n).reduce((c,x)=>{let[l,f]=x;return f===void 0||(c[l]=f),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,x)=>{let{class:l,className:f,...p}=x;return Object.entries(p).every(d=>{let[h,g]=d;return Array.isArray(g)?g.includes({...i,...a}[h]):{...i,...a}[h]===g})?[...c,l,f]:c},[]);return Ru(e,s,u,n?.class,n?.className)},cx=q3("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"}}),$u=e=>{const[t,n]=Hn(e,["class","variant","size"]);return b(ux,Me({get class(){return rt(cx({size:t.size,variant:t.variant}),t.class)}},n))};var G3=P('<div class="flex flex-col items-center gap-4 py-16"><p class="text-sm text-muted-foreground">');const K3=()=>b(Ft,{get title(){return F("notFound.title")},get children(){var e=G3(),t=e.firstChild;return D(t,()=>F("notFound.title")),D(e,b(rc,{href:"/",get class(){return cx({variant:"outline"})},get children(){return F("notFound.back")}}),null),e}});var qr={exports:{}},W3=qr.exports,Ou;function V3(){return Ou||(Ou=1,(function(e,t){(function(r,o){e.exports=o()})(typeof self<"u"?self:W3,function(){return(function(n){var r={};function o(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=r,o.d=function(i,s,a){o.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:a})},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=3)})([(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function s(a,u){this.width=u,this.height=a.length/u,this.data=a}return s.createEmpty=function(a,u){return new s(new Uint8ClampedArray(a*u),a)},s.prototype.get=function(a,u){return a<0||a>=this.width||u<0||u>=this.height?!1:!!this.data[u*this.width+a]},s.prototype.set=function(a,u,c){this.data[u*this.width+a]=c?1:0},s.prototype.setRegion=function(a,u,c,x,l){for(var f=u;f<u+x;f++)for(var p=a;p<a+c;p++)this.set(p,f,!!l)},s})();r.BitMatrix=i}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(2);function s(u,c){return u^c}r.addOrSubtractGF=s;var a=(function(){function u(c,x,l){this.primitive=c,this.size=x,this.generatorBase=l,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var f=1,p=0;p<this.size;p++)this.expTable[p]=f,f=f*2,f>=this.size&&(f=(f^this.primitive)&this.size-1);for(var p=0;p<this.size-1;p++)this.logTable[this.expTable[p]]=p;this.zero=new i.default(this,Uint8ClampedArray.from([0])),this.one=new i.default(this,Uint8ClampedArray.from([1]))}return u.prototype.multiply=function(c,x){return c===0||x===0?0:this.expTable[(this.logTable[c]+this.logTable[x])%(this.size-1)]},u.prototype.inverse=function(c){if(c===0)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[c]-1]},u.prototype.buildMonomial=function(c,x){if(c<0)throw new Error("Invalid monomial degree less than 0");if(x===0)return this.zero;var l=new Uint8ClampedArray(c+1);return l[0]=x,new i.default(this,l)},u.prototype.log=function(c){if(c===0)throw new Error("Can't take log(0)");return this.logTable[c]},u.prototype.exp=function(c){return this.expTable[c]},u})();r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(1),s=(function(){function a(u,c){if(c.length===0)throw new Error("No coefficients.");this.field=u;var x=c.length;if(x>1&&c[0]===0){for(var l=1;l<x&&c[l]===0;)l++;if(l===x)this.coefficients=u.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(x-l);for(var f=0;f<this.coefficients.length;f++)this.coefficients[f]=c[l+f]}}else this.coefficients=c}return a.prototype.degree=function(){return this.coefficients.length-1},a.prototype.isZero=function(){return this.coefficients[0]===0},a.prototype.getCoefficient=function(u){return this.coefficients[this.coefficients.length-1-u]},a.prototype.addOrSubtract=function(u){var c;if(this.isZero())return u;if(u.isZero())return this;var x=this.coefficients,l=u.coefficients;x.length>l.length&&(c=[l,x],x=c[0],l=c[1]);for(var f=new Uint8ClampedArray(l.length),p=l.length-x.length,d=0;d<p;d++)f[d]=l[d];for(var d=p;d<l.length;d++)f[d]=i.addOrSubtractGF(x[d-p],l[d]);return new a(this.field,f)},a.prototype.multiply=function(u){if(u===0)return this.field.zero;if(u===1)return this;for(var c=this.coefficients.length,x=new Uint8ClampedArray(c),l=0;l<c;l++)x[l]=this.field.multiply(this.coefficients[l],u);return new a(this.field,x)},a.prototype.multiplyPoly=function(u){if(this.isZero()||u.isZero())return this.field.zero;for(var c=this.coefficients,x=c.length,l=u.coefficients,f=l.length,p=new Uint8ClampedArray(x+f-1),d=0;d<x;d++)for(var h=c[d],g=0;g<f;g++)p[d+g]=i.addOrSubtractGF(p[d+g],this.field.multiply(h,l[g]));return new a(this.field,p)},a.prototype.multiplyByMonomial=function(u,c){if(u<0)throw new Error("Invalid degree less than 0");if(c===0)return this.field.zero;for(var x=this.coefficients.length,l=new Uint8ClampedArray(x+u),f=0;f<x;f++)l[f]=this.field.multiply(this.coefficients[f],c);return new a(this.field,l)},a.prototype.evaluateAt=function(u){var c=0;if(u===0)return this.getCoefficient(0);var x=this.coefficients.length;if(u===1)return this.coefficients.forEach(function(f){c=i.addOrSubtractGF(c,f)}),c;c=this.coefficients[0];for(var l=1;l<x;l++)c=i.addOrSubtractGF(this.field.multiply(u,c),this.coefficients[l]);return c},a})();r.default=s}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(4),s=o(5),a=o(11),u=o(12);function c(f){var p=u.locate(f);if(!p)return null;for(var d=0,h=p;d<h.length;d++){var g=h[d],m=a.extract(f,g),E=s.decode(m.matrix);if(E)return{binaryData:E.bytes,data:E.text,chunks:E.chunks,version:E.version,location:{topRightCorner:m.mappingFunction(g.dimension,0),topLeftCorner:m.mappingFunction(0,0),bottomRightCorner:m.mappingFunction(g.dimension,g.dimension),bottomLeftCorner:m.mappingFunction(0,g.dimension),topRightFinderPattern:g.topRight,topLeftFinderPattern:g.topLeft,bottomLeftFinderPattern:g.bottomLeft,bottomRightAlignmentPattern:g.alignmentPattern}}}return null}var x={inversionAttempts:"attemptBoth"};function l(f,p,d,h){h===void 0&&(h={});var g=x;Object.keys(g||{}).forEach(function(v){g[v]=h[v]||g[v]});var m=g.inversionAttempts==="attemptBoth"||g.inversionAttempts==="invertFirst",E=g.inversionAttempts==="onlyInvert"||g.inversionAttempts==="invertFirst",C=i.binarize(f,p,d,m),A=C.binarized,B=C.inverted,y=c(E?B:A);return!y&&(g.inversionAttempts==="attemptBoth"||g.inversionAttempts==="invertFirst")&&(y=c(E?A:B)),y}l.default=l,r.default=l}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),s=8,a=24;function u(l,f,p){return l<f?f:l>p?p:l}var c=(function(){function l(f,p){this.width=f,this.data=new Uint8ClampedArray(f*p)}return l.prototype.get=function(f,p){return this.data[p*this.width+f]},l.prototype.set=function(f,p,d){this.data[p*this.width+f]=d},l})();function x(l,f,p,d){if(l.length!==f*p*4)throw new Error("Malformed data passed to binarizer.");for(var h=new c(f,p),g=0;g<f;g++)for(var m=0;m<p;m++){var E=l[(m*f+g)*4+0],C=l[(m*f+g)*4+1],A=l[(m*f+g)*4+2];h.set(g,m,.2126*E+.7152*C+.0722*A)}for(var B=Math.ceil(f/s),y=Math.ceil(p/s),v=new c(B,y),k=0;k<y;k++)for(var w=0;w<B;w++){for(var O=0,N=1/0,R=0,m=0;m<s;m++)for(var g=0;g<s;g++){var M=h.get(w*s+g,k*s+m);O+=M,N=Math.min(N,M),R=Math.max(R,M)}var L=O/Math.pow(s,2);if(R-N<=a&&(L=N/2,k>0&&w>0)){var H=(v.get(w,k-1)+2*v.get(w-1,k)+v.get(w-1,k-1))/4;N<H&&(L=H)}v.set(w,k,L)}var K=i.BitMatrix.createEmpty(f,p),_=null;d&&(_=i.BitMatrix.createEmpty(f,p));for(var k=0;k<y;k++)for(var w=0;w<B;w++){for(var G=u(w,2,B-3),I=u(k,2,y-3),O=0,S=-2;S<=2;S++)for(var U=-2;U<=2;U++)O+=v.get(G+S,I+U);for(var z=O/25,S=0;S<s;S++)for(var U=0;U<s;U++){var g=w*s+S,m=k*s+U,$=h.get(g,m);K.set(g,m,$<=z),d&&_.set(g,m,!($<=z))}}return d?{binarized:K,inverted:_}:{binarized:K}}r.binarize=x}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),s=o(6),a=o(9),u=o(10);function c(A,B){for(var y=A^B,v=0;y;)v++,y&=y-1;return v}function x(A,B){return B<<1|A}var l=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],f=[function(A){return(A.y+A.x)%2===0},function(A){return A.y%2===0},function(A){return A.x%3===0},function(A){return(A.y+A.x)%3===0},function(A){return(Math.floor(A.y/2)+Math.floor(A.x/3))%2===0},function(A){return A.x*A.y%2+A.x*A.y%3===0},function(A){return(A.y*A.x%2+A.y*A.x%3)%2===0},function(A){return((A.y+A.x)%2+A.y*A.x%3)%2===0}];function p(A){var B=17+4*A.versionNumber,y=i.BitMatrix.createEmpty(B,B);y.setRegion(0,0,9,9,!0),y.setRegion(B-8,0,8,9,!0),y.setRegion(0,B-8,9,8,!0);for(var v=0,k=A.alignmentPatternCenters;v<k.length;v++)for(var w=k[v],O=0,N=A.alignmentPatternCenters;O<N.length;O++){var R=N[O];w===6&&R===6||w===6&&R===B-7||w===B-7&&R===6||y.setRegion(w-2,R-2,5,5,!0)}return y.setRegion(6,9,1,B-17,!0),y.setRegion(9,6,B-17,1,!0),A.versionNumber>6&&(y.setRegion(B-11,0,3,6,!0),y.setRegion(0,B-11,6,3,!0)),y}function d(A,B,y){for(var v=f[y.dataMask],k=A.height,w=p(B),O=[],N=0,R=0,M=!0,L=k-1;L>0;L-=2){L===6&&L--;for(var H=0;H<k;H++)for(var K=M?k-1-H:H,_=0;_<2;_++){var G=L-_;if(!w.get(G,K)){R++;var I=A.get(G,K);v({y:K,x:G})&&(I=!I),N=x(I,N),R===8&&(O.push(N),R=0,N=0)}}M=!M}return O}function h(A){var B=A.height,y=Math.floor((B-17)/4);if(y<=6)return u.VERSIONS[y-1];for(var v=0,k=5;k>=0;k--)for(var w=B-9;w>=B-11;w--)v=x(A.get(w,k),v);for(var O=0,w=5;w>=0;w--)for(var k=B-9;k>=B-11;k--)O=x(A.get(w,k),O);for(var N=1/0,R,M=0,L=u.VERSIONS;M<L.length;M++){var H=L[M];if(H.infoBits===v||H.infoBits===O)return H;var K=c(v,H.infoBits);K<N&&(R=H,N=K),K=c(O,H.infoBits),K<N&&(R=H,N=K)}if(N<=3)return R}function g(A){for(var B=0,y=0;y<=8;y++)y!==6&&(B=x(A.get(y,8),B));for(var v=7;v>=0;v--)v!==6&&(B=x(A.get(8,v),B));for(var k=A.height,w=0,v=k-1;v>=k-7;v--)w=x(A.get(8,v),w);for(var y=k-8;y<k;y++)w=x(A.get(y,8),w);for(var O=1/0,N=null,R=0,M=l;R<M.length;R++){var L=M[R],H=L.bits,K=L.formatInfo;if(H===B||H===w)return K;var _=c(B,H);_<O&&(N=K,O=_),B!==w&&(_=c(w,H),_<O&&(N=K,O=_))}return O<=3?N:null}function m(A,B,y){var v=B.errorCorrectionLevels[y],k=[],w=0;if(v.ecBlocks.forEach(function(I){for(var S=0;S<I.numBlocks;S++)k.push({numDataCodewords:I.dataCodewordsPerBlock,codewords:[]}),w+=I.dataCodewordsPerBlock+v.ecCodewordsPerBlock}),A.length<w)return null;A=A.slice(0,w);for(var O=v.ecBlocks[0].dataCodewordsPerBlock,N=0;N<O;N++)for(var R=0,M=k;R<M.length;R++){var L=M[R];L.codewords.push(A.shift())}if(v.ecBlocks.length>1)for(var H=v.ecBlocks[0].numBlocks,K=v.ecBlocks[1].numBlocks,N=0;N<K;N++)k[H+N].codewords.push(A.shift());for(;A.length>0;)for(var _=0,G=k;_<G.length;_++){var L=G[_];L.codewords.push(A.shift())}return k}function E(A){var B=h(A);if(!B)return null;var y=g(A);if(!y)return null;var v=d(A,B,y),k=m(v,B,y.errorCorrectionLevel);if(!k)return null;for(var w=k.reduce(function(_,G){return _+G.numDataCodewords},0),O=new Uint8ClampedArray(w),N=0,R=0,M=k;R<M.length;R++){var L=M[R],H=a.decode(L.codewords,L.codewords.length-L.numDataCodewords);if(!H)return null;for(var K=0;K<L.numDataCodewords;K++)O[N++]=H[K]}try{return s.decode(O,B.versionNumber)}catch{return null}}function C(A){if(A==null)return null;var B=E(A);if(B)return B;for(var y=0;y<A.width;y++)for(var v=y+1;v<A.height;v++)A.get(y,v)!==A.get(v,y)&&(A.set(y,v,!A.get(y,v)),A.set(v,y,!A.get(v,y)));return E(A)}r.decode=C}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(7),s=o(8),a;(function(h){h.Numeric="numeric",h.Alphanumeric="alphanumeric",h.Byte="byte",h.Kanji="kanji",h.ECI="eci"})(a=r.Mode||(r.Mode={}));var u;(function(h){h[h.Terminator=0]="Terminator",h[h.Numeric=1]="Numeric",h[h.Alphanumeric=2]="Alphanumeric",h[h.Byte=4]="Byte",h[h.Kanji=8]="Kanji",h[h.ECI=7]="ECI"})(u||(u={}));function c(h,g){for(var m=[],E="",C=[10,12,14][g],A=h.readBits(C);A>=3;){var B=h.readBits(10);if(B>=1e3)throw new Error("Invalid numeric value above 999");var y=Math.floor(B/100),v=Math.floor(B/10)%10,k=B%10;m.push(48+y,48+v,48+k),E+=y.toString()+v.toString()+k.toString(),A-=3}if(A===2){var B=h.readBits(7);if(B>=100)throw new Error("Invalid numeric value above 99");var y=Math.floor(B/10),v=B%10;m.push(48+y,48+v),E+=y.toString()+v.toString()}else if(A===1){var B=h.readBits(4);if(B>=10)throw new Error("Invalid numeric value above 9");m.push(48+B),E+=B.toString()}return{bytes:m,text:E}}var x=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function l(h,g){for(var m=[],E="",C=[9,11,13][g],A=h.readBits(C);A>=2;){var B=h.readBits(11),y=Math.floor(B/45),v=B%45;m.push(x[y].charCodeAt(0),x[v].charCodeAt(0)),E+=x[y]+x[v],A-=2}if(A===1){var y=h.readBits(6);m.push(x[y].charCodeAt(0)),E+=x[y]}return{bytes:m,text:E}}function f(h,g){for(var m=[],E="",C=[8,16,16][g],A=h.readBits(C),B=0;B<A;B++){var y=h.readBits(8);m.push(y)}try{E+=decodeURIComponent(m.map(function(v){return"%"+("0"+v.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:m,text:E}}function p(h,g){for(var m=[],E="",C=[8,10,12][g],A=h.readBits(C),B=0;B<A;B++){var y=h.readBits(13),v=Math.floor(y/192)<<8|y%192;v<7936?v+=33088:v+=49472,m.push(v>>8,v&255),E+=String.fromCharCode(s.shiftJISTable[v])}return{bytes:m,text:E}}function d(h,g){for(var m,E,C,A,B=new i.BitStream(h),y=g<=9?0:g<=26?1:2,v={text:"",bytes:[],chunks:[],version:g};B.available()>=4;){var k=B.readBits(4);if(k===u.Terminator)return v;if(k===u.ECI)B.readBits(1)===0?v.chunks.push({type:a.ECI,assignmentNumber:B.readBits(7)}):B.readBits(1)===0?v.chunks.push({type:a.ECI,assignmentNumber:B.readBits(14)}):B.readBits(1)===0?v.chunks.push({type:a.ECI,assignmentNumber:B.readBits(21)}):v.chunks.push({type:a.ECI,assignmentNumber:-1});else if(k===u.Numeric){var w=c(B,y);v.text+=w.text,(m=v.bytes).push.apply(m,w.bytes),v.chunks.push({type:a.Numeric,text:w.text})}else if(k===u.Alphanumeric){var O=l(B,y);v.text+=O.text,(E=v.bytes).push.apply(E,O.bytes),v.chunks.push({type:a.Alphanumeric,text:O.text})}else if(k===u.Byte){var N=f(B,y);v.text+=N.text,(C=v.bytes).push.apply(C,N.bytes),v.chunks.push({type:a.Byte,bytes:N.bytes,text:N.text})}else if(k===u.Kanji){var R=p(B,y);v.text+=R.text,(A=v.bytes).push.apply(A,R.bytes),v.chunks.push({type:a.Kanji,bytes:R.bytes,text:R.text})}}if(B.available()===0||B.readBits(B.available())===0)return v}r.decode=d}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function s(a){this.byteOffset=0,this.bitOffset=0,this.bytes=a}return s.prototype.readBits=function(a){if(a<1||a>32||a>this.available())throw new Error("Cannot read "+a.toString()+" bits");var u=0;if(this.bitOffset>0){var c=8-this.bitOffset,x=a<c?a:c,l=c-x,f=255>>8-x<<l;u=(this.bytes[this.byteOffset]&f)>>l,a-=x,this.bitOffset+=x,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(a>0){for(;a>=8;)u=u<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,a-=8;if(a>0){var l=8-a,f=255>>l<<l;u=u<<a|(this.bytes[this.byteOffset]&f)>>l,this.bitOffset+=a}}return u},s.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},s})();r.BitStream=i}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(1),s=o(2);function a(l,f,p,d){var h;f.degree()<p.degree()&&(h=[p,f],f=h[0],p=h[1]);for(var g=f,m=p,E=l.zero,C=l.one;m.degree()>=d/2;){var A=g,B=E;if(g=m,E=C,g.isZero())return null;m=A;for(var y=l.zero,v=g.getCoefficient(g.degree()),k=l.inverse(v);m.degree()>=g.degree()&&!m.isZero();){var w=m.degree()-g.degree(),O=l.multiply(m.getCoefficient(m.degree()),k);y=y.addOrSubtract(l.buildMonomial(w,O)),m=m.addOrSubtract(g.multiplyByMonomial(w,O))}if(C=y.multiplyPoly(E).addOrSubtract(B),m.degree()>=g.degree())return null}var N=C.getCoefficient(0);if(N===0)return null;var R=l.inverse(N);return[C.multiply(R),m.multiply(R)]}function u(l,f){var p=f.degree();if(p===1)return[f.getCoefficient(1)];for(var d=new Array(p),h=0,g=1;g<l.size&&h<p;g++)f.evaluateAt(g)===0&&(d[h]=l.inverse(g),h++);return h!==p?null:d}function c(l,f,p){for(var d=p.length,h=new Array(d),g=0;g<d;g++){for(var m=l.inverse(p[g]),E=1,C=0;C<d;C++)g!==C&&(E=l.multiply(E,i.addOrSubtractGF(1,l.multiply(p[C],m))));h[g]=l.multiply(f.evaluateAt(m),l.inverse(E)),l.generatorBase!==0&&(h[g]=l.multiply(h[g],m))}return h}function x(l,f){var p=new Uint8ClampedArray(l.length);p.set(l);for(var d=new i.default(285,256,0),h=new s.default(d,p),g=new Uint8ClampedArray(f),m=!1,E=0;E<f;E++){var C=h.evaluateAt(d.exp(E+d.generatorBase));g[g.length-1-E]=C,C!==0&&(m=!0)}if(!m)return p;var A=new s.default(d,g),B=a(d,d.buildMonomial(f,1),A,f);if(B===null)return null;var y=u(d,B[0]);if(y==null)return null;for(var v=c(d,B[1],y),k=0;k<y.length;k++){var w=p.length-1-d.log(y[k]);if(w<0)return null;p[w]=i.addOrSubtractGF(p[w],v[k])}return p}r.decode=x}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0);function s(x,l,f,p){var d=x.x-l.x+f.x-p.x,h=x.y-l.y+f.y-p.y;if(d===0&&h===0)return{a11:l.x-x.x,a12:l.y-x.y,a13:0,a21:f.x-l.x,a22:f.y-l.y,a23:0,a31:x.x,a32:x.y,a33:1};var g=l.x-f.x,m=p.x-f.x,E=l.y-f.y,C=p.y-f.y,A=g*C-m*E,B=(d*C-m*h)/A,y=(g*h-d*E)/A;return{a11:l.x-x.x+B*l.x,a12:l.y-x.y+B*l.y,a13:B,a21:p.x-x.x+y*p.x,a22:p.y-x.y+y*p.y,a23:y,a31:x.x,a32:x.y,a33:1}}function a(x,l,f,p){var d=s(x,l,f,p);return{a11:d.a22*d.a33-d.a23*d.a32,a12:d.a13*d.a32-d.a12*d.a33,a13:d.a12*d.a23-d.a13*d.a22,a21:d.a23*d.a31-d.a21*d.a33,a22:d.a11*d.a33-d.a13*d.a31,a23:d.a13*d.a21-d.a11*d.a23,a31:d.a21*d.a32-d.a22*d.a31,a32:d.a12*d.a31-d.a11*d.a32,a33:d.a11*d.a22-d.a12*d.a21}}function u(x,l){return{a11:x.a11*l.a11+x.a21*l.a12+x.a31*l.a13,a12:x.a12*l.a11+x.a22*l.a12+x.a32*l.a13,a13:x.a13*l.a11+x.a23*l.a12+x.a33*l.a13,a21:x.a11*l.a21+x.a21*l.a22+x.a31*l.a23,a22:x.a12*l.a21+x.a22*l.a22+x.a32*l.a23,a23:x.a13*l.a21+x.a23*l.a22+x.a33*l.a23,a31:x.a11*l.a31+x.a21*l.a32+x.a31*l.a33,a32:x.a12*l.a31+x.a22*l.a32+x.a32*l.a33,a33:x.a13*l.a31+x.a23*l.a32+x.a33*l.a33}}function c(x,l){for(var f=a({x:3.5,y:3.5},{x:l.dimension-3.5,y:3.5},{x:l.dimension-6.5,y:l.dimension-6.5},{x:3.5,y:l.dimension-3.5}),p=s(l.topLeft,l.topRight,l.alignmentPattern,l.bottomLeft),d=u(p,f),h=i.BitMatrix.createEmpty(l.dimension,l.dimension),g=function(y,v){var k=d.a13*y+d.a23*v+d.a33;return{x:(d.a11*y+d.a21*v+d.a31)/k,y:(d.a12*y+d.a22*v+d.a32)/k}},m=0;m<l.dimension;m++)for(var E=0;E<l.dimension;E++){var C=E+.5,A=m+.5,B=g(C,A);h.set(E,m,x.get(Math.floor(B.x),Math.floor(B.y)))}return{matrix:h,mappingFunction:g}}r.extract=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=4,s=.5,a=1.5,u=function(C,A){return Math.sqrt(Math.pow(A.x-C.x,2)+Math.pow(A.y-C.y,2))};function c(C){return C.reduce(function(A,B){return A+B})}function x(C,A,B){var y,v,k,w,O=u(C,A),N=u(A,B),R=u(C,B),M,L,H;return N>=O&&N>=R?(y=[A,C,B],M=y[0],L=y[1],H=y[2]):R>=N&&R>=O?(v=[C,A,B],M=v[0],L=v[1],H=v[2]):(k=[C,B,A],M=k[0],L=k[1],H=k[2]),(H.x-L.x)*(M.y-L.y)-(H.y-L.y)*(M.x-L.x)<0&&(w=[H,M],M=w[0],H=w[1]),{bottomLeft:M,topLeft:L,topRight:H}}function l(C,A,B,y){var v=(c(p(C,B,y,5))/7+c(p(C,A,y,5))/7+c(p(B,C,y,5))/7+c(p(A,C,y,5))/7)/4;if(v<1)throw new Error("Invalid module size");var k=Math.round(u(C,A)/v),w=Math.round(u(C,B)/v),O=Math.floor((k+w)/2)+7;switch(O%4){case 0:O++;break;case 2:O--;break}return{dimension:O,moduleSize:v}}function f(C,A,B,y){var v=[{x:Math.floor(C.x),y:Math.floor(C.y)}],k=Math.abs(A.y-C.y)>Math.abs(A.x-C.x),w,O,N,R;k?(w=Math.floor(C.y),O=Math.floor(C.x),N=Math.floor(A.y),R=Math.floor(A.x)):(w=Math.floor(C.x),O=Math.floor(C.y),N=Math.floor(A.x),R=Math.floor(A.y));for(var M=Math.abs(N-w),L=Math.abs(R-O),H=Math.floor(-M/2),K=w<N?1:-1,_=O<R?1:-1,G=!0,I=w,S=O;I!==N+K;I+=K){var U=k?S:I,z=k?I:S;if(B.get(U,z)!==G&&(G=!G,v.push({x:U,y:z}),v.length===y+1))break;if(H+=L,H>0){if(S===R)break;S+=_,H-=M}}for(var $=[],j=0;j<y;j++)v[j]&&v[j+1]?$.push(u(v[j],v[j+1])):$.push(0);return $}function p(C,A,B,y){var v,k=A.y-C.y,w=A.x-C.x,O=f(C,A,B,Math.ceil(y/2)),N=f(C,{x:C.x-w,y:C.y-k},B,Math.ceil(y/2)),R=O.shift()+N.shift()-1;return(v=N.concat(R)).concat.apply(v,O)}function d(C,A){var B=c(C)/c(A),y=0;return A.forEach(function(v,k){y+=Math.pow(C[k]-v*B,2)}),{averageSize:B,error:y}}function h(C,A,B){try{var y=p(C,{x:-1,y:C.y},B,A.length),v=p(C,{x:C.x,y:-1},B,A.length),k={x:Math.max(0,C.x-C.y)-1,y:Math.max(0,C.y-C.x)-1},w=p(C,k,B,A.length),O={x:Math.min(B.width,C.x+C.y)+1,y:Math.min(B.height,C.y+C.x)+1},N=p(C,O,B,A.length),R=d(y,A),M=d(v,A),L=d(w,A),H=d(N,A),K=Math.sqrt(R.error*R.error+M.error*M.error+L.error*L.error+H.error*H.error),_=(R.averageSize+M.averageSize+L.averageSize+H.averageSize)/4,G=(Math.pow(R.averageSize-_,2)+Math.pow(M.averageSize-_,2)+Math.pow(L.averageSize-_,2)+Math.pow(H.averageSize-_,2))/_;return K+G}catch{return 1/0}}function g(C,A){for(var B=Math.round(A.x);C.get(B,Math.round(A.y));)B--;for(var y=Math.round(A.x);C.get(y,Math.round(A.y));)y++;for(var v=(B+y)/2,k=Math.round(A.y);C.get(Math.round(v),k);)k--;for(var w=Math.round(A.y);C.get(Math.round(v),w);)w++;var O=(k+w)/2;return{x:v,y:O}}function m(C){for(var A=[],B=[],y=[],v=[],k=function(U){for(var z=0,$=!1,j=[0,0,0,0,0],Z=function(ie){var ce=C.get(ie,U);if(ce===$)z++;else{j=[j[1],j[2],j[3],j[4],z],z=1,$=ce;var le=c(j)/7,ve=Math.abs(j[0]-le)<le&&Math.abs(j[1]-le)<le&&Math.abs(j[2]-3*le)<3*le&&Math.abs(j[3]-le)<le&&Math.abs(j[4]-le)<le&&!ce,_e=c(j.slice(-3))/3,Ne=Math.abs(j[2]-_e)<_e&&Math.abs(j[3]-_e)<_e&&Math.abs(j[4]-_e)<_e&&ce;if(ve){var Qe=ie-j[3]-j[4],Je=Qe-j[2],it={startX:Je,endX:Qe,y:U},ee=B.filter(function(be){return Je>=be.bottom.startX&&Je<=be.bottom.endX||Qe>=be.bottom.startX&&Je<=be.bottom.endX||Je<=be.bottom.startX&&Qe>=be.bottom.endX&&j[2]/(be.bottom.endX-be.bottom.startX)<a&&j[2]/(be.bottom.endX-be.bottom.startX)>s});ee.length>0?ee[0].bottom=it:B.push({top:it,bottom:it})}if(Ne){var Q=ie-j[4],Be=Q-j[3],it={startX:Be,y:U,endX:Q},ee=v.filter(function(ye){return Be>=ye.bottom.startX&&Be<=ye.bottom.endX||Q>=ye.bottom.startX&&Be<=ye.bottom.endX||Be<=ye.bottom.startX&&Q>=ye.bottom.endX&&j[2]/(ye.bottom.endX-ye.bottom.startX)<a&&j[2]/(ye.bottom.endX-ye.bottom.startX)>s});ee.length>0?ee[0].bottom=it:v.push({top:it,bottom:it})}}},te=-1;te<=C.width;te++)Z(te);A.push.apply(A,B.filter(function(ie){return ie.bottom.y!==U&&ie.bottom.y-ie.top.y>=2})),B=B.filter(function(ie){return ie.bottom.y===U}),y.push.apply(y,v.filter(function(ie){return ie.bottom.y!==U})),v=v.filter(function(ie){return ie.bottom.y===U})},w=0;w<=C.height;w++)k(w);A.push.apply(A,B.filter(function(U){return U.bottom.y-U.top.y>=2})),y.push.apply(y,v);var O=A.filter(function(U){return U.bottom.y-U.top.y>=2}).map(function(U){var z=(U.top.startX+U.top.endX+U.bottom.startX+U.bottom.endX)/4,$=(U.top.y+U.bottom.y+1)/2;if(C.get(Math.round(z),Math.round($))){var j=[U.top.endX-U.top.startX,U.bottom.endX-U.bottom.startX,U.bottom.y-U.top.y+1],Z=c(j)/j.length,te=h({x:Math.round(z),y:Math.round($)},[1,1,3,1,1],C);return{score:te,x:z,y:$,size:Z}}}).filter(function(U){return!!U}).sort(function(U,z){return U.score-z.score}).map(function(U,z,$){if(z>i)return null;var j=$.filter(function(te,ie){return z!==ie}).map(function(te){return{x:te.x,y:te.y,score:te.score+Math.pow(te.size-U.size,2)/U.size,size:te.size}}).sort(function(te,ie){return te.score-ie.score});if(j.length<2)return null;var Z=U.score+j[0].score+j[1].score;return{points:[U].concat(j.slice(0,2)),score:Z}}).filter(function(U){return!!U}).sort(function(U,z){return U.score-z.score});if(O.length===0)return null;var N=x(O[0].points[0],O[0].points[1],O[0].points[2]),R=N.topRight,M=N.topLeft,L=N.bottomLeft,H=E(C,y,R,M,L),K=[];H&&K.push({alignmentPattern:{x:H.alignmentPattern.x,y:H.alignmentPattern.y},bottomLeft:{x:L.x,y:L.y},dimension:H.dimension,topLeft:{x:M.x,y:M.y},topRight:{x:R.x,y:R.y}});var _=g(C,R),G=g(C,M),I=g(C,L),S=E(C,y,_,G,I);return S&&K.push({alignmentPattern:{x:S.alignmentPattern.x,y:S.alignmentPattern.y},bottomLeft:{x:I.x,y:I.y},topLeft:{x:G.x,y:G.y},topRight:{x:_.x,y:_.y},dimension:S.dimension}),K.length===0?null:K}r.locate=m;function E(C,A,B,y,v){var k,w,O;try{k=l(y,B,v,C),w=k.dimension,O=k.moduleSize}catch{return null}var N={x:B.x-y.x+v.x,y:B.y-y.y+v.y},R=(u(y,v)+u(y,B))/2/O,M=1-3/R,L={x:y.x+M*(N.x-y.x),y:y.y+M*(N.y-y.y)},H=A.map(function(_){var G=(_.top.startX+_.top.endX+_.bottom.startX+_.bottom.endX)/4,I=(_.top.y+_.bottom.y+1)/2;if(C.get(Math.floor(G),Math.floor(I))){var S=[_.top.endX-_.top.startX,_.bottom.endX-_.bottom.startX,_.bottom.y-_.top.y+1];c(S)/S.length;var U=h({x:Math.floor(G),y:Math.floor(I)},[1,1,1],C),z=U+u({x:G,y:I},L);return{x:G,y:I,score:z}}}).filter(function(_){return!!_}).sort(function(_,G){return _.score-G.score}),K=R>=15&&H.length?H[0]:L;return{alignmentPattern:K,dimension:w}}})]).default})})(qr)),qr.exports}var Z3=V3();const Y3=mr(Z3);var X3=P('<p class="text-xs text-muted-foreground">'),Q3=P('<p class="text-xs text-destructive">'),J3=P('<div class="flex flex-col gap-4"><p class="text-sm text-muted-foreground"></p><div class="flex flex-col items-center gap-3"><video playsinline muted autoplay></video><canvas class=hidden></canvas></div><form class="flex flex-col gap-3"><label class="text-sm font-medium"for=pairing-code></label><input id=pairing-code type=text autocapitalize=characters autocomplete=off class="h-11 w-full rounded-md border border-input bg-background px-3 font-mono text-base uppercase tracking-widest focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">');const e4=()=>{const e=pt(),[t,n]=W(""),[r,o]=W(!1),[i,s]=W(!1),[a,u]=W(!1);let c,x,l=null,f=0;const p=()=>{if(s(!1),f&&cancelAnimationFrame(f),f=0,l){for(const m of l.getTracks())m.stop();l=null}};Ie(p);const d=async m=>{const E=m.trim();if(!(!E||r())){o(!0);try{await c9(E),p(),De(F("pair.success")),e("/",{replace:!0})}catch(C){const A=C instanceof Error?C.message:"";A.startsWith("401")?De(F("pair.invalid"),"error"):A.startsWith("429")?De(F("pair.tooMany"),"error"):De(F("pair.failed"),"error")}finally{o(!1)}}},h=()=>{if(!i()||!c||!x)return;const m=c.videoWidth,E=c.videoHeight;if(m&&E){x.width=m,x.height=E;const C=x.getContext("2d",{willReadFrequently:!0});if(C){C.drawImage(c,0,0,m,E);const A=C.getImageData(0,0,m,E),B=Y3(A.data,m,E);if(B&&B.data.trim()){d(B.data);return}}}f=requestAnimationFrame(h)},g=async()=>{u(!1);const m=navigator.mediaDevices;if(!window.isSecureContext||!m||!m.getUserMedia){u(!0);return}try{l=await m.getUserMedia({video:{facingMode:"environment"}}),c&&(c.srcObject=l,await c.play()),s(!0),f=requestAnimationFrame(h)}catch{p(),u(!0)}};return b(Ft,{get title(){return F("pair.title")},get children(){var m=J3(),E=m.firstChild,C=E.nextSibling,A=C.firstChild,B=A.nextSibling,y=C.nextSibling,v=y.firstChild,k=v.nextSibling;D(E,()=>F("pair.intro")),D(C,b(q,{get when(){return!i()},get children(){return b($u,{variant:"outline",size:"sm",onClick:()=>void g(),get children(){return F("pair.scan")}})}}),A);var w=c;typeof w=="function"?Tt(w,A):c=A;var O=x;return typeof O=="function"?Tt(O,B):x=B,D(C,b(q,{get when(){return i()},get children(){var N=X3();return D(N,()=>F("pair.scanHint")),N}}),null),D(C,b(q,{get when(){return a()},get children(){var N=Q3();return D(N,()=>F("pair.cameraUnavailable")),N}}),null),y.addEventListener("submit",N=>{N.preventDefault(),d(t())}),D(v,()=>F("pair.codeLabel")),k.$$input=N=>n(N.currentTarget.value),re(k,"spellcheck",!1),D(y,b($u,{type:"submit",get disabled(){return r()||!t().trim()},get children(){return Ue(()=>!!r())()?F("pair.submitting"):F("pair.submit")}}),null),X(N=>{var R=i()?"w-full max-w-sm rounded bg-black":"hidden",M=F("pair.codePlaceholder");return R!==N.e&&Ge(A,N.e=R),M!==N.t&&re(k,"placeholder",N.t=M),N},{e:void 0,t:void 0}),X(()=>k.value=t()),m}})};He(["input"]);Uf({persistHint:!0});t9();l9();const lx=document.getElementById("app");if(!lx)throw new Error("missing #app root");ed(()=>b(jd,{root:dg,base:Zo,get children(){return[b(Ct,{path:"/",component:u1}),b(Ct,{path:"/specs",component:D1}),b(Ct,{path:"/ext",component:PC}),b(Ct,{path:"/projects",component:E3}),b(Ct,{path:["/sessions/new","/sessions/:id"],component:L6}),b(Ct,{path:"/specs/new",component:SC}),b(Ct,{path:"/specs/:id",component:w5}),b(Ct,{path:"/specs/:id/debug",component:N5}),b(Ct,{path:"/specs/:id/git",component:pC}),b(Ct,{path:"/ext/scripts",component:HC}),b(Ct,{path:"/ext/git",component:i3}),b(Ct,{path:"/ext/git/history",component:d3}),b(Ct,{path:"/ext/runs/:runId",component:o3}),b(Ct,{path:"/settings/global",component:T3}),b(Ct,{path:"/settings/project",component:N3}),b(Ct,{path:"/pair",component:e4}),b(Ct,{path:"*",component:K3})]}}),lx);export{mc as _,mr as g};
|