@inkeep/open-knowledge 0.49.0 → 0.49.1
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/{abnfDiagram-VRR7QNED-DQjgDcgA.mjs → abnfDiagram-VRR7QNED-DWDzSKGM.mjs} +2 -2
- package/dist/{acp-harness-probe-DOXp9Wx4.mjs → acp-harness-probe-C8FhVWZi.mjs} +3 -3
- package/dist/alias-JE7RI5QX-BLuOrjl2.mjs +7 -0
- package/dist/alias-JE7RI5QX-VxEqWoTW.mjs +1 -0
- package/dist/{arc-CO8jsQkL.mjs → arc-DXUbbcxK.mjs} +2 -2
- package/dist/architecture-TIHT7OUA-Bl3hpxt3.mjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-CkUIG8wd.mjs → architectureDiagram-ZJ3FMSHR-HYEpY7T3.mjs} +2 -2
- package/dist/{array-Cerc_8W3.mjs → array-BbgQa93P.mjs} +1 -1
- package/dist/awk2-BBAGSFUB-ClUuupKf.mjs +21 -0
- package/dist/{awk2-BBAGSFUB-BH8WxyhW.mjs → awk2-BBAGSFUB-Dq-YdAGA.mjs} +1 -1
- package/dist/{banner-CIK2GwPx.mjs → banner-Be20aAVc.mjs} +1 -1
- package/dist/base64-4YMZCVJ5-CtkujsXK.mjs +6 -0
- package/dist/{base64-4YMZCVJ5-CDuRvFBG.mjs → base64-4YMZCVJ5-dXz6vbV-.mjs} +1 -1
- package/dist/{basename-AA2KJYZQ-sv8gJZXS.mjs → basename-AA2KJYZQ-BhoOTAHi.mjs} +1 -1
- package/dist/basename-AA2KJYZQ-CEdH80GO.mjs +6 -0
- package/dist/bash-IJWYRKFO-BDtU-lTC.mjs +6 -0
- package/dist/bash-IJWYRKFO-jaJEvAZe.mjs +1 -0
- package/dist/{blockDiagram-677ZJIJ3-sLhYyPCr.mjs → blockDiagram-677ZJIJ3-yJugV29e.mjs} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-Cg6dfUXU.mjs → c4Diagram-LMCZKHZV-BFQQLctA.mjs} +2 -2
- package/dist/cat-RDUMLXKC-D1H4LA3Z.mjs +6 -0
- package/dist/{cat-RDUMLXKC-BtNo16C3.mjs → cat-RDUMLXKC-DFuXWxVq.mjs} +1 -1
- package/dist/channel-Cjp51EO_.mjs +2 -0
- package/dist/{chmod-SYMGL4JA-B15Xlp42.mjs → chmod-SYMGL4JA-ByMUk130.mjs} +1 -1
- package/dist/chmod-SYMGL4JA-lEGJICyB.mjs +8 -0
- package/dist/{chokidar-CVNrjmRM.mjs → chokidar-dh8zokRd.mjs} +1 -1
- package/dist/chunk-24IMIIXA-RjlBWJtr.mjs +2 -0
- package/dist/{chunk-2Q5K7J3B-2Es1K_NO.mjs → chunk-2Q5K7J3B-Ck8oGqYt.mjs} +2 -2
- package/dist/{chunk-2TRDZQLB-G1LvPXqq.mjs → chunk-2TRDZQLB-AH-I_6yN.mjs} +1 -1
- package/dist/chunk-2TRDZQLB-ZoW1EBbl.mjs +18 -0
- package/dist/{chunk-32BRIVSS-ok2xg0Je.mjs → chunk-32BRIVSS-Dwq69mnI.mjs} +2 -2
- package/dist/{chunk-3BS5SKQH-CFcrGLDG.mjs → chunk-3BS5SKQH-DpdUzS0R.mjs} +3 -3
- package/dist/{chunk-3H6UQG3A-Dx5ykWR0.mjs → chunk-3H6UQG3A-BWCaN15a.mjs} +2 -2
- package/dist/chunk-3THT3N7L-DYkTD3HD.mjs +2 -0
- package/dist/{chunk-3ZUFRYJ4-DzbWfyzV.mjs → chunk-3ZUFRYJ4-H1A1hWy1.mjs} +1 -1
- package/dist/chunk-3ZUFRYJ4-ekaYB_vG.mjs +2 -0
- package/dist/chunk-44UOCSGV-D1FZHMOP.mjs +2 -0
- package/dist/{chunk-4GTNDTRF-COTPYeV6.mjs → chunk-4GTNDTRF-Cx89i2Y1.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-BkuKGebe.mjs → chunk-4HHKTUW3-Dk2l1S8J.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-i8tiQRv3.mjs → chunk-4Q4SM6WR-CGuvvBWe.mjs} +2 -2
- package/dist/{chunk-52WLFC77-BaT5_S-q.mjs → chunk-52WLFC77-Cn-qt8h-.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-Ct9maI6O.mjs → chunk-55VFSPNA-D2U7n2ka.mjs} +2 -2
- package/dist/{chunk-5FCAYU7R-of7BBDNL.mjs → chunk-5FCAYU7R-DszODYLe.mjs} +2 -2
- package/dist/{chunk-5HE753X5-9kILZ5Nr.mjs → chunk-5HE753X5-DDnyF29o.mjs} +2 -2
- package/dist/{chunk-5JV3BV7I-BKVVlFxh.mjs → chunk-5JV3BV7I-BkeVAZnj.mjs} +2 -2
- package/dist/chunk-5QMZ5MUS-C5NTf5Rj.mjs +5 -0
- package/dist/{chunk-5QVNJEHU-CvZ-NmqQ.mjs → chunk-5QVNJEHU-DS9zA_YV.mjs} +2 -2
- package/dist/{chunk-5TONJI2A-CGHpmUrS.mjs → chunk-5TONJI2A-CzUNHQPX.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-DdeqP2TW.mjs → chunk-5V6VZH6T-DBFenjXz.mjs} +2 -2
- package/dist/{chunk-5VM5RSS4-COK1ErrI.mjs → chunk-5VM5RSS4-C8vNNqW0.mjs} +2 -2
- package/dist/{chunk-62RKD26F-RtrcFE7S.mjs → chunk-62RKD26F-C4qK_fA-.mjs} +2 -2
- package/dist/{chunk-64BAICW3-0h-yIc1e.mjs → chunk-64BAICW3-BupSxcu5.mjs} +2 -2
- package/dist/{chunk-6Z5SFZXK-C5owNg1o.mjs → chunk-6Z5SFZXK-Cz0C4bhB.mjs} +2 -2
- package/dist/{chunk-74CEPOFO--xsxhUFC.mjs → chunk-74CEPOFO-BUVWiXkJ.mjs} +1 -1
- package/dist/chunk-74CEPOFO-BYrCYxKO.mjs +23 -0
- package/dist/{chunk-7BUUIJ7U-_1oXd84C.mjs → chunk-7BUUIJ7U-D7hE25H9.mjs} +2 -2
- package/dist/{chunk-7L36YK2X-VlH7dlrD.mjs → chunk-7L36YK2X-CGwYuotX.mjs} +1 -1
- package/dist/chunk-7L36YK2X-DAp-upAs.mjs +3 -0
- package/dist/{chunk-7TSDKFEO-BjOrsK6M.mjs → chunk-7TSDKFEO-CE_P23TY.mjs} +1 -1
- package/dist/chunk-7TSDKFEO-DBB10vPw.mjs +2 -0
- package/dist/{chunk-A4HU7SVR-oMNSpej4.mjs → chunk-A4HU7SVR-BZJ8xDMo.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-DtnWqT5O.mjs → chunk-A4JSPFCI-Dej71yGP.mjs} +2 -2
- package/dist/chunk-A5O5YHGN-CczwCZ4d.mjs +2 -0
- package/dist/{chunk-A65PWWJC-LctFeUxK.mjs → chunk-A65PWWJC-C-0S-s_f.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-DuuhuGG1.mjs → chunk-A7A2DBEE-DCXJ1xmx.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-CzYDHdxM.mjs → chunk-A7ICOL4V-BQZ9JZ1A.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-BnLIZXEI.mjs → chunk-ALLTKNUZ-D2ZOfcEz.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-DESh647P.mjs → chunk-APT7OOP2-D-DaFB7K.mjs} +2 -2
- package/dist/chunk-B74TABJS-BJwhrR8a.mjs +34 -0
- package/dist/{chunk-BIQX33UG-BVtPexox.mjs → chunk-BIQX33UG-Bmho6v3L.mjs} +2 -2
- package/dist/{chunk-C7G6YPKG-DpNJWc2e.mjs → chunk-C7G6YPKG-BAX_SClW.mjs} +2 -2
- package/dist/{chunk-CQNSW5MT-B6mAd0WS.mjs → chunk-CQNSW5MT-FekKjn0i.mjs} +2 -2
- package/dist/chunk-CWQS3NFK-CcBWgb8o.mjs +2 -0
- package/dist/{chunk-CYSBUYHQ-CTWbbsmm.mjs → chunk-CYSBUYHQ-BftsYwRW.mjs} +2 -2
- package/dist/{chunk-D4J545R4-Dy3lcp_X.mjs → chunk-D4J545R4-Br_5qOnE.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-Dl4tJcwX.mjs → chunk-D6CWQ5DW-3AWPydfx.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-B-Qyxyo5.mjs → chunk-D7MEQ3VN-Df6An2jd.mjs} +2 -2
- package/dist/chunk-DBKNVD4L-B3hX287s.mjs +10 -0
- package/dist/{chunk-DBKNVD4L-Y2Mnp5lC.mjs → chunk-DBKNVD4L-DNQP2COw.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-BxtVrSMT.mjs → chunk-DCAAORBQ-BDLVpBG2.mjs} +2 -2
- package/dist/chunk-DHbaKqs-.mjs +1 -0
- package/dist/chunk-DXB73IDG-BBwE27jK.mjs +2 -0
- package/dist/{chunk-EEXR5ZDP-BcjEP2wd.mjs → chunk-EEXR5ZDP-CE452hsE.mjs} +1 -1
- package/dist/chunk-EEXR5ZDP-Df-EPnbj.mjs +3 -0
- package/dist/{chunk-EIZGF4BS-DYiqM1Ss.mjs → chunk-EIZGF4BS-86nrMkyt.mjs} +2 -2
- package/dist/chunk-EIZGF4BS-CSFp0aUh.mjs +9 -0
- package/dist/{chunk-EMLP6XTP-AFimKO17.mjs → chunk-EMLP6XTP-C2yfLzVC.mjs} +2 -2
- package/dist/{chunk-EX3LRPZG-BYcqQlY8.mjs → chunk-EX3LRPZG-Chp9b-Lc.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-BuCITNd6.mjs → chunk-F23WWYKW-qKke1WqP.mjs} +2 -2
- package/dist/{chunk-FWX5IMBZ-BFNo8SGu.mjs → chunk-FWX5IMBZ-Cn1xNcn5.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-jz3yOk3f.mjs → chunk-GCTKCWKD-D0obXRun.mjs} +1 -1
- package/dist/chunk-GFQRA5P5-XqPO4cim.mjs +3 -0
- package/dist/{chunk-GOV5EKKI-IRzA9ik3.mjs → chunk-GOV5EKKI-CDovwI7Z.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-CGc4vqMu.mjs → chunk-GXVXFKBA-D-BGCybM.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-Svz-iz8m.mjs → chunk-HDQ56CKY-CI8IkhlS.mjs} +2 -2
- package/dist/chunk-HDQ56CKY-Pa-7c4rC.mjs +16 -0
- package/dist/{chunk-HJQJAYMS-SgZmT_QE.mjs → chunk-HJQJAYMS-BHzb4Ncl.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-BqFDM0xp.mjs → chunk-HJWBQKYG-B-KESSoV.mjs} +2 -2
- package/dist/{chunk-HKLCLINH-DKx243zB.mjs → chunk-HKLCLINH-Bgw53oZd.mjs} +3 -3
- package/dist/{chunk-HL6NGDO2-B9GCn41X.mjs → chunk-HL6NGDO2-CftrHAlX.mjs} +2 -2
- package/dist/{chunk-HOUHSVGY-Cg_2_CUd.mjs → chunk-HOUHSVGY-C3h3PdhC.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-CVxg-h0V.mjs → chunk-HWKDQ44K-CGcvROg-.mjs} +2 -2
- package/dist/chunk-HWKDQ44K-D3ZbaPl8.mjs +4 -0
- package/dist/chunk-I57KEIP3-_HYA-njf.mjs +11 -0
- package/dist/{chunk-I57KEIP3-FVl4IVXz.mjs → chunk-I57KEIP3-iiTO2OC-.mjs} +1 -1
- package/dist/{chunk-ICXQ74PX-CewdqzeE.mjs → chunk-ICXQ74PX-DbJy3VdO.mjs} +2 -2
- package/dist/chunk-IPJHKYVM-3ANqAo3C.mjs +2 -0
- package/dist/{chunk-JG7HCLWE-BgiWVzAI.mjs → chunk-JG7HCLWE-lUInQ_44.mjs} +2 -2
- package/dist/{chunk-JVPRLUMK-CH7w4zyh.mjs → chunk-JVPRLUMK-FzUEFQw9.mjs} +2 -2
- package/dist/{chunk-JWPE2WC7-cMhWwV9I.mjs → chunk-JWPE2WC7-iDbhfJR-.mjs} +2 -2
- package/dist/{chunk-K6LIBGJA-DI9ZkJey.mjs → chunk-K6LIBGJA-BXxOXTjI.mjs} +2 -2
- package/dist/{chunk-KEIR6QF5-BhaMJNB5.mjs → chunk-KEIR6QF5-BLwvtFl6.mjs} +1 -1
- package/dist/{chunk-KMEYNNUA-CabTsa7P.mjs → chunk-KMEYNNUA-1KiUKBQV.mjs} +2 -2
- package/dist/chunk-KRBPSX3W-DeaaVEij.mjs +6 -0
- package/dist/{chunk-KRBPSX3W-ciCGjpAL.mjs → chunk-KRBPSX3W-YDdgrCmf.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-r8mDpVuz.mjs → chunk-LL3S3NLB-D0lLKwVi.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-Cj1hz7m7.mjs → chunk-LTZRCH7N-DpPs5vSq.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-C3ON4AHi.mjs → chunk-LWEGUNWT-DOK-XWMd.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-D3MZs3FF.mjs → chunk-MDDMCKUK-CTA6qEdN.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-DgTeOfIY.mjs → chunk-MDLLFABN-B2tA3LLA.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-BbSobv_U.mjs → chunk-MHTUABJP-CrR3MfDw.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-CzqfuBdK.mjs → chunk-MIZPJHVH-d3bhRfh4.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-BcM04nM_.mjs → chunk-MLXIYONF-C0S_CKb1.mjs} +1 -1
- package/dist/{chunk-MOJQB5TN-CidbQQ7m.mjs → chunk-MOJQB5TN-CUt4IiNv.mjs} +2 -2
- package/dist/{chunk-MOZMSUNE-DTiZcqZ1.mjs → chunk-MOZMSUNE-DCxwDKn7.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-B3ukegXT.mjs → chunk-MYE6AGBJ-CMoRJzYM.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-CoAYVGR3.mjs → chunk-NAERJDUW-Ck-SZ2Ps.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-C1KcgrGe.mjs → chunk-NCNPKYJZ-BxqfYu6d.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-sPbPxu4W.mjs → chunk-NUYSJFDK-DfaBzW-k.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-BdLZfp3D.mjs → chunk-OCLXQMOG-DC3689MV.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-7beNWT9m.mjs → chunk-OCS6LSEM-BY3_3dNt.mjs} +2 -2
- package/dist/{chunk-OGEWGWER-B-Vr80Fa.mjs → chunk-OGEWGWER-DgPAesMA.mjs} +2 -2
- package/dist/chunk-OJDRYQWQ-B9KRyRFZ.mjs +2 -0
- package/dist/{chunk-OSBZ3O6U-DwDyo3Ly.mjs → chunk-OSBZ3O6U-BVpvamr7.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-ww-bn-Tp.mjs → chunk-PBXLG62G-C12xrBbG.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-xKRHmmOd.mjs → chunk-PP6PSHAB-tlM6YKyg.mjs} +1 -1
- package/dist/{chunk-PUDLZKDR-CI0pacGF.mjs → chunk-PUDLZKDR-CIWYIjrF.mjs} +2 -2
- package/dist/{chunk-PXTK5WE2-Dfi2FrE5.mjs → chunk-PXTK5WE2-DNbfUrIy.mjs} +1 -1
- package/dist/chunk-PXTK5WE2-e9kxtsgu.mjs +22 -0
- package/dist/{chunk-PYSFUGCK-BHwvxY2Q.mjs → chunk-PYSFUGCK-DqdcBhD4.mjs} +2 -2
- package/dist/{chunk-Q4XR5HBZ-4H-m7p0G.mjs → chunk-Q4XR5HBZ-jWirJQsj.mjs} +2 -2
- package/dist/{chunk-QBLGF6JB-B_tvtCRO.mjs → chunk-QBLGF6JB-hMrl9lGc.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-DHsQu4h6.mjs → chunk-QCDB2VPH-Cv7mIZWG.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-CTKdWbns.mjs → chunk-QJ7O6ZN3-BRN048sn.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-DA60heK6.mjs → chunk-R6QSAL5T-CxzbKF59.mjs} +1 -1
- package/dist/chunk-R6VWJ2ZL-DmUcUF0z.mjs +2 -0
- package/dist/{chunk-R7FJI6CG-BVR1ae7y.mjs → chunk-R7FJI6CG-bmCS8vOS.mjs} +2 -2
- package/dist/{chunk-RPNGRAAP-df7FdhI4.mjs → chunk-RPNGRAAP-BTpXCNpb.mjs} +2 -2
- package/dist/{chunk-RYQCIY6F-C8F82Uai.mjs → chunk-RYQCIY6F-Dt7I2-Oy.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-BuTL-ot2.mjs → chunk-SDNKECQQ-BNRfy-15.mjs} +2 -2
- package/dist/chunk-SNN4IESC-CZPQ88bY.mjs +2 -0
- package/dist/{chunk-SNN4IESC-DVqEOGsL.mjs → chunk-SNN4IESC-oXVGT9qo.mjs} +1 -1
- package/dist/{chunk-T56QNPHK-COZC2A_r.mjs → chunk-T56QNPHK-lY6QjpkL.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-DAREQN9J.mjs → chunk-TLSUDHID-BP7dARSe.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-C3JZDC96.mjs → chunk-TOMNU26N-BFsBBT9j.mjs} +2 -2
- package/dist/{chunk-TP4BZANS-C2Z-CHHA.mjs → chunk-TP4BZANS-C6KGxaUf.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-DOaoE5TV.mjs → chunk-TXBZCHCQ-DxPX5PCF.mjs} +2 -2
- package/dist/{chunk-U6XO7XAA-BpjdcG5R.mjs → chunk-U6XO7XAA-BHty90wb.mjs} +2 -2
- package/dist/{chunk-V5MWI2OL-D8SKWVO_.mjs → chunk-V5MWI2OL-DApVl_z4.mjs} +1 -1
- package/dist/{chunk-V7JOEXUC-CdEIYYNc.mjs → chunk-V7JOEXUC-DNM56rwe.mjs} +2 -2
- package/dist/{chunk-V7TAPXDL-CQbB1mLa.mjs → chunk-V7TAPXDL-CrGsULIH.mjs} +2 -2
- package/dist/chunk-VAUOI2AC-BdotBBDE.mjs +2 -0
- package/dist/{chunk-VJFXDYWH-C7Lg-Yts.mjs → chunk-VJFXDYWH-DXnppZsu.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-CKl2LR-K.mjs → chunk-VOBGTVA6-_4QbVbSJ.mjs} +2 -2
- package/dist/{chunk-VR4S4FIN-mH-q10Uq.mjs → chunk-VR4S4FIN-RUJ5PgRH.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-DFxaC5Uc.mjs → chunk-VYOJP4TV-DG_cm0JM.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-R7B51gCW.mjs → chunk-WKFATFPP-DygaP6No.mjs} +2 -2
- package/dist/{chunk-WYO6CB5R-Cg1RXhAT.mjs → chunk-WYO6CB5R-DN1R0VLx.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-D97qevlv.mjs → chunk-X2AJGDEF-BXjUENXL.mjs} +1 -1
- package/dist/chunk-X2AJGDEF-ivzQBp_p.mjs +2 -0
- package/dist/{chunk-XKQRETAK-BTmmMuta.mjs → chunk-XKQRETAK-CYJSOFLN.mjs} +2 -2
- package/dist/{chunk-XKWWSDBF-BGzAOrO3.mjs → chunk-XKWWSDBF-BTj39eCO.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-3ajbQWzU.mjs → chunk-XVDPCNWR-BSVT7Ttz.mjs} +2 -2
- package/dist/chunk-XXDRQBXY-D1gFTzjI.mjs +2 -0
- package/dist/{chunk-Y2CYZVJY-C7FmC3Cl.mjs → chunk-Y2CYZVJY-acXC9Sbb.mjs} +1 -1
- package/dist/{chunk-YMMW5UAP-DbBgrudQ.mjs → chunk-YMMW5UAP-CE-EQ2Is.mjs} +2 -2
- package/dist/{chunk-YOTPTUD7-BSOqhRr-.mjs → chunk-YOTPTUD7-63S9b4Z2.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-CoxqCaLl.mjs → chunk-YTNYSM6T-DFPh_641.mjs} +2 -2
- package/dist/{chunk-YULBWSET-CuKhTv4j.mjs → chunk-YULBWSET-B6FKJjk9.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-CujGXDs8.mjs → chunk-Z6LRHWXI-BCgawaNX.mjs} +1 -1
- package/dist/{chunk-Z7JVV2SM-CiJwkxuY.mjs → chunk-Z7JVV2SM-CTUpikzI.mjs} +2 -2
- package/dist/{chunk-ZGVPDNZ5-BE_qYP6z.mjs → chunk-ZGVPDNZ5-CyyHBEs2.mjs} +2 -2
- package/dist/{chunk-ZIRB5QZD-mhYZnDzb.mjs → chunk-ZIRB5QZD-K23GvNu-.mjs} +2 -2
- package/dist/{chunk-ZZO3UDB3-DCkJjNN2.mjs → chunk-ZZO3UDB3-MiEiJy8J.mjs} +2 -2
- package/dist/classDiagram-OUVF2IWQ-0ApI9cDS.mjs +2 -0
- package/dist/classDiagram-v2-EOCWNBFH-DfQYJWNe.mjs +2 -0
- package/dist/clear-5CZ5X4YR-9EZyt4MH.mjs +2 -0
- package/dist/{clear-5CZ5X4YR-BNXs_KRD.mjs → clear-5CZ5X4YR-BICGLF_r.mjs} +1 -1
- package/dist/cli.mjs +22 -22
- package/dist/{column-WLPMMSTS-BrY1gQI1.mjs → column-WLPMMSTS-D0I9TpQ2.mjs} +1 -1
- package/dist/column-WLPMMSTS-Do8HgL6q.mjs +8 -0
- package/dist/comm-5SLSESQG-0igXzBnl.mjs +12 -0
- package/dist/{comm-5SLSESQG-aGB098lH.mjs → comm-5SLSESQG-D2Rs9Jmo.mjs} +1 -1
- package/dist/constants-BkYBCRUx.mjs +2 -0
- package/dist/{cose-bilkent-JH36ORCC-CMfIp4st.mjs → cose-bilkent-JH36ORCC-B1gjUwU3.mjs} +2 -2
- package/dist/cp-XOYR4ABJ-CpnwcT2f.mjs +8 -0
- package/dist/{du-WO2ENHXQ-Cg71FvLi.mjs → cp-XOYR4ABJ-OfwEEWhR.mjs} +1 -1
- package/dist/{curl-47BFPSFW-d1TMPUJw.mjs → curl-47BFPSFW-Ko1BcK_R.mjs} +2 -2
- package/dist/{cut-OPC3VAGB-FXZX1WQM.mjs → cut-OPC3VAGB-BAhJz0Qh.mjs} +1 -1
- package/dist/cut-OPC3VAGB-nJAw1cEp.mjs +6 -0
- package/dist/cynefin-VYW2F7L2-C-aICrN-.mjs +1 -0
- package/dist/{cynefinDiagram-TSTJHNR4-CFbt5v4d.mjs → cynefinDiagram-TSTJHNR4-CoESbhp4.mjs} +2 -2
- package/dist/{cytoscape.esm-Dq6ZD9GH.mjs → cytoscape.esm-D6l9Lhue.mjs} +1 -1
- package/dist/{dagre-CbI1Ylqw.mjs → dagre-BkPA5x_w.mjs} +2 -2
- package/dist/{dagre-VKFMJZFB-BWP36rMX.mjs → dagre-VKFMJZFB-BhCtWAkc.mjs} +2 -2
- package/dist/{head-HT2B6D2J-DSBJixLD.mjs → date-DD7FVA2V-BGJ9-l0O.mjs} +1 -1
- package/dist/date-DD7FVA2V-W_sbdO4n.mjs +5 -0
- package/dist/{defaultLocale-9SlCuWEL.mjs → defaultLocale-DN4qDyCE.mjs} +1 -1
- package/dist/{diagram-FQU43EPY-D2pf7IBH.mjs → diagram-FQU43EPY-BdshpOzp.mjs} +2 -2
- package/dist/{diagram-G47NLZAW-BlOXaBe6.mjs → diagram-G47NLZAW-Lw1fB9_w.mjs} +2 -2
- package/dist/{diagram-NH7WQ7WH-DOwRNWDI.mjs → diagram-NH7WQ7WH-DnzwFaQq.mjs} +2 -2
- package/dist/{diagram-OA4YK3LP-uyGYHUoX.mjs → diagram-OA4YK3LP-BXU-URV1.mjs} +2 -2
- package/dist/{diagram-WEI45ONY-CmW1X9Kx.mjs → diagram-WEI45ONY-CD_Zpcvk.mjs} +2 -2
- package/dist/diff-HJF2MPDN-CQAaA8lM.mjs +1 -0
- package/dist/diff-HJF2MPDN-EjmLU95d.mjs +7 -0
- package/dist/{dirname-LEMTZZFS-RRQ5Ar_Z.mjs → dirname-LEMTZZFS-BG01-R4_.mjs} +1 -1
- package/dist/dirname-LEMTZZFS-Dg3ijqjM.mjs +5 -0
- package/dist/{dist-BmYngy7b.mjs → dist-CMZz8-Ge.mjs} +1 -1
- package/dist/du-WO2ENHXQ-jqWYqk_n.mjs +8 -0
- package/dist/{cp-XOYR4ABJ-D0LUaMQT.mjs → du-WO2ENHXQ-oQRVbsEF.mjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-BpBYlrRH.mjs → ebnfDiagram-CCIWWBDH-D-647A1u.mjs} +2 -2
- package/dist/echo-O45JWWI2-BPosfKdD.mjs +1 -0
- package/dist/echo-O45JWWI2-gk6mEMAU.mjs +4 -0
- package/dist/env-5EPCWSXR-BU5zTNDV.mjs +9 -0
- package/dist/env-5EPCWSXR-DygzVPiG.mjs +1 -0
- package/dist/{erDiagram-Q63AITRT-ChoKKmxG.mjs → erDiagram-Q63AITRT-DviwoNdm.mjs} +2 -2
- package/dist/eventmodeling-45OFAUF4-CJqJ2hnR.mjs +1 -0
- package/dist/{execAsync-BKp2jujj.mjs → execAsync-BLKHjfg7.mjs} +1 -1
- package/dist/{execAsync-BuUKdKlz.mjs → execAsync-C5ympCkf.mjs} +1 -1
- package/dist/expand-DTNXU4LQ-D2bEx87V.mjs +11 -0
- package/dist/{expand-DTNXU4LQ-BD32VJaK.mjs → expand-DTNXU4LQ-XU44HrWp.mjs} +1 -1
- package/dist/expr-YYCVMXE3-DI2glLwn.mjs +1 -0
- package/dist/expr-YYCVMXE3-wI0boF3e.mjs +5 -0
- package/dist/file-IGDTDPLG-DkYMcmTl.mjs +24 -0
- package/dist/{date-DD7FVA2V-7hk1aW9g.mjs → file-IGDTDPLG-sPfWVy9T.mjs} +1 -1
- package/dist/find-DH2ALKQS-B6bMjuwo.mjs +12 -0
- package/dist/find-DH2ALKQS-CEKaRkgJ.mjs +1 -0
- package/dist/flag-coverage-6JEX67RU-QmoBigPs.mjs +2 -0
- package/dist/flowDiagram-23GEKE2U-Dhi3SNHm.mjs +1 -0
- package/dist/fold-LDSORVYE-Dhx0k6vg.mjs +12 -0
- package/dist/{fold-LDSORVYE-CDU-6eOS.mjs → fold-LDSORVYE-DumfsCQO.mjs} +1 -1
- package/dist/{fs-traced-By5aY-RE.mjs → fs-traced-DVpoNaQJ.mjs} +3 -3
- package/dist/fs-traced-_QGcVmcb.mjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-Cv7sGb-R.mjs → ganttDiagram-NO4QXBWP-DnN5cTGV.mjs} +2 -2
- package/dist/{getMachineId-bsd-DtFrm1Uy.mjs → getMachineId-bsd-B_NuwbXS.mjs} +2 -2
- package/dist/{getMachineId-bsd-GFl1-Bje.mjs → getMachineId-bsd-neTWr-l3.mjs} +2 -2
- package/dist/{getMachineId-darwin--IR8MP8d.mjs → getMachineId-darwin-BP4aVKkL.mjs} +2 -2
- package/dist/{getMachineId-darwin-28jQHa_N.mjs → getMachineId-darwin-DKDl-xYO.mjs} +2 -2
- package/dist/{getMachineId-linux-BZgyplQ5.mjs → getMachineId-linux-Bexb2iRT.mjs} +1 -1
- package/dist/{getMachineId-linux-Bzx3S652.mjs → getMachineId-linux-YTb5epZX.mjs} +1 -1
- package/dist/{getMachineId-unsupported-CyTjujlI.mjs → getMachineId-unsupported-Ddv20ynQ.mjs} +1 -1
- package/dist/{getMachineId-unsupported-DuB0leRF.mjs → getMachineId-unsupported-DdwXS_Q3.mjs} +1 -1
- package/dist/{getMachineId-win-BmvAZEMa.mjs → getMachineId-win-BNx0EbPq.mjs} +2 -2
- package/dist/{getMachineId-win-CuOFQQ73.mjs → getMachineId-win-D8cNuBNk.mjs} +2 -2
- package/dist/git-handle-DBSzQutT.mjs +1 -0
- package/dist/{git-handle-BHe1p04S.mjs → git-handle-r3d7s3VF.mjs} +2 -2
- package/dist/gitGraph-TEB2WS4Q-_V7TMkJv.mjs +1 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-DxsFHicP.mjs → gitGraphDiagram-IHSO6WYX-Bs2N855t.mjs} +2 -2
- package/dist/{graphlib-DKEQBDTz.mjs → graphlib-DXQPHTiH.mjs} +1 -1
- package/dist/grep-2HUTXO5U-9G7xEEms.mjs +9 -0
- package/dist/grep-2HUTXO5U-DG5Ulinc.mjs +1 -0
- package/dist/gzip-AQXSGOVS-BcGYw5wM.mjs +32 -0
- package/dist/gzip-AQXSGOVS-D6UYmM0C.mjs +1 -0
- package/dist/head-HT2B6D2J-B5ybc-my.mjs +2 -0
- package/dist/{file-IGDTDPLG-BAlm5q29.mjs → head-HT2B6D2J-CHIR76LI.mjs} +1 -1
- package/dist/help-VVWX7SA5-Bb8T3djf.mjs +16 -0
- package/dist/help-VVWX7SA5-BbK0QLPX.mjs +1 -0
- package/dist/history-J4QRNGRO-5XgHJL_Q.mjs +1 -0
- package/dist/history-J4QRNGRO-DesXbqi2.mjs +3 -0
- package/dist/{hostname-BK6HG2DE-CaZb-T_R.mjs → hostname-BK6HG2DE-Clwz043m.mjs} +1 -1
- package/dist/hostname-BK6HG2DE-DTiGP5th.mjs +3 -0
- package/dist/html-to-markdown-TFCECAGV-BsVwcc4T.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-DLUGt6pW.mjs +73 -0
- package/dist/index.d.mts +6867 -242
- package/dist/index.mjs +1521 -1
- package/dist/info-DKCQHKI2-DIsEz1l_.mjs +1 -0
- package/dist/{infoDiagram-FWYZ7A6U-CbPpTq2x.mjs → infoDiagram-FWYZ7A6U-CD5T72Pd.mjs} +2 -2
- package/dist/init-BlCMJ0yB.mjs +1 -0
- package/dist/{init-Buw5jj4Q.mjs → init-D8OKme52.mjs} +1 -1
- package/dist/{init-ZOWQ1Th4.mjs → init-VslWN3Iz.mjs} +54 -59
- package/dist/{ishikawaDiagram-FXEZZL3T-Dd5BEpOv.mjs → ishikawaDiagram-FXEZZL3T-CzHEtbdq.mjs} +2 -2
- package/dist/join-GG2LDHE5-7k4Syl20.mjs +14 -0
- package/dist/{join-GG2LDHE5-kABASDPB.mjs → join-GG2LDHE5-BIH_-8vD.mjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-W6Nbr96_.mjs → journeyDiagram-5HDEW3XC-BywkQV2b.mjs} +2 -2
- package/dist/jq-LYZFFBZB-BZ4XP29I.mjs +14 -0
- package/dist/jq-LYZFFBZB-Dlyx6Y7w.mjs +1 -0
- package/dist/{js-exec-VXN6TZ7U-1yyCDQqM.mjs → js-exec-VXN6TZ7U-BrugyKqi.mjs} +2 -2
- package/dist/js-exec-VXN6TZ7U-Ds5SsewK.mjs +97 -0
- package/dist/{kanban-definition-HUTT4EX6-xcwe5vNg.mjs → kanban-definition-HUTT4EX6-DIgH0tMg.mjs} +2 -2
- package/dist/{launch-json-removal-CcFuFFS1.mjs → launch-json-removal-9-8M5r9e.mjs} +2 -2
- package/dist/lib-B2tLN_O_.mjs +2 -0
- package/dist/{lib-TLTWf9qr.mjs → lib-DuDqLKFD.mjs} +1 -1
- package/dist/{lib-BCIeHFfP.mjs → lib-ozx_WsjS.mjs} +1 -1
- package/dist/libesm-qUf-Au5c.mjs +14 -0
- package/dist/{line-Cq-NoiNn.mjs → line-eTDW_zUy.mjs} +2 -2
- package/dist/{linear-DPbvcrPk.mjs → linear-Cn1royVQ.mjs} +2 -2
- package/dist/{ln-4TRFBYAT-Dhr3hBr6.mjs → ln-4TRFBYAT-B0hi-FAf.mjs} +1 -1
- package/dist/ln-4TRFBYAT-DGrhTL40.mjs +9 -0
- package/dist/loader-Birwg2h1.mjs +1 -0
- package/dist/{loader-ji3pPcXi.mjs → loader-f3tIWlWk.mjs} +2 -2
- package/dist/{logger-BZPV1wv8.mjs → logger-DFxEUjvj.mjs} +2 -2
- package/dist/ls-KSXFZCWH-C_kbnNdU.mjs +1 -0
- package/dist/ls-KSXFZCWH-GOWXktO9.mjs +28 -0
- package/dist/{lzma-Dh_aFpqW.mjs → lzma-CD6C2vYw.mjs} +1 -1
- package/dist/lzma-CG6o9sq-.mjs +2 -0
- package/dist/{map-CFzSl60r.mjs → map-bDB3k8vA.mjs} +2 -2
- package/dist/md-manager-BbSzMHHE.mjs +2 -0
- package/dist/md5sum-INMIK4DX-BlgGpdCD.mjs +2 -0
- package/dist/md5sum-INMIK4DX-DGvi_A-E.mjs +1 -0
- package/dist/{mermaid-parser.core-DejmtVwC.mjs → mermaid-parser.core-uwQfwzUX.mjs} +2 -2
- package/dist/{mermaid.core-CB8v9A8r.mjs → mermaid.core-BgpKViY0.mjs} +3 -3
- package/dist/{mindmap-definition-LN4V7U3C-BiYp6fzL.mjs → mindmap-definition-LN4V7U3C-H3p7uT-G.mjs} +2 -2
- package/dist/mkdir-TDEMSB6C-BVcgITXm.mjs +7 -0
- package/dist/mkdir-TDEMSB6C-CMOt1jIT.mjs +1 -0
- package/dist/mv-Z6MORUFL-CqyCV_Ze.mjs +1 -0
- package/dist/mv-Z6MORUFL-El0zMsEA.mjs +7 -0
- package/dist/{nl-U5YJDM32-CrNZhLtI.mjs → nl-U5YJDM32-BO1kUpkn.mjs} +1 -1
- package/dist/nl-U5YJDM32-Y_hGSMac.mjs +17 -0
- package/dist/od-VJEF2UR5-CueTpZ68.mjs +5 -0
- package/dist/{od-VJEF2UR5-5RFpmlxK.mjs → od-VJEF2UR5-DxUGtlve.mjs} +1 -1
- package/dist/{open-browser-CxnOIVsL.mjs → open-browser-BgReR_t5.mjs} +2 -2
- package/dist/{ordinal-D5S_JXYv.mjs → ordinal-BFK2XMXf.mjs} +2 -2
- package/dist/packet-7NZHBO7P-B64OS2eJ.mjs +1 -0
- package/dist/parse-worker.d.mts +6626 -1
- package/dist/parse-worker.mjs +1 -1
- package/dist/paste-7N6AFSDS-BJHZcYXH.mjs +1 -0
- package/dist/paste-7N6AFSDS-BnqApCW_.mjs +8 -0
- package/dist/{path-D4ahAhVD.mjs → path-CIoCsClp.mjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-DMP1ng8V.mjs → pegDiagram-2B236MQR-PBU61CXk.mjs} +2 -2
- package/dist/pie-RZYD4A2V-B313HDTA.mjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-CSKXRjGQ.mjs → pieDiagram-ENE6RG2P-ClZWrO6e.mjs} +2 -2
- package/dist/{preview-2rQXoRuM.mjs → preview-CdESX2Ja.mjs} +2 -2
- package/dist/preview-gKyXf1a0.mjs +1 -0
- package/dist/printf-CX64KX2P-841sNxew.mjs +1 -0
- package/dist/printf-CX64KX2P-B_vWcqAL.mjs +15 -0
- package/dist/public/assets/FeedbackForm-C_A-lpjC.js +1 -0
- package/dist/public/assets/{SessionsHost-BobZkNwc.js → SessionsHost-BRUQMi7f.js} +2 -2
- package/dist/public/assets/{TerminalWindowApp-CgWp2eC-.js → TerminalWindowApp-CFxcrkfe.js} +1 -1
- package/dist/public/assets/ThreadView-CAGruMiN.js +10 -0
- package/dist/public/assets/{follow-file-CWSsUd-S.js → follow-file-BymUhAtT.js} +1 -1
- package/dist/public/assets/{index-Dmlpu4P1.js → index-B-snLDY1.js} +7 -7
- package/dist/public/index.html +2 -2
- package/dist/pwd-D4OZ7N27-C41v1g3B.mjs +1 -0
- package/dist/pwd-D4OZ7N27-NYST_A3S.mjs +3 -0
- package/dist/python3-DNGS4G3E-DaBJervu.mjs +12 -0
- package/dist/{python3-DNGS4G3E-BZ5fPY5e.mjs → python3-DNGS4G3E-OzxoFG34.mjs} +2 -2
- package/dist/{quadrantDiagram-ABIIQ3AL-Do93EPf_.mjs → quadrantDiagram-ABIIQ3AL-Z4PbVL1N.mjs} +2 -2
- package/dist/radar-I7S5WNFK-BdiwGd2_.mjs +1 -0
- package/dist/railroad-3IZDKUUU-O4nBw7jb.mjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CDaO5Dcu.mjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-CS4l_gpR.mjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-bbLhALeS.mjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-BBHONGQu.mjs → railroadDiagram-RFXS5EU6-ZSRYpY_p.mjs} +2 -2
- package/dist/readlink-MI4GCHJF-CQlQ03aa.mjs +1 -0
- package/dist/readlink-MI4GCHJF-Dl1Uxmrf.mjs +6 -0
- package/dist/{repair-launch-json-Cq9ghST3.mjs → repair-launch-json-DwJ_yLw4.mjs} +2 -2
- package/dist/{repair-mcp-configs-DY0FS2-y.mjs → repair-mcp-configs-Q1hO02co.mjs} +2 -2
- package/dist/{repair-skills-CkZZbtNk.mjs → repair-skills-DADI6iaT.mjs} +2 -2
- package/dist/repair-skills-DKwDAoHc.mjs +1 -0
- package/dist/{requirementDiagram-TGXJPOKE-CAGy_wFo.mjs → requirementDiagram-TGXJPOKE-H6OWjjJE.mjs} +2 -2
- package/dist/{rev-XOSYPP45-G2PvMYC2.mjs → rev-XOSYPP45-BYe7prl1.mjs} +1 -1
- package/dist/rev-XOSYPP45-D6eJxPKd.mjs +7 -0
- package/dist/rg-XNF3R3II-CmxxmmUf.mjs +1 -0
- package/dist/rg-XNF3R3II-vKB7djPZ.mjs +33 -0
- package/dist/rm-RTZG23RL-Bl5s9ltJ.mjs +1 -0
- package/dist/rm-RTZG23RL-sCMTtbxP.mjs +8 -0
- package/dist/rmdir-XTQXT7RK-C1ccje2_.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-DZfv6Zfz.mjs +14 -0
- package/dist/{rough.cjs-LxmwwhvT.mjs → rough.cjs-BGkc0Naf.mjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-B59ayZ_U.mjs → sankeyDiagram-HTMAVEWB-CtBVJJox.mjs} +2 -2
- package/dist/sed-JAPPVBEU-C7wh6RxT.mjs +100 -0
- package/dist/{sed-JAPPVBEU-BUaK4riL.mjs → sed-JAPPVBEU-D9bYEx2I.mjs} +1 -1
- package/dist/seq-RN5ZUASB-CFySG-xk.mjs +1 -0
- package/dist/seq-RN5ZUASB-R5HjEVux.mjs +7 -0
- package/dist/{sequenceDiagram-DBY2YBRQ-BqY5gm2k.mjs → sequenceDiagram-DBY2YBRQ-DDLm4Ak_.mjs} +2 -2
- package/dist/server-lock-U8YDpJpq.mjs +1 -0
- package/dist/{server-lock-BleUv9m0.mjs → server-lock-aXnDVUI8.mjs} +2 -2
- package/dist/sha1sum-VJPNLNU6-DfzpfxJ-.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DgLJCjAg.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DZ42pgY3.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DrKtnAPK.mjs +2 -0
- package/dist/{sizeCapture-X5ZJPWSS-D7Nqbe-W.mjs → sizeCapture-X5ZJPWSS-Izaz24Pi.mjs} +2 -2
- package/dist/{skill-teardown-CZnemDLF.mjs → skill-teardown-onVYT1VF.mjs} +2 -2
- package/dist/{sleep-VZFPZFWA-DcISab6N.mjs → sleep-VZFPZFWA-5fZFI3Vy.mjs} +1 -1
- package/dist/sleep-VZFPZFWA-CBARUnrz.mjs +10 -0
- package/dist/sort-DCNRDA7U-RFl0HYBr.mjs +1 -0
- package/dist/sort-DCNRDA7U-vT57Mw8o.mjs +16 -0
- package/dist/{split-SITCSYCZ-D4U2N_sH.mjs → split-SITCSYCZ-BdATfTxU.mjs} +1 -1
- package/dist/split-SITCSYCZ-Ci_IfVPT.mjs +17 -0
- package/dist/{sqlite3-TE5AIOTF-DcjYN7WW.mjs → sqlite3-TE5AIOTF-BIRMe0xz.mjs} +1 -1
- package/dist/sqlite3-TE5AIOTF-BhXSdz7U.mjs +37 -0
- package/dist/{src-BuBt_xnY.mjs → src-BPVU4Y0o.mjs} +2 -2
- package/dist/src-BgeIHNkQ.mjs +1 -0
- package/dist/src-DNPRz0-U.mjs +20 -0
- package/dist/{src-9I3GiOoK.mjs → src-Dt5dAyFQ.mjs} +378 -378
- package/dist/{src-9BFQh559.mjs → src-TKCctdpc.mjs} +123 -123
- package/dist/{src-h5dDPK2z.mjs → src-cRpQSbXB.mjs} +1 -1
- package/dist/start-CWIlNpAT.mjs +1 -0
- package/dist/{start-C4KuZHu5.mjs → start-DRG6a2sz.mjs} +3 -3
- package/dist/stat-BT5A227F-CEZPXJ9_.mjs +9 -0
- package/dist/stat-BT5A227F-Dd-OyLQQ.mjs +1 -0
- package/dist/{stateDiagram-2N3HPSRC-BD1FBZi9.mjs → stateDiagram-2N3HPSRC-pAn2bDnn.mjs} +2 -2
- package/dist/stateDiagram-v2-6OUMAXLB-DCmVVpGm.mjs +2 -0
- package/dist/strings-7PLOGTPD-CiVw0Uh4.mjs +14 -0
- package/dist/strings-7PLOGTPD-v3qEuUEm.mjs +1 -0
- package/dist/{swimlanes-5IMT3BWC-D2eO0gTx.mjs → swimlanes-5IMT3BWC-nSsjdSnj.mjs} +2 -2
- package/dist/swimlanesDiagram-G3AALYLV-CdQlHesp.mjs +9 -0
- package/dist/tac-SJGXQ4T2-BL4Xd7y6.mjs +9 -0
- package/dist/{tac-SJGXQ4T2-D-bfDFKg.mjs → tac-SJGXQ4T2-DphHfCAY.mjs} +1 -1
- package/dist/tail-S5ULNTJU-Cfa1pDQZ.mjs +2 -0
- package/dist/tail-S5ULNTJU-D6qRQZwV.mjs +1 -0
- package/dist/tar-MZQD7NO4-HJsWmzu9.mjs +63 -0
- package/dist/{tar-MZQD7NO4-Cx5bpVMY.mjs → tar-MZQD7NO4-oAQoyk28.mjs} +1 -1
- package/dist/tee-O7VXZDCO-D95l5L5Z.mjs +3 -0
- package/dist/tee-O7VXZDCO-odVO6Wjw.mjs +1 -0
- package/dist/time-DEUO3QV2-CviQF55F.mjs +1 -0
- package/dist/time-DEUO3QV2-DwnT4FOS.mjs +14 -0
- package/dist/{timeline-definition-FHXFAJF6-DZHpuaV_.mjs → timeline-definition-FHXFAJF6-CnTXJoEq.mjs} +2 -2
- package/dist/timeout-VRKMCG72-DFU5EkCe.mjs +12 -0
- package/dist/{timeout-VRKMCG72-DaJVXXR3.mjs → timeout-VRKMCG72-jeMAkAMc.mjs} +1 -1
- package/dist/touch-DX2IJOQ4-CRX6GYeb.mjs +7 -0
- package/dist/touch-DX2IJOQ4-CyiMRd7b.mjs +1 -0
- package/dist/tr-2HXZRDSW-ByYmbFae.mjs +21 -0
- package/dist/tr-2HXZRDSW-CCce6lU_.mjs +1 -0
- package/dist/tree-LYXBS7DC-Dq6aWetx.mjs +12 -0
- package/dist/tree-LYXBS7DC-pAC77Hbt.mjs +1 -0
- package/dist/treeView-QDETBFTQ-BCAjffnq.mjs +1 -0
- package/dist/treemap-6X3UGDF4-Dv-54pyt.mjs +1 -0
- package/dist/true-WHJNXCHG-Dzdq7R5f.mjs +1 -0
- package/dist/true-WHJNXCHG-XC4ZnbBw.mjs +2 -0
- package/dist/unexpand-RGTMIGZM-B06mOUPB.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-BL5sZ5_Z.mjs +11 -0
- package/dist/uniq-SUNANL47-BIgIOFSf.mjs +1 -0
- package/dist/uniq-SUNANL47-DBRSkw7j.mjs +5 -0
- package/dist/{vennDiagram-L72KCM5P-CGoW4QcS.mjs → vennDiagram-L72KCM5P-CqTzYRfa.mjs} +2 -2
- package/dist/wardley-OPB4EBWU-DSvo57UC.mjs +1 -0
- package/dist/{wardleyDiagram-EHGQE667-DHS8jBWZ.mjs → wardleyDiagram-EHGQE667-WhxG-nRT.mjs} +2 -2
- package/dist/wc-TQB3VNOX-9RyJlZXB.mjs +1 -0
- package/dist/wc-TQB3VNOX-DqHFY4jy.mjs +6 -0
- package/dist/which-XZHEH76L-CbmRVw8E.mjs +3 -0
- package/dist/which-XZHEH76L-SMFjHhz2.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BDJh39KM.mjs +3 -0
- package/dist/whoami-DGKU3D2X-BIUooLXE.mjs +1 -0
- package/dist/{write-project-skill-WXZSbQlg.mjs → write-project-skill-DOogyZge.mjs} +4 -4
- package/dist/xan-UD7JYIL2-DAuAMQ0H.mjs +1 -0
- package/dist/xan-UD7JYIL2-DQo9f-1a.mjs +140 -0
- package/dist/xan-view-OW2TB7Z3-BhVOL6hm.mjs +1 -0
- package/dist/xan-view-OW2TB7Z3-CwG0zS53.mjs +1 -0
- package/dist/xargs-I6EZUCYF-C_ZtmUCd.mjs +5 -0
- package/dist/xargs-I6EZUCYF-INAdKqnR.mjs +1 -0
- package/dist/{xychartDiagram-FW5EYKEG-CG0DSvm_.mjs → xychartDiagram-FW5EYKEG-DDE7TRrw.mjs} +2 -2
- package/dist/yazl-BlMyAOcT.mjs +2 -0
- package/dist/yq-OAKYHSXH-C1fFFHD4.mjs +1 -0
- package/dist/yq-OAKYHSXH-COzSqY4J.mjs +288 -0
- package/package.json +7 -6
- package/dist/alias-JE7RI5QX-BfILuEvo.mjs +0 -1
- package/dist/architecture-TIHT7OUA-CScIhnar.mjs +0 -1
- package/dist/bash-IJWYRKFO-DKUaUgF9.mjs +0 -1
- package/dist/channel-DRk0OEK0.mjs +0 -2
- package/dist/chunk-VAUOI2AC-Ds6ZNp2p.mjs +0 -2
- package/dist/chunk-XXDRQBXY-BvbdToKZ.mjs +0 -2
- package/dist/classDiagram-OUVF2IWQ-rKP7gcsT.mjs +0 -2
- package/dist/classDiagram-v2-EOCWNBFH-BoWf4tYI.mjs +0 -2
- package/dist/constants-J4-mibQ1.mjs +0 -2
- package/dist/cynefin-VYW2F7L2-DtazLHUs.mjs +0 -1
- package/dist/diff-HJF2MPDN-bcOaHvDo.mjs +0 -1
- package/dist/echo-O45JWWI2-BacOdfFs.mjs +0 -1
- package/dist/env-5EPCWSXR-T8XCKOX_.mjs +0 -1
- package/dist/eventmodeling-45OFAUF4-BIXp-P6z.mjs +0 -1
- package/dist/expr-YYCVMXE3-CgQib9F9.mjs +0 -1
- package/dist/find-DH2ALKQS-z-G7VPmU.mjs +0 -1
- package/dist/flag-coverage-6JEX67RU-Cj_NycUm.mjs +0 -2
- package/dist/flowDiagram-23GEKE2U-B4VrCGdr.mjs +0 -1
- package/dist/fs-traced-CkLhqsEn.mjs +0 -1
- package/dist/git-handle-BDmbIWwd.mjs +0 -1
- package/dist/gitGraph-TEB2WS4Q-BaTdqV7-.mjs +0 -1
- package/dist/grep-2HUTXO5U-CsEE08ya.mjs +0 -1
- package/dist/gzip-AQXSGOVS-CmMf6H0r.mjs +0 -1
- package/dist/help-VVWX7SA5-BncYWg0B.mjs +0 -1
- package/dist/history-J4QRNGRO-CULSDkzp.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-CF0t8_d3.mjs +0 -1
- package/dist/index-1MIt1xrM.d.mts +0 -6628
- package/dist/info-DKCQHKI2-BxlpeeVn.mjs +0 -1
- package/dist/init-DDwncQha.mjs +0 -1
- package/dist/jq-LYZFFBZB-CIwp4u6h.mjs +0 -1
- package/dist/loader-BcwbnY_K.mjs +0 -1
- package/dist/ls-KSXFZCWH-BEv3e7-2.mjs +0 -1
- package/dist/md-manager-B4-M0hXs.mjs +0 -2
- package/dist/md5sum-INMIK4DX-CJ1G9gTe.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-BY7IIkok.mjs +0 -1
- package/dist/mv-Z6MORUFL-C4m2WG8E.mjs +0 -1
- package/dist/packet-7NZHBO7P-DJoR1MQJ.mjs +0 -1
- package/dist/paste-7N6AFSDS-DQNANxpk.mjs +0 -1
- package/dist/pie-RZYD4A2V-Ba8iL0H-.mjs +0 -1
- package/dist/preview-MV-qHfzy.mjs +0 -1
- package/dist/printf-CX64KX2P-CKuJk-Cs.mjs +0 -1
- package/dist/public/assets/FeedbackForm-CmdTz11F.js +0 -1
- package/dist/public/assets/ThreadView-VqdgemBS.js +0 -10
- package/dist/pwd-D4OZ7N27-CSTLotxZ.mjs +0 -1
- package/dist/radar-I7S5WNFK-HP72Fmhl.mjs +0 -1
- package/dist/railroad-3IZDKUUU-DC3PWo_6.mjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-Vgpa9_KI.mjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-B4SmMMsT.mjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-DLlDiUuB.mjs +0 -1
- package/dist/readlink-MI4GCHJF-V9fwXBrg.mjs +0 -1
- package/dist/repair-skills-l9Id0gzv.mjs +0 -1
- package/dist/rg-XNF3R3II-CuFYIwNn.mjs +0 -1
- package/dist/rm-RTZG23RL-BOvMrhon.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-Dk19R-p8.mjs +0 -1
- package/dist/seq-RN5ZUASB-D5aLn_so.mjs +0 -1
- package/dist/server-lock-uucDARDL.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-DnTKth9v.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-Z-xtGDHc.mjs +0 -1
- package/dist/sort-DCNRDA7U-C1gRzOOY.mjs +0 -1
- package/dist/src-Dl8P6sfz.mjs +0 -20
- package/dist/start-BYY0acPS.mjs +0 -1
- package/dist/stat-BT5A227F-B4qwqNn_.mjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-CqmBRdZY.mjs +0 -2
- package/dist/strings-7PLOGTPD-BJ6vWsQi.mjs +0 -1
- package/dist/swimlanesDiagram-G3AALYLV-BiRCZWbo.mjs +0 -9
- package/dist/tail-S5ULNTJU-CWnyTuXg.mjs +0 -1
- package/dist/tee-O7VXZDCO-B_duU1hV.mjs +0 -1
- package/dist/time-DEUO3QV2-CekCKA2I.mjs +0 -1
- package/dist/touch-DX2IJOQ4-CZteiICw.mjs +0 -1
- package/dist/tr-2HXZRDSW-D4XuTGWg.mjs +0 -1
- package/dist/tree-LYXBS7DC-CUIzQKTG.mjs +0 -1
- package/dist/treeView-QDETBFTQ-C9yOsbGY.mjs +0 -1
- package/dist/treemap-6X3UGDF4-iowse2nY.mjs +0 -1
- package/dist/true-WHJNXCHG-BzxCUQFd.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-x3XCmR3I.mjs +0 -1
- package/dist/uniq-SUNANL47-DpupkNiO.mjs +0 -1
- package/dist/wardley-OPB4EBWU-BL1Dan_S.mjs +0 -1
- package/dist/wc-TQB3VNOX-D8llmcL9.mjs +0 -1
- package/dist/which-XZHEH76L-imZgNd5x.mjs +0 -1
- package/dist/whoami-DGKU3D2X-CzLNG51j.mjs +0 -1
- package/dist/xan-UD7JYIL2-_38Iv1cI.mjs +0 -1
- package/dist/xan-view-OW2TB7Z3-RT-IKMgr.mjs +0 -1
- package/dist/xargs-I6EZUCYF-Bu8VhXV_.mjs +0 -1
- package/dist/yq-OAKYHSXH-BcCBaLJN.mjs +0 -1
- /package/dist/{expansion-VBDYWVZR-CeY6vkty.mjs → expansion-VBDYWVZR-CpX0YZMb.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{t as e}from"./chunk-B74TABJS-BSazPoW8.mjs";import{i as t}from"./chunk-GFQRA5P5-JJS41DJS.mjs";import{r as n,t as r}from"./chunk-OJDRYQWQ-CmHyfN6x.mjs";import{t as i}from"./chunk-24IMIIXA-BQtWA2ag.mjs";import{a,c as o,i as s,n as c,o as l,r as u,t as d}from"./chunk-7TSDKFEO-BjOrsK6M.mjs";function f(e,t,n,i,s,c,u,d,f,p){switch(t){case`sort`:return Array.isArray(e)?[[...e].sort(u)]:[null];case`sort_by`:return!Array.isArray(e)||n.length===0?[null]:[[...e].sort((e,t)=>{let r=s(e,n[0],i)[0],a=s(t,n[0],i)[0];return u(r,a)})];case`bsearch`:if(!Array.isArray(e))throw Error(`${e===null?`null`:typeof e==`object`?`object`:typeof e} (${JSON.stringify(e)}) cannot be searched from`);return n.length===0?[null]:s(e,n[0],i).map(t=>{let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;u(e[i],t)<0?n=i+1:r=i}return n<e.length&&u(e[n],t)===0?n:-n-1});case`unique_by`:{if(!Array.isArray(e)||n.length===0)return[null];let t=new Map;for(let r of e){let e=s(r,n[0],i)[0],a=JSON.stringify(e);t.has(a)||t.set(a,{item:r,key:e})}let r=[...t.values()];return r.sort((e,t)=>u(e.key,t.key)),[r.map(e=>e.item)]}case`group_by`:{if(!Array.isArray(e)||n.length===0)return[null];let t=new Map;for(let r of e){let e=JSON.stringify(s(r,n[0],i)[0]);t.has(e)||t.set(e,[]),t.get(e)?.push(r)}return[[...t.values()]]}case`max`:return Array.isArray(e)&&e.length>0?[e.reduce((e,t)=>u(e,t)>0?e:t)]:[null];case`max_by`:return!Array.isArray(e)||e.length===0||n.length===0?[null]:[e.reduce((e,t)=>{let r=s(e,n[0],i)[0],a=s(t,n[0],i)[0];return u(r,a)>0?e:t})];case`min`:return Array.isArray(e)&&e.length>0?[e.reduce((e,t)=>u(e,t)<0?e:t)]:[null];case`min_by`:return!Array.isArray(e)||e.length===0||n.length===0?[null]:[e.reduce((e,t)=>{let r=s(e,n[0],i)[0],a=s(t,n[0],i)[0];return u(r,a)<0?e:t})];case`add`:{let t=e=>{let t=e.filter(e=>e!==null);return t.length===0?null:t.every(e=>typeof e==`number`)?t.reduce((e,t)=>e+t,0):t.every(e=>typeof e==`string`)?t.join(``):t.every(e=>Array.isArray(e))?t.flat():t.every(e=>e&&typeof e==`object`&&!Array.isArray(e))?r(...t):null};return n.length>=1?[t(s(e,n[0],i))]:Array.isArray(e)?[t(e)]:[null]}case`any`:if(n.length>=2){try{let t=c(e,n[0],i);for(let e of t)if(s(e,n[1],i).some(d))return[!0]}catch(e){if(e instanceof p)throw e}return[!1]}return n.length===1?Array.isArray(e)?[e.some(e=>d(s(e,n[0],i)[0]))]:[!1]:Array.isArray(e)?[e.some(d)]:[!1];case`all`:if(n.length>=2){try{let t=c(e,n[0],i);for(let e of t)if(!s(e,n[1],i).some(d))return[!1]}catch(e){if(e instanceof p)throw e}return[!0]}return n.length===1?Array.isArray(e)?[e.every(e=>d(s(e,n[0],i)[0]))]:[!0]:Array.isArray(e)?[e.every(d)]:[!0];case`select`:return n.length===0||s(e,n[0],i).some(d)?[e]:[];case`map`:return n.length===0||!Array.isArray(e)?[null]:[e.flatMap(e=>s(e,n[0],i))];case`map_values`:if(n.length===0)return[null];if(Array.isArray(e))return[e.flatMap(e=>s(e,n[0],i))];if(e&&typeof e==`object`){let t=Object.create(null);for(let[r,o]of Object.entries(e)){if(!l(r))continue;let e=s(o,n[0],i);e.length>0&&a(t,r,e[0])}return[t]}return[null];case`has`:{if(n.length===0)return[!1];let t=s(e,n[0],i)[0];return Array.isArray(e)&&typeof t==`number`?[t>=0&&t<e.length]:e&&typeof e==`object`&&typeof t==`string`?[o(e,t)]:[!1]}case`in`:{if(n.length===0)return[!1];let t=s(e,n[0],i)[0];return Array.isArray(t)&&typeof e==`number`?[e>=0&&e<t.length]:t&&typeof t==`object`&&typeof e==`string`?[o(t,e)]:[!1]}case`contains`:return n.length===0?[!1]:[f(e,s(e,n[0],i)[0])];case`inside`:return n.length===0?[!1]:[f(s(e,n[0],i)[0],e)];default:return null}}function p(e,t,n,r,i,a,o,s){switch(t){case`first`:if(n.length>0)try{let t=a(e,n[0],r);return t.length>0?[t[0]]:[]}catch(e){if(e instanceof s)throw e;return[]}return Array.isArray(e)&&e.length>0?[e[0]]:[null];case`last`:if(n.length>0){let t=i(e,n[0],r);return t.length>0?[t[t.length-1]]:[]}return Array.isArray(e)&&e.length>0?[e[e.length-1]]:[null];case`nth`:{if(n.length<1)return[null];let t=i(e,n[0],r);if(n.length>1){for(let e of t)if(e<0)throw Error(`nth doesn't support negative indices`);let i;try{i=a(e,n[1],r)}catch(e){if(e instanceof s)throw e;i=[]}return t.flatMap(e=>{let t=e;return t<i.length?[i[t]]:[]})}return Array.isArray(e)?t.flatMap(t=>{let n=t;if(n<0)throw Error(`nth doesn't support negative indices`);return n<e.length?[e[n]]:[null]}):[null]}case`range`:{if(n.length===0)return[];let t=Math.max(r.limits.maxIterations*100,1e6),a=e=>e.length>=t,o=i(e,n[0],r);if(n.length===1){let e=[];for(let t of o){let n=t;for(let t=0;t<n;t++)if(e.push(t),a(e))return e}return e}let s=i(e,n[1],r);if(n.length===2){let e=[];for(let t of o)for(let n of s){let r=t,i=n;for(let t=r;t<i;t++)if(e.push(t),a(e))return e}return e}let c=i(e,n[2],r),l=[];for(let e of o)for(let t of s)for(let n of c){let r=e,i=t,o=n;if(o!==0){if(o>0){for(let e=r;e<i;e+=o)if(l.push(e),a(l))return l}else for(let e=r;e>i;e+=o)if(l.push(e),a(l))return l}}return l}case`limit`:return n.length<2?[]:i(e,n[0],r).flatMap(t=>{let i=t;if(i<0)throw Error(`limit doesn't support negative count`);if(i===0)return[];let o;try{o=a(e,n[1],r)}catch(e){if(e instanceof s)throw e;o=[]}return o.slice(0,i)});case`isempty`:if(n.length<1)return[!0];try{return[a(e,n[0],r).length===0]}catch(e){if(e instanceof s)throw e;return[!0]}case`isvalid`:if(n.length<1)return[!0];try{return[i(e,n[0],r).length>0]}catch(e){if(e instanceof s)throw e;return[!1]}case`skip`:return n.length<2?[]:i(e,n[0],r).flatMap(t=>{let a=t;if(a<0)throw Error(`skip doesn't support negative count`);return i(e,n[1],r).slice(a)});case`until`:{if(n.length<2)return[e];let t=e,a=r.limits.maxIterations;for(let e=0;e<a;e++){if(i(t,n[0],r).some(o))return[t];let e=i(t,n[1],r);if(e.length===0)return[t];t=e[0]}throw new s(`jq until: too many iterations (${a}), increase executionLimits.maxJqIterations`,`iterations`)}case`while`:{if(n.length<2)return[e];let t=[],a=e,c=r.limits.maxIterations;for(let e=0;e<c&&i(a,n[0],r).some(o);e++){t.push(a);let e=i(a,n[1],r);if(e.length===0)break;a=e[0]}if(t.length>=c)throw new s(`jq while: too many iterations (${c}), increase executionLimits.maxJqIterations`,`iterations`);return t}case`repeat`:{if(n.length===0)return[e];let t=[],a=e,o=r.limits.maxIterations;for(let e=0;e<o;e++){t.push(a);let e=i(a,n[0],r);if(e.length===0)break;a=e[0]}if(t.length>=o)throw new s(`jq repeat: too many iterations (${o}), increase executionLimits.maxJqIterations`,`iterations`);return t}default:return null}}function m(e,t,n,r,i){switch(t){case`now`:return[Date.now()/1e3];case`gmtime`:{if(typeof e!=`number`)return[null];let t=new Date(e*1e3),n=t.getUTCFullYear(),r=t.getUTCMonth(),i=t.getUTCDate(),a=t.getUTCHours(),o=t.getUTCMinutes(),s=t.getUTCSeconds(),c=t.getUTCDay(),l=Date.UTC(n,0,1);return[[n,r,i,a,o,s,c,Math.floor((t.getTime()-l)/(1440*60*1e3))]]}case`mktime`:{if(!Array.isArray(e))throw Error(`mktime requires parsed datetime inputs`);let[t,n,r,i=0,a=0,o=0]=e;if(typeof t!=`number`||typeof n!=`number`)throw Error(`mktime requires parsed datetime inputs`);return[Math.floor(Date.UTC(t,n,r??1,i??0,a??0,o??0)/1e3)]}case`strftime`:{if(n.length===0)return[null];let t=i(e,n[0],r)[0];if(typeof t!=`string`)throw Error(`strftime/1 requires a string format`);let a;if(typeof e==`number`)a=new Date(e*1e3);else if(Array.isArray(e)){let[t,n,r,i=0,o=0,s=0]=e;if(typeof t!=`number`||typeof n!=`number`)throw Error(`strftime/1 requires parsed datetime inputs`);a=new Date(Date.UTC(t,n,r??1,i??0,o??0,s??0))}else throw Error(`strftime/1 requires parsed datetime inputs`);let o=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],s=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],c=(e,t=2)=>String(e).padStart(t,`0`);return[t.replace(/%Y/g,String(a.getUTCFullYear())).replace(/%m/g,c(a.getUTCMonth()+1)).replace(/%d/g,c(a.getUTCDate())).replace(/%H/g,c(a.getUTCHours())).replace(/%M/g,c(a.getUTCMinutes())).replace(/%S/g,c(a.getUTCSeconds())).replace(/%A/g,o[a.getUTCDay()]).replace(/%B/g,s[a.getUTCMonth()]).replace(/%Z/g,`UTC`).replace(/%%/g,`%`)]}case`strptime`:{if(n.length===0)return[null];if(typeof e!=`string`)throw Error(`strptime/1 requires a string input`);let t=i(e,n[0],r)[0];if(typeof t!=`string`)throw Error(`strptime/1 requires a string format`);if(t===`%Y-%m-%dT%H:%M:%SZ`){let t=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(t){let[,e,n,r,i,a,o]=t.map(Number),s=new Date(Date.UTC(e,n-1,r,i,a,o)),c=s.getUTCDay(),l=Date.UTC(e,0,1),u=Math.floor((s.getTime()-l)/(1440*60*1e3));return[[e,n-1,r,i,a,o,c,u]]}}let a=new Date(e);if(!Number.isNaN(a.getTime())){let e=a.getUTCFullYear(),t=a.getUTCMonth(),n=a.getUTCDate(),r=a.getUTCHours(),i=a.getUTCMinutes(),o=a.getUTCSeconds(),s=a.getUTCDay(),c=Date.UTC(e,0,1);return[[e,t,n,r,i,o,s,Math.floor((a.getTime()-c)/(1440*60*1e3))]]}throw Error(`Cannot parse date: ${e}`)}case`fromdate`:{if(typeof e!=`string`)throw Error(`fromdate requires a string input`);let t=new Date(e);if(Number.isNaN(t.getTime()))throw Error(`date "${e}" does not match format "%Y-%m-%dT%H:%M:%SZ"`);return[Math.floor(t.getTime()/1e3)]}case`todate`:if(typeof e!=`number`)throw Error(`todate requires a number input`);return[new Date(e*1e3).toISOString().replace(/\.\d{3}Z$/,`Z`)];default:return null}}function h(e){return e!==!1&&e!==null}function g(e,t){return JSON.stringify(e)===JSON.stringify(t)}function _(e,t){return typeof e==`number`&&typeof t==`number`?e-t:typeof e==`string`&&typeof t==`string`?e.localeCompare(t):0}function v(e,t){let n=c(e);for(let e of Object.keys(t)){if(!l(e))continue;let r=o(n,e)?u(n[e]):null,i=u(t[e]);r&&i?a(n,e,v(r,i)):a(n,e,t[e])}return n}function y(e,t=3e3){let n=0,r=e;for(;n<t;)if(Array.isArray(r)){if(r.length===0)return n+1;r=r[0],n++}else if(typeof r==`object`&&r){let e=Object.keys(r);if(e.length===0)return n+1;r=r[e[0]],n++}else return n;return n}function b(e,t){let n=e=>e===null?0:typeof e==`boolean`?1:typeof e==`number`?2:typeof e==`string`?3:Array.isArray(e)?4:typeof e==`object`?5:6,r=n(e),i=n(t);if(r!==i)return r-i;if(typeof e==`number`&&typeof t==`number`)return e-t;if(typeof e==`string`&&typeof t==`string`)return e.localeCompare(t);if(typeof e==`boolean`&&typeof t==`boolean`)return!!e-+!!t;if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<Math.min(e.length,t.length);n++){let r=b(e[n],t[n]);if(r!==0)return r}return e.length-t.length}let a=u(e),o=u(t);if(a&&o){let e=Object.keys(a).sort(),t=Object.keys(o).sort();for(let n=0;n<Math.min(e.length,t.length);n++){let r=e[n].localeCompare(t[n]);if(r!==0)return r}if(e.length!==t.length)return e.length-t.length;for(let t of e){let e=b(a[t],o[t]);if(e!==0)return e}}return 0}function x(e,t){if(g(e,t))return!0;if(typeof e==`string`&&typeof t==`string`)return e.includes(t);if(Array.isArray(e)&&Array.isArray(t))return t.every(t=>e.some(e=>x(e,t)));let n=u(e),r=u(t);return n&&r?Object.keys(r).every(e=>o(n,e)&&x(n[e],r[e])):!1}var S=2e3;function C(e,t,n){switch(t){case`@base64`:return typeof e==`string`?typeof Buffer<`u`?[Buffer.from(e,`utf-8`).toString(`base64`)]:[btoa(e)]:[null];case`@base64d`:return typeof e==`string`?typeof Buffer<`u`?[Buffer.from(e,`base64`).toString(`utf-8`)]:[atob(e)]:[null];case`@uri`:return typeof e==`string`?[encodeURIComponent(e).replace(/!/g,`%21`).replace(/'/g,`%27`).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/\*/g,`%2A`)]:[null];case`@urid`:return typeof e==`string`?[decodeURIComponent(e)]:[null];case`@csv`:return Array.isArray(e)?[e.map(e=>{if(e===null)return``;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`)return String(e);let t=String(e);return t.includes(`,`)||t.includes(`"`)||t.includes(`
|
|
1
|
+
import{t as e}from"./chunk-B74TABJS-BSazPoW8.mjs";import{i as t}from"./chunk-GFQRA5P5-JJS41DJS.mjs";import{r as n,t as r}from"./chunk-OJDRYQWQ-CmHyfN6x.mjs";import{t as i}from"./chunk-24IMIIXA-BQtWA2ag.mjs";import{a,c as o,i as s,n as c,o as l,r as u,t as d}from"./chunk-7TSDKFEO-DBB10vPw.mjs";function f(e,t,n,i,s,c,u,d,f,p){switch(t){case`sort`:return Array.isArray(e)?[[...e].sort(u)]:[null];case`sort_by`:return!Array.isArray(e)||n.length===0?[null]:[[...e].sort((e,t)=>{let r=s(e,n[0],i)[0],a=s(t,n[0],i)[0];return u(r,a)})];case`bsearch`:if(!Array.isArray(e))throw Error(`${e===null?`null`:typeof e==`object`?`object`:typeof e} (${JSON.stringify(e)}) cannot be searched from`);return n.length===0?[null]:s(e,n[0],i).map(t=>{let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;u(e[i],t)<0?n=i+1:r=i}return n<e.length&&u(e[n],t)===0?n:-n-1});case`unique_by`:{if(!Array.isArray(e)||n.length===0)return[null];let t=new Map;for(let r of e){let e=s(r,n[0],i)[0],a=JSON.stringify(e);t.has(a)||t.set(a,{item:r,key:e})}let r=[...t.values()];return r.sort((e,t)=>u(e.key,t.key)),[r.map(e=>e.item)]}case`group_by`:{if(!Array.isArray(e)||n.length===0)return[null];let t=new Map;for(let r of e){let e=JSON.stringify(s(r,n[0],i)[0]);t.has(e)||t.set(e,[]),t.get(e)?.push(r)}return[[...t.values()]]}case`max`:return Array.isArray(e)&&e.length>0?[e.reduce((e,t)=>u(e,t)>0?e:t)]:[null];case`max_by`:return!Array.isArray(e)||e.length===0||n.length===0?[null]:[e.reduce((e,t)=>{let r=s(e,n[0],i)[0],a=s(t,n[0],i)[0];return u(r,a)>0?e:t})];case`min`:return Array.isArray(e)&&e.length>0?[e.reduce((e,t)=>u(e,t)<0?e:t)]:[null];case`min_by`:return!Array.isArray(e)||e.length===0||n.length===0?[null]:[e.reduce((e,t)=>{let r=s(e,n[0],i)[0],a=s(t,n[0],i)[0];return u(r,a)<0?e:t})];case`add`:{let t=e=>{let t=e.filter(e=>e!==null);return t.length===0?null:t.every(e=>typeof e==`number`)?t.reduce((e,t)=>e+t,0):t.every(e=>typeof e==`string`)?t.join(``):t.every(e=>Array.isArray(e))?t.flat():t.every(e=>e&&typeof e==`object`&&!Array.isArray(e))?r(...t):null};return n.length>=1?[t(s(e,n[0],i))]:Array.isArray(e)?[t(e)]:[null]}case`any`:if(n.length>=2){try{let t=c(e,n[0],i);for(let e of t)if(s(e,n[1],i).some(d))return[!0]}catch(e){if(e instanceof p)throw e}return[!1]}return n.length===1?Array.isArray(e)?[e.some(e=>d(s(e,n[0],i)[0]))]:[!1]:Array.isArray(e)?[e.some(d)]:[!1];case`all`:if(n.length>=2){try{let t=c(e,n[0],i);for(let e of t)if(!s(e,n[1],i).some(d))return[!1]}catch(e){if(e instanceof p)throw e}return[!0]}return n.length===1?Array.isArray(e)?[e.every(e=>d(s(e,n[0],i)[0]))]:[!0]:Array.isArray(e)?[e.every(d)]:[!0];case`select`:return n.length===0||s(e,n[0],i).some(d)?[e]:[];case`map`:return n.length===0||!Array.isArray(e)?[null]:[e.flatMap(e=>s(e,n[0],i))];case`map_values`:if(n.length===0)return[null];if(Array.isArray(e))return[e.flatMap(e=>s(e,n[0],i))];if(e&&typeof e==`object`){let t=Object.create(null);for(let[r,o]of Object.entries(e)){if(!l(r))continue;let e=s(o,n[0],i);e.length>0&&a(t,r,e[0])}return[t]}return[null];case`has`:{if(n.length===0)return[!1];let t=s(e,n[0],i)[0];return Array.isArray(e)&&typeof t==`number`?[t>=0&&t<e.length]:e&&typeof e==`object`&&typeof t==`string`?[o(e,t)]:[!1]}case`in`:{if(n.length===0)return[!1];let t=s(e,n[0],i)[0];return Array.isArray(t)&&typeof e==`number`?[e>=0&&e<t.length]:t&&typeof t==`object`&&typeof e==`string`?[o(t,e)]:[!1]}case`contains`:return n.length===0?[!1]:[f(e,s(e,n[0],i)[0])];case`inside`:return n.length===0?[!1]:[f(s(e,n[0],i)[0],e)];default:return null}}function p(e,t,n,r,i,a,o,s){switch(t){case`first`:if(n.length>0)try{let t=a(e,n[0],r);return t.length>0?[t[0]]:[]}catch(e){if(e instanceof s)throw e;return[]}return Array.isArray(e)&&e.length>0?[e[0]]:[null];case`last`:if(n.length>0){let t=i(e,n[0],r);return t.length>0?[t[t.length-1]]:[]}return Array.isArray(e)&&e.length>0?[e[e.length-1]]:[null];case`nth`:{if(n.length<1)return[null];let t=i(e,n[0],r);if(n.length>1){for(let e of t)if(e<0)throw Error(`nth doesn't support negative indices`);let i;try{i=a(e,n[1],r)}catch(e){if(e instanceof s)throw e;i=[]}return t.flatMap(e=>{let t=e;return t<i.length?[i[t]]:[]})}return Array.isArray(e)?t.flatMap(t=>{let n=t;if(n<0)throw Error(`nth doesn't support negative indices`);return n<e.length?[e[n]]:[null]}):[null]}case`range`:{if(n.length===0)return[];let t=Math.max(r.limits.maxIterations*100,1e6),a=e=>e.length>=t,o=i(e,n[0],r);if(n.length===1){let e=[];for(let t of o){let n=t;for(let t=0;t<n;t++)if(e.push(t),a(e))return e}return e}let s=i(e,n[1],r);if(n.length===2){let e=[];for(let t of o)for(let n of s){let r=t,i=n;for(let t=r;t<i;t++)if(e.push(t),a(e))return e}return e}let c=i(e,n[2],r),l=[];for(let e of o)for(let t of s)for(let n of c){let r=e,i=t,o=n;if(o!==0){if(o>0){for(let e=r;e<i;e+=o)if(l.push(e),a(l))return l}else for(let e=r;e>i;e+=o)if(l.push(e),a(l))return l}}return l}case`limit`:return n.length<2?[]:i(e,n[0],r).flatMap(t=>{let i=t;if(i<0)throw Error(`limit doesn't support negative count`);if(i===0)return[];let o;try{o=a(e,n[1],r)}catch(e){if(e instanceof s)throw e;o=[]}return o.slice(0,i)});case`isempty`:if(n.length<1)return[!0];try{return[a(e,n[0],r).length===0]}catch(e){if(e instanceof s)throw e;return[!0]}case`isvalid`:if(n.length<1)return[!0];try{return[i(e,n[0],r).length>0]}catch(e){if(e instanceof s)throw e;return[!1]}case`skip`:return n.length<2?[]:i(e,n[0],r).flatMap(t=>{let a=t;if(a<0)throw Error(`skip doesn't support negative count`);return i(e,n[1],r).slice(a)});case`until`:{if(n.length<2)return[e];let t=e,a=r.limits.maxIterations;for(let e=0;e<a;e++){if(i(t,n[0],r).some(o))return[t];let e=i(t,n[1],r);if(e.length===0)return[t];t=e[0]}throw new s(`jq until: too many iterations (${a}), increase executionLimits.maxJqIterations`,`iterations`)}case`while`:{if(n.length<2)return[e];let t=[],a=e,c=r.limits.maxIterations;for(let e=0;e<c&&i(a,n[0],r).some(o);e++){t.push(a);let e=i(a,n[1],r);if(e.length===0)break;a=e[0]}if(t.length>=c)throw new s(`jq while: too many iterations (${c}), increase executionLimits.maxJqIterations`,`iterations`);return t}case`repeat`:{if(n.length===0)return[e];let t=[],a=e,o=r.limits.maxIterations;for(let e=0;e<o;e++){t.push(a);let e=i(a,n[0],r);if(e.length===0)break;a=e[0]}if(t.length>=o)throw new s(`jq repeat: too many iterations (${o}), increase executionLimits.maxJqIterations`,`iterations`);return t}default:return null}}function m(e,t,n,r,i){switch(t){case`now`:return[Date.now()/1e3];case`gmtime`:{if(typeof e!=`number`)return[null];let t=new Date(e*1e3),n=t.getUTCFullYear(),r=t.getUTCMonth(),i=t.getUTCDate(),a=t.getUTCHours(),o=t.getUTCMinutes(),s=t.getUTCSeconds(),c=t.getUTCDay(),l=Date.UTC(n,0,1);return[[n,r,i,a,o,s,c,Math.floor((t.getTime()-l)/(1440*60*1e3))]]}case`mktime`:{if(!Array.isArray(e))throw Error(`mktime requires parsed datetime inputs`);let[t,n,r,i=0,a=0,o=0]=e;if(typeof t!=`number`||typeof n!=`number`)throw Error(`mktime requires parsed datetime inputs`);return[Math.floor(Date.UTC(t,n,r??1,i??0,a??0,o??0)/1e3)]}case`strftime`:{if(n.length===0)return[null];let t=i(e,n[0],r)[0];if(typeof t!=`string`)throw Error(`strftime/1 requires a string format`);let a;if(typeof e==`number`)a=new Date(e*1e3);else if(Array.isArray(e)){let[t,n,r,i=0,o=0,s=0]=e;if(typeof t!=`number`||typeof n!=`number`)throw Error(`strftime/1 requires parsed datetime inputs`);a=new Date(Date.UTC(t,n,r??1,i??0,o??0,s??0))}else throw Error(`strftime/1 requires parsed datetime inputs`);let o=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],s=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],c=(e,t=2)=>String(e).padStart(t,`0`);return[t.replace(/%Y/g,String(a.getUTCFullYear())).replace(/%m/g,c(a.getUTCMonth()+1)).replace(/%d/g,c(a.getUTCDate())).replace(/%H/g,c(a.getUTCHours())).replace(/%M/g,c(a.getUTCMinutes())).replace(/%S/g,c(a.getUTCSeconds())).replace(/%A/g,o[a.getUTCDay()]).replace(/%B/g,s[a.getUTCMonth()]).replace(/%Z/g,`UTC`).replace(/%%/g,`%`)]}case`strptime`:{if(n.length===0)return[null];if(typeof e!=`string`)throw Error(`strptime/1 requires a string input`);let t=i(e,n[0],r)[0];if(typeof t!=`string`)throw Error(`strptime/1 requires a string format`);if(t===`%Y-%m-%dT%H:%M:%SZ`){let t=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(t){let[,e,n,r,i,a,o]=t.map(Number),s=new Date(Date.UTC(e,n-1,r,i,a,o)),c=s.getUTCDay(),l=Date.UTC(e,0,1),u=Math.floor((s.getTime()-l)/(1440*60*1e3));return[[e,n-1,r,i,a,o,c,u]]}}let a=new Date(e);if(!Number.isNaN(a.getTime())){let e=a.getUTCFullYear(),t=a.getUTCMonth(),n=a.getUTCDate(),r=a.getUTCHours(),i=a.getUTCMinutes(),o=a.getUTCSeconds(),s=a.getUTCDay(),c=Date.UTC(e,0,1);return[[e,t,n,r,i,o,s,Math.floor((a.getTime()-c)/(1440*60*1e3))]]}throw Error(`Cannot parse date: ${e}`)}case`fromdate`:{if(typeof e!=`string`)throw Error(`fromdate requires a string input`);let t=new Date(e);if(Number.isNaN(t.getTime()))throw Error(`date "${e}" does not match format "%Y-%m-%dT%H:%M:%SZ"`);return[Math.floor(t.getTime()/1e3)]}case`todate`:if(typeof e!=`number`)throw Error(`todate requires a number input`);return[new Date(e*1e3).toISOString().replace(/\.\d{3}Z$/,`Z`)];default:return null}}function h(e){return e!==!1&&e!==null}function g(e,t){return JSON.stringify(e)===JSON.stringify(t)}function _(e,t){return typeof e==`number`&&typeof t==`number`?e-t:typeof e==`string`&&typeof t==`string`?e.localeCompare(t):0}function v(e,t){let n=c(e);for(let e of Object.keys(t)){if(!l(e))continue;let r=o(n,e)?u(n[e]):null,i=u(t[e]);r&&i?a(n,e,v(r,i)):a(n,e,t[e])}return n}function y(e,t=3e3){let n=0,r=e;for(;n<t;)if(Array.isArray(r)){if(r.length===0)return n+1;r=r[0],n++}else if(typeof r==`object`&&r){let e=Object.keys(r);if(e.length===0)return n+1;r=r[e[0]],n++}else return n;return n}function b(e,t){let n=e=>e===null?0:typeof e==`boolean`?1:typeof e==`number`?2:typeof e==`string`?3:Array.isArray(e)?4:typeof e==`object`?5:6,r=n(e),i=n(t);if(r!==i)return r-i;if(typeof e==`number`&&typeof t==`number`)return e-t;if(typeof e==`string`&&typeof t==`string`)return e.localeCompare(t);if(typeof e==`boolean`&&typeof t==`boolean`)return!!e-+!!t;if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<Math.min(e.length,t.length);n++){let r=b(e[n],t[n]);if(r!==0)return r}return e.length-t.length}let a=u(e),o=u(t);if(a&&o){let e=Object.keys(a).sort(),t=Object.keys(o).sort();for(let n=0;n<Math.min(e.length,t.length);n++){let r=e[n].localeCompare(t[n]);if(r!==0)return r}if(e.length!==t.length)return e.length-t.length;for(let t of e){let e=b(a[t],o[t]);if(e!==0)return e}}return 0}function x(e,t){if(g(e,t))return!0;if(typeof e==`string`&&typeof t==`string`)return e.includes(t);if(Array.isArray(e)&&Array.isArray(t))return t.every(t=>e.some(e=>x(e,t)));let n=u(e),r=u(t);return n&&r?Object.keys(r).every(e=>o(n,e)&&x(n[e],r[e])):!1}var S=2e3;function C(e,t,n){switch(t){case`@base64`:return typeof e==`string`?typeof Buffer<`u`?[Buffer.from(e,`utf-8`).toString(`base64`)]:[btoa(e)]:[null];case`@base64d`:return typeof e==`string`?typeof Buffer<`u`?[Buffer.from(e,`base64`).toString(`utf-8`)]:[atob(e)]:[null];case`@uri`:return typeof e==`string`?[encodeURIComponent(e).replace(/!/g,`%21`).replace(/'/g,`%27`).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/\*/g,`%2A`)]:[null];case`@urid`:return typeof e==`string`?[decodeURIComponent(e)]:[null];case`@csv`:return Array.isArray(e)?[e.map(e=>{if(e===null)return``;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`)return String(e);let t=String(e);return t.includes(`,`)||t.includes(`"`)||t.includes(`
|
|
2
2
|
`)||t.includes(`\r`)?`"${t.replace(/"/g,`""`)}"`:t}).join(`,`)]:[null];case`@tsv`:return Array.isArray(e)?[e.map(e=>String(e??``).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`)).join(` `)]:[null];case`@json`:{let t=n??S;return y(e,t+1)>t?[null]:[JSON.stringify(e)]}case`@html`:return typeof e==`string`?[e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/'/g,`'`).replace(/"/g,`"`)]:[null];case`@sh`:return typeof e==`string`?[`'${e.replace(/'/g,`'\\''`)}'`]:[null];case`@text`:return typeof e==`string`?[e]:e==null?[``]:[String(e)];default:return null}}function w(e,t,n,r,i,a){switch(t){case`index`:return n.length===0?[null]:i(e,n[0],r).map(t=>{if(typeof e==`string`&&typeof t==`string`){if(t===``&&e===``)return null;let n=e.indexOf(t);return n>=0?n:null}if(Array.isArray(e)){if(Array.isArray(t)){for(let n=0;n<=e.length-t.length;n++){let r=!0;for(let i=0;i<t.length;i++)if(!a(e[n+i],t[i])){r=!1;break}if(r)return n}return null}let n=e.findIndex(e=>a(e,t));return n>=0?n:null}return null});case`rindex`:return n.length===0?[null]:i(e,n[0],r).map(t=>{if(typeof e==`string`&&typeof t==`string`){let n=e.lastIndexOf(t);return n>=0?n:null}if(Array.isArray(e)){if(Array.isArray(t)){for(let n=e.length-t.length;n>=0;n--){let r=!0;for(let i=0;i<t.length;i++)if(!a(e[n+i],t[i])){r=!1;break}if(r)return n}return null}for(let n=e.length-1;n>=0;n--)if(a(e[n],t))return n;return null}return null});case`indices`:return n.length===0?[[]]:i(e,n[0],r).map(t=>{let n=[];if(typeof e==`string`&&typeof t==`string`){let r=e.indexOf(t);for(;r!==-1;)n.push(r),r=e.indexOf(t,r+1)}else if(Array.isArray(e))if(Array.isArray(t)){let r=t.length;if(r===0)for(let t=0;t<=e.length;t++)n.push(t);else for(let i=0;i<=e.length-r;i++){let o=!0;for(let n=0;n<r;n++)if(!a(e[i+n],t[n])){o=!1;break}o&&n.push(i)}}else for(let r=0;r<e.length;r++)a(e[r],t)&&n.push(r);return n});default:return null}}function T(e,t,n,r,i){switch(t){case`fabs`:case`abs`:return typeof e==`number`?[Math.abs(e)]:typeof e==`string`?[e]:[null];case`exp10`:return typeof e==`number`?[10**e]:[null];case`exp2`:return typeof e==`number`?[2**e]:[null];case`pow`:{if(n.length<2)return[null];let t=i(e,n[0],r),a=i(e,n[1],r),o=t[0],s=a[0];return typeof o!=`number`||typeof s!=`number`?[null]:[o**s]}case`atan2`:{if(n.length<2)return[null];let t=i(e,n[0],r),a=i(e,n[1],r),o=t[0],s=a[0];return typeof o!=`number`||typeof s!=`number`?[null]:[Math.atan2(o,s)]}case`hypot`:{if(typeof e!=`number`||n.length===0)return[null];let t=i(e,n[0],r)[0];return[Math.hypot(e,t)]}case`fma`:{if(typeof e!=`number`||n.length<2)return[null];let t=i(e,n[0],r)[0],a=i(e,n[1],r)[0];return[e*t+a]}case`copysign`:{if(typeof e!=`number`||n.length===0)return[null];let t=i(e,n[0],r)[0];return[Math.sign(t)*Math.abs(e)]}case`drem`:case`remainder`:{if(typeof e!=`number`||n.length===0)return[null];let t=i(e,n[0],r)[0];return[e-Math.round(e/t)*t]}case`fdim`:{if(typeof e!=`number`||n.length===0)return[null];let t=i(e,n[0],r)[0];return[Math.max(0,e-t)]}case`fmax`:{if(typeof e!=`number`||n.length===0)return[null];let t=i(e,n[0],r)[0];return[Math.max(e,t)]}case`fmin`:{if(typeof e!=`number`||n.length===0)return[null];let t=i(e,n[0],r)[0];return[Math.min(e,t)]}case`ldexp`:return typeof e!=`number`||n.length===0?[null]:[e*2**i(e,n[0],r)[0]];case`scalbn`:case`scalbln`:return typeof e!=`number`||n.length===0?[null]:[e*2**i(e,n[0],r)[0]];case`nearbyint`:return typeof e==`number`?[Math.round(e)]:[null];case`logb`:return typeof e==`number`?[Math.floor(Math.log2(Math.abs(e)))]:[null];case`significand`:return typeof e==`number`?[e/2**Math.floor(Math.log2(Math.abs(e)))]:[null];case`frexp`:if(typeof e==`number`){if(e===0)return[[0,0]];let t=Math.floor(Math.log2(Math.abs(e)))+1;return[[e/2**t,t]]}return[null];case`modf`:if(typeof e==`number`){let t=Math.trunc(e);return[[e-t,t]]}return[null];default:return null}}function E(e,t,n,r,i,o,s,c){switch(t){case`recurse`:{if(n.length===0){let t=[],n=e=>{if(t.push(e),Array.isArray(e))for(let t of e)n(t);else if(e&&typeof e==`object`)for(let t of Object.keys(e))n(e[t])};return n(e),t}let t=[],a=n.length>=2?n[1]:null,s=0,c=e=>{if(s++>1e4||a&&!i(e,a,r).some(o))return;t.push(e);let l=i(e,n[0],r);for(let e of l)e!=null&&c(e)};return c(e),t}case`recurse_down`:return c(e,`recurse`,n,r);case`walk`:{if(n.length===0)return[e];let t=new WeakSet,o=e=>{if(e&&typeof e==`object`){if(t.has(e))return e;t.add(e)}let s;if(Array.isArray(e))s=e.map(o);else if(e&&typeof e==`object`){let t=Object.create(null);for(let[n,r]of Object.entries(e))l(n)&&a(t,n,o(r));s=t}else s=e;return i(s,n[0],r)[0]};return[o(e)]}case`transpose`:{if(!Array.isArray(e))return[null];if(e.length===0)return[[]];let t=Math.max(...e.map(e=>Array.isArray(e)?e.length:0)),n=[];for(let r=0;r<t;r++)n.push(e.map(e=>Array.isArray(e)?e[r]:null));return[n]}case`combinations`:{if(n.length>0){let t=i(e,n[0],r)[0];if(!Array.isArray(e)||t<0)return[];if(t===0)return[[]];let a=[],o=(n,r)=>{if(r===t){a.push([...n]);return}for(let t of e)n.push(t),o(n,r+1),n.pop()};return o([],0),a}if(!Array.isArray(e))return[];if(e.length===0)return[[]];for(let t of e)if(!Array.isArray(t))return[];let t=[],a=(n,r)=>{if(n===e.length){t.push([...r]);return}let i=e[n];for(let e of i)r.push(e),a(n+1,r),r.pop()};return a(0,[]),t}case`parent`:{if(r.root===void 0||r.currentPath===void 0)return[];let t=r.currentPath;if(t.length===0)return[];let a=n.length>0?i(e,n[0],r)[0]:1;if(a>=0){if(a>t.length)return[];let e=t.slice(0,t.length-a);return[s(r.root,e)]}else{let n=-a-1;if(n>=t.length)return[e];let i=t.slice(0,n);return[s(r.root,i)]}}case`parents`:{if(r.root===void 0||r.currentPath===void 0)return[[]];let e=r.currentPath,t=[];for(let n=e.length-1;n>=0;n--)t.push(s(r.root,e.slice(0,n)));return[t]}case`root`:return r.root===void 0?[]:[r.root];default:return null}}var D=2e3;function O(e,t,n,r,i){switch(t){case`keys`:return Array.isArray(e)?[e.map((e,t)=>t)]:e&&typeof e==`object`?[Object.keys(e).sort()]:[null];case`keys_unsorted`:return Array.isArray(e)?[e.map((e,t)=>t)]:e&&typeof e==`object`?[Object.keys(e)]:[null];case`length`:return typeof e==`string`||Array.isArray(e)?[e.length]:e&&typeof e==`object`?[Object.keys(e).length]:e===null?[0]:typeof e==`number`?[Math.abs(e)]:[null];case`utf8bytelength`:{if(typeof e==`string`)return[new TextEncoder().encode(e).length];let t=e===null?`null`:Array.isArray(e)?`array`:typeof e,n=t===`array`||t===`object`?JSON.stringify(e):String(e);throw Error(`${t} (${n}) only strings have UTF-8 byte length`)}case`to_entries`:{let t=u(e);return t?[Object.entries(t).map(([e,t])=>({key:e,value:t}))]:[null]}case`from_entries`:if(Array.isArray(e)){let t=Object.create(null);for(let n of e){let e=u(n);if(e){let n=e.key??e.Key??e.name??e.Name??e.k,r=e.value??e.Value??e.v;if(n!==void 0){let e=String(n);l(e)&&a(t,e,r)}}}return[t]}return[null];case`with_entries`:{if(n.length===0)return[e];let t=u(e);if(t){let e=Object.entries(t).map(([e,t])=>({key:e,value:t})).flatMap(e=>i(e,n[0],r)),o=Object.create(null);for(let t of e){let e=u(t);if(e){let t=e.key??e.name??e.k,n=e.value??e.v;if(t!==void 0){let e=String(t);l(e)&&a(o,e,n)}}}return[o]}return[null]}case`reverse`:return Array.isArray(e)?[[...e].reverse()]:typeof e==`string`?[e.split(``).reverse().join(``)]:[null];case`flatten`:return Array.isArray(e)?(n.length>0?i(e,n[0],r):[1/0]).map(t=>{let n=t;if(n<0)throw Error(`flatten depth must not be negative`);return e.flat(n)}):[null];case`unique`:if(Array.isArray(e)){let t=new Set,n=[];for(let r of e){let e=JSON.stringify(r);t.has(e)||(t.add(e),n.push(r))}return[n]}return[null];case`tojson`:case`tojsonstream`:{let t=r.limits.maxDepth??D;return y(e,t+1)>t?[null]:[JSON.stringify(e)]}case`fromjson`:if(typeof e==`string`){let t=e.trim().toLowerCase();if(t===`nan`)return[NaN];if(t===`inf`||t===`infinity`)return[1/0];if(t===`-inf`||t===`-infinity`)return[-1/0];try{return[d(JSON.parse(e))]}catch{throw Error(`Invalid JSON: ${e}`)}}return[e];case`tostring`:return typeof e==`string`?[e]:[JSON.stringify(e)];case`tonumber`:if(typeof e==`number`)return[e];if(typeof e==`string`){let t=Number(e);if(Number.isNaN(t))throw Error(`${JSON.stringify(e)} cannot be parsed as a number`);return[t]}throw Error(`${typeof e} cannot be parsed as a number`);case`toboolean`:{if(typeof e==`boolean`)return[e];if(typeof e==`string`){if(e===`true`)return[!0];if(e===`false`)return[!1];throw Error(`string (${JSON.stringify(e)}) cannot be parsed as a boolean`)}let t=e===null?`null`:Array.isArray(e)?`array`:typeof e,n=t===`array`||t===`object`?JSON.stringify(e):String(e);throw Error(`${t} (${n}) cannot be parsed as a boolean`)}case`tostream`:{let t=[],n=(e,r)=>{if(typeof e!=`object`||!e)t.push([r,e]);else if(Array.isArray(e))if(e.length===0)t.push([r,[]]);else for(let t=0;t<e.length;t++)n(e[t],[...r,t]);else{let i=Object.keys(e);if(i.length===0)t.push([r,Object.create(null)]);else for(let t of i)n(e[t],[...r,t])}};return n(e,[]),t.push([[]]),t}case`fromstream`:{if(n.length===0)return[e];let t=i(e,n[0],r),o=null;for(let e of t){if(!Array.isArray(e)||e.length===1&&Array.isArray(e[0])&&e[0].length===0||e.length!==2)continue;let[t,n]=e;if(!Array.isArray(t))continue;if(t.length===0){o=n;continue}o===null&&(o=typeof t[0]==`number`?[]:Object.create(null));let r=o;for(let e=0;e<t.length-1;e++){let n=t[e],i=t[e+1];if(Array.isArray(r)&&typeof n==`number`){for(;r.length<=n;)r.push(null);r[n]===null&&(r[n]=typeof i==`number`?[]:Object.create(null)),r=r[n]}else{let e=u(r);if(e){let t=String(n);if(!l(t))continue;(e[t]===null||e[t]===void 0)&&a(e,t,typeof i==`number`?[]:Object.create(null)),r=e[t]}}}let i=t[t.length-1];if(Array.isArray(r)&&typeof i==`number`){for(;r.length<=i;)r.push(null);r[i]=n}else{let e=u(r);if(e){let t=String(i);l(t)&&a(e,t,n)}}}return[o]}case`truncate_stream`:{let t=typeof e==`number`?Math.floor(e):0;if(n.length===0)return[];let a=[],o=i(e,n[0],r);for(let e of o)if(Array.isArray(e)){if(e.length===1&&Array.isArray(e[0])){let n=e[0];n.length>t&&a.push([n.slice(t)]);continue}if(e.length===2&&Array.isArray(e[0])){let n=e[0],r=e[1];n.length>t&&a.push([n.slice(t),r])}}return a}default:return null}}function ee(e,t,n,r,i,a,o,s,c,l){switch(t){case`getpath`:{if(n.length===0)return[null];let t=i(e,n[0],r),a=[];for(let n of t){let t=n,r=e;for(let e of t){if(r==null){r=null;break}if(Array.isArray(r)&&typeof e==`number`)r=r[e];else if(typeof e==`string`){let t=u(r);if(!t||!Object.hasOwn(t,e)){r=null;break}r=t[e]}else{r=null;break}}a.push(r)}return a}case`setpath`:{if(n.length<2)return[null];let t=i(e,n[0],r)[0],a=i(e,n[1],r)[0];return[o(e,t,a)]}case`delpaths`:{if(n.length===0)return[e];let t=i(e,n[0],r)[0],a=e;for(let e of t.sort((e,t)=>t.length-e.length))a=s(a,e);return[a]}case`path`:{if(n.length===0)return[[]];let t=[];return l(e,n[0],r,[],t),t}case`del`:return n.length===0?[e]:[c(e,n[0],r)];case`pick`:{if(n.length===0)return[null];let t=[];for(let i of n)l(e,i,r,[],t);let i=null;for(let n of t){for(let e of n)if(typeof e==`number`&&e<0)throw Error(`Out of bounds negative array index`);let t=e;for(let e of n){if(t==null)break;if(Array.isArray(t)&&typeof e==`number`)t=t[e];else if(typeof e==`string`){let n=u(t);if(!n||!Object.hasOwn(n,e)){t=null;break}t=n[e]}else{t=null;break}}i=o(i,n,t)}return[i]}case`paths`:{let t=[],o=(e,n)=>{if(e&&typeof e==`object`)if(Array.isArray(e))for(let r=0;r<e.length;r++)t.push([...n,r]),o(e[r],[...n,r]);else for(let r of Object.keys(e))t.push([...n,r]),o(e[r],[...n,r])};return o(e,[]),n.length>0?t.filter(t=>{let o=e;for(let e of t)if(Array.isArray(o)&&typeof e==`number`)o=o[e];else if(typeof e==`string`){let t=u(o);if(!t||!Object.hasOwn(t,e))return!1;o=t[e]}else return!1;return i(o,n[0],r).some(a)}):t}case`leaf_paths`:{let t=[],n=(e,r)=>{if(typeof e!=`object`||!e)t.push(r);else if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t],[...r,t]);else for(let t of Object.keys(e))n(e[t],[...r,t])};return n(e,[]),t}default:return null}}function k(e,t,n,r,i,s){switch(t){case`IN`:{if(n.length===0)return[!1];if(n.length===1){let t=i(e,n[0],r);for(let n of t)if(s(e,n))return[!0];return[!1]}let t=i(e,n[0],r),a=i(e,n[1],r),o=new Set(a.map(e=>JSON.stringify(e)));for(let e of t)if(o.has(JSON.stringify(e)))return[!0];return[!1]}case`INDEX`:{if(n.length===0)return[Object.create(null)];if(n.length===1){let t=i(e,n[0],r),o=Object.create(null);for(let e of t){let t=String(e);l(t)&&a(o,t,e)}return[o]}if(n.length===2){let t=i(e,n[0],r),o=Object.create(null);for(let e of t){let t=i(e,n[1],r);if(t.length>0){let n=String(t[0]);l(n)&&a(o,n,e)}}return[o]}let t=i(e,n[0],r),o=Object.create(null);for(let e of t){let t=i(e,n[1],r),s=i(e,n[2],r);if(t.length>0&&s.length>0){let e=String(t[0]);l(e)&&a(o,e,s[0])}}return[o]}case`JOIN`:{if(n.length<2)return[null];let t=u(i(e,n[0],r)[0]);if(!t||!Array.isArray(e))return[null];let a=[];for(let s of e){let e=i(s,n[1],r),c=e.length>0?String(e[0]):``,l=o(t,c)?t[c]:null;a.push([s,l])}return[a]}default:return null}}function A(t,n,r,i,a){switch(n){case`join`:{if(!Array.isArray(t))return[null];let e=r.length>0?a(t,r[0],i):[``];for(let e of t)if(Array.isArray(e)||typeof e==`object`&&e)throw Error(`cannot join: contains arrays or objects`);return e.map(e=>t.map(e=>e===null?``:typeof e==`string`?e:String(e)).join(String(e)))}case`split`:{if(typeof t!=`string`||r.length===0)return[null];let e=a(t,r[0],i),n=String(e[0]);return[t.split(n)]}case`splits`:{if(typeof t!=`string`||r.length===0)return[];let n=a(t,r[0],i),o=String(n[0]);try{let n=r.length>1?String(a(t,r[1],i)[0]):`g`;return e(o,n.includes(`g`)?n:`${n}g`).split(t)}catch{return[]}}case`scan`:{if(typeof t!=`string`||r.length===0)return[];let n=a(t,r[0],i),o=String(n[0]);try{let n=r.length>1?String(a(t,r[1],i)[0]):``;return[...e(o,n.includes(`g`)?n:`${n}g`).matchAll(t)].map(e=>e.length>1?e.slice(1):e[0])}catch{return[]}}case`test`:{if(typeof t!=`string`||r.length===0)return[!1];let n=a(t,r[0],i),o=String(n[0]);try{return[e(o,r.length>1?String(a(t,r[1],i)[0]):``).test(t)]}catch{return[!1]}}case`match`:{if(typeof t!=`string`||r.length===0)return[null];let n=a(t,r[0],i),o=String(n[0]);try{let n=e(o,`${r.length>1?String(a(t,r[1],i)[0]):``}d`).exec(t);if(!n)return[];let s=n.indices;return[{offset:n.index,length:n[0].length,string:n[0],captures:n.slice(1).map((e,t)=>({offset:s?.[t+1]?.[0]??null,length:e?.length??0,string:e??``,name:null}))}]}catch{return[null]}}case`capture`:{if(typeof t!=`string`||r.length===0)return[null];let n=a(t,r[0],i),o=String(n[0]);try{let n=e(o,r.length>1?String(a(t,r[1],i)[0]):``).match(t);return!n||!n.groups?[Object.create(null)]:[n.groups]}catch{return[null]}}case`sub`:{if(typeof t!=`string`||r.length<2)return[null];let n=a(t,r[0],i),o=a(t,r[1],i),s=String(n[0]),c=String(o[0]);try{return[e(s,r.length>2?String(a(t,r[2],i)[0]):``).replace(t,c)]}catch{return[t]}}case`gsub`:{if(typeof t!=`string`||r.length<2)return[null];let n=a(t,r[0],i),o=a(t,r[1],i),s=String(n[0]),c=String(o[0]);try{let n=r.length>2?String(a(t,r[2],i)[0]):`g`;return[e(s,n.includes(`g`)?n:`${n}g`).replace(t,c)]}catch{return[t]}}case`ascii_downcase`:return typeof t==`string`?[t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))]:[null];case`ascii_upcase`:return typeof t==`string`?[t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))]:[null];case`ltrimstr`:{if(typeof t!=`string`||r.length===0)return[t];let e=a(t,r[0],i),n=String(e[0]);return[t.startsWith(n)?t.slice(n.length):t]}case`rtrimstr`:{if(typeof t!=`string`||r.length===0)return[t];let e=a(t,r[0],i),n=String(e[0]);return n===``?[t]:[t.endsWith(n)?t.slice(0,-n.length):t]}case`trimstr`:{if(typeof t!=`string`||r.length===0)return[t];let e=a(t,r[0],i),n=String(e[0]);if(n===``)return[t];let o=t;return o.startsWith(n)&&(o=o.slice(n.length)),o.endsWith(n)&&(o=o.slice(0,-n.length)),[o]}case`trim`:if(typeof t==`string`)return[t.trim()];throw Error(`trim input must be a string`);case`ltrim`:if(typeof t==`string`)return[t.trimStart()];throw Error(`trim input must be a string`);case`rtrim`:if(typeof t==`string`)return[t.trimEnd()];throw Error(`trim input must be a string`);case`startswith`:{if(typeof t!=`string`||r.length===0)return[!1];let e=a(t,r[0],i);return[t.startsWith(String(e[0]))]}case`endswith`:{if(typeof t!=`string`||r.length===0)return[!1];let e=a(t,r[0],i);return[t.endsWith(String(e[0]))]}case`ascii`:return typeof t==`string`&&t.length>0?[t.charCodeAt(0)]:[null];case`explode`:return typeof t==`string`?[Array.from(t).map(e=>e.codePointAt(0))]:[null];case`implode`:if(!Array.isArray(t))throw Error(`implode input must be an array`);return[t.map(e=>{if(typeof e==`string`)throw Error(`string (${JSON.stringify(e)}) can't be imploded, unicode codepoint needs to be numeric`);if(typeof e!=`number`||Number.isNaN(e))throw Error(`number (null) can't be imploded, unicode codepoint needs to be numeric`);let t=Math.trunc(e);return t<0||t>1114111||t>=55296&&t<=57343?String.fromCodePoint(65533):String.fromCodePoint(t)}).join(``)];default:return null}}function j(e,t){switch(t){case`type`:return e===null?[`null`]:Array.isArray(e)?[`array`]:typeof e==`boolean`?[`boolean`]:typeof e==`number`?[`number`]:typeof e==`string`?[`string`]:typeof e==`object`?[`object`]:[`null`];case`infinite`:return[1/0];case`nan`:return[NaN];case`isinfinite`:return[typeof e==`number`&&!Number.isFinite(e)];case`isnan`:return[typeof e==`number`&&Number.isNaN(e)];case`isnormal`:return[typeof e==`number`&&Number.isFinite(e)&&e!==0];case`isfinite`:return[typeof e==`number`&&Number.isFinite(e)];case`numbers`:return typeof e==`number`?[e]:[];case`strings`:return typeof e==`string`?[e]:[];case`booleans`:return typeof e==`boolean`?[e]:[];case`nulls`:return e===null?[e]:[];case`arrays`:return Array.isArray(e)?[e]:[];case`objects`:return e&&typeof e==`object`&&!Array.isArray(e)?[e]:[];case`iterables`:return Array.isArray(e)||e&&typeof e==`object`&&!Array.isArray(e)?[e]:[];case`scalars`:return!Array.isArray(e)&&!(e&&typeof e==`object`)?[e]:[];case`values`:return e===null?[]:[e];case`not`:return e===!1||e===null?[!0]:[!1];case`null`:return[null];case`true`:return[!0];case`false`:return[!1];case`empty`:return[];default:return null}}function M(e,t,n){if(t.length===0)return n;let[r,...i]=t;if(typeof r==`number`){if(e&&typeof e==`object`&&!Array.isArray(e))throw Error(`Cannot index object with number`);if(r>536870911)throw Error(`Array index too large`);if(r<0)throw Error(`Out of bounds negative array index`);let t=Array.isArray(e)?[...e]:[];for(;t.length<=r;)t.push(null);return t[r]=M(t[r],i,n),t}if(Array.isArray(e))throw Error(`Cannot index array with string`);if(!l(r))return e??Object.create(null);let o=u(e),s=o?c(o):Object.create(null);return a(s,r,M(Object.hasOwn(s,r)?s[r]:void 0,i,n)),s}function N(e,t){if(t.length===0)return null;if(t.length===1){let n=t[0];if(Array.isArray(e)&&typeof n==`number`){let t=[...e];return t.splice(n,1),t}if(e&&typeof e==`object`&&!Array.isArray(e)){let t=String(n);if(!l(t))return e;let r=c(e);return delete r[t],r}return e}let[n,...r]=t;if(Array.isArray(e)&&typeof n==`number`){let t=[...e];return t[n]=N(t[n],r),t}if(e&&typeof e==`object`&&!Array.isArray(e)){let t=String(n);if(!l(t))return e;let i=c(e);return Object.hasOwn(i,t)&&a(i,t,N(i[t],r)),i}return e}var P=class e extends Error{label;partialResults;constructor(e,t=[]){super(`break ${e}`),this.label=e,this.partialResults=t,this.name=`BreakError`}withPrependedResults(t){return new e(this.label,[...t,...this.partialResults])}},F=class extends Error{value;constructor(e){super(typeof e==`string`?e:JSON.stringify(e)),this.value=e,this.name=`JqError`}},I=1e4,L=2e3,te=new Map([[`floor`,Math.floor],[`ceil`,Math.ceil],[`round`,Math.round],[`sqrt`,Math.sqrt],[`log`,Math.log],[`log10`,Math.log10],[`log2`,Math.log2],[`exp`,Math.exp],[`sin`,Math.sin],[`cos`,Math.cos],[`tan`,Math.tan],[`asin`,Math.asin],[`acos`,Math.acos],[`atan`,Math.atan],[`sinh`,Math.sinh],[`cosh`,Math.cosh],[`tanh`,Math.tanh],[`asinh`,Math.asinh],[`acosh`,Math.acosh],[`atanh`,Math.atanh],[`cbrt`,Math.cbrt],[`expm1`,Math.expm1],[`log1p`,Math.log1p],[`trunc`,Math.trunc]]);function ne(e){return{vars:new Map,limits:{maxIterations:e?.limits?.maxIterations??I,maxDepth:e?.limits?.maxDepth??L},env:e?.env,coverage:e?.coverage,requireDefenseContext:e?.requireDefenseContext,defenseContextChecked:!1}}function R(e,t,n){let r=new Map(e.vars);return r.set(t,n),{vars:r,limits:e.limits,env:e.env,requireDefenseContext:e.requireDefenseContext,defenseContextChecked:e.defenseContextChecked,root:e.root,currentPath:e.currentPath,funcs:e.funcs,labels:e.labels,coverage:e.coverage}}function z(e,t,n){switch(t.type){case`var`:return R(e,t.name,n);case`array`:{if(!Array.isArray(n))return null;let r=e;for(let e=0;e<t.elements.length;e++){let i=t.elements[e],a=e<n.length?n[e]:null,o=z(r,i,a);if(o===null)return null;r=o}return r}case`object`:{let r=u(n);if(!r)return null;let i=e;for(let a of t.fields){let t;if(typeof a.key==`string`)t=a.key;else{let r=W(n,a.key,e);if(r.length===0)return null;t=String(r[0])}let s=o(r,t)?r[t]:null;a.keyVar&&(i=R(i,a.keyVar,s));let c=z(i,a.pattern,s);if(c===null)return null;i=c}return i}}}function B(e,t){let n=e;for(let e of t)if(n&&typeof n==`object`)if(Array.isArray(n))if(typeof e==`number`)n=n[e];else return;else{let t=u(n);if(t&&typeof e==`string`&&Object.hasOwn(t,e))n=t[e];else return}else return;return n}function V(e){if(e.type===`Identity`)return[];if(e.type===`Field`){let t=e.base?V(e.base):[];return t===null?null:[...t,e.name]}if(e.type===`Index`&&e.index.type===`Literal`){let t=e.base?V(e.base):[];if(t===null)return null;let n=e.index.value;return typeof n==`number`||typeof n==`string`?[...t,n]:null}if(e.type===`Pipe`){let t=V(e.left);return t===null?null:H(t,e.right)}if(e.type===`Call`){if(e.name===`parent`||e.name===`root`)return null;if(e.name===`first`&&e.args.length===0)return[0];if(e.name===`last`&&e.args.length===0)return[-1]}return null}function H(e,t){if(t.type===`Call`){if(t.name===`parent`){let n=1;if(t.args.length>0&&t.args[0].type===`Literal`){let e=t.args[0].value;typeof e==`number`&&(n=e)}if(n>=0)return e.slice(0,Math.max(0,e.length-n));{let t=-n-1;return e.slice(0,Math.min(t,e.length))}}if(t.name===`root`)return[]}if(t.type===`Field`){let n=V(t);if(n!==null)return[...e,...n]}if(t.type===`Index`&&t.index.type===`Literal`){let n=V(t);if(n!==null)return[...e,...n]}if(t.type===`Pipe`){let n=H(e,t.left);return n===null?null:H(n,t.right)}return t.type===`Identity`?e:null}function U(e,n,r){if(n.type===`Comma`){let i=[];try{i.push(...W(e,n.left,r))}catch(e){if(e instanceof t)throw e;if(i.length>0)return i;throw Error(`evaluation failed`)}try{i.push(...W(e,n.right,r))}catch(e){if(e instanceof t)throw e;return i}return i}return W(e,n,r)}function W(e,t,r){let o=r&&`vars`in r?r:ne(r);switch(o.defenseContextChecked||(i(o.requireDefenseContext,`query-engine`,`evaluation`),o={...o,defenseContextChecked:!0}),o.root===void 0&&(o={...o,root:e,currentPath:[]}),o.coverage?.hit(`jq:node:${t.type}`),t.type){case`Identity`:return[e];case`Field`:return(t.base?W(e,t.base,o):[e]).flatMap(e=>{let n=u(e);if(n){if(!Object.hasOwn(n,t.name))return[null];let e=n[t.name];return[e===void 0?null:e]}if(e===null)return[null];throw Error(`Cannot index ${Array.isArray(e)?`array`:typeof e} with string "${t.name}"`)});case`Index`:return(t.base?W(e,t.base,o):[e]).flatMap(e=>W(e,t.index,o).flatMap(t=>{if(typeof t==`number`&&Array.isArray(e)){if(Number.isNaN(t))return[null];let n=Math.trunc(t),r=n<0?e.length+n:n;return r>=0&&r<e.length?[e[r]]:[null]}if(typeof t==`string`){let n=u(e);return!n||!Object.hasOwn(n,t)?[null]:[n[t]]}return[null]}));case`Slice`:return(t.base?W(e,t.base,o):[e]).flatMap(n=>{if(n===null)return[null];if(!Array.isArray(n)&&typeof n!=`string`)throw Error(`Cannot slice ${typeof n} (${JSON.stringify(n)})`);let r=n.length,i=t.start?W(e,t.start,o):[0],a=t.end?W(e,t.end,o):[r];return i.flatMap(e=>a.map(t=>{let i=e,a=t,o=Number.isNaN(i)?0:Number.isInteger(i)?i:Math.floor(i),s=Number.isNaN(a)?r:Number.isInteger(a)?a:Math.ceil(a),c=G(o,r),l=G(s,r);return n.slice(c,l)}))});case`Iterate`:return(t.base?W(e,t.base,o):[e]).flatMap(e=>Array.isArray(e)?e:e&&typeof e==`object`?Object.values(e):[]);case`Pipe`:{let n=W(e,t.left,o),r=V(t.left),i=[];for(let e of n)try{if(r!==null){let n={...o,currentPath:[...o.currentPath??[],...r]};i.push(...W(e,t.right,n))}else i.push(...W(e,t.right,o))}catch(e){throw e instanceof P?e.withPrependedResults(i):e}return i}case`Comma`:{let n=W(e,t.left,o),r=W(e,t.right,o);return[...n,...r]}case`Literal`:return[t.value];case`Array`:return t.elements?[W(e,t.elements,o)]:[[]];case`Object`:{let n=[Object.create(null)];for(let r of t.entries){let t=typeof r.key==`string`?[r.key]:W(e,r.key,o),i=W(e,r.value,o),s=[];for(let e of n)for(let n of t){if(typeof n!=`string`)throw Error(`Cannot use ${n===null?`null`:Array.isArray(n)?`array`:typeof n} (${JSON.stringify(n)}) as object key`);if(!l(n)){for(let t of i)s.push(c(e));continue}for(let t of i){let r=c(e);a(r,n,t),s.push(r)}}n.length=0,n.push(...s)}return n}case`Paren`:return W(e,t.expr,o);case`BinaryOp`:return J(e,t.op,t.left,t.right,o);case`UnaryOp`:return W(e,t.operand,o).map(e=>{if(t.op===`-`){if(typeof e==`number`)return-e;if(typeof e==`string`)throw Error(`string (${(e=>e.length>5?`"${e.slice(0,3)}...`:JSON.stringify(e))(e)}) cannot be negated`);return null}return t.op===`not`?!h(e):null});case`Cond`:return W(e,t.cond,o).flatMap(n=>{if(h(n))return W(e,t.then,o);for(let n of t.elifs)if(W(e,n.cond,o).some(h))return W(e,n.then,o);return t.else?W(e,t.else,o):[e]});case`Try`:try{return W(e,t.body,o)}catch(e){return t.catch?W(e instanceof F?e.value:e instanceof Error?e.message:String(e),t.catch,o):[]}case`Call`:return Y(e,t.name,t.args,o);case`VarBind`:return W(e,t.value,o).flatMap(n=>{let r=null,i=[];t.pattern?i.push(t.pattern):t.name&&i.push({type:`var`,name:t.name}),t.alternatives&&i.push(...t.alternatives);for(let e of i)if(r=z(o,e,n),r!==null)break;return r===null?[]:W(e,t.body,r)});case`VarRef`:{if(t.name===`$ENV`)return[o.env?n(o.env):Object.create(null)];let e=o.vars.get(t.name);return e===void 0?[null]:[e]}case`Recurse`:{let t=[],n=new WeakSet,r=e=>{if(e&&typeof e==`object`){if(n.has(e))return;n.add(e)}if(t.push(e),Array.isArray(e))for(let t of e)r(t);else if(e&&typeof e==`object`)for(let t of Object.keys(e))r(e[t])};return r(e),t}case`Optional`:try{return W(e,t.expr,o)}catch{return[]}case`StringInterp`:return[t.parts.map(t=>typeof t==`string`?t:W(e,t,o).map(e=>typeof e==`string`?e:JSON.stringify(e)).join(``)).join(``)];case`UpdateOp`:return[K(e,t.path,t.op,t.value,o)];case`Reduce`:{let n=W(e,t.expr,o),r=W(e,t.init,o)[0],i=o.limits.maxDepth??L;for(let e of n){let n;if(t.pattern){if(n=z(o,t.pattern,e),n===null)continue}else n=R(o,t.varName,e);if(r=W(r,t.update,n)[0],y(r,i+1)>i)return[null]}return[r]}case`Foreach`:{let n=W(e,t.expr,o),r=W(e,t.init,o)[0],i=[];for(let e of n)try{let n;if(t.pattern){if(n=z(o,t.pattern,e),n===null)continue}else n=R(o,t.varName,e);if(r=W(r,t.update,n)[0],t.extract){let e=W(r,t.extract,n);i.push(...e)}else i.push(r)}catch(e){throw e instanceof P?e.withPrependedResults(i):e}return i}case`Label`:try{return W(e,t.body,{...o,labels:new Set([...o.labels??[],t.name])})}catch(e){if(e instanceof P&&e.label===t.name)return e.partialResults;throw e}case`Break`:throw new P(t.name);case`Def`:{let n=new Map(o.funcs??[]),r=`${t.name}/${t.params.length}`;n.set(r,{params:t.params,body:t.funcBody,closure:new Map(o.funcs??[])});let i={...o,funcs:n};return W(e,t.body,i)}default:throw Error(`Unknown AST node type: ${t.type}`)}}function G(e,t){return e<0?Math.max(0,t+e):Math.min(e,t)}function K(e,t,n,r,i){function o(e,t){switch(n){case`=`:return t;case`|=`:return W(e,r,i)[0]??null;case`+=`:return typeof e==`number`&&typeof t==`number`||typeof e==`string`&&typeof t==`string`?e+t:Array.isArray(e)&&Array.isArray(t)?[...e,...t]:e&&t&&typeof e==`object`&&typeof t==`object`?s(e,t):t;case`-=`:return typeof e==`number`&&typeof t==`number`?e-t:e;case`*=`:return typeof e==`number`&&typeof t==`number`?e*t:e;case`/=`:return typeof e==`number`&&typeof t==`number`?e/t:e;case`%=`:return typeof e==`number`&&typeof t==`number`?e%t:e;case`//=`:return e===null||e===!1?t:e;default:return t}}function u(t,n,r){switch(n.type){case`Identity`:return r(t);case`Field`:if(!l(n.name))return t;if(n.base)return u(t,n.base,e=>{if(e&&typeof e==`object`&&!Array.isArray(e)){let t=c(e),i=Object.hasOwn(t,n.name)?t[n.name]:void 0;return a(t,n.name,r(i)),t}return e});if(t&&typeof t==`object`&&!Array.isArray(t)){let e=c(t),i=Object.hasOwn(e,n.name)?e[n.name]:void 0;return a(e,n.name,r(i)),e}return t;case`Index`:{let o=W(e,n.index,i)[0];if(typeof o==`number`&&Number.isNaN(o))throw Error(`Cannot set array element at NaN index`);if(typeof o==`number`&&!Number.isInteger(o)&&(o=Math.trunc(o)),n.base)return u(t,n.base,e=>{if(typeof o==`number`&&Array.isArray(e)){let t=[...e],n=o<0?t.length+o:o;if(n>=0){for(;t.length<=n;)t.push(null);t[n]=r(t[n])}return t}if(typeof o==`string`&&e&&typeof e==`object`&&!Array.isArray(e)){if(!l(o))return e;let t=c(e),n=Object.hasOwn(t,o)?t[o]:void 0;return a(t,o,r(n)),t}return e});if(typeof o==`number`){if(o>536870911)throw Error(`Array index too large`);if(o<0&&(!t||!Array.isArray(t)))throw Error(`Out of bounds negative array index`);if(Array.isArray(t)){let e=[...t],n=o<0?e.length+o:o;if(n>=0){for(;e.length<=n;)e.push(null);e[n]=r(e[n])}return e}if(t==null){let e=[];for(;e.length<=o;)e.push(null);return e[o]=r(null),e}return t}if(typeof o==`string`&&t&&typeof t==`object`&&!Array.isArray(t)){if(!l(o))return t;let e=c(t),n=Object.hasOwn(e,o)?e[o]:void 0;return a(e,o,r(n)),e}return t}case`Iterate`:{let e=e=>{if(Array.isArray(e))return e.map(e=>r(e));if(e&&typeof e==`object`){let t=Object.create(null);for(let[n,i]of Object.entries(e))l(n)&&a(t,n,r(i));return t}return e};return n.base?u(t,n.base,e):e(t)}case`Pipe`:return u(u(t,n.left,e=>e),n.right,r);default:return r(t)}}return u(e,t,t=>n===`|=`?o(t,t):o(t,W(e,r,i)[0]??null))}function q(e,t,n){function r(t,i,o){switch(i.type){case`Identity`:return o;case`Field`:if(!l(i.name))return t;if(i.base){let e=W(t,i.base,n)[0],a=r(e,{type:`Field`,name:i.name},o);return r(t,i.base,a)}if(t&&typeof t==`object`&&!Array.isArray(t)){let e=c(t);return a(e,i.name,o),e}return t;case`Index`:{if(i.base){let e=W(t,i.base,n)[0],a=r(e,{type:`Index`,index:i.index},o);return r(t,i.base,a)}let s=W(e,i.index,n)[0];if(typeof s==`number`&&Array.isArray(t)){let e=[...t],n=s<0?e.length+s:s;return n>=0&&n<e.length&&(e[n]=o),e}if(typeof s==`string`&&t&&typeof t==`object`&&!Array.isArray(t)){if(!l(s))return t;let e=c(t);return a(e,s,o),e}return t}default:return t}}function i(t,o){switch(o.type){case`Identity`:return null;case`Field`:if(!l(o.name))return t;if(o.base){let e=W(t,o.base,n)[0];if(e==null)return t;let a=i(e,{type:`Field`,name:o.name});return r(t,o.base,a)}if(t&&typeof t==`object`&&!Array.isArray(t)){if(!l(o.name))return t;let e=c(t);return delete e[o.name],e}return t;case`Index`:{if(o.base){let e=W(t,o.base,n)[0];if(e==null)return t;let a=i(e,{type:`Index`,index:o.index});return r(t,o.base,a)}let a=W(e,o.index,n)[0];if(typeof a==`number`&&Array.isArray(t)){let e=[...t],n=a<0?e.length+a:a;return n>=0&&n<e.length&&e.splice(n,1),e}if(typeof a==`string`&&t&&typeof t==`object`&&!Array.isArray(t)){if(!l(a))return t;let e=c(t);return delete e[a],e}return t}case`Iterate`:return Array.isArray(t)?[]:t&&typeof t==`object`?Object.create(null):t;case`Pipe`:{let r=function(t,i,o){switch(i.type){case`Identity`:return o;case`Field`:if(!l(i.name))return t;if(t&&typeof t==`object`&&!Array.isArray(t)){let e=c(t);return a(e,i.name,o),e}return t;case`Index`:{let r=W(e,i.index,n)[0];if(typeof r==`number`&&Array.isArray(t)){let e=[...t],n=r<0?e.length+r:r;return n>=0&&n<e.length&&(e[n]=o),e}if(typeof r==`string`&&t&&typeof t==`object`&&!Array.isArray(t)){if(!l(r))return t;let e=c(t);return a(e,r,o),e}return t}case`Pipe`:{let e=W(t,i.left,n)[0],a=r(e,i.right,o);return r(t,i.left,a)}default:return t}},s=o.left,u=o.right,d=W(t,s,n)[0];return d==null?t:r(t,s,i(d,u))}default:return t}}return i(e,t)}function J(e,t,n,r,i){if(t===`and`)return W(e,n,i).flatMap(t=>h(t)?W(e,r,i).map(e=>h(e)):[!1]);if(t===`or`)return W(e,n,i).flatMap(t=>h(t)?[!0]:W(e,r,i).map(e=>h(e)));if(t===`//`){let t=W(e,n,i).filter(e=>e!=null&&e!==!1);return t.length>0?t:W(e,r,i)}let a=W(e,n,i),o=W(e,r,i);return a.flatMap(e=>o.map(n=>{switch(t){case`+`:return e===null?n:n===null?e:typeof e==`number`&&typeof n==`number`||typeof e==`string`&&typeof n==`string`?e+n:Array.isArray(e)&&Array.isArray(n)?[...e,...n]:e&&n&&typeof e==`object`&&typeof n==`object`&&!Array.isArray(e)&&!Array.isArray(n)?s(e,n):null;case`-`:if(typeof e==`number`&&typeof n==`number`)return e-n;if(Array.isArray(e)&&Array.isArray(n)){let t=new Set(n.map(e=>JSON.stringify(e)));return e.filter(e=>!t.has(JSON.stringify(e)))}if(typeof e==`string`&&typeof n==`string`){let t=e=>e.length>10?`"${e.slice(0,10)}...`:JSON.stringify(e);throw Error(`string (${t(e)}) and string (${t(n)}) cannot be subtracted`)}return null;case`*`:if(typeof e==`number`&&typeof n==`number`)return e*n;if(typeof e==`string`&&typeof n==`number`)return e.repeat(n);{let t=u(e),r=u(n);if(t&&r)return v(t,r)}return null;case`/`:if(typeof e==`number`&&typeof n==`number`){if(n===0)throw Error(`number (${e}) and number (${n}) cannot be divided because the divisor is zero`);return e/n}return typeof e==`string`&&typeof n==`string`?e.split(n):null;case`%`:if(typeof e==`number`&&typeof n==`number`){if(n===0)throw Error(`number (${e}) and number (${n}) cannot be divided (remainder) because the divisor is zero`);return!Number.isFinite(e)&&!Number.isNaN(e)?!Number.isFinite(n)&&!Number.isNaN(n)&&e<0&&n>0?-1:0:e%n}return null;case`==`:return g(e,n);case`!=`:return!g(e,n);case`<`:return _(e,n)<0;case`<=`:return _(e,n)<=0;case`>`:return _(e,n)>0;case`>=`:return _(e,n)>=0;default:return null}}))}function Y(e,r,i,a){let o=te.get(r);if(o)return typeof e==`number`?[o(e)]:[null];let s=T(e,r,i,a,W);if(s!==null)return s;let c=A(e,r,i,a,W);if(c!==null)return c;let l=m(e,r,i,a,W);if(l!==null)return l;let u=C(e,r,a.limits.maxDepth);if(u!==null)return u;let d=j(e,r);if(d!==null)return d;let _=O(e,r,i,a,W);if(_!==null)return _;let v=f(e,r,i,a,W,U,b,h,x,t);if(v!==null)return v;let y=ee(e,r,i,a,W,h,M,N,q,X);if(y!==null)return y;let S=w(e,r,i,a,W,g);if(S!==null)return S;let D=p(e,r,i,a,W,U,h,t);if(D!==null)return D;let P=E(e,r,i,a,W,h,B,Y);if(P!==null)return P;let I=k(e,r,i,a,W,g);if(I!==null)return I;switch(r){case`builtins`:return[`add/0.all/0.all/1.all/2.any/0.any/1.any/2.arrays/0.ascii/0.ascii_downcase/0.ascii_upcase/0.booleans/0.bsearch/1.builtins/0.combinations/0.combinations/1.contains/1.debug/0.del/1.delpaths/1.empty/0.env/0.error/0.error/1.explode/0.first/0.first/1.flatten/0.flatten/1.floor/0.from_entries/0.fromdate/0.fromjson/0.getpath/1.gmtime/0.group_by/1.gsub/2.gsub/3.has/1.implode/0.IN/1.IN/2.INDEX/1.INDEX/2.index/1.indices/1.infinite/0.inside/1.isempty/1.isnan/0.isnormal/0.isvalid/1.iterables/0.join/1.keys/0.keys_unsorted/0.last/0.last/1.length/0.limit/2.ltrimstr/1.map/1.map_values/1.match/1.match/2.max/0.max_by/1.min/0.min_by/1.mktime/0.modulemeta/1.nan/0.not/0.nth/1.nth/2.null/0.nulls/0.numbers/0.objects/0.path/1.paths/0.paths/1.pick/1.range/1.range/2.range/3.recurse/0.recurse/1.recurse_down/0.repeat/1.reverse/0.rindex/1.rtrimstr/1.scalars/0.scan/1.scan/2.select/1.setpath/2.skip/2.sort/0.sort_by/1.split/1.splits/1.splits/2.sqrt/0.startswith/1.strftime/1.strings/0.strptime/1.sub/2.sub/3.test/1.test/2.to_entries/0.toboolean/0.todate/0.tojson/0.tostream/0.fromstream/1.truncate_stream/1.tonumber/0.tostring/0.transpose/0.trim/0.ltrim/0.rtrim/0.type/0.unique/0.unique_by/1.until/2.utf8bytelength/0.values/0.walk/1.while/2.with_entries/1`.split(`.`)];case`error`:throw new F(i.length>0?W(e,i[0],a)[0]:e);case`env`:return[a.env?n(a.env):Object.create(null)];case`debug`:return[e];case`input_line_number`:return[1];default:{let t=`${r}/${i.length}`,n=a.funcs?.get(t);if(n){let r=n.closure??a.funcs??new Map,o=new Map(r);o.set(t,n);for(let t=0;t<n.params.length;t++){let r=n.params[t],s=i[t];if(s){let t=W(e,s,a),n;if(t.length===0)n={type:`Call`,name:`empty`,args:[]};else if(t.length===1)n={type:`Literal`,value:t[0]};else{n={type:`Literal`,value:t[t.length-1]};for(let e=t.length-2;e>=0;e--)n={type:`Comma`,left:{type:`Literal`,value:t[e]},right:n}}o.set(`${r}/0`,{params:[],body:n})}}let s={...a,funcs:o};return W(e,n.body,s)}throw Error(`Unknown function: ${r}`)}}}function X(e,t,n,r,i){if(t.type===`Comma`){let a=t;X(e,a.left,n,r,i),X(e,a.right,n,r,i);return}let a=V(t);if(a!==null){i.push([...r,...a]);return}if(t.type===`Iterate`){if(Array.isArray(e))for(let t=0;t<e.length;t++)i.push([...r,t]);else if(e&&typeof e==`object`)for(let t of Object.keys(e))i.push([...r,t]);return}if(t.type===`Recurse`){let t=(e,n)=>{if(i.push([...r,...n]),e&&typeof e==`object`)if(Array.isArray(e))for(let r=0;r<e.length;r++)t(e[r],[...n,r]);else for(let r of Object.keys(e))t(e[r],[...n,r])};t(e,[]);return}if(t.type===`Pipe`){let a=V(t.left);if(a!==null){let o=W(e,t.left,n);for(let e of o)X(e,t.right,n,[...r,...a],i);return}}W(e,t,n).length>0&&i.push(r)}var Z=new Map([[`and`,`AND`],[`or`,`OR`],[`not`,`NOT`],[`if`,`IF`],[`then`,`THEN`],[`elif`,`ELIF`],[`else`,`ELSE`],[`end`,`END`],[`as`,`AS`],[`try`,`TRY`],[`catch`,`CATCH`],[`true`,`TRUE`],[`false`,`FALSE`],[`null`,`NULL`],[`reduce`,`REDUCE`],[`foreach`,`FOREACH`],[`label`,`LABEL`],[`break`,`BREAK`],[`def`,`DEF`]]),Q=new Set(Z.values());function $(e){let t=[],n=0,r=(t=0)=>e[n+t],i=()=>e[n++],a=()=>n>=e.length,o=e=>e>=`0`&&e<=`9`,s=e=>e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`,c=e=>s(e)||o(e);for(;!a();){let l=n,u=i();if(!(u===` `||u===` `||u===`
|
|
3
3
|
`||u===`\r`)){if(u===`#`){for(;!a()&&r()!==`
|
|
4
4
|
`;)i();continue}if(u===`.`&&r()===`.`){i(),t.push({type:`DOTDOT`,pos:l});continue}if(u===`=`&&r()===`=`){i(),t.push({type:`EQ`,pos:l});continue}if(u===`!`&&r()===`=`){i(),t.push({type:`NE`,pos:l});continue}if(u===`<`&&r()===`=`){i(),t.push({type:`LE`,pos:l});continue}if(u===`>`&&r()===`=`){i(),t.push({type:`GE`,pos:l});continue}if(u===`/`&&r()===`/`){i(),r()===`=`?(i(),t.push({type:`UPDATE_ALT`,pos:l})):t.push({type:`ALT`,pos:l});continue}if(u===`+`&&r()===`=`){i(),t.push({type:`UPDATE_ADD`,pos:l});continue}if(u===`-`&&r()===`=`){i(),t.push({type:`UPDATE_SUB`,pos:l});continue}if(u===`*`&&r()===`=`){i(),t.push({type:`UPDATE_MUL`,pos:l});continue}if(u===`/`&&r()===`=`){i(),t.push({type:`UPDATE_DIV`,pos:l});continue}if(u===`%`&&r()===`=`){i(),t.push({type:`UPDATE_MOD`,pos:l});continue}if(u===`=`&&r()!==`=`){t.push({type:`ASSIGN`,pos:l});continue}if(u===`.`){t.push({type:`DOT`,pos:l});continue}if(u===`|`){r()===`=`?(i(),t.push({type:`UPDATE_PIPE`,pos:l})):t.push({type:`PIPE`,pos:l});continue}if(u===`,`){t.push({type:`COMMA`,pos:l});continue}if(u===`:`){t.push({type:`COLON`,pos:l});continue}if(u===`;`){t.push({type:`SEMICOLON`,pos:l});continue}if(u===`(`){t.push({type:`LPAREN`,pos:l});continue}if(u===`)`){t.push({type:`RPAREN`,pos:l});continue}if(u===`[`){t.push({type:`LBRACKET`,pos:l});continue}if(u===`]`){t.push({type:`RBRACKET`,pos:l});continue}if(u===`{`){t.push({type:`LBRACE`,pos:l});continue}if(u===`}`){t.push({type:`RBRACE`,pos:l});continue}if(u===`?`){t.push({type:`QUESTION`,pos:l});continue}if(u===`+`){t.push({type:`PLUS`,pos:l});continue}if(u===`-`){t.push({type:`MINUS`,pos:l});continue}if(u===`*`){t.push({type:`STAR`,pos:l});continue}if(u===`/`){t.push({type:`SLASH`,pos:l});continue}if(u===`%`){t.push({type:`PERCENT`,pos:l});continue}if(u===`<`){t.push({type:`LT`,pos:l});continue}if(u===`>`){t.push({type:`GT`,pos:l});continue}if(o(u)){let s=u;for(;!a()&&(o(r())||r()===`.`||r()===`e`||r()===`E`);)(r()===`e`||r()===`E`)&&(e[n+1]===`+`||e[n+1]===`-`)&&(s+=i()),s+=i();t.push({type:`NUMBER`,value:Number(s),pos:l});continue}if(u===`"`){let e=``;for(;!a()&&r()!==`"`;)if(r()===`\\`){if(i(),a())break;let t=i();switch(t){case`n`:e+=`
|
|
5
5
|
`;break;case`r`:e+=`\r`;break;case`t`:e+=` `;break;case`\\`:e+=`\\`;break;case`"`:e+=`"`;break;case`(`:e+=`\\(`;break;default:e+=t}}else e+=i();a()||i(),t.push({type:`STRING`,value:e,pos:l});continue}if(s(u)||u===`$`||u===`@`){let e=u;for(;!a()&&c(r());)e+=i();let n=Z.get(e);n?t.push({type:n,value:e,pos:l}):t.push({type:`IDENT`,value:e,pos:l});continue}throw Error(`Unexpected character '${u}' at position ${l}`)}}return t.push({type:`EOF`,pos:n}),t}var re=class e{tokens;pos=0;constructor(e){this.tokens=e}peek(e=0){return this.tokens[this.pos+e]??{type:`EOF`,pos:-1}}advance(){return this.tokens[this.pos++]}check(e){return this.peek().type===e}match(...e){for(let t of e)if(this.check(t))return this.advance();return null}expect(e,t){if(!this.check(e))throw Error(`${t} at position ${this.peek().pos}, got ${this.peek().type}`);return this.advance()}isFieldNameAfterDot(e=0){let t=this.peek(e),n=this.peek(e+1);return n.type===`STRING`?!0:n.type===`IDENT`||Q.has(n.type)?n.pos===t.pos+1:!1}isIdentLike(){let e=this.peek().type;return e===`IDENT`||Q.has(e)}consumeFieldNameAfterDot(e){let t=this.peek();return t.type===`STRING`||(t.type===`IDENT`||Q.has(t.type))&&t.pos===e.pos+1?this.advance().value:null}parse(){let e=this.parseExpr();if(!this.check(`EOF`))throw Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`);return e}parseExpr(){return this.parsePipe()}parsePattern(){if(this.match(`LBRACKET`)){let e=[];if(!this.check(`RBRACKET`))for(e.push(this.parsePattern());this.match(`COMMA`)&&!this.check(`RBRACKET`);)e.push(this.parsePattern());return this.expect(`RBRACKET`,`Expected ']' after array pattern`),{type:`array`,elements:e}}if(this.match(`LBRACE`)){let e=[];if(!this.check(`RBRACE`))for(e.push(this.parsePatternField());this.match(`COMMA`)&&!this.check(`RBRACE`);)e.push(this.parsePatternField());return this.expect(`RBRACE`,`Expected '}' after object pattern`),{type:`object`,fields:e}}let e=this.expect(`IDENT`,`Expected variable name in pattern`),t=e.value;if(!t.startsWith(`$`))throw Error(`Variable name must start with $ at position ${e.pos}`);return{type:`var`,name:t}}parsePatternField(){if(this.match(`LPAREN`)){let e=this.parseExpr();return this.expect(`RPAREN`,`Expected ')' after computed key`),this.expect(`COLON`,`Expected ':' after computed key`),{key:e,pattern:this.parsePattern()}}let e=this.peek();if(e.type===`IDENT`||Q.has(e.type)){let t=e.value;if(t.startsWith(`$`)){if(this.advance(),this.match(`COLON`)){let e=this.parsePattern();return{key:t.slice(1),pattern:e,keyVar:t}}return{key:t.slice(1),pattern:{type:`var`,name:t}}}return this.advance(),this.match(`COLON`)?{key:t,pattern:this.parsePattern()}:{key:t,pattern:{type:`var`,name:`$${t}`}}}throw Error(`Expected field name in object pattern at position ${e.pos}`)}parsePipe(){let e=this.parseComma();for(;this.match(`PIPE`);){let t=this.parseComma();e={type:`Pipe`,left:e,right:t}}return e}parseComma(){let e=this.parseVarBind();for(;this.match(`COMMA`);){let t=this.parseVarBind();e={type:`Comma`,left:e,right:t}}return e}parseVarBind(){let e=this.parseUpdate();if(this.match(`AS`)){let t=this.parsePattern(),n=[];for(;this.check(`QUESTION`)&&this.peekAhead(1)?.type===`ALT`;)this.advance(),this.advance(),n.push(this.parsePattern());this.expect(`PIPE`,`Expected '|' after variable binding`);let r=this.parseExpr();return t.type===`var`&&n.length===0?{type:`VarBind`,name:t.name,value:e,body:r}:{type:`VarBind`,name:t.type===`var`?t.name:``,value:e,body:r,pattern:t.type===`var`?void 0:t,alternatives:n.length>0?n:void 0}}return e}peekAhead(e){let t=this.pos+e;return t<this.tokens.length?this.tokens[t]:void 0}parseUpdate(){let e=this.parseAlt(),t=new Map([[`ASSIGN`,`=`],[`UPDATE_ADD`,`+=`],[`UPDATE_SUB`,`-=`],[`UPDATE_MUL`,`*=`],[`UPDATE_DIV`,`/=`],[`UPDATE_MOD`,`%=`],[`UPDATE_ALT`,`//=`],[`UPDATE_PIPE`,`|=`]]),n=this.match(`ASSIGN`,`UPDATE_ADD`,`UPDATE_SUB`,`UPDATE_MUL`,`UPDATE_DIV`,`UPDATE_MOD`,`UPDATE_ALT`,`UPDATE_PIPE`);if(n){let r=this.parseVarBind(),i=t.get(n.type);if(i)return{type:`UpdateOp`,op:i,path:e,value:r}}return e}parseAlt(){let e=this.parseOr();for(;this.match(`ALT`);){let t=this.parseOr();e={type:`BinaryOp`,op:`//`,left:e,right:t}}return e}parseOr(){let e=this.parseAnd();for(;this.match(`OR`);){let t=this.parseAnd();e={type:`BinaryOp`,op:`or`,left:e,right:t}}return e}parseAnd(){let e=this.parseNot();for(;this.match(`AND`);){let t=this.parseNot();e={type:`BinaryOp`,op:`and`,left:e,right:t}}return e}parseNot(){return this.parseComparison()}parseComparison(){let e=this.parseAddSub(),t=new Map([[`EQ`,`==`],[`NE`,`!=`],[`LT`,`<`],[`LE`,`<=`],[`GT`,`>`],[`GE`,`>=`]]),n=this.match(`EQ`,`NE`,`LT`,`LE`,`GT`,`GE`);if(n){let r=t.get(n.type);if(r){let t=this.parseAddSub();e={type:`BinaryOp`,op:r,left:e,right:t}}}return e}parseAddSub(){let e=this.parseMulDiv();for(;;)if(this.match(`PLUS`)){let t=this.parseMulDiv();e={type:`BinaryOp`,op:`+`,left:e,right:t}}else if(this.match(`MINUS`)){let t=this.parseMulDiv();e={type:`BinaryOp`,op:`-`,left:e,right:t}}else break;return e}parseMulDiv(){let e=this.parseUnary();for(;;)if(this.match(`STAR`)){let t=this.parseUnary();e={type:`BinaryOp`,op:`*`,left:e,right:t}}else if(this.match(`SLASH`)){let t=this.parseUnary();e={type:`BinaryOp`,op:`/`,left:e,right:t}}else if(this.match(`PERCENT`)){let t=this.parseUnary();e={type:`BinaryOp`,op:`%`,left:e,right:t}}else break;return e}parseUnary(){return this.match(`MINUS`)?{type:`UnaryOp`,op:`-`,operand:this.parseUnary()}:this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.match(`QUESTION`))e={type:`Optional`,expr:e};else if(this.check(`DOT`)&&this.isFieldNameAfterDot())this.advance(),e={type:`Field`,name:this.advance().value,base:e};else if(this.check(`LBRACKET`))if(this.advance(),this.match(`RBRACKET`))e={type:`Iterate`,base:e};else if(this.check(`COLON`)){this.advance();let t=this.check(`RBRACKET`)?void 0:this.parseExpr();this.expect(`RBRACKET`,`Expected ']'`),e={type:`Slice`,end:t,base:e}}else{let t=this.parseExpr();if(this.match(`COLON`)){let n=this.check(`RBRACKET`)?void 0:this.parseExpr();this.expect(`RBRACKET`,`Expected ']'`),e={type:`Slice`,start:t,end:n,base:e}}else this.expect(`RBRACKET`,`Expected ']'`),e={type:`Index`,index:t,base:e}}else break;return e}parsePrimary(){if(this.match(`DOTDOT`))return{type:`Recurse`};if(this.check(`DOT`)){let e=this.advance();if(this.check(`LBRACKET`)){if(this.advance(),this.match(`RBRACKET`))return{type:`Iterate`};if(this.check(`COLON`)){this.advance();let e=this.check(`RBRACKET`)?void 0:this.parseExpr();return this.expect(`RBRACKET`,`Expected ']'`),{type:`Slice`,end:e}}let e=this.parseExpr();if(this.match(`COLON`)){let t=this.check(`RBRACKET`)?void 0:this.parseExpr();return this.expect(`RBRACKET`,`Expected ']'`),{type:`Slice`,start:e,end:t}}return this.expect(`RBRACKET`,`Expected ']'`),{type:`Index`,index:e}}let t=this.consumeFieldNameAfterDot(e);return t===null?{type:`Identity`}:{type:`Field`,name:t}}if(this.match(`TRUE`))return{type:`Literal`,value:!0};if(this.match(`FALSE`))return{type:`Literal`,value:!1};if(this.match(`NULL`))return{type:`Literal`,value:null};if(this.check(`NUMBER`))return{type:`Literal`,value:this.advance().value};if(this.check(`STRING`)){let e=this.advance().value;return e.includes(`\\(`)?this.parseStringInterpolation(e):{type:`Literal`,value:e}}if(this.match(`LBRACKET`)){if(this.match(`RBRACKET`))return{type:`Array`};let e=this.parseExpr();return this.expect(`RBRACKET`,`Expected ']'`),{type:`Array`,elements:e}}if(this.match(`LBRACE`))return this.parseObjectConstruction();if(this.match(`LPAREN`)){let e=this.parseExpr();return this.expect(`RPAREN`,`Expected ')'`),{type:`Paren`,expr:e}}if(this.match(`IF`))return this.parseIf();if(this.match(`TRY`)){let e=this.parsePostfix(),t;return this.match(`CATCH`)&&(t=this.parsePostfix()),{type:`Try`,body:e,catch:t}}if(this.match(`REDUCE`)){let e=this.parseAddSub();this.expect(`AS`,`Expected 'as' after reduce expression`);let t=this.parsePattern();this.expect(`LPAREN`,`Expected '(' after variable`);let n=this.parseExpr();this.expect(`SEMICOLON`,`Expected ';' after init expression`);let r=this.parseExpr();return this.expect(`RPAREN`,`Expected ')' after update expression`),{type:`Reduce`,expr:e,varName:t.type===`var`?t.name:``,init:n,update:r,pattern:t.type===`var`?void 0:t}}if(this.match(`FOREACH`)){let e=this.parseAddSub();this.expect(`AS`,`Expected 'as' after foreach expression`);let t=this.parsePattern();this.expect(`LPAREN`,`Expected '(' after variable`);let n=this.parseExpr();this.expect(`SEMICOLON`,`Expected ';' after init expression`);let r=this.parseExpr(),i;return this.match(`SEMICOLON`)&&(i=this.parseExpr()),this.expect(`RPAREN`,`Expected ')' after expressions`),{type:`Foreach`,expr:e,varName:t.type===`var`?t.name:``,init:n,update:r,extract:i,pattern:t.type===`var`?void 0:t}}if(this.match(`LABEL`)){let e=this.expect(`IDENT`,`Expected label name (e.g., $out)`),t=e.value;if(!t.startsWith(`$`))throw Error(`Label name must start with $ at position ${e.pos}`);return this.expect(`PIPE`,`Expected '|' after label name`),{type:`Label`,name:t,body:this.parseExpr()}}if(this.match(`BREAK`)){let e=this.expect(`IDENT`,`Expected label name to break to`),t=e.value;if(!t.startsWith(`$`))throw Error(`Break label must start with $ at position ${e.pos}`);return{type:`Break`,name:t}}if(this.match(`DEF`)){let e=this.expect(`IDENT`,`Expected function name after def`).value,t=[];if(this.match(`LPAREN`)){if(!this.check(`RPAREN`)){let e=this.expect(`IDENT`,`Expected parameter name`);for(t.push(e.value);this.match(`SEMICOLON`);){let e=this.expect(`IDENT`,`Expected parameter name`);t.push(e.value)}}this.expect(`RPAREN`,`Expected ')' after parameters`)}this.expect(`COLON`,`Expected ':' after function name`);let n=this.parseExpr();return this.expect(`SEMICOLON`,`Expected ';' after function body`),{type:`Def`,name:e,params:t,funcBody:n,body:this.parseExpr()}}if(this.match(`NOT`))return{type:`Call`,name:`not`,args:[]};if(this.check(`IDENT`)){let e=this.advance().value;if(e.startsWith(`$`))return{type:`VarRef`,name:e};if(this.match(`LPAREN`)){let t=[];if(!this.check(`RPAREN`))for(t.push(this.parseExpr());this.match(`SEMICOLON`);)t.push(this.parseExpr());return this.expect(`RPAREN`,`Expected ')'`),{type:`Call`,name:e,args:t}}return{type:`Call`,name:e,args:[]}}throw Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`)}parseObjectConstruction(){let e=[];if(!this.check(`RBRACE`))do{let t,n;if(this.match(`LPAREN`))t=this.parseExpr(),this.expect(`RPAREN`,`Expected ')'`),this.expect(`COLON`,`Expected ':'`),n=this.parseObjectValue();else if(this.isIdentLike()){let e=this.advance().value;this.match(`COLON`)?(t=e,n=this.parseObjectValue()):(t=e,n={type:`Field`,name:e})}else if(this.check(`STRING`))t=this.advance().value,this.expect(`COLON`,`Expected ':'`),n=this.parseObjectValue();else throw Error(`Expected object key at position ${this.peek().pos}`);e.push({key:t,value:n})}while(this.match(`COMMA`));return this.expect(`RBRACE`,`Expected '}'`),{type:`Object`,entries:e}}parseObjectValue(){let e=this.parseVarBind();for(;this.match(`PIPE`);){let t=this.parseVarBind();e={type:`Pipe`,left:e,right:t}}return e}parseIf(){let e=this.parseExpr();this.expect(`THEN`,`Expected 'then'`);let t=this.parseExpr(),n=[];for(;this.match(`ELIF`);){let e=this.parseExpr();this.expect(`THEN`,`Expected 'then' after elif`);let t=this.parseExpr();n.push({cond:e,then:t})}let r;return this.match(`ELSE`)&&(r=this.parseExpr()),this.expect(`END`,`Expected 'end'`),{type:`Cond`,cond:e,then:t,elifs:n,else:r}}parseStringInterpolation(t){let n=[],r=``,i=0;for(;i<t.length;)if(t[i]===`\\`&&t[i+1]===`(`){r&&=(n.push(r),``),i+=2;let a=1,o=``;for(;i<t.length&&a>0;)t[i]===`(`?a++:t[i]===`)`&&a--,a>0&&(o+=t[i]),i++;let s=new e($(o));n.push(s.parse())}else r+=t[i],i++;return r&&n.push(r),{type:`StringInterp`,parts:n}}};function ie(e){return new re($(e)).parse()}export{W as n,ie as t};
|
|
6
|
-
//# sourceMappingURL=chunk-KRBPSX3W-
|
|
6
|
+
//# sourceMappingURL=chunk-KRBPSX3W-YDdgrCmf.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO
|
|
2
|
-
//# sourceMappingURL=chunk-LL3S3NLB-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var n={name:`clear`,summary:`clear the terminal screen`,usage:`clear [OPTIONS]`,options:[` --help display this help and exit`]},r={name:`clear`,async execute(r,i){return t(r)?e(n):{stdout:`\x1B[2J\x1B[H`,stderr:``,exitCode:0}}},i={name:`clear`,flags:[]};export{r as n,i as t};
|
|
2
|
+
//# sourceMappingURL=chunk-LL3S3NLB-D0lLKwVi.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";import{constants as r,gunzipSync as i,gzipSync as a}from"node:zlib";var o={name:`gzip`,summary:`compress or expand files`,usage:`gzip [OPTION]... [FILE]...`,description:`Compress FILEs (by default, in-place).
|
|
2
2
|
|
|
3
3
|
When no FILE is given, or when FILE is -, read from standard input.
|
|
4
4
|
|
|
@@ -29,4 +29,4 @@ When no FILE is given, or when FILE is -, read from standard input.`,options:[`-
|
|
|
29
29
|
`,exitCode:0}:{stdout:``,stderr:``,exitCode:0}}catch(e){return{stdout:``,stderr:`${r}: ${t}: ${e instanceof Error?e.message:`invalid`}
|
|
30
30
|
`,exitCode:1}}}async function x(r,i,a){let u=a===`zcat`?c:a===`gunzip`?s:o;if(t(r))return e(u);let d=n(a,r,l);if(!d.ok)return d.error.stderr.includes(`unrecognized option`),d.error;let f=d.result.flags,p=d.result.positional,m=a===`gunzip`||a===`zcat`||f.decompress||f.uncompress,h=a===`zcat`||f.stdout||f.toStdout;if(f.list){p.length===0&&(p=[`-`]);let e=` compressed uncompressed ratio uncompressed_name
|
|
31
31
|
`,t=``,n=0;for(let r of p){let o=await y(i,r,f,a);e+=o.stdout,t+=o.stderr,o.exitCode!==0&&(n=o.exitCode)}return{stdout:e,stderr:t,exitCode:n}}if(f.test){p.length===0&&(p=[`-`]);let e=``,t=``,n=0;for(let r of p){let o=await b(i,r,f,a);e+=o.stdout,t+=o.stderr,o.exitCode!==0&&(n=o.exitCode)}return{stdout:e,stderr:t,exitCode:n}}p.length===0&&(p=[`-`]);let g=``,v=``,x=0;for(let e of p){let t=await _(i,e,f,a,m,h);g+=t.stdout,v+=t.stderr,t.exitCode!==0&&(x=t.exitCode)}return{stdout:g,stderr:v,exitCode:x}}var S={name:`gzip`,async execute(e,t){return{...await x(e,t,`gzip`),stdoutEncoding:`binary`}}},C={name:`gunzip`,async execute(e,t){return{...await x(e,t,`gunzip`),stdoutEncoding:`binary`}}},w={name:`zcat`,async execute(e,t){return{...await x(e,t,`zcat`),stdoutEncoding:`binary`}}},T={name:`gzip`,flags:[{flag:`-c`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-k`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-t`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-1`,type:`boolean`},{flag:`-9`,type:`boolean`}],stdinType:`binary`,needsFiles:!0},E={name:`gunzip`,flags:[{flag:`-c`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-k`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-v`,type:`boolean`}],stdinType:`binary`,needsFiles:!0},D={name:`zcat`,flags:[{flag:`-f`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-v`,type:`boolean`}],stdinType:`binary`,needsFiles:!0};export{w as a,T as i,E as n,D as o,C as r,S as t};
|
|
32
|
-
//# sourceMappingURL=chunk-LTZRCH7N-
|
|
32
|
+
//# sourceMappingURL=chunk-LTZRCH7N-DpPs5vSq.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var r={name:`column`,summary:`columnate lists`,usage:`column [OPTION]... [FILE]...`,description:`Format input into multiple columns. By default, fills rows first. Use -t to create a table based on whitespace-delimited input.`,options:[`-t Create a table (determine columns from input)`,`-s SEP Input field delimiter (default: whitespace)`,`-o SEP Output field delimiter (default: two spaces)`,`-c WIDTH Output width for fill mode (default: 80)`,`-n Don't merge multiple adjacent delimiters`],examples:[`ls | column # Fill columns with ls output`,`cat data | column -t # Format as table`,`column -t -s ',' file # Format CSV as table`,`column -c 40 file # Fill 40-char wide columns`]},i={table:{short:`t`,long:`table`,type:`boolean`},separator:{short:`s`,type:`string`},outputSep:{short:`o`,type:`string`},width:{short:`c`,type:`number`,default:80},noMerge:{short:`n`,type:`boolean`}};function a(e,t,n){return t?n?e.split(t):e.split(t).filter(e=>e.length>0):n?e.split(/[ \t]/):e.split(/[ \t]+/).filter(e=>e.length>0)}function o(e){let t=[];for(let n of e)for(let e=0;e<n.length;e++){let r=n[e].length;(t[e]===void 0||r>t[e])&&(t[e]=r)}return t}function s(e,t){if(e.length===0)return``;let n=o(e),r=[];for(let i of e){let e=[];for(let t=0;t<i.length;t++)t===i.length-1?e.push(i[t]):e.push(i[t].padEnd(n[t]));r.push(e.join(t))}return r.join(`
|
|
2
2
|
`)}function c(e,t,n){if(e.length===0)return``;let r=Math.max(...e.map(e=>e.length)),i=n.length,a=r+i,o=Math.max(1,Math.floor((t+i)/a)),s=Math.ceil(e.length/o),c=[];for(let t=0;t<s;t++){let i=[];for(let n=0;n<o;n++){let a=n*s+t;a<e.length&&(n===o-1||(n+1)*s+t>=e.length?i.push(e[a]):i.push(e[a].padEnd(r)))}c.push(i.join(n))}return c.join(`
|
|
3
3
|
`)}var l={name:`column`,execute:async(o,l)=>{if(t(o))return e(r);let u=n(`column`,o,i);if(!u.ok)return u.error;let{table:d,separator:f,outputSep:p,width:m,noMerge:h}=u.result.flags,g=u.result.positional,_=p??` `,v;if(g.length===0)v=l.stdin??``;else{let e=[];for(let t of g)if(t===`-`)e.push(l.stdin??``);else{let n=l.fs.resolvePath(l.cwd,t),r=await l.fs.readFile(n);if(r===null)return{exitCode:1,stdout:``,stderr:`column: ${t}: No such file or directory
|
|
4
4
|
`};e.push(r)}v=e.join(``)}if(v===``||v.trim()===``)return{exitCode:0,stdout:``,stderr:``};let y=v.split(`
|
|
5
5
|
`);v.endsWith(`
|
|
6
6
|
`)&&y[y.length-1]===``&&y.pop();let b=y.filter(e=>e.trim().length>0),x;if(d)x=s(b.map(e=>a(e,f,h)),_);else{let e=[];for(let t of b){let n=a(t,f,h);e.push(...n)}x=c(e,m,_)}return x.length>0&&(x+=`
|
|
7
7
|
`),{exitCode:0,stdout:x,stderr:``}}},u={name:`column`,flags:[{flag:`-t`,type:`boolean`},{flag:`-s`,type:`value`,valueHint:`delimiter`},{flag:`-o`,type:`value`,valueHint:`string`},{flag:`-c`,type:`value`,valueHint:`number`},{flag:`-n`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{u as n,l as t};
|
|
8
|
-
//# sourceMappingURL=chunk-LWEGUNWT-
|
|
8
|
+
//# sourceMappingURL=chunk-LWEGUNWT-DOK-XWMd.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{t}from"./chunk-44UOCSGV-Dadyg26w.mjs";import{t as n}from"./chunk-HWKDQ44K-
|
|
1
|
+
import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{t}from"./chunk-44UOCSGV-Dadyg26w.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var r={recursive:{short:`p`,long:`parents`,type:`boolean`},verbose:{short:`v`,long:`verbose`,type:`boolean`}},i={name:`mkdir`,async execute(i,a){let o=n(`mkdir`,i,r);if(!o.ok)return o.error;let s=o.result.flags.recursive,c=o.result.flags.verbose,l=o.result.positional;if(l.length===0)return{stdout:``,stderr:`mkdir: missing operand
|
|
2
2
|
`,exitCode:1};let u=``,d=``,f=0;for(let n of l)try{let e=a.fs.resolvePath(a.cwd,n);await a.fs.mkdir(e,{recursive:s}),c&&(u+=`mkdir: created directory '${n}'
|
|
3
3
|
`)}catch(r){let i=t(r);i.includes(`ENOENT`)||i.includes(`no such file`)?d+=`mkdir: cannot create directory '${n}': No such file or directory
|
|
4
4
|
`:i.includes(`EEXIST`)||i.includes(`already exists`)?d+=`mkdir: cannot create directory '${n}': File exists
|
|
5
5
|
`:d+=`mkdir: cannot create directory '${n}': ${e(i)}
|
|
6
6
|
`,f=1}return{stdout:u,stderr:d,exitCode:f}}},a={name:`mkdir`,flags:[{flag:`-p`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0};export{a as n,i as t};
|
|
7
|
-
//# sourceMappingURL=chunk-MDDMCKUK-
|
|
7
|
+
//# sourceMappingURL=chunk-MDDMCKUK-CTA6qEdN.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n,r,t as i}from"./chunk-74CEPOFO
|
|
1
|
+
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n,r,t as i}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var a=t(((e,t)=>{t.exports=n,n.CAPTURING_PHASE=1,n.AT_TARGET=2,n.BUBBLING_PHASE=3;function n(e,t){if(this.type=``,this.target=null,this.currentTarget=null,this.eventPhase=n.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}n.prototype=Object.create(Object.prototype,{constructor:{value:n},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(e,t,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=e,this.bubbles=t,this.cancelable=n)}}})})),o=t(((e,t)=>{var n=a();t.exports=r;function r(){n.call(this),this.view=null,this.detail=0}r.prototype=Object.create(n.prototype,{constructor:{value:r},initUIEvent:{value:function(e,t,n,r,i){this.initEvent(e,t,n),this.view=r,this.detail=i}}})})),s=t(((e,t)=>{var n=o();t.exports=r;function r(){n.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}r.prototype=Object.create(n.prototype,{constructor:{value:r},initMouseEvent:{value:function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){switch(this.initEvent(e,t,n,r,i),this.screenX=a,this.screenY=o,this.clientX=s,this.clientY=c,this.ctrlKey=l,this.altKey=u,this.shiftKey=d,this.metaKey=f,this.button=p,p){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=m}},getModifierState:{value:function(e){switch(e){case`Alt`:return this.altKey;case`Control`:return this.ctrlKey;case`Shift`:return this.shiftKey;case`Meta`:return this.metaKey;default:return!1}}}})})),c=t(((e,t)=>{t.exports=T;var n=1,r=3,i=4,a=5,o=7,s=8,c=9,l=11,u=12,d=13,f=14,p=15,m=17,h=18,g=19,_=20,v=21,y=22,b=23,x=24,S=25,ee=[null,`INDEX_SIZE_ERR`,null,`HIERARCHY_REQUEST_ERR`,`WRONG_DOCUMENT_ERR`,`INVALID_CHARACTER_ERR`,null,`NO_MODIFICATION_ALLOWED_ERR`,`NOT_FOUND_ERR`,`NOT_SUPPORTED_ERR`,`INUSE_ATTRIBUTE_ERR`,`INVALID_STATE_ERR`,`SYNTAX_ERR`,`INVALID_MODIFICATION_ERR`,`NAMESPACE_ERR`,`INVALID_ACCESS_ERR`,null,`TYPE_MISMATCH_ERR`,`SECURITY_ERR`,`NETWORK_ERR`,`ABORT_ERR`,`URL_MISMATCH_ERR`,`QUOTA_EXCEEDED_ERR`,`TIMEOUT_ERR`,`INVALID_NODE_TYPE_ERR`,`DATA_CLONE_ERR`],C=[null,`INDEX_SIZE_ERR (1): the index is not in the allowed range`,null,`HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model`,`WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required`,`INVALID_CHARACTER_ERR (5): the string contains invalid characters`,null,`NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified`,`NOT_FOUND_ERR (8): the object can not be found here`,`NOT_SUPPORTED_ERR (9): this operation is not supported`,`INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute`,`INVALID_STATE_ERR (11): the object is in an invalid state`,`SYNTAX_ERR (12): the string did not match the expected pattern`,`INVALID_MODIFICATION_ERR (13): the object can not be modified in this way`,`NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML`,`INVALID_ACCESS_ERR (15): the object does not support the operation or argument`,null,`TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type`,`SECURITY_ERR (18): the operation is insecure`,`NETWORK_ERR (19): a network error occurred`,`ABORT_ERR (20): the user aborted an operation`,`URL_MISMATCH_ERR (21): the given URL does not match another URL`,`QUOTA_EXCEEDED_ERR (22): the quota has been exceeded`,`TIMEOUT_ERR (23): a timeout occurred`,`INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation`,`DATA_CLONE_ERR (25): the object can not be cloned.`],w={INDEX_SIZE_ERR:n,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:r,WRONG_DOCUMENT_ERR:i,INVALID_CHARACTER_ERR:a,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:o,NOT_FOUND_ERR:s,NOT_SUPPORTED_ERR:c,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:l,SYNTAX_ERR:u,INVALID_MODIFICATION_ERR:d,NAMESPACE_ERR:f,INVALID_ACCESS_ERR:p,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:m,SECURITY_ERR:h,NETWORK_ERR:g,ABORT_ERR:_,URL_MISMATCH_ERR:v,QUOTA_EXCEEDED_ERR:y,TIMEOUT_ERR:b,INVALID_NODE_TYPE_ERR:x,DATA_CLONE_ERR:S};function T(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=C[e],this.name=ee[e]}for(var E in T.prototype.__proto__=Error.prototype,w){var D={value:w[E]};Object.defineProperty(T,E,D),Object.defineProperty(T.prototype,E,D)}})),l=t((e=>{e.isApiWritable=!globalThis.__domino_frozen__})),u=t((e=>{var t=c(),n=t,r=l().isApiWritable;e.NAMESPACE={HTML:`http://www.w3.org/1999/xhtml`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`,MATHML:`http://www.w3.org/1998/Math/MathML`,SVG:`http://www.w3.org/2000/svg`,XLINK:`http://www.w3.org/1999/xlink`},e.IndexSizeError=function(){throw new t(n.INDEX_SIZE_ERR)},e.HierarchyRequestError=function(){throw new t(n.HIERARCHY_REQUEST_ERR)},e.WrongDocumentError=function(){throw new t(n.WRONG_DOCUMENT_ERR)},e.InvalidCharacterError=function(){throw new t(n.INVALID_CHARACTER_ERR)},e.NoModificationAllowedError=function(){throw new t(n.NO_MODIFICATION_ALLOWED_ERR)},e.NotFoundError=function(){throw new t(n.NOT_FOUND_ERR)},e.NotSupportedError=function(){throw new t(n.NOT_SUPPORTED_ERR)},e.InvalidStateError=function(){throw new t(n.INVALID_STATE_ERR)},e.SyntaxError=function(){throw new t(n.SYNTAX_ERR)},e.InvalidModificationError=function(){throw new t(n.INVALID_MODIFICATION_ERR)},e.NamespaceError=function(){throw new t(n.NAMESPACE_ERR)},e.InvalidAccessError=function(){throw new t(n.INVALID_ACCESS_ERR)},e.TypeMismatchError=function(){throw new t(n.TYPE_MISMATCH_ERR)},e.SecurityError=function(){throw new t(n.SECURITY_ERR)},e.NetworkError=function(){throw new t(n.NETWORK_ERR)},e.AbortError=function(){throw new t(n.ABORT_ERR)},e.UrlMismatchError=function(){throw new t(n.URL_MISMATCH_ERR)},e.QuotaExceededError=function(){throw new t(n.QUOTA_EXCEEDED_ERR)},e.TimeoutError=function(){throw new t(n.TIMEOUT_ERR)},e.InvalidNodeTypeError=function(){throw new t(n.INVALID_NODE_TYPE_ERR)},e.DataCloneError=function(){throw new t(n.DATA_CLONE_ERR)},e.nyi=function(){throw Error(`NotYetImplemented`)},e.shouldOverride=function(){throw Error(`Abstract function; should be overriding in subclass.`)},e.assert=function(e,t){if(!e)throw Error(`Assertion failed: `+(t||``)+`
|
|
2
2
|
`+Error().stack)},e.expose=function(e,t){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],writable:r})},e.merge=function(e,t){for(var n in t)e[n]=t[n]},e.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)},e.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(e){return e.toLowerCase()})},e.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(e){return e.toUpperCase()})}})),d=t(((e,t)=>{var n=a(),r=s(),i=u();t.exports=o;function o(){}o.prototype={addEventListener:function(e,t,n){if(t){n===void 0&&(n=!1),this._listeners||=Object.create(null),this._listeners[e]||(this._listeners[e]=[]);for(var r=this._listeners[e],i=0,a=r.length;i<a;i++){var o=r[i];if(o.listener===t&&o.capture===n)return}var s={listener:t,capture:n};typeof t==`function`&&(s.f=t),r.push(s)}},removeEventListener:function(e,t,n){if(n===void 0&&(n=!1),this._listeners){var r=this._listeners[e];if(r)for(var i=0,a=r.length;i<a;i++){var o=r[i];if(o.listener===t&&o.capture===n){r.length===1?this._listeners[e]=void 0:r.splice(i,1);return}}}},dispatchEvent:function(e){return this._dispatchEvent(e,!1)},_dispatchEvent:function(e,t){typeof t!=`boolean`&&(t=!1);function a(e,t){var r=t.type,i=t.eventPhase;if(t.currentTarget=e,i!==n.CAPTURING_PHASE&&e._handlers&&e._handlers[r]){var a=e._handlers[r],o;if(typeof a==`function`)o=a.call(t.currentTarget,t);else{var s=a.handleEvent;if(typeof s!=`function`)throw TypeError(`handleEvent property of event handler object isnot a function.`);o=s.call(a,t)}switch(t.type){case`mouseover`:o===!0&&t.preventDefault();break;default:o===!1&&t.preventDefault();break}}var c=e._listeners&&e._listeners[r];if(c){c=c.slice();for(var l=0,u=c.length;l<u;l++){if(t._immediatePropagationStopped)return;var d=c[l];if(!(i===n.CAPTURING_PHASE&&!d.capture||i===n.BUBBLING_PHASE&&d.capture))if(d.f)d.f.call(t.currentTarget,t);else{var f=d.listener.handleEvent;if(typeof f!=`function`)throw TypeError(`handleEvent property of event listener object is not a function.`);f.call(d.listener,t)}}}}(!e._initialized||e._dispatching)&&i.InvalidStateError(),e.isTrusted=t,e._dispatching=!0,e.target=this;for(var o=[],s=this.parentNode;s;s=s.parentNode)o.push(s);e.eventPhase=n.CAPTURING_PHASE;for(var c=o.length-1;c>=0&&(a(o[c],e),!e._propagationStopped);c--);if(e._propagationStopped||(e.eventPhase=n.AT_TARGET,a(this,e)),e.bubbles&&!e._propagationStopped){e.eventPhase=n.BUBBLING_PHASE;for(var l=0,u=o.length;l<u&&(a(o[l],e),!e._propagationStopped);l++);}if(e._dispatching=!1,e.eventPhase=n.AT_TARGET,e.currentTarget=null,t&&!e.defaultPrevented&&e instanceof r)switch(e.type){case`mousedown`:this._armed={x:e.clientX,y:e.clientY,t:e.timeStamp};break;case`mouseout`:case`mouseover`:this._armed=null;break;case`mouseup`:this._isClick(e)&&this._doClick(e),this._armed=null;break}return!e.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type===`mouseup`&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var n=this.ownerDocument.createEvent(`MouseEvent`);n.initMouseEvent(`click`,!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var r=this._dispatchEvent(n,!0);t&&(r?t._post_click_activation_steps&&t._post_click_activation_steps(n):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(e,t){this._handlers||=Object.create(null),this._handlers[e]=t},_getEventHandler:function(e){return this._handlers&&this._handlers[e]||null}}})),f=t(((e,t)=>{var n=u(),r=t.exports={valid:function(e){return n.assert(e,`list falsy`),n.assert(e._previousSibling,`previous falsy`),n.assert(e._nextSibling,`next falsy`),!0},insertBefore:function(e,t){n.assert(r.valid(e)&&r.valid(t));var i=e,a=e._previousSibling,o=t,s=t._previousSibling;i._previousSibling=s,a._nextSibling=o,s._nextSibling=i,o._previousSibling=a,n.assert(r.valid(e)&&r.valid(t))},replace:function(e,t){n.assert(r.valid(e)&&(t===null||r.valid(t))),t!==null&&r.insertBefore(t,e),r.remove(e),n.assert(r.valid(e)&&(t===null||r.valid(t)))},remove:function(e){n.assert(r.valid(e));var t=e._previousSibling;if(t!==e){var i=e._nextSibling;t._nextSibling=i,i._previousSibling=t,e._previousSibling=e._nextSibling=e,n.assert(r.valid(e))}}}})),p=t(((e,t)=>{t.exports={serializeOne:_,ɵescapeMatchingClosingTag:p,ɵescapeClosingCommentTag:h,ɵescapeProcessingInstructionContent:g};var n=u(),r=n.NAMESPACE,i={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},a={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},o={};let s=/[&<>\u00A0]/g,c=/[&"<>\u00A0]/g;function l(e){return s.test(e)?e.replace(s,e=>{switch(e){case`&`:return`&`;case`<`:return`<`;case`>`:return`>`;case`\xA0`:return` `}}):e}function d(e){return c.test(e)?e.replace(c,e=>{switch(e){case`<`:return`<`;case`>`:return`>`;case`&`:return`&`;case`"`:return`"`;case`\xA0`:return` `}}):e}function f(e){var t=e.namespaceURI;return t?t===r.XML?`xml:`+e.localName:t===r.XLINK?`xlink:`+e.localName:t===r.XMLNS?e.localName===`xmlns`?`xmlns`:`xmlns:`+e.localName:e.name:e.localName}function p(e,t){let n=`</`+t;if(!e.toLowerCase().includes(n))return e;let r=[...e],i=e.matchAll(new RegExp(n,`ig`));for(let e of i)r[e.index]=`<`;return r.join(``)}let m=/--!?>/;function h(e){return m.test(e)?e.replace(/(--\!?)>/g,`$1>`):e}function g(e){return e.includes(`>`)?e.replaceAll(`>`,`>`):e}function _(e,t){var s=``;switch(e.nodeType){case 1:var c=e.namespaceURI,u=c===r.HTML,m=u||c===r.SVG||c===r.MATHML?e.localName:e.tagName;s+=`<`+m;for(var _=0,v=e._numattrs;_<v;_++){var y=e._attr(_);s+=` `+f(y),y.value!==void 0&&(s+=`="`+d(y.value)+`"`)}if(s+=`>`,!(u&&a[m])){var b=e.serialize();i[m.toUpperCase()]&&(b=p(b,m)),u&&o[m]&&b.charAt(0)===`
|
|
3
3
|
`&&(s+=`
|
|
4
4
|
`),s+=b,s+=`</`+m+`>`}break;case 3:case 4:var x=t.nodeType===1&&t.namespaceURI===r.HTML?t.tagName:``;i[x]||x===`NOSCRIPT`&&t.ownerDocument._scripting_enabled?s+=e.data:s+=l(e.data);break;case 8:s+=`<!--`+h(e.data)+`-->`;break;case 7:let S=g(e.data);s+=`<?`+e.target+` `+S+`?>`;break;case 10:s+=`<!DOCTYPE `+e.name,s+=`>`;break;default:n.InvalidStateError()}return s}})),m=t(((e,t)=>{t.exports=o;var n=d(),r=f(),i=p(),a=u();function o(){n.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var s=o.ELEMENT_NODE=1,c=o.ATTRIBUTE_NODE=2,l=o.TEXT_NODE=3,m=o.CDATA_SECTION_NODE=4,h=o.ENTITY_REFERENCE_NODE=5,g=o.ENTITY_NODE=6,_=o.PROCESSING_INSTRUCTION_NODE=7,v=o.COMMENT_NODE=8,y=o.DOCUMENT_NODE=9,b=o.DOCUMENT_TYPE_NODE=10,x=o.DOCUMENT_FRAGMENT_NODE=11,S=o.NOTATION_NODE=12,ee=o.DOCUMENT_POSITION_DISCONNECTED=1,C=o.DOCUMENT_POSITION_PRECEDING=2,w=o.DOCUMENT_POSITION_FOLLOWING=4,T=o.DOCUMENT_POSITION_CONTAINS=8,E=o.DOCUMENT_POSITION_CONTAINED_BY=16,D=o.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;o.prototype=Object.create(n.prototype,{baseURI:{get:a.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===s?this.parentNode:null}},hasChildNodes:{value:a.shouldOverride},firstChild:{get:a.shouldOverride},lastChild:{get:a.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===o.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===o.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,n=this.firstChild;n!==null;n=n.nextSibling)n.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(e,t,n){var r=this,i,o;if(!e.nodeType)throw TypeError(`not a node`);switch(r.nodeType){case y:case x:case s:break;default:a.HierarchyRequestError()}switch(e.isAncestor(r)&&a.HierarchyRequestError(),(t!==null||!n)&&t.parentNode!==r&&a.NotFoundError(),e.nodeType){case x:case b:case s:case l:case _:case v:break;default:a.HierarchyRequestError()}if(r.nodeType===y)switch(e.nodeType){case l:a.HierarchyRequestError();break;case x:switch(e._countChildrenOfType(l)>0&&a.HierarchyRequestError(),e._countChildrenOfType(s)){case 0:break;case 1:if(t!==null)for(n&&t.nodeType===b&&a.HierarchyRequestError(),o=t.nextSibling;o!==null;o=o.nextSibling)o.nodeType===b&&a.HierarchyRequestError();i=r._countChildrenOfType(s),n?i>0&&a.HierarchyRequestError():(i>1||i===1&&t.nodeType!==s)&&a.HierarchyRequestError();break;default:a.HierarchyRequestError()}break;case s:if(t!==null)for(n&&t.nodeType===b&&a.HierarchyRequestError(),o=t.nextSibling;o!==null;o=o.nextSibling)o.nodeType===b&&a.HierarchyRequestError();i=r._countChildrenOfType(s),n?i>0&&a.HierarchyRequestError():(i>1||i===1&&t.nodeType!==s)&&a.HierarchyRequestError();break;case b:if(t===null)r._countChildrenOfType(s)&&a.HierarchyRequestError();else for(o=r.firstChild;o!==null&&o!==t;o=o.nextSibling)o.nodeType===s&&a.HierarchyRequestError();i=r._countChildrenOfType(b),n?i>0&&a.HierarchyRequestError():(i>1||i===1&&t.nodeType!==b)&&a.HierarchyRequestError();break}else e.nodeType===b&&a.HierarchyRequestError()}},insertBefore:{value:function(e,t){var n=this;n._ensureInsertValid(e,t,!0);var r=t;return r===e&&(r=e.nextSibling),n.doc.adoptNode(e),e._insertOrReplace(n,r,!1),e}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(e){var t=this;if(!e.nodeType)throw TypeError(`not a node`);return e.parentNode!==t&&a.NotFoundError(),e.remove(),e}},replaceChild:{value:function(e,t){var n=this;return n._ensureInsertValid(e,t,!1),e.doc!==n.doc&&n.doc.adoptNode(e),e._insertOrReplace(n,t,!0),t}},contains:{value:function(e){return e===null?!1:this===e?!0:(this.compareDocumentPosition(e)&E)!==0}},compareDocumentPosition:{value:function(e){if(this===e)return 0;if(this.doc!==e.doc||this.rooted!==e.rooted)return ee+D;for(var t=[],n=[],r=this;r!==null;r=r.parentNode)t.push(r);for(r=e;r!==null;r=r.parentNode)n.push(r);if(t.reverse(),n.reverse(),t[0]!==n[0])return ee+D;r=Math.min(t.length,n.length);for(var i=1;i<r;i++)if(t[i]!==n[i])return t[i].index<n[i].index?w:C;return t.length<n.length?w+E:C+T}},isSameNode:{value:function(e){return this===e}},isEqualNode:{value:function(e){if(!e||e.nodeType!==this.nodeType||!this.isEqual(e))return!1;for(var t=this.firstChild,n=e.firstChild;t&&n;t=t.nextSibling,n=n.nextSibling)if(!t.isEqualNode(n))return!1;return t===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var n=this.firstChild;n!==null;n=n.nextSibling)t._appendChild(n.cloneNode(!0));return t}},lookupPrefix:{value:function(e){var t;if(e===``||e==null)return null;switch(this.nodeType){case s:return this._lookupNamespacePrefix(e,this);case y:return t=this.documentElement,t?t.lookupPrefix(e):null;case g:case S:case x:case b:return null;case c:return t=this.ownerElement,t?t.lookupPrefix(e):null;default:return t=this.parentElement,t?t.lookupPrefix(e):null}}},lookupNamespaceURI:{value:function(e){(e===``||e===void 0)&&(e=null);var t;switch(this.nodeType){case s:return a.shouldOverride();case y:return t=this.documentElement,t?t.lookupNamespaceURI(e):null;case g:case S:case b:case x:return null;case c:return t=this.ownerElement,t?t.lookupNamespaceURI(e):null;default:return t=this.parentElement,t?t.lookupNamespaceURI(e):null}}},isDefaultNamespace:{value:function(e){return(e===``||e===void 0)&&(e=null),this.lookupNamespaceURI(null)===e}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var n=0;n<t.length;n++)t[n]._index=n;a.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&a.WrongDocumentError()}},removeChildren:{value:a.shouldOverride},_insertOrReplace:{value:function(e,t,n){var i=this,o,s;i.nodeType===x&&i.rooted&&a.HierarchyRequestError(),e._childNodes&&(o=t===null?e._childNodes.length:t.index,i.parentNode===e&&i.index<o&&o--),n&&(t.rooted&&t.doc.mutateRemove(t),t.parentNode=null);var c=t;c===null&&(c=e.firstChild);var l=i.rooted&&e.rooted;if(i.nodeType===x){for(var u=[0,+!!n],d,f=i.firstChild;f!==null;f=d)d=f.nextSibling,u.push(f),f.parentNode=e;var p=u.length;if(n?r.replace(c,p>2?u[2]:null):p>2&&c!==null&&r.insertBefore(u[2],c),e._childNodes)for(u[0]=t===null?e._childNodes.length:t._index,e._childNodes.splice.apply(e._childNodes,u),s=2;s<p;s++)u[s]._index=u[0]+(s-2);else e._firstChild===t&&(p>2?e._firstChild=u[2]:n&&(e._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,e.rooted)for(e.modify(),s=2;s<p;s++)e.doc.mutateInsert(u[s])}else{if(t===i)return;l?i._remove():i.parentNode&&i.remove(),i.parentNode=e,n?(r.replace(c,i),e._childNodes?(i._index=o,e._childNodes[o]=i):e._firstChild===t&&(e._firstChild=i)):(c!==null&&r.insertBefore(i,c),e._childNodes?(i._index=o,e._childNodes.splice(o,0,i)):e._firstChild===t&&(e._firstChild=i)),l?(e.modify(),e.doc.mutateMove(i)):e.rooted&&(e.modify(),e.doc.mutateInsert(i))}}},lastModTime:{get:function(){return this._lastModTime||=this.doc.modclock,this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&=e}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===o.TEXT_NODE){if(t.nodeValue===``){this.removeChild(t);continue}var n=t.previousSibling;n!==null&&n.nodeType===o.TEXT_NODE&&(n.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e=``,t=this.firstChild;t!==null;t=t.nextSibling)e+=i.serializeOne(t,this);return e}},outerHTML:{get:function(){return i.serializeOne(this,{nodeType:0})},set:a.nyi},ELEMENT_NODE:{value:s},ATTRIBUTE_NODE:{value:c},TEXT_NODE:{value:l},CDATA_SECTION_NODE:{value:m},ENTITY_REFERENCE_NODE:{value:h},ENTITY_NODE:{value:g},PROCESSING_INSTRUCTION_NODE:{value:_},COMMENT_NODE:{value:v},DOCUMENT_NODE:{value:y},DOCUMENT_TYPE_NODE:{value:b},DOCUMENT_FRAGMENT_NODE:{value:x},NOTATION_NODE:{value:S},DOCUMENT_POSITION_DISCONNECTED:{value:ee},DOCUMENT_POSITION_PRECEDING:{value:C},DOCUMENT_POSITION_FOLLOWING:{value:w},DOCUMENT_POSITION_CONTAINS:{value:T},DOCUMENT_POSITION_CONTAINED_BY:{value:E},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:D}})})),h=t(((e,t)=>{t.exports=class extends Array{constructor(e){if(super(e&&e.length||0),e)for(var t in e)this[t]=e[t]}item(e){return this[e]||null}}})),g=t(((e,t)=>{function n(e){return this[e]||null}function r(e){return e||=[],e.item=n,e}t.exports=r})),_=t(((e,t)=>{var n;try{n=h()}catch{n=g()}t.exports=n})),v=t(((e,t)=>{t.exports=i;var n=m(),r=_();function i(){n.call(this),this._firstChild=this._childNodes=null}i.prototype=Object.create(n.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,n=this._childNodes=new r;if(e)do n.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var e=this.rooted?this.ownerDocument:null,t=this.firstChild,n;t!==null;)n=t,t=n.nextSibling,e&&e.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})})),y=t((e=>{e.isValidName=h,e.isValidQName=g;var t=/^[_:A-Za-z][-.:\w]+$/,n=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,r=`_A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�`,i=`-._A-Za-z0-9·À-ÖØ-öø-˿̀-ͽͿ-‿⁀⁰-Ⰰ-、-豈-﷏ﷰ-�`,a=`[`+r+`][`+i+`]*`,o=r+`:`,s=i+`:`,c=RegExp(`^[`+o+`][`+s+`]*$`),l=RegExp(`^(`+a+`|`+a+`:`+a+`)$`),u=/[\uD800-\uDB7F\uDC00-\uDFFF]/,d=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,f=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;r+=`\ud800--\udfff`,i+=`\ud800--\udfff`,a=`[`+r+`][`+i+`]*`,o=r+`:`,s=i+`:`;var p=RegExp(`^[`+o+`][`+s+`]*$`),m=RegExp(`^(`+a+`|`+a+`:`+a+`)$`);function h(e){if(t.test(e)||c.test(e))return!0;if(!u.test(e)||!p.test(e))return!1;var n=e.match(d),r=e.match(f);return r!==null&&2*r.length===n.length}function g(e){if(n.test(e)||l.test(e))return!0;if(!u.test(e)||!m.test(e))return!1;var t=e.match(d),r=e.match(f);return r!==null&&2*r.length===t.length}})),b=t((e=>{var t=u();e.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(e){t[e.value||e]=e.alias||e});var r=e.missing;r===void 0&&(r=null);var i=e.invalid;return i===void 0&&(i=r),{get:function(){var n=this._getattr(e.name);return n===null?r:(n=t[n.toLowerCase()],n===void 0?i===null?n:i:n)},set:function(t){this._setattr(e.name,t)}}}else if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(t){t?this._setattr(e.name,``):this.removeAttribute(e.name)}};else if(e.type===Number||e.type===`long`||e.type===`unsigned long`||e.type===`limited unsigned long with fallback`)return n(e);else if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||``},set:function(t){e.treatNullAsEmptyString&&t===null&&(t=``),this._setattr(e.name,t)}};else if(typeof e.type==`function`)return e.type(e.name,e);throw Error(`Invalid attribute definition`)};function n(e){var n=typeof e.default==`function`?e.default:typeof e.default==`number`?function(){return e.default}:function(){t.assert(!1,typeof e.default)},r=e.type===`unsigned long`,i=e.type===`long`,a=e.type===`limited unsigned long with fallback`,o=e.min,s=e.max,c=e.setmin;return o===void 0&&(r&&(o=0),i&&(o=-2147483648),a&&(o=1)),s===void 0&&(r||i||a)&&(s=2147483647),{get:function(){var t=this._getattr(e.name),c=e.float?parseFloat(t):parseInt(t,10);if(t===null||!isFinite(c)||o!==void 0&&c<o||s!==void 0&&c>s)return n.call(this);if(r||i||a){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(t))return n.call(this);c|=0}return c},set:function(o){e.float||(o=Math.floor(o)),c!==void 0&&o<c&&t.IndexSizeError(e.name+` set to `+o),r?o=o<0||o>2147483647?n.call(this):o|0:a?o=o<1||o>2147483647?n.call(this):o|0:i&&(o=o<-2147483648||o>2147483647?n.call(this):o|0),this._setattr(e.name,String(o))}}}e.registerChangeHandler=function(e,t,n){var r=e.prototype;Object.prototype.hasOwnProperty.call(r,`_attributeChangeHandlers`)||(r._attributeChangeHandlers=Object.create(r._attributeChangeHandlers||null)),r._attributeChangeHandlers[t]=n}})),x=t(((e,t)=>{t.exports=r;var n=m();function r(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}r.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){for(var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t=e.nodeType===n.DOCUMENT_NODE?e.documentElement:e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})})),S=t(((e,t)=>{var n=u();t.exports=r;function r(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue=``,this._update()}Object.defineProperties(r.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=s(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){return e=String(e),s(this).indexOf(e)>-1}},add:{value:function(){for(var e=s(this),t=0,n=arguments.length;t<n;t++){var r=a(arguments[t]);e.indexOf(r)<0&&e.push(r)}this._update(e)}},remove:{value:function(){for(var e=s(this),t=0,n=arguments.length;t<n;t++){var r=a(arguments[t]),i=e.indexOf(r);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(e,t){return e=a(e),this.contains(e)?t===void 0||t===!1?(this.remove(e),!1):!0:t===void 0||t===!0?(this.add(e),!0):!1}},replace:{value:function(e,t){String(t)===``&&n.SyntaxError(),e=a(e),t=a(t);var r=s(this),i=r.indexOf(e);if(i<0)return!1;var o=r.indexOf(t);return o<0?r[i]=t:i<o?(r[i]=t,r.splice(o,1)):r.splice(i,1),this._update(r),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(i(this,e),this._setString(e.join(` `).trim())):i(this,s(this)),this._lastStringValue=this._getString()}}});function i(e,t){var n=e._length,r;for(e._length=t.length,r=0;r<t.length;r++)e[r]=t[r];for(;r<n;r++)e[r]=void 0}function a(e){return e=String(e),e===``&&n.SyntaxError(),/[ \t\r\n\f]/.test(e)&&n.InvalidCharacterError(),e}function o(e){for(var t=e._length,n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}function s(e){var t=e._getString();if(t===e._lastStringValue)return o(e);var n=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,``);if(n===``)return[];var r=Object.create(null);return n.split(/[ \t\r\n\f]+/g).filter(function(e){var t=`$`+e;return r[t]?!1:(r[t]=!0,!0)})}})),ee=t(((e,t)=>{var n=Object.create(null,{location:{get:function(){throw Error(`window.location is not supported.`)}}}),r=function(e,t){return e.compareDocumentPosition(t)},i=function(e,t){return r(e,t)&2?1:-1},a=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},o=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},s=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},c=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},l=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},u=function(e){if(!e)return e;var t=e[0];return t===`"`||t===`'`?(e=e[e.length-1]===t?e.slice(1,-1):e.slice(1),e.replace(x.str_escape,function(e){var t=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(e);if(!t)return e.slice(1);if(t[2])return``;var n=parseInt(t[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})):x.ident.test(e)?d(e):e},d=function(e){return e.replace(x.escape,function(e){var t=/^\\([0-9A-Fa-f]+)/.exec(e);if(!t)return e[1];var n=parseInt(t[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},f=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var n=this.length;n--;)if(this[n]===t)return n;return-1}})(),p=function(e,t){var n=x.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(n)},m=function(e,t,n){return e=e.source,e=e.replace(t,n.source||n),new RegExp(e)},h=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,``).replace(/(?:\/+|\/*#.*?)$/,``).split(`/`,t).join(`/`)},g=function(e,t){var n=e.replace(/\s+/g,``),r;return n===`even`?n=`2n+0`:n===`odd`?n=`2n+1`:n.indexOf(`n`)===-1&&(n=`0n`+n),r=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(n),{group:r[1]===`-`?-(r[2]||1):+(r[2]||1),offset:r[4]?r[3]===`-`?-r[4]:+r[4]:0}},_=function(e,t,n){var r=g(e),i=r.group,u=r.offset,d=n?c:s,f=n?o:a;return function(e){if(l(e))for(var n=d(e.parentNode),r=0;n;){if(t(n,e)&&r++,n===e)return r-=u,i&&r?r%i===0&&r<0==i<0:!r;n=f(n)}}},v={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,n,r){return t=y[t],function(i){var a;switch(e){case`for`:a=i.htmlFor;break;case`class`:a=i.className,a===``&&i.getAttribute(`class`)==null&&(a=null);break;case`href`:case`src`:a=i.getAttribute(e,2);break;case`title`:a=i.getAttribute(`title`)||null;break;case`id`:case`lang`:case`dir`:case`accessKey`:case`hidden`:case`tabIndex`:case`style`:if(i.getAttribute){a=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;a=i[e]==null?i.getAttribute&&i.getAttribute(e):i[e];break}if(a!=null)return a+=``,r&&(a=a.toLowerCase(),n=n.toLowerCase()),t(a,n)}},":first-child":function(e){return!o(e)&&l(e)},":last-child":function(e){return!a(e)&&l(e)},":only-child":function(e){return!o(e)&&!a(e)&&l(e)},":nth-child":function(e,t){return _(e,function(){return!0},t)},":nth-last-child":function(e){return v[`:nth-child`](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=E(e);return function(e){return!t(e)}},":first-of-type":function(e){if(l(e)){for(var t=e.nodeName;e=o(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(l(e)){for(var t=e.nodeName;e=a(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return v[`:first-of-type`](e)&&v[`:last-of-type`](e)},":nth-of-type":function(e,t){return _(e,function(e,t){return e.nodeName===t.nodeName},t)},":nth-last-of-type":function(e){return v[`:nth-of-type`](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!v[`:checked`](e)},":enabled":function(e){return!e.disabled&&e.type!==`hidden`},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===n.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return E(e)},":matches":function(e){return v[`:is`](e)},":nth-match":function(e,t){var n=e.split(/\s*,\s*/);return _(n.shift(),E(n.join(`,`)),t)},":nth-last-match":function(e){return v[`:nth-match`](e,!0)},":links-here":function(e){return e+``==n.location+``},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var n=t||e.ownerDocument;return n.nodeType===9?e===n.documentElement:e===n},":any-link":function(e){return typeof e.href==`string`},":local-link":function(e){if(e.nodeName)return e.href&&e.host===n.location.host;var t=+e+1;return function(e){if(e.href){var r=n.location+``,i=e+``;return h(r,t)===h(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!v[`:valid`](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!v[`:in-range`](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute(`contenteditable`),n=e.contentEditable,r=e.nodeName.toLowerCase();return r=r!==`input`&&r!==`textarea`,(r||e.disabled)&&t==null&&n!==`true`},":read-write":function(e){return!v[`:read-only`](e)},":hover":function(){throw Error(`:hover is not supported.`)},":active":function(){throw Error(`:active is not supported.`)},":link":function(){throw Error(`:link is not supported.`)},":visited":function(){throw Error(`:visited is not supported.`)},":column":function(){throw Error(`:column is not supported.`)},":nth-column":function(){throw Error(`:nth-column is not supported.`)},":nth-last-column":function(){throw Error(`:nth-last-column is not supported.`)},":current":function(){throw Error(`:current is not supported.`)},":past":function(){throw Error(`:past is not supported.`)},":future":function(){throw Error(`:future is not supported.`)},":contains":function(e){return function(t){return(t.innerText||t.textContent||t.value||``).indexOf(e)!==-1}},":has":function(e){return function(t){return D(e,t).length>0}}},y={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var n,r,i,a;for(r=0;;r=n+1){if(n=e.indexOf(t,r),n===-1)return!1;if(i=e[n-1],a=e[n+t.length],(!i||i===` `)&&(!a||a===` `))return!0}},"|=":function(e,t){var n=e.indexOf(t),r;if(n===0)return r=e[n+t.length],r===`-`||!r},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var n=e.lastIndexOf(t);return n!==-1&&n+t.length===e.length},"!=":function(e,t){return e!==t}},b={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=o(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=o(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var n;function r(e){for(var t=e.ownerDocument.getElementsByTagName(`*`),i=t.length;i--;)if(n=t[i],r.test(e))return n=null,!0;n=null}return r.combinator=function(r){if(!(!n||!n.getAttribute)){var i=n.getAttribute(t)||``;if(i[0]===`#`&&(i=i.substring(1)),i===r.id&&e(n))return n}},r}},x={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};x.cssid=m(x.cssid,`nonascii`,x.nonascii),x.cssid=m(x.cssid,`escape`,x.escape),x.qname=m(x.qname,`cssid`,x.cssid),x.simple=m(x.simple,`cssid`,x.cssid),x.ref=m(x.ref,`cssid`,x.cssid),x.attr=m(x.attr,`cssid`,x.cssid),x.pseudo=m(x.pseudo,`cssid`,x.cssid),x.inside=m(x.inside,`[^"'>]*`,x.inside),x.attr=m(x.attr,`inside`,p(`\\[`,`\\]`)),x.pseudo=m(x.pseudo,`inside`,p(`\\(`,`\\)`)),x.simple=m(x.simple,`pseudo`,x.pseudo),x.simple=m(x.simple,`attr`,x.attr),x.ident=m(x.ident,`cssid`,x.cssid),x.str_escape=m(x.str_escape,`escape`,x.escape);var S=function(e){for(var t=e.replace(/^\s+|\s+$/g,``),n,r=[],i=[],a,o,s,c,l;t;){if(s=x.qname.exec(t))t=t.substring(s[0].length),o=d(s[1]),i.push(ee(o,!0));else if(s=x.simple.exec(t))t=t.substring(s[0].length),o=`*`,i.push(ee(o,!0)),i.push(ee(s));else throw SyntaxError(`Invalid selector.`);for(;s=x.simple.exec(t);)t=t.substring(s[0].length),i.push(ee(s));if(t[0]===`!`&&(t=t.substring(1),a=T(),a.qname=o,i.push(a.simple)),s=x.ref.exec(t)){t=t.substring(s[0].length),l=b.ref(C(i),d(s[1])),r.push(l.combinator),i=[];continue}if(s=x.combinator.exec(t)){if(t=t.substring(s[0].length),c=s[1]||s[2]||s[3],c===`,`){r.push(b.noop(C(i)));break}}else c=`noop`;if(!b[c])throw SyntaxError(`Bad combinator.`);r.push(b[c](C(i))),i=[]}return n=w(r),n.qname=o,n.sel=t,a&&(a.lname=n.qname,a.test=n,a.qname=a.qname,a.sel=n.sel,n=a),l&&(l.test=n,l.qname=n.qname,l.sel=n.sel,n=l),n},ee=function(e,t){if(t)return e===`*`?v[`*`]:v.type(e);if(e[1])return e[1][0]===`.`?v.attr(`class`,`~=`,d(e[1].substring(1)),!1):v.attr(`id`,`=`,d(e[1].substring(1)),!1);if(e[2])return e[3]?v[d(e[2])](u(e[3])):v[d(e[2])];if(e[4]){var n=e[6],r=/["'\s]\s*I$/i.test(n);return r&&(n=n.replace(/\s*I$/i,``)),v.attr(d(e[4]),e[5]||`-`,u(n),r)}throw SyntaxError(`Unknown Selector.`)},C=function(e){var t=e.length,n;return t<2?e[0]:function(r){if(r){for(n=0;n<t;n++)if(!e[n](r))return;return!0}}},w=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var n=e.length;n--;)if(!(t=e[n](t)))return;return!0}},T=function(){var e;function t(n){for(var r=n.ownerDocument.getElementsByTagName(t.lname),i=r.length;i--;)if(t.test(r[i])&&e===n)return e=null,!0;e=null}return t.simple=function(t){return e=t,!0},t},E=function(e){for(var t=S(e),n=[t];t.sel;)t=S(t.sel),n.push(t);return n.length<2?t:function(e){for(var t=n.length,r=0;r<t;r++)if(n[r](e))return!0}},D=function(e,t){for(var n=[],r=S(e),a=t.getElementsByTagName(r.qname),o=0,s;s=a[o++];)r(s)&&n.push(s);if(r.sel){for(;r.sel;)for(r=S(r.sel),a=t.getElementsByTagName(r.qname),o=0;s=a[o++];)r(s)&&f.call(n,s)===-1&&n.push(s);n.sort(i)}return n};t.exports=e=function(e,t){var n,r;if(t.nodeType!==11&&e.indexOf(` `)===-1){if(e[0]===`#`&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(n=e.substring(1),!t.doc._hasMultipleElementsWithId(n)))return r=t.doc.getElementById(n),r?[r]:[];if(e[0]===`.`&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return D(e,t)},e.selectors=v,e.operators=y,e.combinators=b,e.matches=function(e,t){var n={sel:t};do if(n=S(n.sel),n(e))return!0;while(n.sel);return!1}})),C=t(((e,t)=>{var n=m(),r=f(),i=function(e,t){for(var r=e.createDocumentFragment(),i=0;i<t.length;i++){var a=t[i],o=a instanceof n;r.appendChild(o?a:e.createTextNode(String(a)))}return r};t.exports={after:{value:function(){var e=Array.prototype.slice.call(arguments),t=this.parentNode,n=this.nextSibling;if(t!==null){for(;n&&e.some(function(e){return e===n});)n=n.nextSibling;var r=i(this.doc,e);t.insertBefore(r,n)}}},before:{value:function(){var e=Array.prototype.slice.call(arguments),t=this.parentNode,n=this.previousSibling;if(t!==null){for(;n&&e.some(function(e){return e===n});)n=n.previousSibling;var r=i(this.doc,e),a=n?n.nextSibling:t.firstChild;t.insertBefore(r,a)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var e=this.parentNode;e!==null&&(e._childNodes?e._childNodes.splice(this.index,1):e._firstChild===this&&(this._nextSibling===this?e._firstChild=null:e._firstChild=this._nextSibling),r.remove(this),e.modify())}},replaceWith:{value:function(){var e=Array.prototype.slice.call(arguments),t=this.parentNode,n=this.nextSibling;if(t!==null){for(;n&&e.some(function(e){return e===n});)n=n.nextSibling;var r=i(this.doc,e);this.parentNode===t?t.replaceChild(r,this):t.insertBefore(r,n)}}}}})),w=t(((e,t)=>{var n=m();t.exports={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===n.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===n.ELEMENT_NODE)return e}return null}}}})),T=t(((e,t)=>{t.exports=r;var n=u();function r(e){this.element=e}Object.defineProperties(r.prototype,{length:{get:n.shouldOverride},item:{value:n.shouldOverride},getNamedItem:{value:function(e){return this.element.getAttributeNode(e)}},getNamedItemNS:{value:function(e,t){return this.element.getAttributeNodeNS(e,t)}},setNamedItem:{value:n.nyi},setNamedItemNS:{value:n.nyi},removeNamedItem:{value:function(e){var t=this.element.getAttributeNode(e);if(t)return this.element.removeAttribute(e),t;n.NotFoundError()}},removeNamedItemNS:{value:function(e,t){var r=this.element.getAttributeNodeNS(e,t);if(r)return this.element.removeAttributeNS(e,t),r;n.NotFoundError()}}})})),E=t(((e,t)=>{t.exports=O;var n=y(),r=u(),i=r.NAMESPACE,a=b(),o=m(),s=_(),l=p(),d=x(),f=c(),h=S(),g=ee(),E=v(),D=C(),te=w(),ne=T(),re=Object.create(null);function O(e,t,n,r){E.call(this),this.nodeType=o.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=n,this.prefix=r,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function ie(e,t){if(e.nodeType===o.TEXT_NODE)t.push(e._data);else for(var n=0,r=e.childNodes.length;n<r;n++)ie(e.childNodes[n],t)}O.prototype=Object.create(E.prototype,{isHTML:{get:function(){return this.namespaceURI===i.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var e=this.prefix===null?this.localName:this.prefix+`:`+this.localName;if(this.isHTML){var t=re[e];t||(re[e]=t=r.toASCIIUpperCase(e)),e=t}this._tagName=e}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return ie(this,e),e.join(``)},set:function(e){this.removeChildren(),e!=null&&e!==``&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return ie(this,e),e.join(``).replace(/[ \t\n\f\r]+/g,` `).trim()},set:function(e){this.removeChildren(),e!=null&&e!==``&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:r.nyi},outerHTML:{get:function(){return l.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,n=this.parentNode;if(n!==null){n.nodeType===o.DOCUMENT_NODE&&r.NoModificationAllowedError(),n.nodeType===o.DOCUMENT_FRAGMENT_NODE&&(n=n.ownerDocument.createElement(`body`));var i=t.implementation.mozHTMLParser(t._address,n);i.parse(e===null?``:String(e),!0),this.replaceWith(i._asDocumentFragment())}}},_insertAdjacent:{value:function(e,t){var n=!1;switch(e){case`beforebegin`:n=!0;case`afterend`:var i=this.parentNode;return i===null?null:i.insertBefore(t,n?this:this.nextSibling);case`afterbegin`:n=!0;case`beforeend`:return this.insertBefore(t,n?this.firstChild:null);default:return r.SyntaxError()}}},insertAdjacentElement:{value:function(e,t){if(t.nodeType!==o.ELEMENT_NODE)throw TypeError(`not an element`);return e=r.toASCIILowerCase(String(e)),this._insertAdjacent(e,t)}},insertAdjacentText:{value:function(e,t){var n=this.ownerDocument.createTextNode(t);e=r.toASCIILowerCase(String(e)),this._insertAdjacent(e,n)}},insertAdjacentHTML:{value:function(e,t){e=r.toASCIILowerCase(String(e)),t=String(t);var n;switch(e){case`beforebegin`:case`afterend`:n=this.parentNode,(n===null||n.nodeType===o.DOCUMENT_NODE)&&r.NoModificationAllowedError();break;case`afterbegin`:case`beforeend`:n=this;break;default:r.SyntaxError()}(!(n instanceof O)||n.ownerDocument.isHTML&&n.localName===`html`&&n.namespaceURI===i.HTML)&&(n=n.ownerDocument.createElementNS(i.HTML,`body`));var a=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);a.parse(t,!0),this._insertAdjacent(e,a._asDocumentFragment())}},children:{get:function(){return this._children||=new ae(this),this._children}},attributes:{get:function(){return this._attributes||=new A(this),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===o.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===o.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||=this.ownerDocument.documentElement;var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var n=this.parentElement;n&&n!==e;n=n.parentElement)if(t=n.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(e){var t;return e?(t=e===`*`?function(){return!0}:this.isHTML?se(e):oe(e),new d(this,t)):new s}},getElementsByTagNameNS:{value:function(e,t){var n=e===`*`&&t===`*`?function(){return!0}:e===`*`?oe(t):t===`*`?j(e):ce(e,t);return new d(this,n)}},getElementsByClassName:{value:function(e){return e=String(e).trim(),e===``?new s:(e=e.split(/[ \t\r\n\f]+/),new d(this,M(e)))}},getElementsByName:{value:function(e){return new d(this,le(String(e)))}},clone:{value:function(){for(var e=this.namespaceURI!==i.HTML||this.prefix||!this.ownerDocument.isHTML?this.ownerDocument.createElementNS(this.namespaceURI,this.prefix===null?this.localName:this.prefix+`:`+this.localName):this.ownerDocument.createElement(this.localName),t=0,n=this._attrKeys.length;t<n;t++){var r=this._attrKeys[t],a=this._attrsByLName[r].cloneNode();a._setOwnerElement(e),e._attrsByLName[r]=a,e._addQName(a)}return e._attrKeys=this._attrKeys.concat(),e}},isEqual:{value:function(e){if(this.localName!==e.localName||this.namespaceURI!==e.namespaceURI||this.prefix!==e.prefix||this._numattrs!==e._numattrs)return!1;for(var t=0,n=this._numattrs;t<n;t++){var r=this._attr(t);if(!e.hasAttributeNS(r.namespaceURI,r.localName)||e.getAttributeNS(r.namespaceURI,r.localName)!==r.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(e,t){if(this.namespaceURI&&this.namespaceURI===e&&this.prefix!==null&&t.lookupNamespaceURI(this.prefix)===e)return this.prefix;for(var n=0,r=this._numattrs;n<r;n++){var i=this._attr(n);if(i.prefix===`xmlns`&&i.value===e&&t.lookupNamespaceURI(i.localName)===e)return i.localName}var a=this.parentElement;return a?a._lookupNamespacePrefix(e,t):null}},lookupNamespaceURI:{value:function(e){if((e===``||e===void 0)&&(e=null),this.namespaceURI!==null&&this.prefix===e)return this.namespaceURI;for(var t=0,n=this._numattrs;t<n;t++){var r=this._attr(t);if(r.namespaceURI===i.XMLNS&&(r.prefix===`xmlns`&&r.localName===e||e===null&&r.prefix===null&&r.localName===`xmlns`))return r.value||null}var a=this.parentElement;return a?a.lookupNamespaceURI(e):null}},getAttribute:{value:function(e){var t=this.getAttributeNode(e);return t?t.value:null}},getAttributeNS:{value:function(e,t){var n=this.getAttributeNodeNS(e,t);return n?n.value:null}},getAttributeNode:{value:function(e){e=String(e),/[A-Z]/.test(e)&&this.isHTML&&(e=r.toASCIILowerCase(e));var t=this._attrsByQName[e];return t?(Array.isArray(t)&&(t=t[0]),t):null}},getAttributeNodeNS:{value:function(e,t){return e=e==null?``:String(e),t=String(t),this._attrsByLName[e+`|`+t]||null}},hasAttribute:{value:function(e){return e=String(e),/[A-Z]/.test(e)&&this.isHTML&&(e=r.toASCIILowerCase(e)),this._attrsByQName[e]!==void 0}},hasAttributeNS:{value:function(e,t){e=e==null?``:String(e),t=String(t);var n=e+`|`+t;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(e,t){return e=String(e),n.isValidName(e)||r.InvalidCharacterError(),/[A-Z]/.test(e)&&this.isHTML&&(e=r.toASCIILowerCase(e)),this._attrsByQName[e]===void 0?t===void 0||t===!0?(this._setAttribute(e,``),!0):!1:t===void 0||t===!1?(this.removeAttribute(e),!1):!0}},_setAttribute:{value:function(e,t){var n=this._attrsByQName[e],r;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(e),r=!0),n.value=t,this._attributes&&(this._attributes[e]=n),r&&this._newattrhook&&this._newattrhook(e,t)}},setAttribute:{value:function(e,t){e=String(e),n.isValidName(e)||r.InvalidCharacterError(),/[A-Z]/.test(e)&&this.isHTML&&(e=r.toASCIILowerCase(e)),this._setAttribute(e,String(t))}},_setAttributeNS:{value:function(e,t,n){var r=t.indexOf(`:`),i,a;r<0?(i=null,a=t):(i=t.substring(0,r),a=t.substring(r+1)),(e===``||e===void 0)&&(e=null);var o=(e===null?``:e)+`|`+a,s=this._attrsByLName[o],c;s||(s=new k(this,a,i,e),c=!0,this._attrsByLName[o]=s,this._attributes&&(this._attributes[this._attrKeys.length]=s),this._attrKeys.push(o),this._addQName(s)),s.value=n,c&&this._newattrhook&&this._newattrhook(t,n)}},setAttributeNS:{value:function(e,t,a){e=e==null||e===``?null:String(e),t=String(t),n.isValidQName(t)||r.InvalidCharacterError();var o=t.indexOf(`:`),s=o<0?null:t.substring(0,o);(s!==null&&e===null||s===`xml`&&e!==i.XML||(t===`xmlns`||s===`xmlns`)&&e!==i.XMLNS||e===i.XMLNS&&!(t===`xmlns`||s===`xmlns`))&&r.NamespaceError(),this._setAttributeNS(e,t,String(a))}},setAttributeNode:{value:function(e){if(e.ownerElement!==null&&e.ownerElement!==this)throw new f(f.INUSE_ATTRIBUTE_ERR);var t=null,n=this._attrsByQName[e.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(t){return t===e}))return e;if(e.ownerElement!==null)throw new f(f.INUSE_ATTRIBUTE_ERR);n.forEach(function(e){this.removeAttributeNode(e)},this),t=n[0]}return this.setAttributeNodeNS(e),t}},setAttributeNodeNS:{value:function(e){if(e.ownerElement!==null)throw new f(f.INUSE_ATTRIBUTE_ERR);var t=e.namespaceURI,n=(t===null?``:t)+`|`+e.localName,r=this._attrsByLName[n];return r&&this.removeAttributeNode(r),e._setOwnerElement(this),this._attrsByLName[n]=e,this._attributes&&(this._attributes[this._attrKeys.length]=e),this._attrKeys.push(n),this._addQName(e),this._newattrhook&&this._newattrhook(e.name,e.value),r||null}},removeAttribute:{value:function(e){e=String(e),/[A-Z]/.test(e)&&this.isHTML&&(e=r.toASCIILowerCase(e));var t=this._attrsByQName[e];if(t){Array.isArray(t)?t.length>2?t=t.shift():(this._attrsByQName[e]=t[1],t=t[0]):this._attrsByQName[e]=void 0;var n=t.namespaceURI,i=(n===null?``:n)+`|`+t.localName;this._attrsByLName[i]=void 0;var a=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,a,1),this._attributes[e]=void 0),this._attrKeys.splice(a,1);var o=t.onchange;t._setOwnerElement(null),o&&o.call(t,this,t.localName,t.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(t)}}},removeAttributeNS:{value:function(e,t){e=e==null?``:String(e),t=String(t);var n=e+`|`+t,r=this._attrsByLName[n];if(r){this._attrsByLName[n]=void 0;var i=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,i,1),this._attrKeys.splice(i,1),this._removeQName(r);var a=r.onchange;r._setOwnerElement(null),a&&a.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNode:{value:function(e){var t=e.namespaceURI,n=(t===null?``:t)+`|`+e.localName;return this._attrsByLName[n]!==e&&r.NotFoundError(),this.removeAttributeNS(t,e.localName),e}},getAttributeNames:{value:function(){var e=this;return this._attrKeys.map(function(t){return e._attrsByLName[t].name})}},_getattr:{value:function(e){var t=this._attrsByQName[e];return t?t.value:null}},_setattr:{value:function(e,t){var n=this._attrsByQName[e],r;n||(n=this._newattr(e),r=!0),n.value=String(t),this._attributes&&(this._attributes[e]=n),r&&this._newattrhook&&this._newattrhook(e,t)}},_newattr:{value:function(e){var t=new k(this,e,null,null),n=`|`+e;return this._attrsByQName[e]=t,this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),t}},_addQName:{value:function(e){var t=e.name,n=this._attrsByQName[t];n?Array.isArray(n)?n.push(e):this._attrsByQName[t]=[n,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,n=this._attrsByQName[t];if(Array.isArray(n)){var i=n.indexOf(e);r.assert(i!==-1),n.length===2?(this._attrsByQName[t]=n[1-i],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(n.splice(i,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=n[0]))}else r.assert(n===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:a.property({name:`id`}),className:a.property({name:`class`}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new h(function(){return e.className||``},function(t){e.className=t});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return g.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===o.ELEMENT_NODE);return null}},querySelector:{value:function(e){return g(e,this)[0]}},querySelectorAll:{value:function(e){var t=g(e,this);return t.item?t:new s(t)}}}),Object.defineProperties(O.prototype,D),Object.defineProperties(O.prototype,te),a.registerChangeHandler(O,`id`,function(e,t,n,r){e.rooted&&(n&&e.ownerDocument.delId(n,e),r&&e.ownerDocument.addId(r,e))}),a.registerChangeHandler(O,`class`,function(e,t,n,r){e._classList&&e._classList._update()});function k(e,t,n,r,i){this.localName=t,this.prefix=n===null||n===``?null:``+n,this.namespaceURI=r===null||r===``?null:``+r,this.data=i,this._setOwnerElement(e)}k.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(e){this._ownerElement=e,this.prefix===null&&this.namespaceURI===null&&e?this.onchange=e._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+`:`+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?``:e+``,e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(e){return new k(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return o.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e??=``,this.value=e}},innerText:{get:function(){return this.value},set:function(e){e??=``,this.value=e}}}),O._Attr=k;function A(e){for(var t in ne.call(this,e),e._attrsByQName)this[t]=e._attrsByQName[t];for(var n=0;n<e._attrKeys.length;n++)this[n]=e._attrsByLName[e._attrKeys[n]]}A.prototype=Object.create(ne.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e>>>=0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}}),globalThis.Symbol?.iterator&&(A.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,n=this;return{next:function(){return e<t?{value:n.item(e++)}:{done:!0}}}});function ae(e){this.element=e,this.updateCache()}ae.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(e){return this.updateCache(),this.childrenByNumber[e]||null}},namedItem:{value:function(e){return this.updateCache(),this.childrenByName[e]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var e=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var t=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<t;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var r=this.element.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===o.ELEMENT_NODE){this[this.childrenByNumber.length]=r,this.childrenByNumber.push(r);var a=r.getAttribute(`id`);a&&!this.childrenByName[a]&&(this.childrenByName[a]=r);var s=r.getAttribute(`name`);s&&this.element.namespaceURI===i.HTML&&e.test(this.element.localName)&&!this.childrenByName[s]&&(this.childrenByName[a]=r)}}}}});function oe(e){return function(t){return t.localName===e}}function se(e){var t=r.toASCIILowerCase(e);return t===e?oe(e):function(n){return n.isHTML?n.localName===t:n.localName===e}}function j(e){return function(t){return t.namespaceURI===e}}function ce(e,t){return function(n){return n.namespaceURI===e&&n.localName===t}}function M(e){return function(t){return e.every(function(e){return t.classList.contains(e)})}}function le(e){return function(t){return t.namespaceURI===i.HTML?t.getAttribute(`name`)===e:!1}}})),D=t(((e,t)=>{t.exports=s;var n=m(),r=_(),i=u(),a=i.HierarchyRequestError,o=i.NotFoundError;function s(){n.call(this)}s.prototype=Object.create(n.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw TypeError(`not a node`);a()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw TypeError(`not a node`);a()}},removeChild:{value:function(e){if(!e.nodeType)throw TypeError(`not a node`);o()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||=new r,this._childNodes}}})})),te=t(((e,t)=>{t.exports=o;var n=D(),r=u(),i=C(),a=w();function o(){n.call(this)}o.prototype=Object.create(n.prototype,{substringData:{value:function(e,t){if(arguments.length<2)throw TypeError(`Not enough arguments`);return e>>>=0,t>>>=0,(e>this.data.length||e<0||t<0)&&r.IndexSizeError(),this.data.substring(e,e+t)}},appendData:{value:function(e){if(arguments.length<1)throw TypeError(`Not enough arguments`);this.data+=String(e)}},insertData:{value:function(e,t){return this.replaceData(e,0,t)}},deleteData:{value:function(e,t){return this.replaceData(e,t,``)}},replaceData:{value:function(e,t,n){var i=this.data,a=i.length;e>>>=0,t>>>=0,n=String(n),(e>a||e<0)&&r.IndexSizeError(),e+t>a&&(t=a-e);var o=i.substring(0,e),s=i.substring(e+t);this.data=o+n+s}},isEqual:{value:function(e){return this._data===e._data}},length:{get:function(){return this.data.length}}}),Object.defineProperties(o.prototype,i),Object.defineProperties(o.prototype,a)})),ne=t(((e,t)=>{t.exports=a;var n=u(),r=m(),i=te();function a(e,t){i.call(this),this.nodeType=r.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var o={get:function(){return this._data},set:function(e){e=e==null?``:String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};a.prototype=Object.create(i.prototype,{nodeName:{value:`#text`},nodeValue:o,textContent:o,innerText:o,data:{get:o.get,set:function(e){o.set.call(this,e===null?``:String(e))}},splitText:{value:function(e){(e>this._data.length||e<0)&&n.IndexSizeError();var t=this._data.substring(e),r=this.ownerDocument.createTextNode(t);this.data=this.data.substring(0,e);var i=this.parentNode;return i!==null&&i.insertBefore(r,this.nextSibling),r}},wholeText:{get:function(){for(var e=this.textContent,t=this.nextSibling;t&&t.nodeType===r.TEXT_NODE;t=t.nextSibling)e+=t.textContent;return e}},replaceWholeText:{value:n.nyi},clone:{value:function(){return new a(this.ownerDocument,this._data)}}})})),re=t(((e,t)=>{t.exports=i;var n=m(),r=te();function i(e,t){r.call(this),this.nodeType=n.COMMENT_NODE,this.ownerDocument=e,this._data=t}var a={get:function(){return this._data},set:function(e){e=e==null?``:String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};i.prototype=Object.create(r.prototype,{nodeName:{value:`#comment`},nodeValue:a,textContent:a,innerText:a,data:{get:a.get,set:function(e){a.set.call(this,e===null?``:String(e))}},clone:{value:function(){return new i(this.ownerDocument,this._data)}}})})),O=t(((e,t)=>{t.exports=c;var n=m(),r=_(),i=v(),a=E(),o=ee(),s=u();function c(e){i.call(this),this.nodeType=n.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}c.prototype=Object.create(i.prototype,{nodeName:{value:`#document-fragment`},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(a.prototype,`textContent`),innerText:Object.getOwnPropertyDescriptor(a.prototype,`innerText`),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=a.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(a.prototype,`firstElementChild`).get;var n=o(e,t);return n.item?n:new r(n)}},clone:{value:function(){return new c(this.ownerDocument)}},isEqual:{value:function(e){return!0}},innerHTML:{get:function(){return this.serialize()},set:s.nyi},outerHTML:{get:function(){return this.serialize()},set:s.nyi}})})),ie=t(((e,t)=>{t.exports=i;var n=m(),r=te();function i(e,t,i){r.call(this),this.nodeType=n.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=i}var a={get:function(){return this._data},set:function(e){e=e==null?``:String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};i.prototype=Object.create(r.prototype,{nodeName:{get:function(){return this.target}},nodeValue:a,textContent:a,innerText:a,data:{get:a.get,set:function(e){a.set.call(this,e===null?``:String(e))}},clone:{value:function(){return new i(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(e){return this.target===e.target&&this._data===e._data}}})})),k=t(((e,t)=>{var n={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};t.exports=n.constructor=n.prototype=n})),A=t(((e,t)=>{t.exports={nextSkippingChildren:n,nextAncestorSibling:r,next:i,previous:o,deepLastChild:a};function n(e,t){return e===t?null:e.nextSibling===null?r(e,t):e.nextSibling}function r(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function i(e,t){var n=e.firstChild;return n===null?e===t?null:(n=e.nextSibling,n===null?r(e,t):n):n}function a(e){for(;e.lastChild;)e=e.lastChild;return e}function o(e,t){var n=e.previousSibling;return n===null?(n=e.parentNode,n===t?null:n):a(n)}})),ae=t(((e,t)=>{t.exports=d;var n=m(),r=k(),i=A(),a=u(),o={first:`firstChild`,last:`lastChild`,next:`firstChild`,previous:`lastChild`},s={first:`nextSibling`,last:`previousSibling`,next:`nextSibling`,previous:`previousSibling`};function c(e,t){for(var n,i=e._currentNode[o[t]],a,c,l;i!==null;){if(c=e._internalFilter(i),c===r.FILTER_ACCEPT)return e._currentNode=i,i;if(c===r.FILTER_SKIP&&(n=i[o[t]],n!==null)){i=n;continue}for(;i!==null;){if(l=i[s[t]],l!==null){i=l;break}if(a=i.parentNode,a===null||a===e.root||a===e._currentNode)return null;i=a}}return null}function l(e,t){var n=e._currentNode,i,a;if(n===e.root)return null;for(;;){for(a=n[s[t]];a!==null;){if(n=a,i=e._internalFilter(n),i===r.FILTER_ACCEPT)return e._currentNode=n,n;a=n[o[t]],(i===r.FILTER_REJECT||a===null)&&(a=n[s[t]])}if(n=n.parentNode,n===null||n===e.root||e._internalFilter(n)===r.FILTER_ACCEPT)return null}}function d(e,t,n){(!e||!e.nodeType)&&a.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=n||null,this._active=!1,this._currentNode=e}Object.defineProperties(d.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(e){if(!(e instanceof n))throw TypeError(`Not a Node`);this._currentNode=e}},_internalFilter:{value:function(e){var t,n;if(this._active&&a.InvalidStateError(),!(1<<e.nodeType-1&this._whatToShow))return r.FILTER_SKIP;if(n=this._filter,n===null)t=r.FILTER_ACCEPT;else{this._active=!0;try{t=typeof n==`function`?n(e):n.acceptNode(e)}finally{this._active=!1}}return+t}},parentNode:{value:function(){for(var e=this._currentNode;e!==this.root;){if(e=e.parentNode,e===null)return null;if(this._internalFilter(e)===r.FILTER_ACCEPT)return this._currentNode=e,e}return null}},firstChild:{value:function(){return c(this,`first`)}},lastChild:{value:function(){return c(this,`last`)}},previousSibling:{value:function(){return l(this,`previous`)}},nextSibling:{value:function(){return l(this,`next`)}},previousNode:{value:function(){for(var e=this._currentNode,t,n,i;e!==this._root;){for(n=e.previousSibling;n;n=e.previousSibling)if(e=n,t=this._internalFilter(e),t!==r.FILTER_REJECT){for(i=e.lastChild;i&&(e=i,t=this._internalFilter(e),t!==r.FILTER_REJECT);i=e.lastChild);if(t===r.FILTER_ACCEPT)return this._currentNode=e,e}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this._internalFilter(e)===r.FILTER_ACCEPT)return this._currentNode=e,e}return null}},nextNode:{value:function(){var e=this._currentNode,t=r.FILTER_ACCEPT,n,a;CHILDREN:for(;;){for(n=e.firstChild;n;n=e.firstChild){if(e=n,t=this._internalFilter(e),t===r.FILTER_ACCEPT)return this._currentNode=e,e;if(t===r.FILTER_REJECT)break}for(a=i.nextSkippingChildren(e,this.root);a;a=i.nextSkippingChildren(e,this.root)){if(e=a,t=this._internalFilter(e),t===r.FILTER_ACCEPT)return this._currentNode=e,e;if(t===r.FILTER_SKIP)continue CHILDREN}return null}}},toString:{value:function(){return`[object TreeWalker]`}}})})),oe=t(((e,t)=>{t.exports=c;var n=k(),r=A(),i=u();function a(e,t,n){return n?r.next(e,t):e===t?null:r.previous(e,null)}function o(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function s(e,t){for(var r=e._referenceNode,i=e._pointerBeforeReferenceNode;;){if(i===t)i=!i;else if(r=a(r,e._root,t),r===null)return null;if(e._internalFilter(r)===n.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=i,r}function c(e,t,n){(!e||!e.nodeType)&&i.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=n||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(c.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(e){var t,r;if(this._active&&i.InvalidStateError(),!(1<<e.nodeType-1&this._whatToShow))return n.FILTER_SKIP;if(r=this._filter,r===null)t=n.FILTER_ACCEPT;else{this._active=!0;try{t=typeof r==`function`?r(e):r.acceptNode(e)}finally{this._active=!1}}return+t}},_preremove:{value:function(e){if(!o(e,this._root)&&o(e,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var t=e;t.lastChild;)t=t.lastChild;if(t=r.next(t,this.root),t){this._referenceNode=t;return}this._pointerBeforeReferenceNode=!1}if(e.previousSibling===null)this._referenceNode=e.parentNode;else{this._referenceNode=e.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return s(this,!0)}},previousNode:{value:function(){return s(this,!1)}},detach:{value:function(){}},toString:{value:function(){return`[object NodeIterator]`}}})})),se=t(((e,t)=>{t.exports=n;function n(e){if(!e)return Object.create(n.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,``);var t=n.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(n.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(n.portPattern)){var i=t[4].lastIndexOf(`:`);this.host=t[4].substring(0,i),this.port=t[4].substring(i+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}n.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,n.userinfoPattern=/^([^@:]*)(:([^@]*))?@/,n.portPattern=/:\d+$/,n.authorityPattern=/^[^:\/?#]+:\/\//,n.hierarchyPattern=/^[^:\/?#]+:\//,n.percentEncode=function(e){var t=e.charCodeAt(0);if(t<256)return`%`+t.toString(16);throw Error(`can't percent-encode codepoints > 255 yet`)},n.prototype={constructor:n,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return n.authorityPattern.test(this.url)},isHierarchical:function(){return n.hierarchyPattern.test(this.url)},toString:function(){var e=``;return this.scheme!==void 0&&(e+=this.scheme+`:`),this.isAbsolute()&&(e+=`//`,(this.username||this.password)&&(e+=this.username||``,this.password&&(e+=`:`+this.password),e+=`@`),this.host&&(e+=this.host)),this.port!==void 0&&(e+=`:`+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+=`?`+this.query),this.fragment!==void 0&&(e+=`#`+this.fragment),e},resolve:function(e){var t=this,r=new n(e),i=new n;return r.scheme===void 0?(i.scheme=t.scheme,r.host===void 0?(i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,r.path?(r.path.charAt(0)===`/`?i.path=o(r.path):(i.path=a(t.path,r.path),i.path=o(i.path)),i.query=r.query):(i.path=t.path,r.query===void 0?i.query=t.query:i.query=r.query)):(i.username=r.username,i.password=r.password,i.host=r.host,i.port=r.port,i.path=o(r.path),i.query=r.query)):(i.scheme=r.scheme,i.username=r.username,i.password=r.password,i.host=r.host,i.port=r.port,i.path=o(r.path),i.query=r.query),i.fragment=r.fragment,i.toString();function a(e,n){if(t.host!==void 0&&!t.path)return`/`+n;var r=e.lastIndexOf(`/`);return r===-1?n:e.substring(0,r+1)+n}function o(e){if(!e)return e;for(var t=``;e.length>0;){if(e===`.`||e===`..`){e=``;break}var n=e.substring(0,2),r=e.substring(0,3),i=e.substring(0,4);if(r===`../`)e=e.substring(3);else if(n===`./`)e=e.substring(2);else if(r===`/./`)e=`/`+e.substring(3);else if(n===`/.`&&e.length===2)e=`/`;else if(i===`/../`||r===`/..`&&e.length===3)e=`/`+e.substring(4),t=t.replace(/\/?[^\/]*$/,``);else{var a=e.match(/(\/?([^\/]*))/)[0];t+=a,e=e.substring(a.length)}}return t}}}})),j=t(((e,t)=>{t.exports=r;var n=a();function r(e,t){n.call(this,e,t)}r.prototype=Object.create(n.prototype,{constructor:{value:r}})})),ce=t(((e,t)=>{t.exports={Event:a(),UIEvent:o(),MouseEvent:s(),CustomEvent:j()}})),M=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hyphenate=e.parse=void 0;function t(e){let t=[],r=0,i=0,a=0,o=0,s=0,c=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:i++;break;case 41:i--;break;case 39:a===0?a=39:a===39&&e.charCodeAt(r-1)!==92&&(a=0);break;case 34:a===0?a=34:a===34&&e.charCodeAt(r-1)!==92&&(a=0);break;case 58:!c&&i===0&&a===0&&(c=n(e.substring(s,r-1).trim()),o=r);break;case 59:if(c&&o>0&&i===0&&a===0){let n=e.substring(o,r-1).trim();t.push(c,n),s=r,o=0,c=null}break}if(c&&o){let n=e.slice(o).trim();t.push(c,n)}return t}e.parse=t;function n(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+`-`+e.charAt(1)).toLowerCase()}e.hyphenate=n})),le=t(((e,t)=>{let{parse:n}=M();t.exports=function(e){let t=new i(e);return new Proxy(t,{get:function(e,t){return t in e?e[t]:e.getPropertyValue(r(t))},has:function(e,t){return!0},set:function(e,t,n){return t in e?e[t]=n:e.setProperty(r(t),n??void 0),!0}})};function r(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function i(e){this._element=e}function a(e){let t={property:{},priority:{}};if(!e)return t;let r=n(e);if(r.length<2)return t;for(let e=0;e<r.length;e+=2){let n=r[e],i=r[e+1];i.endsWith(`!important`)&&(t.priority[n]=`important`,i=i.slice(0,-10).trim()),t.property[n]=i}return t}var o={};i.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=a(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t=``;for(var n in e.property)t&&(t+=` `),t+=n+`: `+e.property[n],e.priority[n]&&(t+=` !`+e.priority[n]),t+=`;`;this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute(`style`)},set:function(e){this._element.setAttribute(`style`,e)}},length:{get:function(){return this._names||=Object.getOwnPropertyNames(this._parsed.property),this._names.length}},item:{value:function(e){return this._names||=Object.getOwnPropertyNames(this._parsed.property),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||``}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||``}},setProperty:{value:function(e,t,n){if(e=e.toLowerCase(),t??=``,n??=``,t!==o&&(t=``+t),t=t.trim(),t===``){this.removeProperty(e);return}if(!(n!==``&&n!==o&&!/^important$/i.test(n))){var r=this._parsed;if(t===o){if(!r.property[e])return;n===``?delete r.priority[e]:r.priority[e]=`important`}else{if(t.indexOf(`;`)!==-1)return;var i=a(e+`:`+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var s in i.property)r.property[s]=i.property[s],n!==o&&(n===``?r.priority[s]&&delete r.priority[s]:r.priority[s]=`important`)}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,o)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,o,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})})),ue=t(((e,t)=>{var n=se();t.exports=r;function r(){}r.prototype=Object.create(Object.prototype,{_url:{get:function(){return new n(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+`:`:`:`},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&(e=e.replace(/:+$/,``),e=e.replace(/[^-+\.a-zA-Z0-9]/g,n.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?`:`+e.port:``):``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,n.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,``),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,n.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=``+e,e=e.replace(/[^0-9].*$/,``),e=e.replace(/^0+/,``),e.length===0&&(e=`0`),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!==`/`&&(e=`/`+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,n.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?`?`+e.query:``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)===`?`&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,n.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===``?``:`#`+e.fragment},set:function(e){var t=this.href,r=new n(t);e.charAt(0)===`#`&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,n.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){return this._url.username||``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,n.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){return this._url.password||``},set:function(e){var t=this.href,r=new n(t);r.isAbsolute()&&(e===``?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,n.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return``;var t=function(t){var n=[e.scheme,e.host,+e.port||t];return n[0]+`://`+n[1]+(n[2]===t?``:`:`+n[2])};switch(e.scheme){case`ftp`:return t(21);case`gopher`:return t(70);case`http`:case`ws`:return t(80);case`https`:case`wss`:return t(443);default:return e.scheme+`://`}}}}),r._inherit=function(e){Object.getOwnPropertyNames(r.prototype).forEach(function(t){if(!(t===`constructor`||t===`href`)){var n=Object.getOwnPropertyDescriptor(r.prototype,t);Object.defineProperty(e,t,n)}})}})),de=t(((e,t)=>{var n=b(),r=l().isApiWritable;t.exports=function(e,t,i,a){var s=e.ctor;if(s){var c=e.props||{};if(e.attributes)for(var l in e.attributes){var u=e.attributes[l];(typeof u!=`object`||Array.isArray(u))&&(u={type:u}),u.name||=l.toLowerCase(),c[l]=n.property(u)}c.constructor={value:s,writable:r},s.prototype=Object.create((e.superclass||t).prototype,c),e.events&&o(s,e.events),i[e.name]=s}else s=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(e){a[e]=s}),s};function i(e,t,n,r){this.body=e,this.document=t,this.form=n,this.element=r}i.prototype.build=function(){return()=>{}};function a(e,t,n,r){e[t]=new i(r,e.ownerDocument||Object.create(null),e.form||Object.create(null),e).build()}function o(e,t){var r=e.prototype;t.forEach(function(t){Object.defineProperty(r,`on`+t,{get:function(){return this._getEventHandler(t)},set:function(e){this._setEventHandler(t,e)}}),n.registerChangeHandler(e,`on`+t,a)})}})),N=t((e=>{var t=m(),n=E(),r=le(),i=u(),a=ue(),o=de(),s=e.elements={},c=Object.create(null);e.createElement=function(e,t,n){return new(c[t]||v)(e,t,n)};function l(e){return o(e,_,s,c)}function d(e){return{get:function(){var t=this._getattr(e);if(t===null)return``;var n=this.doc._resolve(t);return n===null?t:n},set:function(t){this._setattr(e,t)}}}function f(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()===`use-credentials`?`use-credentials`:`anonymous`},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}let p={type:[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],missing:``};var h={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},g=function(e,t,n){_.call(this,e,t,n),this._form=null},_=e.HTMLElement=l({superclass:n,name:`HTMLElement`,ctor:function(e,t,r){n.call(this,e,t,i.NAMESPACE.HTML,r)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?``:String(e),!0);for(var n=this instanceof c.template?this.content:this;n.hasChildNodes();)n.removeChild(n.firstChild);n.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||=new r(this),this._style},set:function(e){e??=``,this._setattr(`style`,String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent(`MouseEvent`);e.initMouseEvent(`click`,!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(e)?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:i.nyi}},attributes:{title:String,lang:String,dir:{type:[`ltr`,`rtl`,`auto`],missing:``},draggable:{type:[`true`,`false`],treatNullAsEmptyString:!0},spellcheck:{type:[`true`,`false`],missing:``},enterKeyHint:{type:[`enter`,`done`,`go`,`next`,`previous`,`search`,`send`],missing:``},autoCapitalize:{type:[`off`,`on`,`none`,`sentences`,`words`,`characters`],missing:``},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:[`no`,`yes`],missing:``},tabIndex:{type:`long`,default:function(){return this.tagName in h||this.contentEditable?0:-1}}},events:`abort.canplay.canplaythrough.change.click.contextmenu.cuechange.dblclick.drag.dragend.dragenter.dragleave.dragover.dragstart.drop.durationchange.emptied.ended.input.invalid.keydown.keypress.keyup.loadeddata.loadedmetadata.loadstart.mousedown.mousemove.mouseout.mouseover.mouseup.mousewheel.pause.play.playing.progress.ratechange.readystatechange.reset.seeked.seeking.select.show.stalled.submit.suspend.timeupdate.volumechange.waiting.blur.error.focus.load.scroll`.split(`.`)}),v=l({name:`HTMLUnknownElement`,ctor:function(e,t,n){_.call(this,e,t,n)}}),y={form:{get:function(){return this._form}}};l({tag:`a`,name:`HTMLAnchorElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:d,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:p,coords:String,charset:String,name:String,rev:String,shape:String}}),a._inherit(c.a.prototype),l({tag:`area`,name:`HTMLAreaElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:d,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:p,noHref:Boolean}}),a._inherit(c.area.prototype),l({tag:`br`,name:`HTMLBRElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{clear:String}}),l({tag:`base`,name:`HTMLBaseElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{target:String}}),l({tag:`body`,name:`HTMLBodyElement`,ctor:function(e,t,n){_.call(this,e,t,n)},events:[`afterprint`,`beforeprint`,`beforeunload`,`blur`,`error`,`focus`,`hashchange`,`load`,`message`,`offline`,`online`,`pagehide`,`pageshow`,`popstate`,`resize`,`scroll`,`storage`,`unload`],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}}),l({tag:`button`,name:`HTMLButtonElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:[`submit`,`reset`,`button`,`menu`],missing:`submit`},formTarget:String,formAction:d,formNoValidate:Boolean,formMethod:{type:[`get`,`post`,`dialog`],invalid:`get`,missing:``},formEnctype:{type:[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],invalid:`application/x-www-form-urlencoded`,missing:``}}}),l({tag:`dl`,name:`HTMLDListElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{compact:Boolean}}),l({tag:`data`,name:`HTMLDataElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{value:String}}),l({tag:`datalist`,name:`HTMLDataListElement`,ctor:function(e,t,n){_.call(this,e,t,n)}}),l({tag:`details`,name:`HTMLDetailsElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{open:Boolean}}),l({tag:`div`,name:`HTMLDivElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{align:String}}),l({tag:`embed`,name:`HTMLEmbedElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{src:d,type:String,width:String,height:String,align:String,name:String}}),l({tag:`fieldset`,name:`HTMLFieldSetElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{disabled:Boolean,name:String}}),l({tag:`form`,name:`HTMLFormElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{action:String,autocomplete:{type:[`on`,`off`],missing:`on`},name:String,acceptCharset:{name:`accept-charset`},target:String,noValidate:Boolean,method:{type:[`get`,`post`,`dialog`],invalid:`get`,missing:`get`},enctype:{type:[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],invalid:`application/x-www-form-urlencoded`,missing:`application/x-www-form-urlencoded`},encoding:{name:`enctype`,type:[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],invalid:`application/x-www-form-urlencoded`,missing:`application/x-www-form-urlencoded`}}}),l({tag:`hr`,name:`HTMLHRElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}}),l({tag:`head`,name:`HTMLHeadElement`,ctor:function(e,t,n){_.call(this,e,t,n)}}),l({tags:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],name:`HTMLHeadingElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{align:String}}),l({tag:`html`,name:`HTMLHtmlElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{xmlns:d,version:String}}),l({tag:`iframe`,name:`HTMLIFrameElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{src:d,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:p,loading:{type:[`eager`,`lazy`],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:d,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}}),l({tag:`img`,name:`HTMLImageElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{alt:String,src:d,srcset:String,crossOrigin:f,useMap:String,isMap:Boolean,sizes:String,height:{type:`unsigned long`,default:0},width:{type:`unsigned long`,default:0},referrerPolicy:p,loading:{type:[`eager`,`lazy`],missing:``},name:String,lowsrc:d,align:String,hspace:{type:`unsigned long`,default:0},vspace:{type:`unsigned long`,default:0},longDesc:d,border:{type:String,treatNullAsEmptyString:!0}}}),l({tag:`input`,name:`HTMLInputElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:{form:y.form,_post_click_activation_steps:{value:function(e){if(this.type===`checkbox`)this.checked=!this.checked;else if(this.type===`radio`)for(var t=this.form.getElementsByName(this.name),n=t.length-1;n>=0;n--){var r=t[n];r.checked=r===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:`value`},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:d,defaultChecked:{name:`checked`,type:Boolean},size:{type:`unsigned long`,default:20,min:1,setmin:1},width:{type:`unsigned long`,min:0,setmin:0,default:0},height:{type:`unsigned long`,min:0,setmin:0,default:0},minLength:{type:`unsigned long`,min:0,setmin:0,default:-1},maxLength:{type:`unsigned long`,min:0,setmin:0,default:-1},autocomplete:String,type:{type:[`text`,`hidden`,`search`,`tel`,`url`,`email`,`password`,`datetime`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`],missing:`text`},formTarget:String,formNoValidate:Boolean,formMethod:{type:[`get`,`post`],invalid:`get`,missing:``},formEnctype:{type:[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],invalid:`application/x-www-form-urlencoded`,missing:``},inputMode:{type:[`verbatim`,`latin`,`latin-name`,`latin-prose`,`full-width-latin`,`kana`,`kana-name`,`katakana`,`numeric`,`tel`,`email`,`url`],missing:``},align:String,useMap:String}}),l({tag:`keygen`,name:`HTMLKeygenElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:[`rsa`],missing:``}}}),l({tag:`li`,name:`HTMLLIElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{value:{type:`long`,default:0},type:String}}),l({tag:`label`,name:`HTMLLabelElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{htmlFor:{name:`for`,type:String}}}),l({tag:`legend`,name:`HTMLLegendElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{align:String}}),l({tag:`link`,name:`HTMLLinkElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{href:d,rel:String,media:String,hreflang:String,type:String,crossOrigin:f,nonce:String,integrity:String,referrerPolicy:p,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}}),l({tag:`map`,name:`HTMLMapElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{name:String}}),l({tag:`menu`,name:`HTMLMenuElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{type:{type:[`context`,`popup`,`toolbar`],missing:`toolbar`},label:String,compact:Boolean}}),l({tag:`meta`,name:`HTMLMetaElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{name:String,content:String,httpEquiv:{name:`http-equiv`,type:String},scheme:String}}),l({tag:`meter`,name:`HTMLMeterElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y}),l({tags:[`ins`,`del`],name:`HTMLModElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{cite:d,dateTime:String}}),l({tag:`ol`,name:`HTMLOListElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(n){n.nodeType===t.ELEMENT_NODE&&n.tagName===`LI`&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:`long`,default:function(){return this.reversed?this._numitems:1}},compact:Boolean}}),l({tag:`object`,name:`HTMLObjectElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{data:d,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:`unsigned long`,default:0},standby:String,vspace:{type:`unsigned long`,default:0},codeBase:d,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}}),l({tag:`optgroup`,name:`HTMLOptGroupElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{disabled:Boolean,label:String}}),l({tag:`option`,name:`HTMLOptionElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===t.ELEMENT_NODE;){if(e.localName===`select`)return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr(`value`)||this.text},set:function(e){this._setattr(`value`,e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g,` `).trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:`selected`,type:Boolean},label:String}}),l({tag:`output`,name:`HTMLOutputElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{name:String}}),l({tag:`p`,name:`HTMLParagraphElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{align:String}}),l({tag:`param`,name:`HTMLParamElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{name:String,value:String,type:String,valueType:String}}),l({tags:[`pre`,`listing`,`xmp`],name:`HTMLPreElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{width:{type:`long`,default:0}}}),l({tag:`progress`,name:`HTMLProgressElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:y,attributes:{max:{type:Number,float:!0,default:1,min:0}}}),l({tags:[`q`,`blockquote`],name:`HTMLQuoteElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{cite:d}}),l({tag:`script`,name:`HTMLScriptElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{text:{get:function(){for(var e=``,n=0,r=this.childNodes.length;n<r;n++){var i=this.childNodes[n];i.nodeType===t.TEXT_NODE&&(e+=i._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==``&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:d,type:String,charset:String,referrerPolicy:p,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:f,nonce:String,integrity:String}}),l({tag:`select`,name:`HTMLSelectElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:{form:y.form,options:{get:function(){return this.getElementsByTagName(`option`)}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:`unsigned long`,default:0}}}),l({tag:`span`,name:`HTMLSpanElement`,ctor:function(e,t,n){_.call(this,e,t,n)}}),l({tag:`style`,name:`HTMLStyleElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{media:String,type:String,scoped:Boolean}}),l({tag:`caption`,name:`HTMLTableCaptionElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{align:String}}),l({name:`HTMLTableCellElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{colSpan:{type:`unsigned long`,default:1},rowSpan:{type:`unsigned long`,default:1},scope:{type:[`row`,`col`,`rowgroup`,`colgroup`],missing:``},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:`char`,type:String},chOff:{name:`charoff`,type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}}),l({tags:[`col`,`colgroup`],name:`HTMLTableColElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{span:{type:`limited unsigned long with fallback`,default:1,min:1},align:String,ch:{name:`char`,type:String},chOff:{name:`charoff`,type:String},vAlign:String,width:String}}),l({tag:`table`,name:`HTMLTableElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{rows:{get:function(){return this.getElementsByTagName(`tr`)}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}}),l({tag:`template`,name:`HTMLTemplateElement`,ctor:function(e,t,n){_.call(this,e,t,n),this._contentFragment=e._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}}),l({tag:`tr`,name:`HTMLTableRowElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{cells:{get:function(){return this.querySelectorAll(`td,th`)}}},attributes:{align:String,ch:{name:`char`,type:String},chOff:{name:`charoff`,type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}}),l({tags:[`thead`,`tfoot`,`tbody`],name:`HTMLTableSectionElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{rows:{get:function(){return this.getElementsByTagName(`tr`)}}},attributes:{align:String,ch:{name:`char`,type:String},chOff:{name:`charoff`,type:String},vAlign:String}}),l({tag:`textarea`,name:`HTMLTextAreaElement`,ctor:function(e,t,n){g.call(this,e,t,n)},props:{form:y.form,type:{get:function(){return`textarea`}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:`limited unsigned long with fallback`,default:2},cols:{type:`limited unsigned long with fallback`,default:20},maxLength:{type:`unsigned long`,min:0,setmin:0,default:-1},minLength:{type:`unsigned long`,min:0,setmin:0,default:-1},inputMode:{type:[`verbatim`,`latin`,`latin-name`,`latin-prose`,`full-width-latin`,`kana`,`kana-name`,`katakana`,`numeric`,`tel`,`email`,`url`],missing:``}}}),l({tag:`time`,name:`HTMLTimeElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{dateTime:String,pubDate:Boolean}}),l({tag:`title`,name:`HTMLTitleElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{text:{get:function(){return this.textContent}}}}),l({tag:`ul`,name:`HTMLUListElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{type:String,compact:Boolean}}),l({name:`HTMLMediaElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{src:d,crossOrigin:f,preload:{type:[`metadata`,`none`,`auto`,{value:``,alias:`auto`}],missing:`auto`},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:`muted`,type:Boolean}}}),l({name:`HTMLAudioElement`,tag:`audio`,superclass:s.HTMLMediaElement,ctor:function(e,t,n){s.HTMLMediaElement.call(this,e,t,n)}}),l({name:`HTMLVideoElement`,tag:`video`,superclass:s.HTMLMediaElement,ctor:function(e,t,n){s.HTMLMediaElement.call(this,e,t,n)},attributes:{poster:d,width:{type:`unsigned long`,min:0,default:0},height:{type:`unsigned long`,min:0,default:0}}}),l({tag:`td`,name:`HTMLTableDataCellElement`,superclass:s.HTMLTableCellElement,ctor:function(e,t,n){s.HTMLTableCellElement.call(this,e,t,n)}}),l({tag:`th`,name:`HTMLTableHeaderCellElement`,superclass:s.HTMLTableCellElement,ctor:function(e,t,n){s.HTMLTableCellElement.call(this,e,t,n)}}),l({tag:`frameset`,name:`HTMLFrameSetElement`,ctor:function(e,t,n){_.call(this,e,t,n)}}),l({tag:`frame`,name:`HTMLFrameElement`,ctor:function(e,t,n){_.call(this,e,t,n)}}),l({tag:`canvas`,name:`HTMLCanvasElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{getContext:{value:i.nyi},probablySupportsContext:{value:i.nyi},setContext:{value:i.nyi},transferControlToProxy:{value:i.nyi},toDataURL:{value:i.nyi},toBlob:{value:i.nyi}},attributes:{width:{type:`unsigned long`,default:300},height:{type:`unsigned long`,default:150}}}),l({tag:`dialog`,name:`HTMLDialogElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{show:{value:i.nyi},showModal:{value:i.nyi},close:{value:i.nyi}},attributes:{open:Boolean,returnValue:String}}),l({tag:`menuitem`,name:`HTMLMenuItemElement`,ctor:function(e,t,n){_.call(this,e,t,n)},props:{_label:{get:function(){var e=this._getattr(`label`);return e!==null&&e!==``?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g,` `).trim())}},label:{get:function(){var e=this._getattr(`label`);return e===null?this._label:e},set:function(e){this._setattr(`label`,e)}}},attributes:{type:{type:[`command`,`checkbox`,`radio`],missing:`command`},icon:d,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}}),l({tag:`source`,name:`HTMLSourceElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{srcset:String,sizes:String,media:String,src:d,type:String,width:String,height:String}}),l({tag:`track`,name:`HTMLTrackElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{src:d,srclang:String,label:String,default:Boolean,kind:{type:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],missing:`subtitles`,invalid:`metadata`}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:i.nyi},track:{get:i.nyi}}}),l({tag:`font`,name:`HTMLFontElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}}),l({tag:`dir`,name:`HTMLDirectoryElement`,ctor:function(e,t,n){_.call(this,e,t,n)},attributes:{compact:Boolean}}),l({tags:`abbr.address.article.aside.b.bdi.bdo.cite.content.code.dd.dfn.dt.em.figcaption.figure.footer.header.hgroup.i.kbd.main.mark.nav.noscript.rb.rp.rt.rtc.ruby.s.samp.section.small.strong.sub.summary.sup.u.var.wbr.acronym.basefont.big.center.nobr.noembed.noframes.plaintext.strike.tt`.split(`.`)})})),fe=t((e=>{var t=E(),n=de(),r=u(),i=le(),a=e.elements={},o=Object.create(null);e.createElement=function(e,t,n){return new(o[t]||c)(e,t,n)};function s(e){return n(e,c,a,o)}var c=s({superclass:t,name:`SVGElement`,ctor:function(e,n,i){t.call(this,e,n,r.NAMESPACE.SVG,i)},props:{style:{get:function(){return this._style||=new i(this),this._style}}}});s({name:`SVGSVGElement`,ctor:function(e,t,n){c.call(this,e,t,n)},tag:`svg`,props:{createSVGRect:{value:function(){return e.createElement(this.ownerDocument,`rect`,null)}}}}),s({tags:`a.altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.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.script.set.stop.style.switch.symbol.text.textPath.title.tref.tspan.use.view.vkern`.split(`.`)})})),pe=t(((e,t)=>{t.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}})),me=t(((e,t)=>{t.exports=ue;var n=m(),r=_(),i=v(),o=E(),s=ne(),c=re(),d=a(),f=O(),p=ie(),h=ge(),g=ae(),b=oe(),x=k(),S=se(),C=ee(),w=ce(),T=y(),D=N(),te=fe(),A=u(),j=pe(),M=A.NAMESPACE,le=l().isApiWritable;function ue(e,t){i.call(this),this.nodeType=n.DOCUMENT_NODE,this.isHTML=e,this._address=t||`about:blank`,this.readyState=`loading`,this.implementation=new h(this),this.ownerDocument=null,this._contentType=e?`text/html`:`application/xml`,this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var de={event:`Event`,customevent:`CustomEvent`,uievent:`UIEvent`,mouseevent:`MouseEvent`},me={events:`event`,htmlevents:`event`,mouseevents:`mouseevent`,mutationevents:`mutationevent`,uievents:`uievent`},P=function(e,t,n){return{get:function(){var r=e.call(this);return r?r[t]:n},set:function(n){var r=e.call(this);r&&(r[t]=n)}}};function he(e,t){var n,r,i;return e===``&&(e=null),T.isValidQName(t)||A.InvalidCharacterError(),n=null,r=t,i=t.indexOf(`:`),i>=0&&(n=t.substring(0,i),r=t.substring(i+1)),n!==null&&e===null&&A.NamespaceError(),n===`xml`&&e!==M.XML&&A.NamespaceError(),(n===`xmlns`||t===`xmlns`)&&e!==M.XMLNS&&A.NamespaceError(),e===M.XMLNS&&!(n===`xmlns`||t===`xmlns`)&&A.NamespaceError(),{namespace:e,prefix:n,localName:r}}ue.prototype=Object.create(i.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,n){var r=this._nodes[e];r&&r._dispatchEvent(new d(t,n),!0)}},nodeName:{value:`#document`},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:A.nyi},compatMode:{get:function(){return this._quirks?`BackCompat`:`CSS1Compat`}},createTextNode:{value:function(e){return new s(this,String(e))}},createComment:{value:function(e){return new c(this,e)}},createDocumentFragment:{value:function(){return new f(this)}},createProcessingInstruction:{value:function(e,t){return(!T.isValidName(e)||t.indexOf(`?>`)!==-1)&&A.InvalidCharacterError(),new p(this,e,t)}},createAttribute:{value:function(e){return e=String(e),T.isValidName(e)||A.InvalidCharacterError(),this.isHTML&&(e=A.toASCIILowerCase(e)),new o._Attr(null,e,null,null,``)}},createAttributeNS:{value:function(e,t){e=e==null||e===``?null:String(e),t=String(t);var n=he(e,t);return new o._Attr(null,n.localName,n.prefix,n.namespace,``)}},createElement:{value:function(e){return e=String(e),T.isValidName(e)||A.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=A.toASCIILowerCase(e)),D.createElement(this,e,null)):this.contentType===`application/xhtml+xml`?D.createElement(this,e,null):new o(this,e,null,null)},writable:le},createElementNS:{value:function(e,t){e=e==null||e===``?null:String(e),t=String(t);var n=he(e,t);return this._createElementNS(n.localName,n.namespace,n.prefix)},writable:le},_createElementNS:{value:function(e,t,n){return t===M.HTML?D.createElement(this,e,n):t===M.SVG?te.createElement(this,e,n):new o(this,e,t,n)}},createEvent:{value:function(e){e=e.toLowerCase();var t=w[de[me[e]||e]];if(t){var n=new t;return n._initialized=!1,n}else A.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw TypeError(`root argument is required`);if(!(e instanceof n))throw TypeError(`root not a node`);return t=t===void 0?x.SHOW_ALL:+t,r=r===void 0?null:r,new g(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw TypeError(`root argument is required`);if(!(e instanceof n))throw TypeError(`root not a node`);return t=t===void 0?x.SHOW_ALL:+t,r=r===void 0?null:r,new b(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||=[],this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var e=this.firstChild;e!==null;e=e.nextSibling)e.nodeType===n.DOCUMENT_TYPE_NODE?this.doctype=e:e.nodeType===n.ELEMENT_NODE&&(this.documentElement=e)}},insertBefore:{value:function(e,t){return n.prototype.insertBefore.call(this,e,t),this._updateDocTypeElement(),e}},replaceChild:{value:function(e,t){return n.prototype.replaceChild.call(this,e,t),this._updateDocTypeElement(),t}},removeChild:{value:function(e){return n.prototype.removeChild.call(this,e),this._updateDocTypeElement(),e}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Ce?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Ce}},getElementsByName:{value:o.prototype.getElementsByName},getElementsByTagName:{value:o.prototype.getElementsByTagName},getElementsByTagNameNS:{value:o.prototype.getElementsByTagNameNS},getElementsByClassName:{value:o.prototype.getElementsByClassName},adoptNode:{value:function(e){return e.nodeType===n.DOCUMENT_NODE&&A.NotSupportedError(),e.nodeType===n.ATTRIBUTE_NODE?e:(e.parentNode&&e.parentNode.removeChild(e),e.ownerDocument!==this&&Se(e,this),e)}},importNode:{value:function(e,t){return this.adoptNode(e.cloneNode(t))},writable:le},origin:{get:function(){return null}},characterSet:{get:function(){return`UTF-8`}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:A.nyi,set:A.nyi},referrer:{get:A.nyi},cookie:{get:A.nyi,set:A.nyi},lastModified:{get:A.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:A.nyi},_titleElement:{get:function(){return this.getElementsByTagName(`title`).item(0)||null}},title:{get:function(){var e=this._titleElement;return(e?e.textContent:``).replace(/[ \t\n\r\f]+/g,` `).replace(/(^ )|( $)/g,``)},set:function(e){var t=this._titleElement,n=this.head;!t&&!n||(t||(t=this.createElement(`title`),n.appendChild(t)),t.textContent=e)}},dir:P(function(){var e=this.documentElement;if(e&&e.tagName===`HTML`)return e},`dir`,``),fgColor:P(function(){return this.body},`text`,``),linkColor:P(function(){return this.body},`link`,``),vlinkColor:P(function(){return this.body},`vLink`,``),alinkColor:P(function(){return this.body},`aLink`,``),bgColor:P(function(){return this.body},`bgColor`,``),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return _e(this.documentElement,`body`)},set:A.nyi},head:{get:function(){return _e(this.documentElement,`head`)}},images:{get:A.nyi},embeds:{get:A.nyi},plugins:{get:A.nyi},links:{get:A.nyi},forms:{get:A.nyi},scripts:{get:A.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:A.nyi},outerHTML:{get:function(){return this.serialize()},set:A.nyi},write:{value:function(e){if(this.isHTML||A.InvalidStateError(),this._parser){this._parser;var t=arguments.join(``);this._parser.parse(t)}}},writeln:{value:function(e){this.write(Array.prototype.join.call(arguments,``)+`
|
|
@@ -70,4 +70,4 @@ import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n,r,t as i}from"./chunk-74CEPO
|
|
|
70
70
|
`,exitCode:1}}if(!u.trim())return{stdout:``,stderr:``,exitCode:0};try{let e=new Ce.default({bulletListMarker:a,codeBlockStyle:`fenced`,fence:o,hr:s,headingStyle:c});return e.remove([`script`,`style`,`footer`]),{stdout:`${e.turndown(u).trim()}
|
|
71
71
|
`,stderr:``,exitCode:0}}catch(e){return{stdout:``,stderr:`html-to-markdown: conversion error: ${e.message}
|
|
72
72
|
`,exitCode:1}}}},Ee={name:`html-to-markdown`,flags:[],stdinType:`text`};export{Ee as n,Te as t};
|
|
73
|
-
//# sourceMappingURL=chunk-MDLLFABN-
|
|
73
|
+
//# sourceMappingURL=chunk-MDLLFABN-B2tA3LLA.mjs.map
|
|
@@ -6,4 +6,4 @@ async function e(e,t){if(e.length>0&&e[0]!==`-`){let n=t.fs.resolvePath(t.cwd,e[
|
|
|
6
6
|
`);n[n.length-1]===``&&n.pop();let r=n.reverse();return{stdout:r.length>0?`${r.join(`
|
|
7
7
|
`)}
|
|
8
8
|
`:``,stderr:``,exitCode:0}}var t={name:`tac`,execute:e},n={name:`tac`,flags:[],stdinType:`text`,needsFiles:!0};export{t as n,n as t};
|
|
9
|
-
//# sourceMappingURL=chunk-MHTUABJP-
|
|
9
|
+
//# sourceMappingURL=chunk-MHTUABJP-CrR3MfDw.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{t}from"./chunk-44UOCSGV-Dadyg26w.mjs";import{t as n}from"./chunk-HWKDQ44K-
|
|
1
|
+
import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{t}from"./chunk-44UOCSGV-Dadyg26w.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var r={recursive:{short:`r`,long:`recursive`,type:`boolean`},recursiveUpper:{short:`R`,type:`boolean`},force:{short:`f`,long:`force`,type:`boolean`},verbose:{short:`v`,long:`verbose`,type:`boolean`}},i={name:`rm`,async execute(i,a){let o=n(`rm`,i,r);if(!o.ok)return o.error;let s=o.result.flags.recursive||o.result.flags.recursiveUpper,c=o.result.flags.force,l=o.result.flags.verbose,u=o.result.positional;if(u.length===0)return c?{stdout:``,stderr:``,exitCode:0}:{stdout:``,stderr:`rm: missing operand
|
|
2
2
|
`,exitCode:1};let d=``,f=``,p=0;for(let n of u)try{let e=a.fs.resolvePath(a.cwd,n);if((await a.fs.stat(e)).isDirectory&&!s){f+=`rm: cannot remove '${n}': Is a directory
|
|
3
3
|
`,p=1;continue}await a.fs.rm(e,{recursive:s,force:c}),l&&(d+=`removed '${n}'
|
|
4
4
|
`)}catch(r){if(!c){let i=t(r);i.includes(`ENOENT`)||i.includes(`no such file`)?f+=`rm: cannot remove '${n}': No such file or directory
|
|
5
5
|
`:i.includes(`ENOTEMPTY`)||i.includes(`not empty`)?f+=`rm: cannot remove '${n}': Directory not empty
|
|
6
6
|
`:f+=`rm: cannot remove '${n}': ${e(i)}
|
|
7
7
|
`,p=1}}return{stdout:d,stderr:f,exitCode:p}}},a={name:`rm`,flags:[{flag:`-r`,type:`boolean`},{flag:`-R`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0};export{i as n,a as t};
|
|
8
|
-
//# sourceMappingURL=chunk-MIZPJHVH-
|
|
8
|
+
//# sourceMappingURL=chunk-MIZPJHVH-d3bhRfh4.mjs.map
|
|
@@ -13,4 +13,4 @@ Options:
|
|
|
13
13
|
If a command name is provided, shows help for that command.
|
|
14
14
|
Otherwise, lists all available commands.
|
|
15
15
|
`,stderr:``,exitCode:0};if(t.length>0&&r.exec){let n=t[0];return r.exec(e([n]),{cwd:r.cwd,signal:r.signal,args:[`--help`]})}return{stdout:n(r.getRegisteredCommands?.()??[]),stderr:``,exitCode:0}}},i={name:`help`,flags:[]};export{i as n,r as t};
|
|
16
|
-
//# sourceMappingURL=chunk-MLXIYONF-
|
|
16
|
+
//# sourceMappingURL=chunk-MLXIYONF-C0S_CKb1.mjs.map
|