@inkeep/open-knowledge 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +5439 -0
- package/dist/alias-JE7RI5QX-TirEebNy.mjs +1 -0
- package/dist/assets/skills/open-knowledge/SKILL.md +254 -0
- package/dist/awk2-POPGKRAI-DigGXYmO.mjs +1 -0
- package/dist/banner-BxI1wnW9.mjs +3 -0
- package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +1 -0
- package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +1 -0
- package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +1 -0
- package/dist/build-D4l8tfO0.mjs +2 -0
- package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +1 -0
- package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +1 -0
- package/dist/chokidar-CblsKfnx.mjs +4 -0
- package/dist/chunk-24IMIIXA-Bz7rlZT3.mjs +2 -0
- package/dist/chunk-3THT3N7L-klp8GP84.mjs +2 -0
- package/dist/chunk-3ZUFRYJ4-C93H8j0V.mjs +2 -0
- package/dist/chunk-44UOCSGV-BUBpWxXm.mjs +2 -0
- package/dist/chunk-4GTNDTRF-_OVmXcJ-.mjs +8 -0
- package/dist/chunk-4HHKTUW3-Dm69hDaZ.mjs +3 -0
- package/dist/chunk-4Q4SM6WR-DDQRsilN.mjs +5 -0
- package/dist/chunk-55VFSPNA-DVZfQAzN.mjs +3 -0
- package/dist/chunk-5QMZ5MUS-DWTkM0vM.mjs +5 -0
- package/dist/chunk-5QVNJEHU-BvsipSFW.mjs +9 -0
- package/dist/chunk-5V6VZH6T-BCr5_GDF.mjs +2 -0
- package/dist/chunk-62RKD26F-D-luOa0m.mjs +21 -0
- package/dist/chunk-64BAICW3-CTJNEx4Q.mjs +2 -0
- package/dist/chunk-74CEPOFO-D1bzz49u.mjs +23 -0
- package/dist/chunk-7L36YK2X-RiPZFKaV.mjs +3 -0
- package/dist/chunk-7TSDKFEO-a-GUGBTu.mjs +2 -0
- package/dist/chunk-A4HU7SVR-hefV_YmW.mjs +3 -0
- package/dist/chunk-A4JSPFCI-U-xWmMMC.mjs +7 -0
- package/dist/chunk-A5O5YHGN-C7BVq0eF.mjs +2 -0
- package/dist/chunk-A65PWWJC-D7J5l9eq.mjs +3 -0
- package/dist/chunk-A7A2DBEE-PLfkXLI4.mjs +7 -0
- package/dist/chunk-A7ICOL4V-Drb3XsEL.mjs +14 -0
- package/dist/chunk-ALLTKNUZ-BMiTDN50.mjs +6 -0
- package/dist/chunk-APT7OOP2-CXHnSuct.mjs +2 -0
- package/dist/chunk-BBXLRYSX-DURjrblE.mjs +6 -0
- package/dist/chunk-BRGMQKJV-CdrkqzRA.mjs +63 -0
- package/dist/chunk-CR5AFCPT-ROmyDFrB.mjs +24 -0
- package/dist/chunk-CWQS3NFK-DFdwmFxJ.mjs +2 -0
- package/dist/chunk-D4J545R4-C8nMOauR.mjs +12 -0
- package/dist/chunk-D6CWQ5DW-B-J4LN9N.mjs +6 -0
- package/dist/chunk-D7MEQ3VN-Csvth_Ss.mjs +5 -0
- package/dist/chunk-DCAAORBQ-BdrR5ttw.mjs +2 -0
- package/dist/chunk-DXB73IDG-C774okS0.mjs +2 -0
- package/dist/chunk-EEXR5ZDP-C5AJH114.mjs +3 -0
- package/dist/chunk-EIZGF4BS-8bsVXqW0.mjs +9 -0
- package/dist/chunk-F23WWYKW-DST0dB7V.mjs +17 -0
- package/dist/chunk-F55TLFGB-DqkrAMO5.mjs +10 -0
- package/dist/chunk-FEIOJCZD-C4x0A4rb.mjs +75 -0
- package/dist/chunk-FK9Q3tQk.mjs +1 -0
- package/dist/chunk-GCTKCWKD-Deqi1D_N.mjs +4 -0
- package/dist/chunk-GFQRA5P5-1fzItQ8F.mjs +8 -0
- package/dist/chunk-GOV5EKKI-PN17n-Z0.mjs +10 -0
- package/dist/chunk-GXVXFKBA-993FoPmq.mjs +6 -0
- package/dist/chunk-HDQ56CKY-pGV4pOJA.mjs +16 -0
- package/dist/chunk-HJQJAYMS-Ci3vsKQW.mjs +3 -0
- package/dist/chunk-HJWBQKYG-UZig4wUt.mjs +6 -0
- package/dist/chunk-HWBSOZZR-Dikp87Ww.mjs +37 -0
- package/dist/chunk-HWKDQ44K-CPSjqtR_.mjs +4 -0
- package/dist/chunk-I57KEIP3-B1DoH8rp.mjs +11 -0
- package/dist/chunk-IPJHKYVM-BbWncVr2.mjs +2 -0
- package/dist/chunk-J642UCRS-DB77Y2Wt.mjs +2 -0
- package/dist/chunk-JVPRLUMK-DnQCNjpq.mjs +8 -0
- package/dist/chunk-KMEYNNUA-DfdK88O_.mjs +16 -0
- package/dist/chunk-LL3S3NLB-DxXgE3kY.mjs +2 -0
- package/dist/chunk-LPQPILI2-BXfU9TgM.mjs +12 -0
- package/dist/chunk-LTZRCH7N-GAjTFNwG.mjs +32 -0
- package/dist/chunk-LWEGUNWT-BALY4RLC.mjs +8 -0
- package/dist/chunk-MDDMCKUK-D6GWoJsI.mjs +7 -0
- package/dist/chunk-MDLLFABN-oBQf6bGE.mjs +73 -0
- package/dist/chunk-MHTUABJP-dKmK6Hw7.mjs +9 -0
- package/dist/chunk-MIZPJHVH-z-geAni9.mjs +8 -0
- package/dist/chunk-MLXIYONF-DB-C8Hx8.mjs +16 -0
- package/dist/chunk-MYE6AGBJ-B4pRo9ma.mjs +17 -0
- package/dist/chunk-NAERJDUW-CX0lf-xx.mjs +9 -0
- package/dist/chunk-NCNPKYJZ-BFGan4lR.mjs +3 -0
- package/dist/chunk-NUYSJFDK-D2NXm2ND.mjs +8 -0
- package/dist/chunk-NYQYO467-Degkom4D.mjs +33 -0
- package/dist/chunk-OARHFVLG-CY8D2Qov.mjs +21 -0
- package/dist/chunk-OCLXQMOG-BMsyLQhm.mjs +7 -0
- package/dist/chunk-OCS6LSEM-BHslttnj.mjs +14 -0
- package/dist/chunk-OJDRYQWQ-BV5MVRVg.mjs +2 -0
- package/dist/chunk-OL3S66CO-Bmgu4tW4.mjs +100 -0
- package/dist/chunk-PBXLG62G-lGjqkk78.mjs +9 -0
- package/dist/chunk-PP6PSHAB-DMC_XCfO.mjs +5 -0
- package/dist/chunk-PYSFUGCK-CY7pclEB.mjs +11 -0
- package/dist/chunk-QCDB2VPH-D1RuXtOm.mjs +7 -0
- package/dist/chunk-QJ7O6ZN3-BH67tCjg.mjs +6 -0
- package/dist/chunk-R6QSAL5T-CtbJTvt9.mjs +2 -0
- package/dist/chunk-R6VWJ2ZL-B0CcMPyK.mjs +2 -0
- package/dist/chunk-RPNGRAAP-BughPjdR.mjs +8 -0
- package/dist/chunk-SDNKECQQ-C3GEf3VZ.mjs +6 -0
- package/dist/chunk-SYMJJMQ4-CWTh95-4.mjs +22 -0
- package/dist/chunk-T56QNPHK-DlKQeuXU.mjs +15 -0
- package/dist/chunk-TLSUDHID-B8UnqY4U.mjs +7 -0
- package/dist/chunk-TOMNU26N-BcdbBQ2p.mjs +5 -0
- package/dist/chunk-TXBZCHCQ-l48TczF5.mjs +6 -0
- package/dist/chunk-UNYNJIFU-DwPQMz0F.mjs +140 -0
- package/dist/chunk-V7TAPXDL-CnKUp2df.mjs +28 -0
- package/dist/chunk-VJFXDYWH-IiUXkKX0.mjs +11 -0
- package/dist/chunk-VLGZJRPG-D4NVKJYL.mjs +17 -0
- package/dist/chunk-VOBGTVA6-BT7gUxqf.mjs +7 -0
- package/dist/chunk-VYOJP4TV-BvibOnKG.mjs +14 -0
- package/dist/chunk-WKFATFPP-DCZdrA8x.mjs +5 -0
- package/dist/chunk-X2AJGDEF-BaH6i1Rq.mjs +2 -0
- package/dist/chunk-XHM67O4N-Cg35xc6b.mjs +2 -0
- package/dist/chunk-XKQRETAK-cVWA9gEB.mjs +2 -0
- package/dist/chunk-XORM457F-CRToN1RQ.mjs +288 -0
- package/dist/chunk-XVDPCNWR-CtK-Xs2O.mjs +12 -0
- package/dist/chunk-YCFVLTST-Ox9Z0Nk6.mjs +13 -0
- package/dist/chunk-YFG2CMIF-Csgr05KV.mjs +5 -0
- package/dist/chunk-YNYSPYQ5-BpP11HXS.mjs +34 -0
- package/dist/chunk-YS3AZT3J-BEZxz_aQ.mjs +9 -0
- package/dist/chunk-YTNYSM6T-DuBR2-TM.mjs +12 -0
- package/dist/chunk-Z6LRHWXI-DbRghyzT.mjs +14 -0
- package/dist/chunk-Z7JVV2SM-BzR-yvwK.mjs +12 -0
- package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +1 -0
- package/dist/cli.mjs +1083 -273
- package/dist/colors-BnZ-i-vb.mjs +1 -0
- package/dist/colors-DoPZvo1q.mjs +2 -0
- package/dist/column-WLPMMSTS-fFssyAvW.mjs +1 -0
- package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +1 -0
- package/dist/constants-ekUaxW9F.mjs +2 -0
- package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +1 -0
- package/dist/curl-47BFPSFW-Kn_Na_aU.mjs +26 -0
- package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +1 -0
- package/dist/date-DD7FVA2V-DRxppxbV.mjs +1 -0
- package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +1 -0
- package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +1 -0
- package/dist/dist-0qFIeeXA.mjs +142 -0
- package/dist/dist-BCyi1oM7.mjs +116 -0
- package/dist/dist-CXdg7KnM.mjs +199 -0
- package/dist/dist-Ct-gJ7iD.mjs +1 -0
- package/dist/dist-bundle-BSdjl7Rj.mjs +2 -0
- package/dist/dist-bundle-BmF5_Mcp.mjs +1 -0
- package/dist/du-WO2ENHXQ-B5uda2-L.mjs +1 -0
- package/dist/echo-O45JWWI2-B9QCpaZR.mjs +1 -0
- package/dist/env-5EPCWSXR--4eujSrM.mjs +1 -0
- package/dist/esm-BFkWzFey.mjs +2 -0
- package/dist/esm-wByiX8MO.mjs +20 -0
- package/dist/execAsync-0jii24p9.mjs +2 -0
- package/dist/execAsync-Czqc-yAz.mjs +2 -0
- package/dist/execAsync-DgmLXmTx.mjs +2 -0
- package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +1 -0
- package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +1 -0
- package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +1 -0
- package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +2 -0
- package/dist/fold-LDSORVYE-CAfX9d8n.mjs +1 -0
- package/dist/getMachineId-bsd-C1M346yz.mjs +2 -0
- package/dist/getMachineId-bsd-CPESl3L6.mjs +2 -0
- package/dist/getMachineId-bsd-DEUypOXJ.mjs +2 -0
- package/dist/getMachineId-darwin-0hBTy7c8.mjs +3 -0
- package/dist/getMachineId-darwin-CJK3eX9q.mjs +3 -0
- package/dist/getMachineId-darwin-Vupnt-kR.mjs +3 -0
- package/dist/getMachineId-linux-B2nkqMir.mjs +2 -0
- package/dist/getMachineId-linux-BGQn48cN.mjs +2 -0
- package/dist/getMachineId-linux-CIp07XEX.mjs +2 -0
- package/dist/getMachineId-unsupported-BnsanXR2.mjs +2 -0
- package/dist/getMachineId-unsupported-CH1Q20xN.mjs +2 -0
- package/dist/getMachineId-unsupported-DfSmC7Gy.mjs +2 -0
- package/dist/getMachineId-win-BmmB_8yL.mjs +2 -0
- package/dist/getMachineId-win-DlPRChXs.mjs +2 -0
- package/dist/getMachineId-win-JnMJbIaW.mjs +2 -0
- package/dist/git-handle-BhGnmvTB-BMB_49Sb.mjs +10 -0
- package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +1 -0
- package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +1 -0
- package/dist/gzip-AQXSGOVS-CL228lzk.mjs +1 -0
- package/dist/head-HT2B6D2J-DyNkF3aY.mjs +1 -0
- package/dist/help-VVWX7SA5-D5WzpTIY.mjs +1 -0
- package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +1 -0
- package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +1 -0
- package/dist/index.d.mts +2300 -55
- package/dist/index.mjs +1 -1
- package/dist/init-Ccjx3YjD.mjs +1 -0
- package/dist/init-DOTyF3_B.mjs +1 -0
- package/dist/init-Dc2dCgGt.mjs +255 -0
- package/dist/init-DeV-MdCs.mjs +120 -0
- package/dist/{is-object-WgQ3abDo.mjs → is-object-BNVklKxg.mjs} +1 -1
- package/dist/join-GG2LDHE5-B6C3-ghI.mjs +1 -0
- package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +1 -0
- package/dist/js-exec-M6UR76J5-DSk5_wnx.mjs +97 -0
- package/dist/keepalive-CZzB5k1h.mjs +2 -0
- package/dist/lib-Dl2j2VNl.mjs +2 -0
- package/dist/libesm-DC4M2SkF.mjs +14 -0
- package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +1 -0
- package/dist/loader-Bveym9GJ.mjs +1 -0
- package/dist/loader-C3jzK-Dy.mjs +3 -0
- package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +1 -0
- package/dist/lzma-0LJzVZpl.mjs +2 -0
- package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +1 -0
- package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +1 -0
- package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +1 -0
- package/dist/od-VJEF2UR5-PasvdXXR.mjs +1 -0
- package/dist/{open-browser-rbaiEzUy.mjs → open-browser-BzMQ6cLf.mjs} +1 -1
- package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +1 -0
- package/dist/paths-BA1xev5m.mjs +1 -0
- package/dist/paths-DtQI2_ER.mjs +2 -0
- package/dist/preview-BTFflPaA.mjs +1 -0
- package/dist/preview-BuXqi6nl.mjs +3 -0
- package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-Ccu_n0bV.js +2 -0
- package/dist/public/assets/ActivityPanelDiffView-D-EUyEh6.js +13 -0
- package/dist/public/assets/ActivityPanelDiffView-legcy4jI.css +1 -0
- package/dist/public/assets/DocumentContext-C1msvcHp.js +5 -0
- package/dist/public/assets/GraphPanel-CJ_U3W3L.js +46 -0
- package/dist/public/assets/McpConsentDialogBody-Csjet19t.js +1 -0
- package/dist/public/assets/PageListContext-B5SWnlyE.js +278 -0
- package/dist/public/assets/SourceEditor-OFesfBB2.js +3 -0
- package/dist/public/assets/__vite-browser-external-Dz2JgTKm.js +1 -0
- package/dist/public/assets/agent-presence-BXsx4eTl.js +1 -0
- package/dist/public/assets/button-BPXuMr5W.js +1 -0
- package/dist/public/assets/chunk-DECur_0Z.js +1 -0
- package/dist/public/assets/clipboard-DAcKCHl1.js +32 -0
- package/dist/public/assets/compiler-runtime-Y11fyRVL.js +1 -0
- package/dist/public/assets/dialog-CtSN0d2b.js +45 -0
- package/dist/public/assets/dist-BqO6NfD-.js +1 -0
- package/dist/public/assets/dist-CgLbXgrr.js +13 -0
- package/dist/public/assets/dist-D2wwoXzm.js +1 -0
- package/dist/public/assets/dist-DR1MrLJC.js +9 -0
- package/dist/public/assets/dist-DeDgmJv2.js +1 -0
- package/dist/public/assets/dist-DlS42TIP.js +1 -0
- package/dist/public/assets/dist-GlH2KPqY.js +1 -0
- package/dist/public/assets/index-CwFTGDhe.js +1843 -0
- package/dist/public/assets/index-DjR45Lon.css +1 -0
- package/dist/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/public/assets/panel-BCRdtBla.js +1 -0
- package/dist/public/assets/propagation-api-Bugyj7xy.js +1 -0
- package/dist/public/assets/telemetry-impl-D8K_lJGH.js +2 -0
- package/dist/public/assets/toggle-group-LDOO6zaV.js +1 -0
- package/dist/public/assets/tooltip-D0MnQ7ZX.js +1 -0
- package/dist/public/assets/w3c-keyname-CSlwavrd.js +1 -0
- package/dist/public/favicon.svg +19 -4
- package/dist/public/index.html +32 -4
- package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +1 -0
- package/dist/python3-AUFTPCU6-MeZyx8_A.mjs +12 -0
- package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +1 -0
- package/dist/rev-XOSYPP45-q2MQLs41.mjs +1 -0
- package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +1 -0
- package/dist/rm-RTZG23RL-fjvVauiI.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +1 -0
- package/dist/rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs +2 -0
- package/dist/sed-VFTTATXJ-DO49xc40.mjs +1 -0
- package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +1 -0
- package/dist/server-lock-n3Y5JWNv-3o7br8XE.mjs +2 -0
- package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +1 -0
- package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +1 -0
- package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +1 -0
- package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +1 -0
- package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +1 -0
- package/dist/src-CCtbSzLe.mjs +1 -0
- package/dist/start-D7mCFrVn.mjs +1 -0
- package/dist/start-RnYkhoRl.mjs +2 -0
- package/dist/stat-BT5A227F-Dqepjl-k.mjs +1 -0
- package/dist/strings-7PLOGTPD-g6FhPS64.mjs +1 -0
- package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +1 -0
- package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +1 -0
- package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +1 -0
- package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +1 -0
- package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +1 -0
- package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +1 -0
- package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +1 -0
- package/dist/tr-2HXZRDSW-DrrobhxR.mjs +1 -0
- package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +1 -0
- package/dist/true-WHJNXCHG-BaLssNp9.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +1 -0
- package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +1 -0
- package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +1 -0
- package/dist/which-XZHEH76L-DxZJ58G5.mjs +1 -0
- package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +1 -0
- package/dist/wrapper-BTT6637Z.mjs +7 -0
- package/dist/xan-BXDXYEIB-_Vtao535.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +1 -0
- package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +1 -0
- package/dist/yq-MJMAR36V-pRBq87Ya.mjs +1 -0
- package/package.json +23 -14
- package/scripts/postinstall.mjs +53 -0
- package/scripts/probe-exec.ts +101 -0
- package/scripts/probe-read-document.ts +112 -0
- package/dist/banner-De2a4ivv.mjs +0 -3
- package/dist/colors-C2vrt_OY.mjs +0 -1
- package/dist/colors-CshxhXdR.mjs +0 -2
- package/dist/constants-yNFhYMHH.mjs +0 -2
- package/dist/git-handle-B5vQdmjQ.mjs +0 -2
- package/dist/git-handle-DGTzeK-H.mjs +0 -1
- package/dist/init-BFZ4vnnX.mjs +0 -1
- package/dist/init-BH38QtfV.mjs +0 -6
- package/dist/init-BzEVODBI.mjs +0 -230
- package/dist/init-DCZhpKSO.mjs +0 -1
- package/dist/keepalive-Bp0nJiwT.mjs +0 -2
- package/dist/loader-CoGCjTcI.mjs +0 -3
- package/dist/loader-D8pf7fi6.mjs +0 -1
- package/dist/paths-C7TuvND0.mjs +0 -2
- package/dist/paths-CWTmBbr0.mjs +0 -1
- package/dist/preview-C-NvAf2r.mjs +0 -1
- package/dist/preview-Cmt2vdUG.mjs +0 -3
- package/dist/public/assets/dist-BDfJLgAe.js +0 -1
- package/dist/public/assets/dist-BSbGs59J.js +0 -1
- package/dist/public/assets/dist-BXK-5ZOh.js +0 -1
- package/dist/public/assets/dist-BipKfxqO.js +0 -15
- package/dist/public/assets/dist-C9Jm0v8G.js +0 -1
- package/dist/public/assets/dist-CDCPrjhY.js +0 -1
- package/dist/public/assets/dist-CHAniM6T.js +0 -9
- package/dist/public/assets/dist-CYsaeLzc.js +0 -1
- package/dist/public/assets/dist-Cq9Fm8Xi.js +0 -1
- package/dist/public/assets/dist-Ct0eqVZy.js +0 -1
- package/dist/public/assets/dist-PgXBewk9.js +0 -23
- package/dist/public/assets/index-BbLzex1v.css +0 -2
- package/dist/public/assets/index-gSm49umN.js +0 -409
- package/dist/src-B7snRveE.mjs +0 -1
- package/dist/src-CEP6NuWY.mjs +0 -1
- package/dist/src-EGbU552u.mjs +0 -278
- package/dist/start-BYXBgVJW.mjs +0 -1
- package/dist/start-DqcFf-BT.mjs +0 -2
- /package/dist/public/assets/{go-IODVg4Ok.js → go-DatQmDtN.js} +0 -0
- /package/dist/public/assets/{shell-COsTRxlr.js → shell-7yok6dsz.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./__vite-browser-external-Dz2JgTKm.js","./chunk-DECur_0Z.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n,d as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./propagation-api-Bugyj7xy.js";var f=class{constructor(){}createGauge(e,t){return ue}createHistogram(e,t){return de}createCounter(e,t){return le}createUpDownCounter(e,t){return fe}createObservableGauge(e,t){return me}createObservableCounter(e,t){return pe}createObservableUpDownCounter(e,t){return he}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},p=class{},ee=class extends p{add(e,t){}},te=class extends p{add(e,t){}},ne=class extends p{record(e,t){}},re=class extends p{record(e,t){}},ie=class{addCallback(e){}removeCallback(e){}},ae=class extends ie{},oe=class extends ie{},se=class extends ie{},ce=new f,le=new ee,ue=new ne,de=new re,fe=new te,pe=new ae,me=new oe,he=new se;function ge(){return ce}var m;(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(m||={});var _e={traceId:`00000000000000000000000000000000`,spanId:`0000000000000000`,traceFlags:m.NONE},h=class{constructor(e=_e){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}},ve=t(`OpenTelemetry Context Key SPAN`);function ye(e){return e.getValue(ve)||void 0}function be(){return ye(c.getInstance().active())}function xe(e,t){return e.setValue(ve,t)}function Se(e){return e.deleteValue(ve)}function Ce(e,t){return xe(e,new h(t))}function we(e){return ye(e)?.spanContext()}var Te=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function Ee(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(Te[e.charCodeAt(t)]|0)+(Te[e.charCodeAt(t+1)]|0)+(Te[e.charCodeAt(t+2)]|0)+(Te[e.charCodeAt(t+3)]|0);return n===t}function De(e){return Ee(e,32)&&e!==`00000000000000000000000000000000`}function Oe(e){return Ee(e,16)&&e!==`0000000000000000`}function ke(e){return De(e.traceId)&&Oe(e.spanId)}function Ae(e){return new h(e)}var je=c.getInstance(),Me=class{startSpan(e,t,n=je.active()){if(t?.root)return new h;let r=n&&we(n);return Ne(r)&&ke(r)?new h(r):new h}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??je.active(),c=this.startSpan(e,i,s),l=xe(s,c);return je.with(l,o,void 0,c)}};function Ne(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}var Pe=new Me,Fe=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Pe}},Ie=new class{getTracer(e,t,n){return new Me}},Le=class{getTracer(e,t,n){return this.getDelegateTracer(e,t,n)??new Fe(this,e,t,n)}getDelegate(){return this._delegate??Ie}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){return this._delegate?.getTracer(e,t,n)}},Re;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(Re||={});var ze;(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(ze||={});var g;(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(g||={});var _=l.instance(),Be=new class{getMeter(e,t,n){return ce}},Ve=`metrics`,He=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalMeterProvider(e){return a(Ve,e,l.instance())}getMeterProvider(){return n(Ve)||Be}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){d(Ve,l.instance())}}.getInstance(),Ue=`trace`,v=class e{constructor(){this._proxyTracerProvider=new Le,this.wrapSpanContext=Ae,this.isSpanContextValid=ke,this.deleteSpan=Se,this.getSpan=ye,this.getActiveSpan=be,this.getSpanContext=we,this.setSpan=xe,this.setSpanContext=Ce}static getInstance(){return this._instance||=new e,this._instance}setGlobalTracerProvider(e){let t=a(Ue,this._proxyTracerProvider,l.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return n(Ue)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){d(Ue,l.instance()),this._proxyTracerProvider=new Le}}.getInstance(),We=class{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}},Ge=class extends Error{code;name=`OTLPExporterError`;data;constructor(e,t,n){super(e),this.data=n,this.code=t}};function Ke(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function qe(e){if(e!=null)return()=>e}function Je(e,t,n){return{timeoutMillis:Ke(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function Ye(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:`none`}}var Xe=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error(`Concurrency Limit reached`);this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}};function Ze(e){return new Xe(e.concurrencyLimit)}var Qe=`http.url`,$e=`http.user_agent`,et=Qe,tt=$e,nt=`error.type`,rt=`exception.message`,it=`exception.stacktrace`,at=`exception.type`,ot=`http.request.method`,st=`http.request.method_original`,ct=`http.response.status_code`,lt=`server.address`,ut=`server.port`,dt=`service.name`,ft=`service.version`,pt=`telemetry.sdk.language`,mt=`webjs`,ht=`telemetry.sdk.name`,gt=`telemetry.sdk.version`,_t=`url.full`,y;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(y||={});function vt(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function yt(){return{handleResponse(e){e==null||!vt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||_.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}var bt=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,n,r,i){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=i,this._diagLogger=_.createComponentLogger({namespace:`OTLPExportDelegate`})}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:y.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:y.FAILED,error:Error(`Nothing to send`)});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if(e.status===`success`){if(e.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn(`Export succeeded but could not deserialize response - is the response specification compliant?`,t,e.data)}t({code:y.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:y.FAILED,error:e.error});return}else e.status===`retryable`?t({code:y.FAILED,error:new Ge(`Export failed with retryable status`)}):t({code:y.FAILED,error:new Ge(`Export failed with unknown error`)})},e=>t({code:y.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug(`shutdown started`),await this.forceFlush(),this._transport.shutdown()}};function xt(e,t){return new bt(e.transport,e.serializer,yt(),e.promiseHandler,t.timeout)}function St(e,t,n){return xt({transport:n,serializer:t,promiseHandler:Ze(e)},{timeout:e.timeoutMillis})}var Ct=10**9;function wt(e){return e[0]*Ct+e[1]}function Tt(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Et(e){let t=new Uint8Array(e.length/2),n=0;for(let r=0;r<e.length;r+=2){let i=Tt(e.charCodeAt(r)),a=Tt(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function Dt(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Ot(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function kt(e){return Ot(Dt(e))}function At(e){return Dt(e).toString()}var jt=typeof BigInt<`u`?At:wt;function Mt(e){return e}function Nt(e){if(e!==void 0)return Et(e)}var Pt={encodeHrTime:kt,encodeSpanContext:Et,encodeOptionalSpanContext:Nt};function Ft(e){if(e===void 0)return Pt;let t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?kt:jt,encodeSpanContext:n?Mt:Et,encodeOptionalSpanContext:n?Mt:Nt}}function It(e){let t={attributes:b(e.attributes),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==``&&(t.schemaUrl=n),t}function Lt(e){return{name:e.name,version:e.version}}function b(e){return Object.keys(e).map(t=>Rt(t,e[t]))}function Rt(e,t){return{key:e,value:zt(t)}}function zt(e){let t=typeof e;return t===`string`?{stringValue:e}:t===`number`?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t===`boolean`?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(zt)}}:t===`object`&&e!=null?{kvlistValue:{values:Object.entries(e).map(([e,t])=>Rt(e,t))}}:{}}function Bt(e,t){let n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:b(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>Ht(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>Vt(e,t)),droppedLinksCount:e.droppedLinksCount}}function Vt(e,t){return{attributes:e.attributes?b(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function Ht(e,t){return{attributes:e.attributes?b(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Ut(e,t){return{resourceSpans:Gt(e,Ft(t))}}function Wt(e){let t=new Map;for(let n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));let r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||``}:${n.instrumentationScope.schemaUrl||``}`,i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}function Gt(e,t){let n=Wt(e),r=[],i=n.entries(),a=i.next();for(;!a.done;){let[e,n]=a.value,o=[],s=n.values(),c=s.next();for(;!c.done;){let e=c.value;if(e.length>0){let n=e.map(e=>Bt(e,t));o.push({scope:Lt(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=It(e),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}var Kt={serializeRequest:e=>{let t=Ut(e,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(e))}},qt=5,Jt=1e3,Yt=5e3,Xt=1.5,Zt=.2;function Qt(){return 2*Zt*Math.random()-Zt}var $t=class{_transport;constructor(e){this._transport=e}retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}async send(e,t){let n=Date.now()+t,r=await this._transport.send(e,t),i=qt,a=Jt;for(;r.status===`retryable`&&i>0;){i--;let t=Math.max(Math.min(a,Yt)+Qt(),0);a*=Xt;let o=r.retryInMillis??t,s=n-Date.now();if(o>s)return r;r=await this.retry(e,s,o)}return r}shutdown(){return this._transport.shutdown()}};function en(e){return new $t(e.transport)}function tn(e){return[429,502,503,504].includes(e)}function nn(e){if(e==null)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let n=new Date(e).getTime()-Date.now();return n>=0?n:0}var rn=class{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(n=>{let r=new XMLHttpRequest;r.timeout=t,r.open(`POST`,this._parameters.url);let i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{r.setRequestHeader(e,t)}),r.ontimeout=e=>{n({status:`failure`,error:Error(`XHR request timed out`)})},r.onreadystatechange=()=>{r.status>=200&&r.status<=299?(_.debug(`XHR success`),n({status:`success`})):r.status&&tn(r.status)?n({status:`retryable`,retryInMillis:nn(r.getResponseHeader(`Retry-After`))}):r.status!==0&&n({status:`failure`,error:Error(`XHR request failed with non-retryable status`)})},r.onabort=()=>{n({status:`failure`,error:Error(`XHR request aborted`)})},r.onerror=()=>{n({status:`failure`,error:Error(`XHR request errored`)})},r.send(e)})}shutdown(){}};function an(e){return new rn(e)}var on=class{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(_.debug(`SendBeacon success`),t({status:`success`})):t({status:`failure`,error:Error(`SendBeacon failed`)})})}shutdown(){}};function sn(e){return new on(e)}var cn=class{_parameters;constructor(e){this._parameters=e}async send(e,t){let n=new AbortController,r=setTimeout(()=>n.abort(),t);try{let t=!!globalThis.location,r=new URL(this._parameters.url),i=await fetch(r.href,{method:`POST`,headers:this._parameters.headers(),body:e,signal:n.signal,keepalive:t,mode:t?globalThis.location?.origin===r.origin?`same-origin`:`cors`:`no-cors`});return i.status>=200&&i.status<=299?(_.debug(`response success`),{status:`success`}):tn(i.status)?{status:`retryable`,retryInMillis:nn(i.headers.get(`Retry-After`))}:{status:`failure`,error:Error(`Fetch request failed with non-retryable status`)}}catch(e){return e?.name===`AbortError`?{status:`failure`,error:Error(`Fetch request timed out`,{cause:e})}:{status:`failure`,error:Error(`Fetch request errored`,{cause:e})}}finally{clearTimeout(r)}}shutdown(){}};function ln(e){return new cn(e)}function un(e,t){return St(e,t,en({transport:an(e)}))}function dn(e,t){return St(e,t,en({transport:ln(e)}))}function fn(e,t){return St(e,t,en({transport:sn({url:e.url,blobType:e.headers()[`Content-Type`]})}))}function pn(e){return()=>{let t={};return Object.entries(e?.()??{}).forEach(([e,n])=>{n===void 0?_.warn(`Header "${e}" has invalid value (${n}) and will be ignored`):t[e]=String(n)}),t}}function mn(e,t,n){let r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function hn(e){if(e!=null)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function gn(t){return async n=>{let{Agent:i}=await r(()=>import(`./__vite-browser-external-Dz2JgTKm.js`).then(t=>e(t.default)),__vite__mapDeps([0,1]),import.meta.url);return new i(t)}}function _n(e,t,n){return{...Je(e,t,n),headers:mn(pn(e.headers),t.headers,n.headers),url:hn(e.url)??t.url??n.url,agentFactory:e.agentFactory??t.agentFactory??n.agentFactory}}function vn(e,t){return{...Ye(),headers:()=>e,url:`http://localhost:4318/`+t,agentFactory:gn({keepAlive:!0})}}function yn(e,t,n){return _n({url:e.url,timeoutMillis:e.timeoutMillis,headers:qe(e.headers),concurrencyLimit:e.concurrencyLimit},{},vn(n,t))}function bn(e,t,n,r){return xn(e.headers)(yn(e,n,r),t)}function xn(e){return!e&&typeof navigator.sendBeacon==`function`?fn:globalThis.fetch===void 0?un:dn}var Sn=class extends We{constructor(e={}){super(bn(e,Kt,`v1/traces`,{"Content-Type":`application/json`}))}},Cn=class{emit(e){}},wn=new Cn,Tn=new class{getLogger(e,t,n){return new Cn}},En=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):wn}},Dn=class{getLogger(e,t,n){return this._getDelegateLogger(e,t,n)??new En(this,e,t,n)}_getDelegate(){return this._delegate??Tn}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}},On=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{},x=Symbol.for(`io.opentelemetry.js.api.logs`),S=On;function kn(e,t,n){return r=>r===e?t:n}var An=class e{constructor(){this._proxyLoggerProvider=new Dn}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return S[x]?this.getLoggerProvider():(S[x]=kn(1,e,Tn),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return S[x]?.call(S,1)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete S[x],this._proxyLoggerProvider=new Dn}}.getInstance();function jn(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function Mn(e){e.forEach(e=>e.disable())}function Nn(e){let t=e.tracerProvider||v.getTracerProvider(),n=e.meterProvider||He.getMeterProvider(),r=e.loggerProvider||An.getLoggerProvider(),i=e.instrumentations?.flat()??[];return jn(i,t,n,r),()=>{Mn(i)}}var C=console.error.bind(console);function w(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}var Pn=(e,t,n)=>{if(!e||!e[t]){C(`no original function `+String(t)+` to wrap`);return}if(!n){C(`no wrapper function`),C(Error().stack);return}let r=e[t];if(typeof r!=`function`||typeof n!=`function`){C(`original object and wrapper must be functions`);return}let i=n(r,t);return w(i,`__original`,r),w(i,`__unwrap`,()=>{e[t]===i&&w(e,t,r)}),w(i,`__wrapped`,!0),w(e,t,i),i},Fn=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{C(`must provide one or more modules to patch`),C(Error().stack);return}if(!(t&&Array.isArray(t))){C(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Pn(e,t,n)})})},In=(e,t)=>{if(!e||!e[t]){C(`no function to unwrap.`),C(Error().stack);return}let n=e[t];if(!n.__unwrap)C(`no original to unwrap to -- has `+String(t)+` already been unwrapped?`);else{n.__unwrap();return}},Ln=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{C(`must provide one or more modules to patch`),C(Error().stack);return}if(!(t&&Array.isArray(t))){C(`must provide one or more functions to unwrap on modules`);return}e.forEach(e=>{t.forEach(t=>{In(e,t)})})};function T(e){e&&e.logger&&(typeof e.logger==`function`?C=e.logger:C(`new logger isn't a function, not replacing`))}T.wrap=Pn,T.massWrap=Fn,T.unwrap=In,T.massUnwrap=Ln;var Rn=class{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=_.createComponentLogger({namespace:e}),this._tracer=v.getTracer(e,t),this._meter=He.getMeter(e,t),this._logger=An.getLogger(e,t),this._updateMetricInstruments()}_wrap=Pn;_unwrap=In;_massWrap=Fn;_massUnwrap=Ln;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}},zn=class extends Rn{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}};function E(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}function D(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}var O;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(O||={});function Bn(e,t){let n=O.OLD,r=t?.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let t of r??[])if(t.toLowerCase()===e+`/dup`){n=O.DUPLICATE;break}else t.toLowerCase()===e&&(n=O.STABLE);return n}var Vn=t(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function Hn(e){return e.setValue(Vn,!0)}function Un(e){return e.getValue(Vn)===!0}var Wn=`baggage`,Gn=4096;function Kn(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function qn(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function Jn(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,c;try{o=decodeURIComponent(i),c=decodeURIComponent(a)}catch{return}let l;return t!==-1&&t<e.length-1&&(l=s(e.substring(t+1))),{key:o,value:c,metadata:l}}var Yn=class{inject(e,t,n){let r=u.getBaggage(e);if(!r||Un(e))return;let i=Kn(qn(r).filter(e=>e.length<=Gn).slice(0,180));i.length>0&&n.set(t,Wn,i)}extract(e,t,n){let r=n.get(t,Wn),i=Array.isArray(r)?r.join(`,`):r;if(!i)return e;let a={};return i.length===0||(i.split(`,`).forEach(e=>{let t=Jn(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),a[t.key]=e}}),Object.entries(a).length===0)?e:u.setBaggage(e,u.createBaggage(a))}fields(){return[Wn]}};function k(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!Xn(n)){_.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!Zn(r)){_.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function Xn(e){return typeof e==`string`&&e!==``}function Zn(e){return e==null?!0:Array.isArray(e)?Qn(e):$n(typeof e)}function Qn(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if($n(e)){t=e;continue}return!1}return!1}}return!0}function $n(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}function er(){return e=>{_.error(tr(e))}}function tr(e){return typeof e==`string`?e:JSON.stringify(nr(e))}function nr(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var rr=er();function A(e){try{rr(e)}catch{}}var ir=`2.7.0`,ar=`process.runtime.name`,or={[ht]:`opentelemetry`,[ar]:`browser`,[pt]:mt,[gt]:ir},j=performance,sr=9,cr=10**6,lr=10**sr;function M(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*cr)]}function ur(e){return mr(M(j.timeOrigin),M(typeof e==`number`?e:j.now()))}function dr(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=lr),[n,r]}function fr(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function pr(e){return fr(e)||typeof e==`number`||e instanceof Date}function mr(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=lr&&(n[1]-=lr,n[0]+=1),n}var hr;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(hr||={});var gr=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields==`function`?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){_.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){_.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}},_r=`[_0-9a-z-*/]`,vr=`[a-z]${_r}{0,255}`,yr=`[a-z0-9]${_r}{0,240}@[a-z]${_r}{0,13}`,br=RegExp(`^(?:${vr}|${yr})$`),xr=/^[ -~]{0,255}[!-~]$/,Sr=/,|=/;function Cr(e){return br.test(e)}function wr(e){return xr.test(e)&&!Sr.test(e)}var Tr=32,Er=512,Dr=`,`,Or=`=`,kr=class e{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+Or+this.get(t)),e),[]).join(Dr)}_parse(e){e.length>Er||(this._internalState=e.split(Dr).reverse().reduce((e,t)=>{let n=t.trim(),r=n.indexOf(Or);if(r!==-1){let i=n.slice(0,r),a=n.slice(r+1,t.length);Cr(i)&&wr(a)&&e.set(i,a)}return e},new Map),this._internalState.size>Tr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Tr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}},N=`traceparent`,Ar=`tracestate`,jr=`00`,Mr=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function Nr(e){let t=Mr.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Pr=class{inject(e,t,n){let r=v.getSpanContext(e);if(!r||Un(e)||!ke(r))return;let i=`${jr}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||m.NONE).toString(16)}`;n.set(t,N,i),r.traceState&&n.set(t,Ar,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,N);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=Nr(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,Ar);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new kr(typeof e==`string`?e:void 0)}return v.setSpanContext(e,a)}fields(){return[N,Ar]}},Fr=`[object Object]`,Ir=`[object Null]`,Lr=`[object Undefined]`,Rr=Function.prototype.toString,zr=Rr.call(Object),Br=Object.getPrototypeOf,Vr=Object.prototype,Hr=Vr.hasOwnProperty,P=Symbol?Symbol.toStringTag:void 0,Ur=Vr.toString;function Wr(e){if(!Gr(e)||Kr(e)!==Fr)return!1;let t=Br(e);if(t===null)return!0;let n=Hr.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Rr.call(n)===zr}function Gr(e){return typeof e==`object`&&!!e}function Kr(e){return e==null?e===void 0?Lr:Ir:P&&P in Object(e)?qr(e):Jr(e)}function qr(e){let t=Hr.call(e,P),n=e[P],r=!1;try{e[P]=void 0,r=!0}catch{}let i=Ur.call(e);return r&&(t?e[P]=n:delete e[P]),i}function Jr(e){return Ur.call(e)}var Yr=20;function Xr(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=Qr(t,e.shift(),0,n);return t}function Zr(e){return F(e)?e.slice():e}function Qr(e,t,n=0,r){let i;if(!(n>Yr)){if(n++,L(e)||L(t)||ei(t))i=Zr(t);else if(F(e)){if(i=e.slice(),F(t))for(let e=0,n=t.length;e<n;e++)i.push(Zr(t[e]));else if(I(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=Zr(t[r]))}}}else if(I(e))if(I(t)){if(!ti(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(L(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if($r(e,s,r)||$r(t,s,r))delete i[s];else{if(I(a)&&I(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=Qr(i[s],c,n,r)}}}}else i=t;return i}}function $r(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function F(e){return Array.isArray(e)}function ei(e){return typeof e==`function`}function I(e){return!L(e)&&!F(e)&&!ei(e)&&typeof e==`object`}function L(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function ti(e,t){return!(!Wr(e)||!Wr(t))}var ni=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}},ri=class{_isCalled=!1;_deferred=new ni;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}},R;function ii(){if(R===void 0)try{let e=globalThis.process.argv0;R=e?`unknown_service:${e}`:`unknown_service`}catch{R=`unknown_service`}return R}var z=e=>typeof e==`object`&&!!e&&typeof e.then==`function`,ai=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=ci(t),r._asyncAttributesPending=t.filter(([e,t])=>z(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(z(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=ci(this._rawAttributes),this._schemaUrl=li(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,z(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&_.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(z(n)){_.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=ui(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}};function oi(e,t){return ai.FromAttributeList(Object.entries(e),t)}function si(){return oi({[dt]:ii(),[pt]:or[pt],[ht]:or[ht],[gt]:or[gt]})}function ci(e){return e.map(([e,t])=>z(t)?[e,t.catch(t=>{_.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function li(e){if(typeof e==`string`||e===void 0)return e;_.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function ui(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;_.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var di=`exception`,fi=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:g.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=j.now(),this._performanceOffset=t-(this._performanceStartTime+j.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return _.warn(`Invalid attribute key: ${e}`),this;if(!Zn(t))return _.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return _.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&_.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),pr(t)&&(pr(n)||(n=t),t=void 0);let i=k(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(a!==void 0&&c>=a){s++;continue}o[e]=this._truncateToSize(t),c++}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&_.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=k(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(n!==void 0&&o>=n){a++;continue}i[e]=this._truncateToSize(t),o++}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===g.UNSET||this.status.code===g.OK)return this;let t={code:e.code};return e.code===g.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&_.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){if(this._isSpanEnded()){_.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=dr(this.startTime,this.endTime),this._duration[0]<0&&(_.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&_.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=j.now())return ur(e+this._performanceOffset);if(typeof e==`number`)return M(e);if(e instanceof Date)return M(e.getTime());if(fr(e))return e;if(this._startTimeProvided)return M(Date.now());let t=j.now()-this._performanceStartTime;return mr(this.startTime,M(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[rt]=e:e&&(e.code?n[at]=e.code.toString():e.name&&(n[at]=e.name),e.message&&(n[rt]=e.message),e.stack&&(n[it]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(di,n,t):_.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);_.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(_.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}},B;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(B||={});var V=class{shouldSample(){return{decision:B.NOT_RECORD}}toString(){return`AlwaysOffSampler`}},H=class{shouldSample(){return{decision:B.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}},pi=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||=(A(Error(`ParentBasedSampler must have a root sampler configured`)),new H),this._remoteParentSampled=e.remoteParentSampled??new H,this._remoteParentNotSampled=e.remoteParentNotSampled??new V,this._localParentSampled=e.localParentSampled??new H,this._localParentNotSampled=e.localParentNotSampled??new V}shouldSample(e,t,n,r,i,a){let o=v.getSpanContext(e);return!o||!ke(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&m.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&m.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,a):this._localParentNotSampled.shouldSample(e,t,n,r,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}},mi=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:De(t)&&this._accumulate(t)<this._upperBound?B.RECORD_AND_SAMPLED:B.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=n*8,i=parseInt(e.slice(r,r+8),16);t=(t^i)>>>0}return t}},U;(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(U||={});var hi=1;function gi(){return{sampler:_i(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function _i(){let e=U.ParentBasedAlwaysOn;switch(e){case U.AlwaysOn:return new H;case U.AlwaysOff:return new V;case U.ParentBasedAlwaysOn:return new pi({root:new H});case U.ParentBasedAlwaysOff:return new pi({root:new V});case U.TraceIdRatio:return new mi(vi());case U.ParentBasedTraceIdRatio:return new pi({root:new mi(vi())});default:return _.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${U.ParentBasedAlwaysOn}".`),new pi({root:new H})}}function vi(){return _.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${hi}.`),hi}function yi(e){let t={sampler:_i()},n=gi(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function bi(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??1/0,Object.assign({},e,{spanLimits:t})}var xi=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,t){this._exporter=e,this._maxExportBatchSize=typeof t?.maxExportBatchSize==`number`?t.maxExportBatchSize:512,this._maxQueueSize=typeof t?.maxQueueSize==`number`?t.maxQueueSize:2048,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis==`number`?t.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis==`number`?t.exportTimeoutMillis:3e4,this._shutdownOnce=new ri(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&m.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(_.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);o.with(Hn(o.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,r=>{clearTimeout(n),r.code===hr.SUCCESS?e():t(r.error??Error(`BatchSpanProcessor: span export failed`))}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a??=[],a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{A(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,A(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},Si=class extends xi{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this.onInit(t)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<`u`&&(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush().catch(e=>{A(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{A(e)})},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}onShutdown(){typeof document<`u`&&(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}},Ci=16,wi=8,Ti=new Uint8Array(Ci),Ei=new Uint8Array(wi),Di=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function Oi(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function ki(e){let t=``;for(let n=0;n<e.length;n++)t+=Di[e[n]];return t}var Ai=class{generateTraceId(){return Oi(Ti),ki(Ti)}generateSpanId(){return Oi(Ei),ki(Ei)}},ji=`otel.span.parent.origin`,Mi=`otel.span.sampling_result`,Ni=`otel.sdk.span.live`,Pi=`otel.sdk.span.started`,Fi=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(Pi,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(Ni,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=Li(t);if(this.startedSpans.add(1,{[ji]:Ii(e),[Mi]:n}),t===B.NOT_RECORD)return()=>{};let r={[Mi]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}};function Ii(e){return e?e.isRemote?`remote`:`local`:`none`}function Li(e){switch(e){case B.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case B.RECORD:return`RECORD_ONLY`;case B.NOT_RECORD:return`DROP`}}var Ri=`2.7.0`,zi=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t,n,r){let i=yi(t);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new Ai,this._resource=n,this._spanProcessor=r,this.instrumentationScope=e,this._tracerMetrics=new Fi(i.meterProvider?i.meterProvider.getMeter(`@opentelemetry/sdk-trace`,Ri):ge())}startSpan(e,t={},n=o.active()){t.root&&(n=v.deleteSpan(n));let r=v.getSpan(n);if(Un(n))return _.debug(`Instrumentation suppressed, returning Noop Span`),v.wrapSpanContext(_e);let i=r?.spanContext(),a=this._idGenerator.generateSpanId(),s,c,l;!i||!v.isSpanContextValid(i)?c=this._idGenerator.generateTraceId():(c=i.traceId,l=i.traceState,s=i);let u=t.kind??ze.INTERNAL,d=(t.links??[]).map(e=>({context:e.context,attributes:k(e.attributes)})),f=k(t.attributes),p=this._sampler.shouldSample(n,c,e,u,f,d),ee=this._tracerMetrics.startSpan(i,p.decision);l=p.traceState??l;let te=p.decision===Re.RECORD_AND_SAMPLED?m.SAMPLED:m.NONE,ne={traceId:c,spanId:a,traceFlags:te,traceState:l};if(p.decision===Re.NOT_RECORD)return _.debug(`Recording is off, propagating context in a non-recording span`),v.wrapSpanContext(ne);let re=k(Object.assign(f,p.attributes));return new fi({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:ne,name:e,kind:u,links:d,parentSpanContext:s,attributes:re,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:ee})}startActiveSpan(e,t,n,r){let i,a,s;if(arguments.length<2)return;arguments.length===2?s=t:arguments.length===3?(i=t,s=n):(i=t,a=n,s=r);let c=a??o.active(),l=this.startSpan(e,i,c),u=v.setSpan(c,l);return o.with(u,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}},Bi=class{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{A(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}},W;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(W||={});var Vi=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){let t=Xr({},gi(),bi(e));this._resource=t.resource??si(),this._config=Object.assign({},t,{resource:this._resource});let n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new Bi(n)}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new zi({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(r)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=W.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==W.timeout&&(r=W.resolved,n(r))}).catch(e=>{clearTimeout(i),r=W.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==W.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}},Hi=class{_enabled=!1;_currentContext=i;_bindFunction(e=i,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return e===void 0&&(e=this.active()),typeof t==`function`?this._bindFunction(e,t):t}disable(){return this._currentContext=i,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=i,this)}with(e,t,n,...r){let a=this._currentContext;this._currentContext=e||i;try{return t.call(n,...r)}finally{this._currentContext=a}}};function Ui(e){if(e!==null){if(e===void 0){let e=new Hi;e.enable(),o.setGlobalContextManager(e);return}e.enable(),o.setGlobalContextManager(e)}}function Wi(e){if(e!==null){if(e===void 0){u.setGlobalPropagator(new gr({propagators:[new Pr,new Yn]}));return}u.setGlobalPropagator(e)}}var Gi=class extends Vi{constructor(e={}){super(e)}register(e={}){v.setGlobalTracerProvider(this),Wi(e.propagator),Ui(e.contextManager)}},G;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(G||={});var Ki=`http.response_content_length`,qi=`http.response_content_length_uncompressed`;function K(e,t){return t in e}function q(e,t,n,r=!0){if(K(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Ji(e,t,n=!1,r,i){if(r===void 0&&(r=t[G.START_TIME]!==0),n||(q(e,G.FETCH_START,t,r),q(e,G.DOMAIN_LOOKUP_START,t,r),q(e,G.DOMAIN_LOOKUP_END,t,r),q(e,G.CONNECT_START,t,r),q(e,G.SECURE_CONNECTION_START,t,r),q(e,G.CONNECT_END,t,r),q(e,G.REQUEST_START,t,r),q(e,G.RESPONSE_START,t,r),q(e,G.RESPONSE_END,t,r)),!i){let n=t[G.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(Ki,n);let r=t[G.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(qi,r)}}function Yi(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return`/`;let n=Zi(e,t);if(t&&n.indexOf(`@id`)>0)return n;let r=``;return e.parentNode&&(r+=Yi(e.parentNode,t)),r+=n,r}function Xi(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);return n=n.filter(n=>{let r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName}),n.length>=1?n.indexOf(e)+1:0}function Zi(e,t){let n=e.nodeType,r=Xi(e),i=``;if(n===Node.ELEMENT_NODE){let n=e.getAttribute(`id`);if(t&&n)return`//*[@id="${n}"]`;i=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)i=`text()`;else if(n===Node.COMMENT_NODE)i=`comment()`;else return``;return i&&r>1?`/${i}[${r}]`:`/${i}`}var Qi;(function(e){e.DOCUMENT_LOAD=`documentLoad`,e.DOCUMENT_FETCH=`documentFetch`,e.RESOURCE_FETCH=`resourceFetch`})(Qi||={});var $i=`0.49.0`,ea=`@opentelemetry/instrumentation-document-load`,ta;(function(e){e.FIRST_PAINT=`firstPaint`,e.FIRST_CONTENTFUL_PAINT=`firstContentfulPaint`})(ta||={});var na=()=>{let e={},t=j.getEntriesByType?.(`navigation`)[0];if(t)Object.values(G).forEach(n=>{if(K(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}});else{let t=j.timing;t&&Object.values(G).forEach(n=>{if(K(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}})}return e},ra={"first-paint":ta.FIRST_PAINT,"first-contentful-paint":ta.FIRST_CONTENTFUL_PAINT},ia=e=>{let t=j.getEntriesByType?.(`paint`);t&&t.forEach(({name:t,startTime:n})=>{K(ra,t)&&e.addEvent(ra[t],n)})},aa=class extends zn{component=`document-load`;version=`1`;moduleName=this.component;constructor(e={}){super(ea,$i,e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){let t=j.getEntriesByType?.(`resource`);t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){let e=Array.from(document.getElementsByTagName(`meta`)).find(e=>e.getAttribute(`name`)===N),t=na(),n=e&&e.content||``;o.with(u.extract(i,{traceparent:n}),()=>{let e=this._startSpan(Qi.DOCUMENT_LOAD,G.FETCH_START,t);e&&(o.with(v.setSpan(o.active(),e),()=>{let e=this._startSpan(Qi.DOCUMENT_FETCH,G.FETCH_START,t);e&&(e.setAttribute(et,location.href),o.with(v.setSpan(o.active(),e),()=>{Ji(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,G.RESPONSE_END,t)}))}),e.setAttribute(et,location.href),e.setAttribute(tt,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||(q(e,G.FETCH_START,t),q(e,G.UNLOAD_EVENT_START,t),q(e,G.UNLOAD_EVENT_END,t),q(e,G.DOM_INTERACTIVE,t),q(e,G.DOM_CONTENT_LOADED_EVENT_START,t),q(e,G.DOM_CONTENT_LOADED_EVENT_END,t),q(e,G.DOM_COMPLETE,t),q(e,G.LOAD_EVENT_START,t),q(e,G.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||ia(e),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,G.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&(K(n,t)?e.end(n[t]):e.end())}_initResourceSpan(e,t){let n=this._startSpan(Qi.RESOURCE_FETCH,G.FETCH_START,e,t);n&&(n.setAttribute(et,e.name),Ji(n,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(n,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(n,G.RESPONSE_END,e))}_startSpan(e,t,n,r){if(K(n,t)&&typeof n[t]==`number`)return this.tracer.startSpan(e,{startTime:n[t]},r?v.setSpan(o.active(),r):void 0)}_waitForPageLoad(){window.document.readyState===`complete`?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener(`load`,this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&E(()=>t(e),e=>{e&&this._diag.error(`addCustomAttributesOnSpan`,e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&E(()=>n(e,t),e=>{e&&this._diag.error(`addCustomAttributesOnResourceSpan`,e)},!0)}enable(){window.removeEventListener(`load`,this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener(`load`,this._onDocumentLoaded)}},oa=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{},sa=performance,ca=9,la=10**6,ua=10**ca;function J(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*la)]}function da(){let e=sa.timeOrigin;if(typeof e!=`number`){let t=sa;e=t.timing&&t.timing.fetchStart}return e}function fa(e){return ma(J(da()),J(typeof e==`number`?e:sa.now()))}function Y(e){if(pa(e))return e;if(typeof e==`number`)return e<da()?fa(e):J(e);if(e instanceof Date)return J(e.getTime());throw TypeError(`Invalid input type`)}function X(e){return e[0]*ua+e[1]}function pa(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function ma(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=ua&&(n[1]-=ua,n[0]+=1),n}function ha(e,t){return typeof t==`string`?e===t:!!e.match(t)}function ga(e,t){if(!t)return!1;for(let n of t)if(ha(e,n))return!0;return!1}var Z;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(Z||={});var _a=`http.response_content_length`,va=`http.response_content_length_uncompressed`,ya;function ba(){return ya||=document.createElement(`a`),ya}function xa(e,t){return t in e}function Q(e,t,n,r=!0){if(xa(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Sa(e,t,n=!1,r,i){if(r===void 0&&(r=t[Z.START_TIME]!==0),n||(Q(e,Z.FETCH_START,t,r),Q(e,Z.DOMAIN_LOOKUP_START,t,r),Q(e,Z.DOMAIN_LOOKUP_END,t,r),Q(e,Z.CONNECT_START,t,r),Q(e,Z.SECURE_CONNECTION_START,t,r),Q(e,Z.CONNECT_END,t,r),Q(e,Z.REQUEST_START,t,r),Q(e,Z.RESPONSE_START,t,r),Q(e,Z.RESPONSE_END,t,r)),!i){let n=t[Z.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(_a,n);let r=t[Z.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(va,r)}}function Ca(e){return e.slice().sort((e,t)=>{let n=e[Z.FETCH_START],r=t[Z.FETCH_START];return n>r?1:n<r?-1:0})}function wa(){return typeof location<`u`?location.origin:void 0}function Ta(e,t,n,r,i=new WeakSet,a){let o=Oa(e);e=o.toString();let s=Da(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=Ca(s);if(o.origin!==wa()&&c.length>1){let e=c[0],t=Ea(c,e[Z.RESPONSE_END],n),r=e[Z.RESPONSE_END];return t[Z.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}else return{mainRequest:s[0]}}function Ea(e,t,n){let r=X(n),i=X(Y(t)),a=e[1],o,s=e.length;for(let t=1;t<s;t++){let n=e[t],s=X(Y(n[Z.FETCH_START])),c=r-X(Y(n[Z.RESPONSE_END]));s>=i&&(!o||c<o)&&(o=c,a=n)}return a}function Da(e,t,n,r,i,a){let o=X(t),s=X(n),c=r.filter(t=>{let n=X(Y(t[Z.FETCH_START])),r=X(Y(t[Z.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||`xmlhttprequest`)&&t.name===e&&n>=o&&r<=s});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}function Oa(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=ba();return t.href=e,t}function ka(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),Oa(e).origin===wa()?!0:n.some(t=>ha(e,t))}var Aa;(function(e){e.COMPONENT=`component`,e.HTTP_STATUS_TEXT=`http.status_text`})(Aa||={});var ja=`http.host`,Ma=`http.method`,Na=`http.request.body.size`,Pa=`http.request_content_length_uncompressed`,Fa=`http.scheme`,Ia=`http.status_code`,La=`http.url`,Ra=`http.user_agent`,za=_.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-fetch/utils`});function Ba(...e){if(e[0]instanceof URL||typeof e[0]==`string`){let t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){let{body:e,length:n}=Va(t.body);return t.body=e,n}else return Promise.resolve(Ua(t.body))}else{let t=e[0];return t?.body?t.clone().text().then(e=>Ga(e)):Promise.resolve()}}function Va(e){if(!e.pipeThrough)return za.warn(`Platform has ReadableStream but not pipeThrough!`),{body:e,length:Promise.resolve(void 0)};let t=0,n,r=new Promise(e=>{n=e}),i=new TransformStream({start(){},async transform(e,n){let r=await e;t+=r.byteLength,n.enqueue(e)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Ha(e){return typeof Document<`u`&&e instanceof Document}function Ua(e){if(Ha(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return Ga(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Ka(e);if(e instanceof URLSearchParams)return Ga(e.toString());if(e.byteLength!==void 0)return e.byteLength;za.warn(`unknown body type`)}var Wa=new TextEncoder;function Ga(e){return Wa.encode(e).byteLength}function Ka(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function qa(e){let t=Xa(),n=e.toUpperCase();return n in t?n:`_OTHER`}var Ja={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},Ya;function Xa(){return Ya===void 0&&(Ya=Ja),Ya}var Za={"https:":`443`,"http:":`80`};function Qa(e){let t=Number(e.port||Za[e.protocol]);if(t&&!isNaN(t))return t}var $a=`0.204.0`,eo=300,to=typeof process==`object`&&process.release?.name===`node`,no=class extends zn{component=`fetch`;version=$a;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super(`@opentelemetry/instrumentation-fetch`,$a,e),this._semconvStability=Bn(`http`,e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan(`CORS Preflight`,{startTime:t[Z.FETCH_START]},v.setSpan(o.active(),e)),r=!(this._semconvStability&O.OLD);Sa(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[Z.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=Oa(t.url);if(this._semconvStability&O.OLD&&(e.setAttribute(Ia,t.status),t.statusText!=null&&e.setAttribute(Aa.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(ja,n.host),e.setAttribute(Fa,n.protocol.replace(`:`,``)),typeof navigator<`u`&&e.setAttribute(Ra,navigator.userAgent)),this._semconvStability&O.STABLE){e.setAttribute(ct,t.status),e.setAttribute(lt,n.hostname);let r=Qa(n);r&&e.setAttribute(ut,r)}}_addHeaders(e,t){if(!ka(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};u.inject(o.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}if(e instanceof Request)u.inject(o.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Headers)u.inject(o.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Map)u.inject(o.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else{let t={};u.inject(o.active(),t),e.headers=Object.assign({},t,e.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(ga(e,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let n=``,r={};if(this._semconvStability&O.OLD){let i=(t.method||`GET`).toUpperCase();n=`HTTP ${i}`,r[Aa.COMPONENT]=this.moduleName,r[Ma]=i,r[La]=e}if(this._semconvStability&O.STABLE){let i=t.method,a=qa(t.method||`GET`);n||=a,r[ot]=a,a!==i&&(r[st]=i),r[_t]=e}return this.tracer.startSpan(n,{kind:ze.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType(`resource`)}let i=Ta(t.spanUrl,t.startTime,n,r,this._usedResources,`fetch`);if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&O.OLD);Sa(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=J(Date.now()),i=fa();this._addFinalSpanAttributes(e,n),this._semconvStability&O.STABLE&&n.status>=400&&(e.setStatus({code:g.ERROR}),e.setAttribute(nt,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},eo)}_patchConstructor(){return e=>{let t=this;return function(...n){let r=this,i=Oa(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},s=t._createSpan(i,a);if(!s)return e.apply(this,n);let c=t._prepareSpanData(i);t.getConfig().measureRequestSize&&Ba(...n).then(e=>{e&&(t._semconvStability&O.OLD&&s.setAttribute(Pa,e),t._semconvStability&O.STABLE&&s.setAttribute(Na,e))}).catch(e=>{t._diag.warn(`getFetchBodyLength`,e)});function l(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,c,{status:n.status||0,statusText:n.message,url:i})}function u(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,c,n):t._endSpan(e,c,{status:n.status,statusText:n.statusText,url:i})}function d(e,t,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?u(e,n):i()},t=>{l(e,t)})};i()}else u(e,n)}finally{t(n)}}function f(e,t,n){try{l(e,n)}finally{t(n)}}return new Promise((n,c)=>o.with(v.setSpan(o.active(),s),()=>(t._addHeaders(a,i),t._callRequestHook(s,a),t._tasksCount++,e.apply(r,a instanceof Request?[a]:[i,a]).then(d.bind(r,s,n),f.bind(r,s,c)))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&E(()=>r(e,t,n),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&E(()=>n(e,t),e=>{e&&this._diag.error(`requestHook`,e)},!0)}_prepareSpanData(e){let t=fa(),n=[];if(typeof PerformanceObserver!=`function`)return{entries:n,startTime:t,spanUrl:e};let r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{t.initiatorType===`fetch`&&t.name===e&&n.push(t)})});return r.observe({entryTypes:[`resource`]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(to){this._diag.warn(`this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()`);return}D(fetch)&&(this._unwrap(oa,`fetch`),this._diag.debug(`removing previous patch for constructor`)),this._wrap(oa,`fetch`,this._patchConstructor())}disable(){to||(this._unwrap(oa,`fetch`),this._usedResources=new WeakSet)}},$;(function(e){e.EVENT_TYPE=`event_type`,e.TARGET_ELEMENT=`target_element`,e.TARGET_XPATH=`target_xpath`,e.HTTP_URL=`http.url`})($||={});var ro=`0.49.0`,io=`@opentelemetry/instrumentation-user-interaction`,ao=`OT_ZONE_CONTEXT`,oo=`Navigation:`,so=[`click`];function co(){return!1}var lo=class extends zn{version=ro;moduleName=`user-interaction`;_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super(io,ro,e),this._eventNames=new Set(e?.eventNames??so),this._shouldPreventSpanCreation=typeof e?.shouldPreventSpanCreation==`function`?e.shouldPreventSpanCreation:co}init(){}_checkForTimeout(e,t){let n=this._spansData.get(t);n&&(e.source===`setTimeout`?n.hrTimeLastTimeout=ur():e.source!==`Promise.then`&&e.source!==`setTimeout`&&(n.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,n){if(!(e instanceof HTMLElement)||!e.getAttribute||e.hasAttribute(`disabled`)||!this._allowEventName(t))return;let r=Yi(e,!0);try{let i=this.tracer.startSpan(t,{attributes:{[$.EVENT_TYPE]:t,[$.TARGET_ELEMENT]:e.tagName,[$.TARGET_XPATH]:r,[$.HTTP_URL]:window.location.href}},n?v.setSpan(o.active(),n):void 0);return this._shouldPreventSpanCreation(t,e,i)===!0?void 0:(this._spansData.set(i,{taskCount:0}),i)}catch(e){this._diag.error(`failed to start create new user interaction span`,e)}}_decrementTask(e){let t=this._spansData.get(e);t&&(t.taskCount--,t.taskCount===0&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){let t=e.get(ao);return t&&v.getSpan(t)}_incrementTask(e){let t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,n,r){let i=this._wrappedListeners.get(n);i||(i=new Map,this._wrappedListeners.set(n,i));let a=i.get(t);return a||(a=new Map,i.set(t,a)),a.has(e)?!1:(a.set(e,r),!0)}removePatchedListener(e,t,n){let r=this._wrappedListeners.get(n);if(!r)return;let i=r.get(t);if(!i)return;let a=i.get(e);return a&&(i.delete(e),i.size===0&&(r.delete(t),r.size===0&&this._wrappedListeners.delete(n))),a}_invokeListener(e,t,n){return typeof e==`function`?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){let e=this;return t=>function(n,r,i){if(!r)return t.call(this,n,r,i);let a=i&&typeof i==`object`&&i.once,s=function(...t){let i,s=t[0],c=s?.target;s&&(i=e._eventsSpanMap.get(s)),a&&e.removePatchedListener(this,n,r);let l=e._createSpan(c,n,i);return l?(s&&e._eventsSpanMap.set(s,l),o.with(v.setSpan(o.active(),l),()=>{let n=e._invokeListener(r,this,t);return l.end(),n})):e._invokeListener(r,this,t)};if(e.addPatchedListener(this,n,r,s))return t.call(this,n,s,i)}}_patchRemoveEventListener(){let e=this;return t=>function(n,r,i){let a=e.removePatchedListener(this,n,r);return a?t.call(this,n,a,i):t.call(this,n,r,i)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,`replaceState`,this._patchHistoryMethod()),this._wrap(history,`pushState`,this._patchHistoryMethod()),this._wrap(history,`back`,this._patchHistoryMethod()),this._wrap(history,`forward`,this._patchHistoryMethod()),this._wrap(history,`go`,this._patchHistoryMethod())}_patchHistoryMethod(){let e=this;return t=>function(...n){let r=`${location.pathname}${location.hash}${location.search}`,i=t.apply(this,n),a=`${location.pathname}${location.hash}${location.search}`;return r!==a&&e._updateInteractionName(a),i}}_unpatchHistoryApi(){D(history.replaceState)&&this._unwrap(history,`replaceState`),D(history.pushState)&&this._unwrap(history,`pushState`),D(history.back)&&this._unwrap(history,`back`),D(history.forward)&&this._unwrap(history,`forward`),D(history.go)&&this._unwrap(history,`go`)}_updateInteractionName(e){let t=v.getSpan(o.active());t&&typeof t.updateName==`function`&&t.updateName(`${oo} ${e}`)}_patchZoneCancelTask(){let e=this;return t=>function(n){let r=Zone.current,i=e._getCurrentSpan(r);return i&&e._shouldCountTask(n,r)&&e._decrementTask(i),t.call(this,n)}}_patchZoneScheduleTask(){let e=this;return t=>function(n){let r=Zone.current,i=e._getCurrentSpan(r);return i&&e._shouldCountTask(n,r)&&(e._incrementTask(i),e._checkForTimeout(n,i)),t.call(this,n)}}_patchZoneRunTask(){let e=this;return t=>function(n,r,i){let a=(Array.isArray(i)&&i[0]instanceof Event?i[0]:void 0)?.target,s,c=this;if(a){if(s=e._createSpan(a,n.eventName),s)return e._incrementTask(s),c.run(()=>{try{return o.with(v.setSpan(o.active(),s),()=>{let e=Zone.current;return n._zone=e,t.call(e,n,r,i)})}finally{e._decrementTask(s)}})}else s=e._getCurrentSpan(c);try{return t.call(c,n,r,i)}finally{s&&e._shouldCountTask(n,c)&&e._decrementTask(s)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;let n=this._getCurrentSpan(t);return!n||!this._spansData.get(n)?!1:e.type===`macroTask`||e.type===`microTask`}_tryToEndSpan(e,t){e&&this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}enable(){let e=this._getZoneWithPrototype();this._diag.debug(`applying patch to`,this.moduleName,this.version,`zone:`,!!e),e?(D(e.prototype.runTask)&&(this._unwrap(e.prototype,`runTask`),this._diag.debug(`removing previous patch from method runTask`)),D(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,`scheduleTask`),this._diag.debug(`removing previous patch from method scheduleTask`)),D(e.prototype.cancelTask)&&(this._unwrap(e.prototype,`cancelTask`),this._diag.debug(`removing previous patch from method cancelTask`)),this._zonePatched=!0,this._wrap(e.prototype,`runTask`,this._patchZoneRunTask()),this._wrap(e.prototype,`scheduleTask`,this._patchZoneScheduleTask()),this._wrap(e.prototype,`cancelTask`,this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(e=>{D(e.addEventListener)&&(this._unwrap(e,`addEventListener`),this._diag.debug(`removing previous patch from method addEventListener`)),D(e.removeEventListener)&&(this._unwrap(e,`removeEventListener`),this._diag.debug(`removing previous patch from method removeEventListener`)),this._wrap(e,`addEventListener`,this._patchAddEventListener()),this._wrap(e,`removeEventListener`,this._patchRemoveEventListener())})),this._patchHistoryApi()}disable(){let e=this._getZoneWithPrototype();this._diag.debug(`removing patch from`,this.moduleName,this.version,`zone:`,!!e),e&&this._zonePatched?(D(e.prototype.runTask)&&this._unwrap(e.prototype,`runTask`),D(e.prototype.scheduleTask)&&this._unwrap(e.prototype,`scheduleTask`),D(e.prototype.cancelTask)&&this._unwrap(e.prototype,`cancelTask`)):this._getPatchableEventTargets().forEach(e=>{D(e.addEventListener)&&this._unwrap(e,`addEventListener`),D(e.removeEventListener)&&this._unwrap(e,`removeEventListener`)}),this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}},uo=`deployment.environment.name`,fo=!1;function po(){return{BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1}?.VITE_OTEL_COLLECTOR_URL??`http://localhost:4318`}function mo(){if(fo)return;fo=!0;let e=null,t=!1;try{let n=po(),r={BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1};e=new Gi({resource:oi({[dt]:`open-knowledge-app`,[ft]:r?.VITE_APP_VERSION??`dev`,[uo]:r?.MODE??`dev`}),spanProcessors:[new Si(new Sn({url:`${n}/v1/traces`}),{maxExportBatchSize:50,scheduledDelayMillis:2e3})]}),e.register(),t=!0,Nn({instrumentations:[new aa,new lo({eventNames:[`click`,`submit`]}),new no({propagateTraceHeaderCorsUrls:[/^https?:\/\/localhost(:\d+)?\/api\//,/^https?:\/\/127\.0\.0\.1(:\d+)?\/api\//,/^\/api\//],clearTimingResources:!0})]}),console.info(`[otel] frontend telemetry initialized — OTLP/HTTP → ${n}/v1/traces`)}catch(n){console.warn(`[otel] frontend telemetry init failed — continuing without`,n),t&&e&&e.shutdown().catch(()=>{}),fo=!1}}export{mo as install};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./chunk-DECur_0Z.js";import{n as t,r as n,t as r}from"./compiler-runtime-Y11fyRVL.js";import{a as i,b as a,c as o,f as s,g as c,n as l,o as u,p as d,u as f,x as p,y as m}from"./button-BPXuMr5W.js";import{u as h}from"./PageListContext-B5SWnlyE.js";var g=p(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),_=p(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),v=p(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),y=p(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),b=e(t(),1),x=n();function S(e){let t=e+`CollectionProvider`,[n,r]=s(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=b.useRef(null),a=b.useRef(new Map).current;return(0,x.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let l=e+`CollectionSlot`,u=c(l),d=b.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,x.jsx)(u,{ref:m(t,a(l,n).collectionRef),children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,h=c(f),g=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=b.useRef(null),s=m(t,o),c=a(f,n);return b.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,x.jsx)(h,{[p]:``,ref:s,children:r})});g.displayName=f;function _(t){let n=a(e+`CollectionConsumer`,t);return b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:d,ItemSlot:g},_,r]}var C=b.createContext(void 0);function w(e){let t=b.useContext(C);return e||t||`ltr`}var T=`rovingFocusGroup.onEntryFocus`,ee={bubbles:!1,cancelable:!0},E=`RovingFocusGroup`,[D,O,k]=S(E),[A,j]=s(E,[k]),[te,M]=A(E),N=b.forwardRef((e,t)=>(0,x.jsx)(D.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(D.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(P,{...e,ref:t})})}));N.displayName=E;var P=b.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...g}=e,_=b.useRef(null),v=m(t,_),y=w(s),[S,C]=o({prop:c,defaultProp:l??null,onChange:u,caller:E}),[D,k]=b.useState(!1),A=i(p),j=O(n),M=b.useRef(!1),[N,P]=b.useState(0);return b.useEffect(()=>{let e=_.current;if(e)return e.addEventListener(T,A),()=>e.removeEventListener(T,A)},[A]),(0,x.jsx)(te,{scope:n,orientation:r,dir:y,loop:a,currentTabStopId:S,onItemFocus:b.useCallback(e=>C(e),[C]),onItemShiftTab:b.useCallback(()=>k(!0),[]),onFocusableItemAdd:b.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:b.useCallback(()=>P(e=>e-1),[]),children:(0,x.jsx)(d.div,{tabIndex:D||N===0?-1:0,"data-orientation":r,...g,ref:v,style:{outline:`none`,...e.style},onMouseDown:f(e.onMouseDown,()=>{M.current=!0}),onFocus:f(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(T,ee);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);L([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),h)}}M.current=!1}),onBlur:f(e.onBlur,()=>k(!1))})})}),F=`RovingFocusGroupItem`,I=b.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=u(),l=a||c,p=M(F,n),m=p.currentTabStopId===l,h=O(n),{onFocusableItemAdd:g,onFocusableItemRemove:_,currentTabStopId:v}=p;return b.useEffect(()=>{if(r)return g(),()=>_()},[r,g,_]),(0,x.jsx)(D.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,x.jsx)(d.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:f(e.onMouseDown,e=>{r?p.onItemFocus(l):e.preventDefault()}),onFocus:f(e.onFocus,()=>p.onItemFocus(l)),onKeyDown:f(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=ie(e,p.orientation,p.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?ae(n,r+1):n.slice(r+1)}setTimeout(()=>L(n))}}),children:typeof o==`function`?o({isCurrentTabStop:m,hasTabStop:v!=null}):o})})});I.displayName=F;var ne={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function re(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function ie(e,t,n){let r=re(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return ne[r]}function L(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ae(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var R=N,z=I,B=`Toggle`,V=b.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[s,c]=o({prop:n,onChange:i,defaultProp:r??!1,caller:B});return(0,x.jsx)(d.button,{type:`button`,"aria-pressed":s,"data-state":s?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:f(e.onClick,()=>{e.disabled||c(!s)})})});V.displayName=B;var H=`ToggleGroup`,[U,oe]=s(H,[j]),W=j(),G=b.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,x.jsx)(se,{...r,ref:t});if(n===`multiple`)return(0,x.jsx)(ce,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${H}\``)});G.displayName=H;var[K,q]=U(H),se=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[s,c]=o({prop:n,defaultProp:r??``,onChange:i,caller:H});return(0,x.jsx)(K,{scope:e.__scopeToggleGroup,type:`single`,value:b.useMemo(()=>s?[s]:[],[s]),onItemActivate:c,onItemDeactivate:b.useCallback(()=>c(``),[c]),children:(0,x.jsx)(J,{...a,ref:t})})}),ce=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[s,c]=o({prop:n,defaultProp:r??[],onChange:i,caller:H}),l=b.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=b.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,x.jsx)(K,{scope:e.__scopeToggleGroup,type:`multiple`,value:s,onItemActivate:l,onItemDeactivate:u,children:(0,x.jsx)(J,{...a,ref:t})})});G.displayName=H;var[le,ue]=U(H),J=b.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=W(n),u=w(o),f={role:`group`,dir:u,...c};return(0,x.jsx)(le,{scope:n,rovingFocus:i,disabled:r,children:i?(0,x.jsx)(R,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,x.jsx)(d.div,{...f,ref:t})}):(0,x.jsx)(d.div,{...f,ref:t})})}),Y=`ToggleGroupItem`,X=b.forwardRef((e,t)=>{let n=q(Y,e.__scopeToggleGroup),r=ue(Y,e.__scopeToggleGroup),i=W(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=b.useRef(null);return r.rovingFocus?(0,x.jsx)(z,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,x.jsx)(Z,{...s,ref:t})}):(0,x.jsx)(Z,{...s,ref:t})});X.displayName=Y;var Z=b.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=q(Y,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,x.jsx)(V,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),de=G,fe=X;function pe(e){switch(e.kind){case`doc`:return`doc`;case`folder`:case`folder-index`:return`folder`;case`missing`:return`missing`}}function me(e,t){let n=h(e,t);return{resolvedTarget:n,hashDocName:n.target,displayState:pe(n)}}var Q=r(),he=a(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`,segmented:`text-muted-foreground hover:bg-muted-foreground/10 data-[state=on]:bg-background data-[state=on]:shadow-sm data-[state=on]:text-foreground dark:data-[state=on]:bg-muted`},size:{default:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`}},defaultVariants:{variant:`default`,size:`default`}}),$=b.createContext({size:`default`,variant:`default`,spacing:0,orientation:`horizontal`});function ge(e){let t=(0,Q.c)(29),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,variant:c,size:a,spacing:o,orientation:s,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let u=o===void 0?0:o,d=s===void 0?`horizontal`:s,f;t[8]===u?f=t[9]:(f={"--gap":u},t[8]=u,t[9]=f);let p=f,m;t[10]===r?m=t[11]:(m=l(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch`,r),t[10]=r,t[11]=m);let h;t[12]!==d||t[13]!==a||t[14]!==u||t[15]!==c?(h={variant:c,size:a,spacing:u,orientation:d},t[12]=d,t[13]=a,t[14]=u,t[15]=c,t[16]=h):h=t[16];let g;t[17]!==n||t[18]!==h?(g=(0,x.jsx)($.Provider,{value:h,children:n}),t[17]=n,t[18]=h,t[19]=g):g=t[19];let _;return t[20]!==d||t[21]!==i||t[22]!==a||t[23]!==u||t[24]!==p||t[25]!==m||t[26]!==g||t[27]!==c?(_=(0,x.jsx)(de,{"data-slot":`toggle-group`,"data-variant":c,"data-size":a,"data-spacing":u,"data-orientation":d,style:p,className:m,...i,children:g}),t[20]=d,t[21]=i,t[22]=a,t[23]=u,t[24]=p,t[25]=m,t[26]=g,t[27]=c,t[28]=_):_=t[28],_}function _e(e){let t=(0,Q.c)(19),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,variant:a,size:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`default`:a,c=o===void 0?`default`:o,u=b.use($),d=u.variant||s,f=u.size||c,p=u.spacing,m;t[6]!==r||t[7]!==u.size||t[8]!==u.variant||t[9]!==c||t[10]!==s?(m=l(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t text-muted-foreground data-[state=on]:text-foreground`,he({variant:u.variant||s,size:u.size||c}),r),t[6]=r,t[7]=u.size,t[8]=u.variant,t[9]=c,t[10]=s,t[11]=m):m=t[11];let h;return t[12]!==n||t[13]!==u.spacing||t[14]!==i||t[15]!==d||t[16]!==f||t[17]!==m?(h=(0,x.jsx)(fe,{"data-slot":`toggle-group-item`,"data-variant":d,"data-size":f,"data-spacing":p,className:m,...i,children:n}),t[12]=n,t[13]=u.spacing,t[14]=i,t[15]=d,t[16]=f,t[17]=m,t[18]=h):h=t[18],h}export{R as a,S as c,_ as d,g as f,z as i,y as l,_e as n,j as o,me as r,w as s,ge as t,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./chunk-DECur_0Z.js";import{n as t,r as n,t as r}from"./compiler-runtime-Y11fyRVL.js";import{S as i,_ as a,a as o,c as s,f as c,i as l,l as u,n as d,o as f,p,r as m,s as h,u as g,y as _}from"./button-BPXuMr5W.js";import{$t as v,Gt as y,Jt as b,Kt as x,Qt as S,Ut as C,Xt as w,Zt as T,qt as E}from"./PageListContext-B5SWnlyE.js";var D=e(i(),1),O=e(t(),1),k=n(),A=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),j=`VisuallyHidden`,M=O.forwardRef((e,t)=>(0,k.jsx)(p.span,{...e,ref:t,style:{...A,...e.style}}));M.displayName=j;var N=M;function P(e){let[t,n]=O.useState(void 0);return u(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var F=typeof document<`u`?O.useLayoutEffect:function(){};function I(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!I(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!I(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function L(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function R(e,t){let n=L(e);return Math.round(t*n)/n}function z(e){let t=O.useRef(e);return F(()=>{t.current=e}),t}function B(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=O.useState(r);I(f,r)||p(r);let[m,h]=O.useState(null),[g,_]=O.useState(null),v=O.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),y=O.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),b=a||m,S=o||g,C=O.useRef(null),w=O.useRef(null),T=O.useRef(u),E=c!=null,k=z(c),A=z(i),j=z(l),M=O.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),x(C.current,w.current,e).then(e=>{let t={...e,isPositioned:j.current!==!1};N.current&&!I(T.current,t)&&(T.current=t,D.flushSync(()=>{d(t)}))})},[f,t,n,A,j]);F(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let N=O.useRef(!1);F(()=>(N.current=!0,()=>{N.current=!1}),[]),F(()=>{if(b&&(C.current=b),S&&(w.current=S),b&&S){if(k.current)return k.current(b,S,M);M()}},[b,S,M,k,E]);let P=O.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:y}),[v,y]),B=O.useMemo(()=>({reference:b,floating:S}),[b,S]),V=O.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=R(B.floating,u.x),r=R(B.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...L(B.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,B.floating,u.x,u.y]);return O.useMemo(()=>({...u,update:M,refs:P,elements:B,floatingStyles:V}),[u,M,P,B,V])}var V=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:C({element:r.current,padding:i}).fn(n):r?C({element:r,padding:i}).fn(n):{}}}},ee=(e,t)=>{let n=T(e);return{name:n.name,fn:n.fn,options:[e,t]}},te=(e,t)=>{let n=S(e);return{name:n.name,fn:n.fn,options:[e,t]}},ne=(e,t)=>({fn:w(e).fn,options:[e,t]}),re=(e,t)=>{let n=E(e);return{name:n.name,fn:n.fn,options:[e,t]}},ie=(e,t)=>{let n=v(e);return{name:n.name,fn:n.fn,options:[e,t]}},ae=(e,t)=>{let n=b(e);return{name:n.name,fn:n.fn,options:[e,t]}},oe=(e,t)=>{let n=V(e);return{name:n.name,fn:n.fn,options:[e,t]}},H=`Arrow`,U=O.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,k.jsx)(p.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,k.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});U.displayName=H;var W=U,G=`Popper`,[K,q]=c(G),[se,ce]=K(G),le=e=>{let{__scopePopper:t,children:n}=e,[r,i]=O.useState(null);return(0,k.jsx)(se,{scope:t,anchor:r,onAnchorChange:i,children:n})};le.displayName=G;var ue=`PopperAnchor`,de=O.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=ce(ue,n),o=O.useRef(null),s=_(t,o),c=O.useRef(null);return O.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,k.jsx)(p.div,{...i,ref:s})});de.displayName=ue;var fe=`PopperContent`,[pe,me]=K(fe),he=O.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m=`partial`,hideWhenDetached:h=!1,updatePositionStrategy:g=`optimized`,onPlaced:v,...b}=e,x=ce(fe,n),[S,C]=O.useState(null),w=_(t,e=>C(e)),[T,E]=O.useState(null),D=P(T),A=D?.width??0,j=D?.height??0,M=r+(a===`center`?``:`-`+a),N=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(d)?d:[d],I=F.length>0,L={padding:N,boundary:F.filter(ye),altBoundary:I},{refs:R,floatingStyles:z,placement:V,isPositioned:H,middlewareData:U}=B({strategy:`fixed`,placement:M,whileElementsMounted:(...e)=>y(...e,{animationFrame:g===`always`}),elements:{reference:x.anchor},middleware:[ee({mainAxis:i+j,alignmentAxis:s}),l&&te({mainAxis:!0,crossAxis:!1,limiter:m===`partial`?ne():void 0,...L}),l&&re({...L}),ie({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),T&&oe({element:T,padding:c}),be({arrowWidth:A,arrowHeight:j}),h&&ae({strategy:`referenceHidden`,...L})]}),[W,G]=xe(V),K=o(v);u(()=>{H&&K?.()},[H,K]);let q=U.arrow?.x,se=U.arrow?.y,le=U.arrow?.centerOffset!==0,[ue,de]=O.useState();return u(()=>{S&&de(window.getComputedStyle(S).zIndex)},[S]),(0,k.jsx)(`div`,{ref:R.setFloating,"data-radix-popper-content-wrapper":``,style:{...z,transform:H?z.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(` `),...U.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,k.jsx)(pe,{scope:n,placedSide:W,onArrowChange:E,arrowX:q,arrowY:se,shouldHideArrow:le,children:(0,k.jsx)(p.div,{"data-side":W,"data-align":G,...b,ref:w,style:{...b.style,animation:H?void 0:`none`}})})})});he.displayName=fe;var ge=`PopperArrow`,_e={top:`bottom`,right:`left`,bottom:`top`,left:`right`},ve=O.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=me(ge,n),a=_e[i.placedSide];return(0,k.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,k.jsx)(W,{...r,ref:t,style:{...r.style,display:`block`}})})});ve.displayName=ge;function ye(e){return e!==null}var be=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=xe(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function xe(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Se=le,Ce=de,we=he,Te=ve,[J,Ee]=c(`Tooltip`,[q]),Y=q(),De=`TooltipProvider`,Oe=700,ke=`tooltip.open`,[Ae,je]=J(De),Me=e=>{let{__scopeTooltip:t,delayDuration:n=Oe,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=O.useRef(!0),s=O.useRef(!1),c=O.useRef(0);return O.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,k.jsx)(Ae,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:O.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:O.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:O.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Me.displayName=De;var X=`Tooltip`,[Ne,Z]=J(X),Pe=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:c}=e,l=je(X,e.__scopeTooltip),u=Y(t),[d,p]=O.useState(null),m=f(),h=O.useRef(0),g=o??l.disableHoverableContent,_=c??l.delayDuration,v=O.useRef(!1),[y,b]=s({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(ke))):l.onClose(),a?.(e)},caller:X}),x=O.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=O.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=O.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=O.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);return O.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,k.jsx)(Se,{...u,children:(0,k.jsx)(Ne,{scope:t,contentId:m,open:y,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:O.useCallback(()=>{l.isOpenDelayedRef.current?w():S()},[l.isOpenDelayedRef,w,S]),onTriggerLeave:O.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})};Pe.displayName=X;var Fe=`TooltipTrigger`,Ie=O.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Z(Fe,n),a=je(Fe,n),o=Y(n),s=_(t,O.useRef(null),i.onTriggerChange),c=O.useRef(!1),l=O.useRef(!1),u=O.useCallback(()=>c.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,k.jsx)(Ce,{asChild:!0,...o,children:(0,k.jsx)(p.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:g(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:g(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:g(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:g(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:g(e.onBlur,i.onClose),onClick:g(e.onClick,i.onClose)})})});Ie.displayName=Fe;var Le=`TooltipPortal`,[Re,ze]=J(Le,{forceMount:void 0}),Be=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Z(Le,t);return(0,k.jsx)(Re,{scope:t,forceMount:n,children:(0,k.jsx)(h,{present:n||a.open,children:(0,k.jsx)(m,{asChild:!0,container:i,children:r})})})};Be.displayName=Le;var Q=`TooltipContent`,Ve=O.forwardRef((e,t)=>{let n=ze(Q,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Z(Q,e.__scopeTooltip);return(0,k.jsx)(h,{present:r||o.open,children:o.disableHoverableContent?(0,k.jsx)(Ke,{side:i,...a,ref:t}):(0,k.jsx)(He,{side:i,...a,ref:t})})}),He=O.forwardRef((e,t)=>{let n=Z(Q,e.__scopeTooltip),r=je(Q,e.__scopeTooltip),i=O.useRef(null),a=_(t,i),[o,s]=O.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=O.useCallback(()=>{s(null),d(!1)},[d]),p=O.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Xe(r,Ye(r,n.getBoundingClientRect())),a=Ze(t.getBoundingClientRect());s($e([...i,...a])),d(!0)},[d]);return O.useEffect(()=>()=>f(),[f]),O.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),O.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Qe(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,k.jsx)(Ke,{...e,ref:a})}),[Ue,We]=J(X,{isInside:!1}),Ge=a(`TooltipContent`),Ke=O.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Z(Q,n),u=Y(n),{onClose:d}=c;return O.useEffect(()=>(document.addEventListener(ke,d),()=>document.removeEventListener(ke,d)),[d]),O.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,d]),(0,k.jsx)(l,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,k.jsxs)(we,{"data-state":c.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,k.jsx)(Ge,{children:r}),(0,k.jsx)(Ue,{scope:n,isInside:!0,children:(0,k.jsx)(N,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Ve.displayName=Q;var qe=`TooltipArrow`,Je=O.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Y(n);return We(qe,n).isInside?null:(0,k.jsx)(Te,{...i,...r,ref:t})});Je.displayName=qe;function Ye(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Xe(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Ze(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Qe(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function $e(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),et(t)}function et(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tt=Me,nt=Pe,rt=Ie,it=Be,at=Ve,ot=Je,$=r();function st(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,k.jsx)(tt,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function ct(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,k.jsx)(nt,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function lt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,k.jsx)(rt,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function ut(e){let t=(0,$.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?0:a,s;t[5]===r?s=t[6]:(s=d(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,k.jsx)(ot,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,k.jsx)(it,{children:(0,k.jsxs)(at,{"data-slot":`tooltip-content`,sideOffset:o,className:s,...i,children:[n,c]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}export{Ce as a,Se as c,lt as i,q as l,ut as n,Te as o,st as r,we as s,ct as t,P as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
for(var e={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},t={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},n=typeof navigator<`u`&&/Mac/.test(navigator.platform),r=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),i=0;i<10;i++)e[48+i]=e[96+i]=String(i);for(var i=1;i<=24;i++)e[i+111]=`F`+i;for(var i=65;i<=90;i++)e[i]=String.fromCharCode(i+32),t[i]=String.fromCharCode(i);for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a]);function o(i){var a=!(n&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||r&&i.shiftKey&&i.key&&i.key.length==1||i.key==`Unidentified`)&&i.key||(i.shiftKey?t:e)[i.keyCode]||i.key||`Unidentified`;return a==`Esc`&&(a=`Escape`),a==`Del`&&(a=`Delete`),a==`Left`&&(a=`ArrowLeft`),a==`Up`&&(a=`ArrowUp`),a==`Right`&&(a=`ArrowRight`),a==`Down`&&(a=`ArrowDown`),a}export{o as n,t as r,e as t};
|
package/dist/public/favicon.svg
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="78" height="80" viewBox="0 0 78 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_d_9_13)">
|
|
3
|
+
<path d="M66.8902 16.1017C58.2694 3.86669 46.1739 -0.690239 29.9182 2.17749C21.3995 3.67813 13.4602 9.555 8.67934 17.9009C3.93974 26.1701 2.98514 35.6533 6.05714 43.9166C9.31574 52.6868 16.7168 58.4752 24.2299 63.4231C25.7973 64.4562 26.1351 65.7172 26.3551 68.9896C26.5221 71.4625 26.799 75.6011 30.6842 77.7204C31.8176 78.3372 33.0648 78.6515 34.3946 78.6515C37.0796 78.6515 39.4033 77.3649 40.5189 76.7482C47.1049 73.1046 68.8878 59.7147 72.6453 40.4027C74.3444 31.6679 70.9797 21.9019 66.8922 16.1017H66.8902Z" fill="white"/>
|
|
4
|
+
<path d="M37.4214 71.154C28.7888 75.929 36.787 64.0397 27.7458 58.0843C21.6372 54.0616 14.788 49.0568 12.0499 41.6911C6.74463 27.4192 17.5438 10.8473 31.028 8.47262C45.1977 5.97613 54.6946 9.8947 61.6635 19.7844C65.2089 24.8167 67.6013 32.8365 66.3658 39.1828C63.6906 52.9341 49.073 64.7075 37.4214 71.154Z" fill="#69A3FF"/>
|
|
5
|
+
<path d="M52.7244 29.2638C53.4665 28.5217 54.6697 28.5217 55.4119 29.2638V29.2638C56.154 30.0059 56.154 31.2091 55.4119 31.9513L49.2589 38.1042L46.5715 35.4167L52.7244 29.2638Z" fill="#D5E5FF"/>
|
|
6
|
+
<path d="M55.4119 38.8821C56.154 39.6242 56.154 40.8274 55.4119 41.5696V41.5696C54.6698 42.3117 53.4665 42.3117 52.7244 41.5696L46.5715 35.4166L49.259 32.7292L55.4119 38.8821Z" fill="#D5E5FF"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<filter id="filter0_d_9_13" x="-9.53674e-07" y="-0.0799994" width="77.3817" height="85.8743" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
10
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
11
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
12
|
+
<feOffset dy="2.85714"/>
|
|
13
|
+
<feGaussianBlur stdDeviation="2.14286"/>
|
|
14
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
15
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>
|
|
16
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9_13"/>
|
|
17
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9_13" result="shape"/>
|
|
18
|
+
</filter>
|
|
19
|
+
</defs>
|
|
5
20
|
</svg>
|
package/dist/public/index.html
CHANGED
|
@@ -5,11 +5,39 @@
|
|
|
5
5
|
<meta name="color-scheme" content="light dark" />
|
|
6
6
|
<meta charset="UTF-8" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<link rel="icon" type="image/svg+xml" href="
|
|
8
|
+
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
9
9
|
<title>Open Knowledge</title>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<!--
|
|
11
|
+
Editor-mode FOUC prevention. Reads the persisted mode synchronously
|
|
12
|
+
before React mounts so the first painted frame shows the user's
|
|
13
|
+
preferred editor (avoids flashing WYSIWYG before switching to Source).
|
|
14
|
+
Paired consumer: `src/editor/use-editor-mode.ts` (hook reads
|
|
15
|
+
`window.__OK_EDITOR_MODE__` once in its useState initializer).
|
|
16
|
+
Spec: specs/2026-04-21-editor-mode-persistence/SPEC.md §7.2.
|
|
17
|
+
Script body is on a single line with no inner newlines — biome's HTML
|
|
18
|
+
formatter reindents inline-script content on every pass (+4 spaces/run),
|
|
19
|
+
producing an infinite deny-loop at pre-commit. No-inner-newline form has
|
|
20
|
+
nothing for the formatter to reindent.
|
|
21
|
+
-->
|
|
22
|
+
<script>(() => { let mode = 'wysiwyg'; try { const raw = localStorage.getItem('ok-editor-mode-v1'); if (raw === 'wysiwyg' || raw === 'source') mode = raw; } catch {} window.__OK_EDITOR_MODE__ = mode; })();</script>
|
|
23
|
+
<script type="module" crossorigin src="./assets/index-CwFTGDhe.js"></script>
|
|
24
|
+
<link rel="modulepreload" crossorigin href="./assets/chunk-DECur_0Z.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="./assets/propagation-api-Bugyj7xy.js">
|
|
26
|
+
<link rel="modulepreload" crossorigin href="./assets/w3c-keyname-CSlwavrd.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-CgLbXgrr.js">
|
|
28
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-D2wwoXzm.js">
|
|
29
|
+
<link rel="modulepreload" crossorigin href="./assets/compiler-runtime-Y11fyRVL.js">
|
|
30
|
+
<link rel="modulepreload" crossorigin href="./assets/PageListContext-B5SWnlyE.js">
|
|
31
|
+
<link rel="modulepreload" crossorigin href="./assets/button-BPXuMr5W.js">
|
|
32
|
+
<link rel="modulepreload" crossorigin href="./assets/dialog-CtSN0d2b.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-C1msvcHp.js">
|
|
34
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-GlH2KPqY.js">
|
|
35
|
+
<link rel="modulepreload" crossorigin href="./assets/panel-BCRdtBla.js">
|
|
36
|
+
<link rel="modulepreload" crossorigin href="./assets/clipboard-DAcKCHl1.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="./assets/tooltip-D0MnQ7ZX.js">
|
|
38
|
+
<link rel="modulepreload" crossorigin href="./assets/toggle-group-LDOO6zaV.js">
|
|
39
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-presence-BXsx4eTl.js">
|
|
40
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DjR45Lon.css">
|
|
13
41
|
</head>
|
|
14
42
|
|
|
15
43
|
<body class="antialiased">
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-A4HU7SVR-hefV_YmW.mjs";export{e as pwdCommand};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import"./chunk-R6VWJ2ZL-B0CcMPyK.mjs";import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{r}from"./chunk-OJDRYQWQ-BV5MVRVg.mjs";import{n as i}from"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{n as a,t as o}from"./chunk-3THT3N7L-klp8GP84.mjs";import{t as s}from"./chunk-44UOCSGV-BUBpWxXm.mjs";import{r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as u,t as d}from"./chunk-I57KEIP3-B1DoH8rp.mjs";import{fileURLToPath as f}from"node:url";import{Worker as p}from"node:worker_threads";import{randomBytes as m}from"node:crypto";var h=1e4,g=6e4,_={name:`python3`,summary:`Execute Python code via CPython Emscripten`,usage:`python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]`,description:[`Execute Python code using CPython compiled to WebAssembly via Emscripten.`,``,`This command runs Python in an isolated environment with access to`,`the virtual filesystem. Standard library modules are available.`],options:[`-c CODE Execute CODE as Python script`,`-m MODULE Run library module as a script`,`--version Show Python version`,`--help Show this help`],examples:[`python3 -c "print(1 + 2)"`,`python3 -c "import sys; print(sys.version)"`,`python3 script.py`,`python3 script.py arg1 arg2`,`echo 'print("hello")' | python3`],notes:[`CPython runs in WebAssembly, so execution may be slower than native Python.`,`Standard library modules are available (no pip install).`,`Maximum execution time is 30 seconds by default.`]};function v(e){let t={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(e.length===0)return t;let n=e.findIndex(e=>!e.startsWith(`-`)||e===`-`||e===`--`);for(let r=0;r<(n===-1?e.length:n);r++){let n=e[r];if(n===`-c`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'c'
|
|
2
|
+
`,exitCode:2}:(t.code=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`-m`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'm'
|
|
3
|
+
`,exitCode:2}:(t.module=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`--version`||n===`-V`)return t.showVersion=!0,t;if(n.startsWith(`-`)&&n!==`-`)return{stdout:``,stderr:`python3: unrecognized option '${n}'
|
|
4
|
+
`,exitCode:2}}if(n!==-1){let r=e[n];r===`--`?n+1<e.length&&(t.scriptFile=e[n+1],t.scriptArgs=e.slice(n+2)):(t.scriptFile=r,t.scriptArgs=e.slice(n+1))}return t}var y=new WeakMap;function b(e){let t=y.get(e);return t||(t={executionQueue:[],isExecuting:!1},y.set(e,t)),t}var x=f(new URL(`./worker.js`,import.meta.url));function S(){return m(16).toString(`hex`)}function C(e,t){if(!e||typeof e!=`object`)return{success:!1,error:`Malformed worker response`};let n=e;return typeof n.protocolToken!=`string`||n.protocolToken!==t?{success:!1,error:`Malformed worker response: invalid protocol token`}:n.type===`security-violation`?{success:!1,error:`Security violation: ${typeof n.violation?.type==`string`?n.violation.type:`unknown`}`}:typeof n.success==`boolean`?n.success?{success:!0}:{success:!1,error:typeof n.error==`string`&&n.error.length>0?n.error:`Worker execution failed`}:{success:!1,error:`Malformed worker response: missing success flag`}}function w(t){if(t.isExecuting||t.executionQueue.length===0)return;for(;t.executionQueue.length>0&&t.executionQueue[0].canceled;)t.executionQueue.shift();if(t.executionQueue.length===0)return;let n=t.executionQueue.shift();if(!n)return;t.isExecuting=!0;let r;try{r=e.runTrusted(()=>new p(x,{workerData:n.input}))}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t);return}n.workerRef&&(n.workerRef.current=r);let a=i(n.requireDefenseContext,`python3`,`worker message callback`,e=>{n.resolve(C(e,n.input.protocolToken)),t.isExecuting=!1,r.terminate(),w(t)}),c=i(n.requireDefenseContext,`python3`,`worker error callback`,e=>{let r=o(s(e));n.resolve({success:!1,error:r}),t.isExecuting=!1,w(t)}),l=i(n.requireDefenseContext,`python3`,`worker exit callback`,()=>{t.isExecuting&&(n.resolve({success:!1,error:`Worker exited unexpectedly`}),t.isExecuting=!1,w(t))});r.on(`message`,e=>{try{a(e)}catch(e){let i=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(i)}),t.isExecuting=!1,r.terminate(),w(t)}}),r.on(`error`,e=>{try{c(e)}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}}),r.on(`exit`,()=>{try{l()}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}})}async function T(e,a,c,l=[]){let f=u(),p=new d(f,a.fs,a.cwd,`python3`,a.fetch,a.limits?.maxOutputSize??0),m=a.limits?.maxPythonTimeoutMs??h,_=a.fetch?Math.max(m,g):m,v=b(a.fs),y={protocolToken:S(),sharedBuffer:f,pythonCode:e,cwd:a.cwd,env:r(a.env),args:l,scriptPath:c,timeoutMs:_},x={current:null},C=new Promise(e=>{let r={input:y,resolve:()=>{},workerRef:x,requireDefenseContext:a.requireDefenseContext},s=i(a.requireDefenseContext,`python3`,`worker timeout callback`,()=>{x.current?x.current.terminate():r.canceled=!0,e({success:!1,error:`Execution timeout: exceeded ${_}ms limit`})}),c=n(()=>{try{s()}catch(t){e({success:!1,error:o(t instanceof Error?t.message:String(t))})}},_);r.resolve=n=>{t(c),e(n)},v.executionQueue.push(r),w(v)}),[T,E]=await Promise.all([p.run(_).catch(e=>({stdout:``,stderr:`python3: bridge error: ${o(s(e))}
|
|
5
|
+
`,exitCode:1})),C.catch(e=>({success:!1,error:o(s(e))}))]);if(!E.success&&E.error){let e=o(E.error);return{stdout:T.stdout,stderr:`${T.stderr}python3: ${e}
|
|
6
|
+
`,exitCode:T.exitCode||1}}return T}var E={name:`python3`,async execute(e,t){if(l(e))return c(_);let n=v(e);if(`exitCode`in n)return n;if(n.showVersion)return{stdout:`Python 3.13.2 (Emscripten)
|
|
7
|
+
`,stderr:``,exitCode:0};let r,i;if(n.code!==null)r=n.code,i=`-c`;else if(n.module!==null){if(!/^[a-zA-Z_][a-zA-Z0-9_.]*$/.test(n.module))return{stdout:``,stderr:`python3: No module named '${n.module.slice(0,200)}'
|
|
8
|
+
`,exitCode:1};r=`import runpy; runpy.run_module('${n.module}', run_name='__main__')`,i=n.module}else if(n.scriptFile!==null){let e=t.fs.resolvePath(t.cwd,n.scriptFile);if(!await t.fs.exists(e))return{stdout:``,stderr:`python3: can't open file '${n.scriptFile}': [Errno 2] No such file or directory
|
|
9
|
+
`,exitCode:2};try{r=await t.fs.readFile(e),i=n.scriptFile}catch(e){let t=a(e.message);return{stdout:``,stderr:`python3: can't open file '${n.scriptFile}': ${t}
|
|
10
|
+
`,exitCode:2}}}else if(t.stdin.trim())r=t.stdin,i=`<stdin>`;else return{stdout:``,stderr:`python3: no input provided (use -c CODE, -m MODULE, or provide a script file)
|
|
11
|
+
`,exitCode:2};return T(r,t,i,n.scriptArgs)}},D={name:`python`,async execute(e,t){return E.execute(e,t)}};export{E as python3Command,D as pythonCommand};
|
|
12
|
+
//# sourceMappingURL=python3-AUFTPCU6-MeZyx8_A.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-HJWBQKYG-UZig4wUt.mjs";export{e as readlinkCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-QCDB2VPH-D1RuXtOm.mjs";export{e as rev};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-VLGZJRPG-D4NVKJYL.mjs";import{t as e}from"./chunk-NYQYO467-Degkom4D.mjs";export{e as rgCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-MIZPJHVH-z-geAni9.mjs";export{e as rmCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-OCS6LSEM-BHslttnj.mjs";export{e as rmdirCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{t as e}from"./chunk-OL3S66CO-Bmgu4tW4.mjs";export{e as sedCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-A7A2DBEE-PLfkXLI4.mjs";export{e as seqCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs";import{dirname as t,resolve as n}from"node:path";import{closeSync as r,existsSync as i,mkdirSync as a,openSync as o,readFileSync as s,unlinkSync as c,writeFileSync as l,writeSync as u}from"node:fs";import{hostname as d}from"node:os";import{fileURLToPath as f}from"node:url";function p(e){try{return process.kill(e,0),!0}catch(e){return!!(e&&typeof e==`object`&&`code`in e&&e.code===`EPERM`)}}function m(){try{let e=n(t(f(import.meta.url)),`..`,`package.json`),r=JSON.parse(s(e,`utf-8`));if(typeof r.version==`string`&&r.version.length>0)return r.version}catch{}return`0.0.0-unknown`}const h=m();var g=class extends Error{existing;lockPath;lockName;constructor(e,t,n){super(`Open Knowledge ${n} already running on port ${e.port} (pid ${e.pid}, started ${e.startedAt}). Stop it first or use a different directory. Lock: ${t}`),this.name=`ProcessLockCollisionError`,this.existing=e,this.lockPath=t,this.lockName=n}};function _(e,t){return n(e,`${t}.lock`)}const v=new Map;function y(e){v.set(e,(v.get(e)??0)+1)}function b(e){let t=v.get(e);return t===void 0||t<=1?(v.delete(e),!0):(v.set(e,t-1),!1)}function x(e,t){try{let n=JSON.parse(s(e,`utf-8`));return n&&typeof n==`object`&&typeof n.pid==`number`?n:(console.warn(`${t} Corrupt lock file at ${e} — replacing`),null)}catch{return console.warn(`${t} Corrupt lock file at ${e} — replacing`),null}}function S(e){let{lockName:t,lockDir:n,metadata:s}=e,f=`[${t}-lock]`;a(n,{recursive:!0});let m=_(n,t),v={pid:process.pid,hostname:d(),port:s.port,startedAt:new Date().toISOString(),worktreeRoot:s.worktreeRoot,...s.kind!==void 0&&{kind:s.kind},...s.parentPid!==void 0&&{parentPid:s.parentPid},...s.capabilities!==void 0&&{capabilities:s.capabilities},protocolVersion:s.protocolVersion??1,runtimeVersion:s.runtimeVersion??h},b=JSON.stringify(v,null,2);for(let e=0;e<3;e++){if(!i(m))try{let e=o(m,`wx`,384);try{u(e,b)}finally{r(e)}return y(m),C({lockName:t,lockDir:n,lockPath:m})}catch(e){if(e.code!==`EEXIST`)throw e}let e=x(m,f);if(e){let r=e.hostname===d();if(r&&e.pid===process.pid)return l(m,b,{encoding:`utf-8`,mode:384}),y(m),C({lockName:t,lockDir:n,lockPath:m});if(r&&p(e.pid))throw new g(e,m,t);console.warn(`${f} Stale lock detected (pid=${e.pid}, host=${e.hostname}) — replacing`)}try{c(m)}catch{}}throw Error(`${f} Failed to acquire ${m} after 3 attempts (concurrent acquire contention).`)}function C(e){let{lockName:t,lockDir:n,lockPath:r}=e;return{lockPath:r,release:()=>E({lockName:t,lockDir:n}),updatePort:e=>w({lockName:t,lockDir:n,port:e})}}function w(e){let{lockName:t,lockDir:n,port:r}=e,a=`[${t}-lock]`,o=_(n,t);if(!i(o)){console.warn(`${a} Lock file missing at ${o} during port update — skipping`);return}let c;try{let e=JSON.parse(s(o,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`){console.warn(`${a} Corrupt lock at ${o} during port update — skipping`);return}c=e}catch{console.warn(`${a} Unreadable lock at ${o} during port update — skipping`);return}if(c.pid===process.pid&&!(typeof c.hostname==`string`&&c.hostname!==d())){c.port=r;try{l(o,JSON.stringify(c,null,2),{encoding:`utf-8`,mode:384})}catch(e){console.warn(`${a} Failed to update port in ${o}: ${e instanceof Error?e.message:String(e)}`)}}}function T(e){let{lockName:t,lockDir:n}=e,r=_(n,t);if(!i(r))return null;let a;try{let e=JSON.parse(s(r,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`)return null;a=e}catch{return null}if(a.hostname!==d())return null;if(!p(a.pid)){try{c(r)}catch{}return null}return a}function E(e){let{lockName:t,lockDir:n}=e,r=`[${t}-lock]`,a=_(n,t);if(b(a)&&i(a))try{let e=JSON.parse(s(a,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`||e.pid!==process.pid||typeof e.hostname==`string`&&e.hostname!==d())return;c(a)}catch(e){console.warn(`${r} Failed to release ${a}: ${e instanceof Error?e.message:String(e)}`)}}var D=e({ServerLockCollisionError:()=>O,acquireServerLock:()=>k,readServerLock:()=>j,releaseServerLock:()=>M,updateServerLockPort:()=>A}),O=class extends g{constructor(e,t){super(e,t,`server`),this.name=`ServerLockCollisionError`}};function k(e,t){try{return S({lockName:`server`,lockDir:e,metadata:t}).lockPath}catch(e){throw e instanceof g&&e.lockName===`server`?new O(e.existing,e.lockPath):e}}function A(e,t){w({lockName:`server`,lockDir:e,port:t})}function j(e){return T({lockName:`server`,lockDir:e})}function M(e){E({lockName:`server`,lockDir:e})}export{k as a,T as c,M as d,D as f,S as i,j as l,A as m,h as n,p as o,w as p,O as r,_ as s,g as t,E as u};
|
|
2
|
+
//# sourceMappingURL=server-lock-n3Y5JWNv-3o7br8XE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e}from"./server-lock-n3Y5JWNv-3o7br8XE.mjs";export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-XKQRETAK-cVWA9gEB.mjs";export{e as sha1sumCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5V6VZH6T-BCr5_GDF.mjs";export{e as sha256sumCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{n as e}from"./chunk-GOV5EKKI-PN17n-Z0.mjs";export{e as sleepCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-KMEYNNUA-DfdK88O_.mjs";export{e as sortCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-MYE6AGBJ-B4pRo9ma.mjs";export{e as split};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-A5O5YHGN-C7BVq0eF.mjs";import"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{t as e}from"./chunk-HWBSOZZR-Dikp87Ww.mjs";export{e as sqlite3Command};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./init-Dc2dCgGt.mjs";import"./loader-C3jzK-Dy.mjs";export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./start-RnYkhoRl.mjs";export{e as startCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./esm-wByiX8MO.mjs";import{i as t}from"./constants-ekUaxW9F.mjs";import{p as n}from"./dist-CXdg7KnM.mjs";import{spawn as r}from"node:child_process";import{join as i}from"node:path";import{closeSync as a,existsSync as o,mkdirSync as s,openSync as c}from"node:fs";import{setTimeout as l}from"node:timers/promises";function u(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx @inkeep/open-knowledge\`. This re-introduces the version-drift surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`@inkeep/open-knowledge`]})}function d(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function f(e){o(e.lockDir)||s(e.lockDir,{recursive:!0});let t=c(i(e.lockDir,`last-spawn-error.log`),`w`),n=e.spawn??r,{PORT:l,...d}=process.env,f=u();try{let r=n(f.command,[...f.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:d});return r.unref(),r}finally{try{a(t)}catch{}}}async function p(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}function m(e){let t=e.sigtermGraceMs??1e4,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>l(e));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function h(e){let{config:t,cwd:r}=e,i=e.skipAutoInit??!1,a=e.skipUiAutoSpawn??!1,o=e.idleThresholdMs??18e5,{existsSync:s,mkdirSync:c}=await import(`node:fs`),{resolve:u}=await import(`node:path`),{bootServer:h,ensureProjectGit:g,getLogger:_,isProcessAlive:v,readUiLock:y}=await import(`./dist-Ct-gJ7iD.mjs`),{resolveContentDir:b}=await import(`./paths-BA1xev5m.mjs`),x=e.log??_(`start`),S=b(t,r);s(S)||(c(S,{recursive:!0}),x.info({contentDir:S},`Created content directory`));let C=!s(u(r,n)),w=i?void 0:async()=>{try{let{initContent:e}=await import(`./init-Ccjx3YjD.mjs`),t=e(r);return C||t.created.length>0}catch(e){return console.warn(`Auto-init failed:`,e instanceof Error?e.message:e),!1}},T=!1,E=u(S,n),D=t.server.openOnAgentEdit?()=>{if(T)return;let e=y(E);if(!e||e.port<=0||!v(e.pid))return;T=!0;let t=`http://localhost:${e.port}`;import(`./open-browser-BzMQ6cLf.mjs`).then(({openBrowser:e})=>e(t)).catch(()=>{})}:void 0,O=null,k=await h({contentDir:S,projectDir:r,contentRoot:t.content.dir,port:t.server.port,host:t.server.host,quiet:!1,debounce:t.persistence.debounceMs,maxDebounce:t.persistence.maxDebounceMs,includePatterns:t.content.include,excludePatterns:t.content.exclude,onAgentWrite:D,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:!0,idleShutdownMs:o,skipAutoInit:i,autoInitFn:w,ensureProjectGitFn:i?void 0:()=>g(r),spawnUiSiblingFn:async({lockDir:t})=>{if(O=d({uiLock:y(t),isAlive:v}),O.action===`spawn`&&!a)try{f({lockDir:t,cwd:r,spawn:e.spawn}),x.info({reason:O.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else O.action===`skip`&&x.info({port:O.port,pid:O.pid},`UI already running at port ${O.port}`)},idleShutdownHandler:e=>m({readUiLock:()=>y(k.lockDir),isAlive:v,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:x}),log:x});O||={action:`skip`,reason:`alive`,pid:0,port:0};let A=O,j=null;if(A.action===`skip`)j=A.port>0?A.port:null;else if(!a){let t=e.uiBindTimeoutMs??3e3;j=await p({readUiLock:()=>y(k.lockDir),now:Date.now,sleep:e=>l(e),timeoutMs:t,pollIntervalMs:50}),j===null&&x.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:k.httpServer,destroy:k.destroy,lockDir:k.lockDir,contentDir:S,port:k.port,ready:k.ready,degraded:k.degraded,uiSpawnDecision:O,resolvedUiPort:j,didAutoInit:k.didAutoInit,didGitInit:k.didGitInit}}function g(r){return new e(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--no-init`,`Skip auto-scaffolding of ${n}/`).action(async e=>{let{renderBanner:i}=await import(`./banner-BxI1wnW9.mjs`),{dim:a,error:o,info:s,warning:c}=await import(`./colors-BnZ-i-vb.mjs`),l=r(),u=process.cwd();e.port!==void 0&&(l.server.port=Number(e.port)),e.host!==void 0&&(l.server.host=e.host);let d;try{d=await h({config:l,cwd:u,skipAutoInit:e.init===!1})}catch(e){let{ProjectGitInitError:t}=await import(`./dist-Ct-gJ7iD.mjs`);e instanceof t&&(console.error(o(`open-knowledge requires git to initialize a parent repo. Install git or run 'git init' yourself, then re-run.`)),e.stderr&&console.error(a(e.stderr.trim())),process.exit(1)),console.error(`${o(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let f=!1,p=async e=>{if(!f){f=!0,console.log(a(`\nShutting down (${e})...`));try{await d.destroy()}catch(e){console.error(`${o(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{p(`SIGINT`)}),process.once(`SIGTERM`,()=>{p(`SIGTERM`)});let m=`http://${l.server.host}:${d.port}`,g=l.server.host===`0.0.0.0`||l.server.host===`::`?`http://0.0.0.0:${d.port}`:void 0,_=d.resolvedUiPort,v=_!==null&&_>0?`http://${l.server.host}:${_}`:m;console.log(i({name:`open-knowledge`,version:t,localUrl:v,apiUrl:v===m?void 0:m,networkUrl:g})),d.didAutoInit&&(console.log(` ${s(`✓`)} Scaffolded ${n}/ (first run)`),console.log(` ${a("Tip: Run `open-knowledge init` to register MCP tools for Claude Code")}\n`));let y={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};d.ready.then(async()=>{if(d.degraded.length>0){console.log();for(let e of d.degraded){let t=y[e]??`${e} (check server logs for details)`;console.warn(` ${c(`⚠`)} ${c(e)}: ${a(t)}`)}console.log()}if(d.didAutoInit||d.didGitInit)if(d.didGitInit&&console.log(`\n ${s(`✓`)} Initialized git repo at ${u}/.git/ (default branch: main)`),d.didAutoInit)try{let{previewContent:e,formatPreviewBlock:t}=await import(`./preview-BTFflPaA.mjs`),n=e({projectDir:u,contentDir:d.contentDir,include:l.content.include,exclude:l.content.exclude});console.log(`\n${t(n,u)}\n`)}catch(e){console.warn(`Content preview unavailable: ${e instanceof Error?e.message:String(e)}`)}else console.log();if(e.open){let{openBrowser:e}=await import(`./open-browser-BzMQ6cLf.mjs`);e(v)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})})}export{f as a,d as i,h as n,g as o,m as r,u as s,p as t};
|
|
2
|
+
//# sourceMappingURL=start-RnYkhoRl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5QVNJEHU-BvsipSFW.mjs";export{e as statCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-VYOJP4TV-BvibOnKG.mjs";export{e as strings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";export{e as tac};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";export{e as tailCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import{n as e}from"./chunk-BRGMQKJV-CdrkqzRA.mjs";export{e as tarCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-55VFSPNA-DVZfQAzN.mjs";export{e as teeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-Z6LRHWXI-DbRghyzT.mjs";export{e as timeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{n as e}from"./chunk-YTNYSM6T-DuBR2-TM.mjs";export{e as timeoutCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-OCLXQMOG-BMsyLQhm.mjs";export{e as touchCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-62RKD26F-D-luOa0m.mjs";export{e as trCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";export{e as treeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";export{e as falseCommand,t as trueCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-PYSFUGCK-CY7pclEB.mjs";export{e as unexpand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-WKFATFPP-DCZdrA8x.mjs";export{e as uniqCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-GXVXFKBA-993FoPmq.mjs";export{e as wcCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-A65PWWJC-D7J5l9eq.mjs";export{e as whichCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";export{e as whoami};
|