@inkeep/open-knowledge 0.3.0 → 0.4.0-beta.6

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.
Files changed (571) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +658 -0
  2. package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
  3. package/dist/assets/skills/open-knowledge/SKILL.md +145 -52
  4. package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
  5. package/dist/{banner-BxI1wnW9.mjs → banner-DdbR6AZr.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
  9. package/dist/build-B6buVrsB.mjs +2 -0
  10. package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
  12. package/dist/{chokidar-CblsKfnx.mjs → chokidar-CxU7f6JW.mjs} +1 -1
  13. package/dist/{chunk-24IMIIXA-Bz7rlZT3.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
  14. package/dist/{chunk-3THT3N7L-klp8GP84.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
  15. package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-qsYuZX7b.mjs} +1 -1
  16. package/dist/{chunk-44UOCSGV-BUBpWxXm.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
  17. package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-PuLVuVJW.mjs} +2 -2
  18. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-CQ53AiA_.mjs} +1 -1
  19. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-BlQvqCag.mjs} +2 -2
  20. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-DLwfww5b.mjs} +2 -2
  21. package/dist/{chunk-5QMZ5MUS-DWTkM0vM.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
  22. package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-dbrKfPGl.mjs} +2 -2
  23. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-DMPvCPbn.mjs} +2 -2
  24. package/dist/{chunk-62RKD26F-D-luOa0m.mjs → chunk-62RKD26F-B9la0pfD.mjs} +2 -2
  25. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-D92CLSK-.mjs} +2 -2
  26. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-BcZUJMO1.mjs} +1 -1
  27. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-D7Z_Qw_C.mjs} +1 -1
  28. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-DUQhJkDy.mjs} +1 -1
  29. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-DKLaJeys.mjs} +1 -1
  30. package/dist/{chunk-A4JSPFCI-U-xWmMMC.mjs → chunk-A4JSPFCI-CEm2r8SB.mjs} +2 -2
  31. package/dist/{chunk-A5O5YHGN-C7BVq0eF.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
  32. package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-DV6RO_es.mjs} +2 -2
  33. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-dTNL-45u.mjs} +1 -1
  34. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-BvXPAaHu.mjs} +2 -2
  35. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-Cu6JFoC4.mjs} +2 -2
  36. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DmUrFuRy.mjs} +2 -2
  37. package/dist/{chunk-BBXLRYSX-DURjrblE.mjs → chunk-BBXLRYSX-K758HlCs.mjs} +2 -2
  38. package/dist/{chunk-BRGMQKJV-CdrkqzRA.mjs → chunk-BRGMQKJV-BXc-9Cgj.mjs} +3 -3
  39. package/dist/{chunk-CR5AFCPT-ROmyDFrB.mjs → chunk-CR5AFCPT-DxNsgM0M.mjs} +2 -2
  40. package/dist/{chunk-CWQS3NFK-DFdwmFxJ.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
  41. package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-DkHLjHX6.mjs} +2 -2
  42. package/dist/{chunk-D6CWQ5DW-B-J4LN9N.mjs → chunk-D6CWQ5DW-7lvT8dGP.mjs} +2 -2
  43. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-D8jJZr4A.mjs} +2 -2
  44. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-C3s1D8OY.mjs} +2 -2
  45. package/dist/{chunk-DXB73IDG-C774okS0.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
  46. package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CETL3_Uw.mjs} +1 -1
  47. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-DOoQW9jQ.mjs} +2 -2
  48. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-BK2tpXPf.mjs} +2 -2
  49. package/dist/{chunk-F55TLFGB-DqkrAMO5.mjs → chunk-F55TLFGB-Vy5RU2P3.mjs} +2 -2
  50. package/dist/{chunk-FEIOJCZD-C4x0A4rb.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
  51. package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-Di-RB9Qt.mjs} +1 -1
  52. package/dist/{chunk-GFQRA5P5-1fzItQ8F.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
  53. package/dist/{chunk-GOV5EKKI-PN17n-Z0.mjs → chunk-GOV5EKKI-CKV9jOGv.mjs} +2 -2
  54. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-CUKDClxt.mjs} +2 -2
  55. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-MTQ75a8z.mjs} +2 -2
  56. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-D-8Vc6Zb.mjs} +1 -1
  57. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-XrOcsn2f.mjs} +2 -2
  58. package/dist/{chunk-HWBSOZZR-Dikp87Ww.mjs → chunk-HWBSOZZR-BZF8XsyZ.mjs} +2 -2
  59. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-wgmyck2O.mjs} +2 -2
  60. package/dist/{chunk-I57KEIP3-B1DoH8rp.mjs → chunk-I57KEIP3-DipCOPKf.mjs} +2 -2
  61. package/dist/{chunk-IPJHKYVM-BbWncVr2.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
  62. package/dist/{chunk-J642UCRS-DB77Y2Wt.mjs → chunk-J642UCRS-YiNealfn.mjs} +2 -2
  63. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-VMFWXimu.mjs} +2 -2
  64. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-pRogdye4.mjs} +2 -2
  65. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-ByBS5IDP.mjs} +2 -2
  66. package/dist/{chunk-LPQPILI2-BXfU9TgM.mjs → chunk-LPQPILI2-FRQB9gt5.mjs} +2 -2
  67. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-46S7WKw8.mjs} +2 -2
  68. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DdGmM3wr.mjs} +2 -2
  69. package/dist/{chunk-MDDMCKUK-D6GWoJsI.mjs → chunk-MDDMCKUK-CuRdI1Uv.mjs} +2 -2
  70. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-Wd1iVjXi.mjs} +2 -2
  71. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-BWrqic3t.mjs} +1 -1
  72. package/dist/{chunk-MIZPJHVH-z-geAni9.mjs → chunk-MIZPJHVH-DWdPvcYR.mjs} +2 -2
  73. package/dist/{chunk-MLXIYONF-DB-C8Hx8.mjs → chunk-MLXIYONF-CiCzoeGt.mjs} +2 -2
  74. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DJo74dVC.mjs} +2 -2
  75. package/dist/{chunk-NAERJDUW-CX0lf-xx.mjs → chunk-NAERJDUW-CIHrNgJB.mjs} +2 -2
  76. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-BVljycUZ.mjs} +2 -2
  77. package/dist/{chunk-NUYSJFDK-D2NXm2ND.mjs → chunk-NUYSJFDK-BTseBdxv.mjs} +2 -2
  78. package/dist/{chunk-NYQYO467-Degkom4D.mjs → chunk-NYQYO467-BgXuDHUQ.mjs} +2 -2
  79. package/dist/{chunk-OARHFVLG-CY8D2Qov.mjs → chunk-OARHFVLG-Cr0x3Si_.mjs} +2 -2
  80. package/dist/{chunk-OCLXQMOG-BMsyLQhm.mjs → chunk-OCLXQMOG-BW6rwyzS.mjs} +2 -2
  81. package/dist/{chunk-OCS6LSEM-BHslttnj.mjs → chunk-OCS6LSEM-D7VAOziZ.mjs} +2 -2
  82. package/dist/{chunk-OJDRYQWQ-BV5MVRVg.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
  83. package/dist/{chunk-OL3S66CO-Bmgu4tW4.mjs → chunk-OL3S66CO-CQnF8cPH.mjs} +2 -2
  84. package/dist/{chunk-PBXLG62G-lGjqkk78.mjs → chunk-PBXLG62G-CgbPJTiw.mjs} +2 -2
  85. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-CO4MYU__.mjs} +1 -1
  86. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-DsRn64Ef.mjs} +2 -2
  87. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-BUMOhlW7.mjs} +2 -2
  88. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-F0_rcDPM.mjs} +2 -2
  89. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-CeW6f7-x.mjs} +1 -1
  90. package/dist/{chunk-R6VWJ2ZL-B0CcMPyK.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
  91. package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-BmkapBPD.mjs} +2 -2
  92. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-DkebEzkd.mjs} +2 -2
  93. package/dist/{chunk-SYMJJMQ4-CWTh95-4.mjs → chunk-SYMJJMQ4-DOZMaECk.mjs} +2 -2
  94. package/dist/{chunk-T56QNPHK-DlKQeuXU.mjs → chunk-T56QNPHK-DPXaSSfC.mjs} +2 -2
  95. package/dist/{chunk-TLSUDHID-B8UnqY4U.mjs → chunk-TLSUDHID-BovZg0r1.mjs} +2 -2
  96. package/dist/{chunk-TOMNU26N-BcdbBQ2p.mjs → chunk-TOMNU26N-AAglMy4J.mjs} +2 -2
  97. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-WeVWfqYv.mjs} +2 -2
  98. package/dist/{chunk-UNYNJIFU-DwPQMz0F.mjs → chunk-UNYNJIFU-CqGlXAg7.mjs} +3 -3
  99. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-DQgGPvBY.mjs} +2 -2
  100. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-DIo0Ia0_.mjs} +2 -2
  101. package/dist/{chunk-VLGZJRPG-D4NVKJYL.mjs → chunk-VLGZJRPG-DymOu90-.mjs} +2 -2
  102. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-Bfa1NTzt.mjs} +2 -2
  103. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-PBsHe2md.mjs} +2 -2
  104. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-KO2zkfs2.mjs} +2 -2
  105. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-D5w6wtaX.mjs} +1 -1
  106. package/dist/{chunk-XHM67O4N-Cg35xc6b.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
  107. package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-RHzVmuiF.mjs} +2 -2
  108. package/dist/{chunk-XORM457F-CRToN1RQ.mjs → chunk-XORM457F-wr_DBBnV.mjs} +2 -2
  109. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-DxaG1FfA.mjs} +2 -2
  110. package/dist/{chunk-YCFVLTST-Ox9Z0Nk6.mjs → chunk-YCFVLTST-Dzwevuc3.mjs} +2 -2
  111. package/dist/{chunk-YFG2CMIF-Csgr05KV.mjs → chunk-YFG2CMIF-BoZQym0L.mjs} +2 -2
  112. package/dist/{chunk-YNYSPYQ5-BpP11HXS.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
  113. package/dist/{chunk-YS3AZT3J-BEZxz_aQ.mjs → chunk-YS3AZT3J-CBc9LHIy.mjs} +2 -2
  114. package/dist/{chunk-YTNYSM6T-DuBR2-TM.mjs → chunk-YTNYSM6T-WMIf3AF8.mjs} +2 -2
  115. package/dist/{chunk-Z6LRHWXI-DbRghyzT.mjs → chunk-Z6LRHWXI-DGTVoTuf.mjs} +2 -2
  116. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-Cb4YKOCM.mjs} +2 -2
  117. package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
  118. package/dist/cli.mjs +58 -1400
  119. package/dist/colors-BNufdynn.mjs +2 -0
  120. package/dist/colors-T3xmlXQT.mjs +1 -0
  121. package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
  122. package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
  123. package/dist/config-schema.json +87 -0
  124. package/dist/config.project-local.schema.json +30 -0
  125. package/dist/config.project.schema.json +59 -0
  126. package/dist/config.user.schema.json +58 -0
  127. package/dist/constants-Dc6GZ6j9.mjs +2 -0
  128. package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
  129. package/dist/{curl-47BFPSFW-Kn_Na_aU.mjs → curl-47BFPSFW-C2kRcGkX.mjs} +2 -2
  130. package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
  131. package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
  132. package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
  133. package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
  134. package/dist/dist-B6pNPboH.mjs +1609 -0
  135. package/dist/dist-DVM7wH81.mjs +359 -0
  136. package/dist/dist-DXLSMgBY.mjs +1 -0
  137. package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
  138. package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
  139. package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
  140. package/dist/{esm-BFkWzFey.mjs → esm-BbkJd7ro.mjs} +1 -1
  141. package/dist/{esm-wByiX8MO.mjs → esm-CEs3LWY3.mjs} +2 -2
  142. package/dist/{execAsync-0jii24p9.mjs → execAsync-CulVJBMN.mjs} +1 -1
  143. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-CzW9fUYQ.mjs} +1 -1
  144. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DuQoqWaW.mjs} +1 -1
  145. package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
  146. package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
  147. package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
  148. package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
  149. package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
  150. package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
  151. package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
  152. package/dist/{getMachineId-bsd-C1M346yz.mjs → getMachineId-bsd-DAmB-Ym0.mjs} +2 -2
  153. package/dist/{getMachineId-bsd-CPESl3L6.mjs → getMachineId-bsd-FYDP9w5Q.mjs} +2 -2
  154. package/dist/{getMachineId-bsd-DEUypOXJ.mjs → getMachineId-bsd-mPrX3ckm.mjs} +2 -2
  155. package/dist/{getMachineId-darwin-0hBTy7c8.mjs → getMachineId-darwin-B0Qw-MTj.mjs} +2 -2
  156. package/dist/{getMachineId-darwin-CJK3eX9q.mjs → getMachineId-darwin-C79HtyON.mjs} +2 -2
  157. package/dist/{getMachineId-darwin-Vupnt-kR.mjs → getMachineId-darwin-Co8Jnu5v.mjs} +2 -2
  158. package/dist/{getMachineId-linux-BGQn48cN.mjs → getMachineId-linux-BBORs2cS.mjs} +2 -2
  159. package/dist/{getMachineId-linux-CIp07XEX.mjs → getMachineId-linux-BizmCjYq.mjs} +2 -2
  160. package/dist/{getMachineId-linux-B2nkqMir.mjs → getMachineId-linux-BvLCCmKQ.mjs} +2 -2
  161. package/dist/{getMachineId-unsupported-CH1Q20xN.mjs → getMachineId-unsupported-Bgp-Es9j.mjs} +2 -2
  162. package/dist/{getMachineId-unsupported-DfSmC7Gy.mjs → getMachineId-unsupported-CbR45h2D.mjs} +2 -2
  163. package/dist/{getMachineId-unsupported-BnsanXR2.mjs → getMachineId-unsupported-DbGFOAw1.mjs} +2 -2
  164. package/dist/{getMachineId-win-BmmB_8yL.mjs → getMachineId-win-CT_Y5i_4.mjs} +2 -2
  165. package/dist/{getMachineId-win-DlPRChXs.mjs → getMachineId-win-Cy0XHq4X.mjs} +2 -2
  166. package/dist/{getMachineId-win-JnMJbIaW.mjs → getMachineId-win-D5gDnBHa.mjs} +2 -2
  167. package/dist/{git-handle-BhGnmvTB-BMB_49Sb.mjs → git-handle-DwfYp_z--CfyPz4Dz.mjs} +2 -2
  168. package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
  169. package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
  170. package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
  171. package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
  172. package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
  173. package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
  174. package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
  175. package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
  176. package/dist/index.d.mts +9 -2278
  177. package/dist/index.mjs +1 -1
  178. package/dist/init-B7qJnXKB.mjs +397 -0
  179. package/dist/init-DiH9oQ6_.mjs +1 -0
  180. package/dist/{is-object-BNVklKxg.mjs → is-object-DF0ZeuvD.mjs} +1 -1
  181. package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
  182. package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
  183. package/dist/{js-exec-M6UR76J5-DSk5_wnx.mjs → js-exec-M6UR76J5-IyD-lpzv.mjs} +3 -3
  184. package/dist/{lib-Dl2j2VNl.mjs → lib-BOCdCkg7.mjs} +1 -1
  185. package/dist/{libesm-DC4M2SkF.mjs → libesm-YL3Bqolr.mjs} +1 -1
  186. package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
  187. package/dist/loader-BQf8AJXb.mjs +4 -0
  188. package/dist/loader-C8lkPKn8.mjs +1 -0
  189. package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
  190. package/dist/{lzma-0LJzVZpl.mjs → lzma-vr8hBkhz.mjs} +2 -2
  191. package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
  192. package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
  193. package/dist/mrmime-C2W7cgq2.mjs +2 -0
  194. package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
  195. package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
  196. package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
  197. package/dist/{open-browser-BzMQ6cLf.mjs → open-browser-BZZK_gJj.mjs} +1 -1
  198. package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
  199. package/dist/preview-CN1rHXBb.mjs +1 -0
  200. package/dist/preview-DUTos2Es.mjs +3 -0
  201. package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
  202. package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
  203. package/dist/public/assets/{ActivityPanelDiffView-D-EUyEh6.js → ActivityPanelDiffView-DoHWP1ak.js} +1 -1
  204. package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
  205. package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
  206. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  207. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  208. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  209. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  210. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  211. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  212. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  213. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  214. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  215. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  216. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  217. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  218. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  219. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  220. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  221. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  222. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  223. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  224. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  225. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  226. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  227. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  228. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  229. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  230. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  231. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  232. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  233. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  234. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  235. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  236. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  237. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  238. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  239. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  240. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  241. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  242. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  243. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  244. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  245. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  246. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  247. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  248. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  249. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  250. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  251. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  252. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  253. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  254. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  255. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  256. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  257. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  258. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  259. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  260. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  261. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  262. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  263. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  264. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  265. package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
  266. package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
  267. package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
  268. package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
  269. package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
  270. package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
  271. package/dist/public/assets/{agent-presence-BXsx4eTl.js → agent-presence-Ds2n3U5P.js} +1 -1
  272. package/dist/public/assets/arc-BL_OKZmE.js +1 -0
  273. package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
  274. package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
  275. package/dist/public/assets/array-X0JlPOfd.js +1 -0
  276. package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
  277. package/dist/public/assets/{button-BPXuMr5W.js → button-BsFpqlpT.js} +1 -1
  278. package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
  279. package/dist/public/assets/channel-CR-xJel6.js +1 -0
  280. package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
  281. package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
  282. package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
  283. package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
  284. package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
  285. package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
  286. package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
  287. package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
  288. package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
  289. package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
  290. package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
  291. package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
  292. package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
  293. package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
  294. package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
  295. package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
  296. package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
  297. package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
  298. package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
  299. package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
  300. package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
  301. package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
  302. package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
  303. package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
  304. package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
  305. package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
  306. package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
  307. package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
  308. package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
  309. package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
  310. package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
  311. package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
  312. package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
  313. package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
  314. package/dist/public/assets/{compiler-runtime-Y11fyRVL.js → compiler-runtime-CVnuRdak.js} +1 -1
  315. package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
  316. package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
  317. package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
  318. package/dist/public/assets/dagre-BEdPLXba.js +1 -0
  319. package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
  320. package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
  321. package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
  322. package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
  323. package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
  324. package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
  325. package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
  326. package/dist/public/assets/{dist-DR1MrLJC.js → dist-B4kUko7n.js} +1 -1
  327. package/dist/public/assets/{dist-BqO6NfD-.js → dist-BH1b1nWB.js} +1 -1
  328. package/dist/public/assets/{dist-DlS42TIP.js → dist-BOapDt7N.js} +1 -1
  329. package/dist/public/assets/dist-CIRuNcH5.js +1 -0
  330. package/dist/public/assets/{dist-GlH2KPqY.js → dist-D08h1pJc.js} +1 -1
  331. package/dist/public/assets/{dist-D2wwoXzm.js → dist-S8LJmtzL.js} +1 -1
  332. package/dist/public/assets/{dist-DeDgmJv2.js → dist-VyzSEzD4.js} +1 -1
  333. package/dist/public/assets/{dist-CgLbXgrr.js → dist-nPpvoMNC.js} +1 -1
  334. package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
  335. package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
  336. package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
  337. package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
  338. package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
  339. package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
  340. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
  341. package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
  342. package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
  343. package/dist/public/assets/index-B1y9QLHF.js +1858 -0
  344. package/dist/public/assets/index-DoXig4bf.css +1 -0
  345. package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
  346. package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
  347. package/dist/public/assets/init-CBj3ecIW.js +1 -0
  348. package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
  349. package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
  350. package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
  351. package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
  352. package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
  353. package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
  354. package/dist/public/assets/katex-qwlL5fSd.js +257 -0
  355. package/dist/public/assets/line-_p5Px7MV.js +1 -0
  356. package/dist/public/assets/linear-DwuDS4qT.js +1 -0
  357. package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
  358. package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
  359. package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
  360. package/dist/public/assets/min-HKuGSUqa.js +1 -0
  361. package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
  362. package/dist/public/assets/now-BBH4UqDm.js +1 -0
  363. package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
  364. package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
  365. package/dist/public/assets/{panel-BCRdtBla.js → panel-BgMqDESF.js} +1 -1
  366. package/dist/public/assets/path-rUlDLHdA.js +1 -0
  367. package/dist/public/assets/pdf-a35ddrIO.js +54 -0
  368. package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
  369. package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
  370. package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
  371. package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
  372. package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
  373. package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
  374. package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
  375. package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
  376. package/dist/public/assets/reduce-DotyoGA7.js +1 -0
  377. package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
  378. package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
  379. package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
  380. package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
  381. package/dist/public/assets/src-C9jsS3p4.js +1 -0
  382. package/dist/public/assets/src-zyMpT2LE.js +1 -0
  383. package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
  384. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
  385. package/dist/public/assets/stex-BKMR5xQj.js +1 -0
  386. package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
  387. package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
  388. package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
  389. package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
  390. package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
  391. package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
  392. package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
  393. package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
  394. package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
  395. package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
  396. package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
  397. package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
  398. package/dist/public/index.html +43 -18
  399. package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
  400. package/dist/{python3-AUFTPCU6-MeZyx8_A.mjs → python3-AUFTPCU6-BaJugIdp.mjs} +2 -2
  401. package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
  402. package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
  403. package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
  404. package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
  405. package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
  406. package/dist/{rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs → rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs} +1 -1
  407. package/dist/schemas/v0/config.project-local.schema.json +30 -0
  408. package/dist/schemas/v0/config.project.schema.json +59 -0
  409. package/dist/schemas/v0/config.user.schema.json +58 -0
  410. package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
  411. package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
  412. package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
  413. package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
  414. package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
  415. package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
  416. package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
  417. package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
  418. package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
  419. package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
  420. package/dist/src-Cak39c0B.mjs +1 -0
  421. package/dist/start-BXk7J0Kh.mjs +1 -0
  422. package/dist/start-D6Ip3u6P.mjs +3 -0
  423. package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
  424. package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
  425. package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
  426. package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
  427. package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
  428. package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
  429. package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
  430. package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
  431. package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
  432. package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
  433. package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
  434. package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
  435. package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
  436. package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
  437. package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
  438. package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
  439. package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
  440. package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
  441. package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
  442. package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
  443. package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
  444. package/package.json +12 -15
  445. package/scripts/build-config-schema.mjs +69 -0
  446. package/scripts/postinstall.mjs +0 -20
  447. package/scripts/probe-exec.ts +7 -10
  448. package/scripts/probe-read-document.ts +1 -13
  449. package/dist/alias-JE7RI5QX-TirEebNy.mjs +0 -1
  450. package/dist/awk2-POPGKRAI-DigGXYmO.mjs +0 -1
  451. package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +0 -1
  452. package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +0 -1
  453. package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +0 -1
  454. package/dist/build-D4l8tfO0.mjs +0 -2
  455. package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +0 -1
  456. package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +0 -1
  457. package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +0 -1
  458. package/dist/colors-BnZ-i-vb.mjs +0 -1
  459. package/dist/colors-DoPZvo1q.mjs +0 -2
  460. package/dist/column-WLPMMSTS-fFssyAvW.mjs +0 -1
  461. package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +0 -1
  462. package/dist/constants-ekUaxW9F.mjs +0 -2
  463. package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +0 -1
  464. package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +0 -1
  465. package/dist/date-DD7FVA2V-DRxppxbV.mjs +0 -1
  466. package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +0 -1
  467. package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +0 -1
  468. package/dist/dist-0qFIeeXA.mjs +0 -142
  469. package/dist/dist-BCyi1oM7.mjs +0 -116
  470. package/dist/dist-CXdg7KnM.mjs +0 -199
  471. package/dist/dist-Ct-gJ7iD.mjs +0 -1
  472. package/dist/du-WO2ENHXQ-B5uda2-L.mjs +0 -1
  473. package/dist/echo-O45JWWI2-B9QCpaZR.mjs +0 -1
  474. package/dist/env-5EPCWSXR--4eujSrM.mjs +0 -1
  475. package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +0 -1
  476. package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +0 -1
  477. package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +0 -1
  478. package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +0 -1
  479. package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +0 -1
  480. package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +0 -2
  481. package/dist/fold-LDSORVYE-CAfX9d8n.mjs +0 -1
  482. package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +0 -1
  483. package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +0 -1
  484. package/dist/gzip-AQXSGOVS-CL228lzk.mjs +0 -1
  485. package/dist/head-HT2B6D2J-DyNkF3aY.mjs +0 -1
  486. package/dist/help-VVWX7SA5-D5WzpTIY.mjs +0 -1
  487. package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +0 -1
  488. package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +0 -1
  489. package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +0 -1
  490. package/dist/init-Ccjx3YjD.mjs +0 -1
  491. package/dist/init-DOTyF3_B.mjs +0 -1
  492. package/dist/init-Dc2dCgGt.mjs +0 -255
  493. package/dist/init-DeV-MdCs.mjs +0 -120
  494. package/dist/join-GG2LDHE5-B6C3-ghI.mjs +0 -1
  495. package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +0 -1
  496. package/dist/keepalive-CZzB5k1h.mjs +0 -2
  497. package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +0 -1
  498. package/dist/loader-Bveym9GJ.mjs +0 -1
  499. package/dist/loader-C3jzK-Dy.mjs +0 -3
  500. package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +0 -1
  501. package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +0 -1
  502. package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +0 -1
  503. package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +0 -1
  504. package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +0 -1
  505. package/dist/od-VJEF2UR5-PasvdXXR.mjs +0 -1
  506. package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +0 -1
  507. package/dist/paths-BA1xev5m.mjs +0 -1
  508. package/dist/paths-DtQI2_ER.mjs +0 -2
  509. package/dist/preview-BTFflPaA.mjs +0 -1
  510. package/dist/preview-BuXqi6nl.mjs +0 -3
  511. package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +0 -1
  512. package/dist/public/assets/ActivityModeContent-Ccu_n0bV.js +0 -2
  513. package/dist/public/assets/DocumentContext-C1msvcHp.js +0 -5
  514. package/dist/public/assets/GraphPanel-CJ_U3W3L.js +0 -46
  515. package/dist/public/assets/McpConsentDialogBody-Csjet19t.js +0 -1
  516. package/dist/public/assets/PageListContext-B5SWnlyE.js +0 -278
  517. package/dist/public/assets/SourceEditor-OFesfBB2.js +0 -3
  518. package/dist/public/assets/__vite-browser-external-Dz2JgTKm.js +0 -1
  519. package/dist/public/assets/chunk-DECur_0Z.js +0 -1
  520. package/dist/public/assets/clipboard-DAcKCHl1.js +0 -32
  521. package/dist/public/assets/dialog-CtSN0d2b.js +0 -45
  522. package/dist/public/assets/index-CwFTGDhe.js +0 -1843
  523. package/dist/public/assets/index-DjR45Lon.css +0 -1
  524. package/dist/public/assets/propagation-api-Bugyj7xy.js +0 -1
  525. package/dist/public/assets/telemetry-impl-D8K_lJGH.js +0 -2
  526. package/dist/public/assets/toggle-group-LDOO6zaV.js +0 -1
  527. package/dist/public/assets/tooltip-D0MnQ7ZX.js +0 -1
  528. package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +0 -1
  529. package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +0 -1
  530. package/dist/rev-XOSYPP45-q2MQLs41.mjs +0 -1
  531. package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +0 -1
  532. package/dist/rm-RTZG23RL-fjvVauiI.mjs +0 -1
  533. package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +0 -1
  534. package/dist/sed-VFTTATXJ-DO49xc40.mjs +0 -1
  535. package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +0 -1
  536. package/dist/server-lock-n3Y5JWNv-3o7br8XE.mjs +0 -2
  537. package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +0 -1
  538. package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +0 -1
  539. package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +0 -1
  540. package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +0 -1
  541. package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +0 -1
  542. package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +0 -1
  543. package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +0 -1
  544. package/dist/src-CCtbSzLe.mjs +0 -1
  545. package/dist/start-D7mCFrVn.mjs +0 -1
  546. package/dist/start-RnYkhoRl.mjs +0 -2
  547. package/dist/stat-BT5A227F-Dqepjl-k.mjs +0 -1
  548. package/dist/strings-7PLOGTPD-g6FhPS64.mjs +0 -1
  549. package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +0 -1
  550. package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +0 -1
  551. package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +0 -1
  552. package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +0 -1
  553. package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +0 -1
  554. package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +0 -1
  555. package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +0 -1
  556. package/dist/tr-2HXZRDSW-DrrobhxR.mjs +0 -1
  557. package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +0 -1
  558. package/dist/true-WHJNXCHG-BaLssNp9.mjs +0 -1
  559. package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +0 -1
  560. package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +0 -1
  561. package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +0 -1
  562. package/dist/which-XZHEH76L-DxZJ58G5.mjs +0 -1
  563. package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +0 -1
  564. package/dist/wrapper-BTT6637Z.mjs +0 -7
  565. package/dist/xan-BXDXYEIB-_Vtao535.mjs +0 -1
  566. package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +0 -1
  567. package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +0 -1
  568. package/dist/yq-MJMAR36V-pRBq87Ya.mjs +0 -1
  569. /package/dist/public/assets/{go-DatQmDtN.js → go-a33xvodr.js} +0 -0
  570. /package/dist/public/assets/{shell-7yok6dsz.js → shell-40VLet8r.js} +0 -0
  571. /package/dist/public/assets/{w3c-keyname-CSlwavrd.js → w3c-keyname-Dfj2imOv.js} +0 -0
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./__vite-browser-external-FEGw1XPd.js","./chunk-CFjPhJqf.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./chunk-CFjPhJqf.js";import{t}from"./preload-helper-2ej06EnG.js";import{a as n,c as r,d as i,f as a,i as o,l as s,n as c,o as l,p as u,r as d,t as f,u as p}from"./trace-api-DPMyR1_m.js";import{n as m,r as ee,t as h}from"./propagation-api-qAYD7s-v.js";var te=class{constructor(){}createGauge(e,t){return fe}createHistogram(e,t){return pe}createCounter(e,t){return de}createUpDownCounter(e,t){return me}createObservableGauge(e,t){return ge}createObservableCounter(e,t){return he}createObservableUpDownCounter(e,t){return _e}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},g=class{},ne=class extends g{add(e,t){}},re=class extends g{add(e,t){}},ie=class extends g{record(e,t){}},ae=class extends g{record(e,t){}},oe=class{addCallback(e){}removeCallback(e){}},se=class extends oe{},ce=class extends oe{},le=class extends oe{},ue=new te,de=new ne,fe=new ie,pe=new ae,me=new re,he=new se,ge=new ce,_e=new le;function ve(){return ue}var ye;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(ye||={});var be;(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`})(be||={});var _=p.instance(),xe=new class{getMeter(e,t,n){return ue}},Se=`metrics`,Ce=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalMeterProvider(e){return a(Se,e,p.instance())}getMeterProvider(){return i(Se)||xe}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){u(Se,p.instance())}}.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()}},Te=class extends Error{code;name=`OTLPExporterError`;data;constructor(e,t,n){super(e),this.data=n,this.code=t}};function Ee(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function De(e){if(e!=null)return()=>e}function Oe(e,t,n){return{timeoutMillis:Ee(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function ke(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:`none`}}var Ae=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 je(e){return new Ae(e.concurrencyLimit)}var Me=`http.url`,Ne=`http.user_agent`,Pe=Me,Fe=Ne,Ie=`error.type`,Le=`exception.message`,Re=`exception.stacktrace`,ze=`exception.type`,Be=`http.request.method`,Ve=`http.request.method_original`,He=`http.response.status_code`,Ue=`server.address`,We=`server.port`,Ge=`service.name`,Ke=`service.version`,qe=`telemetry.sdk.language`,Je=`webjs`,Ye=`telemetry.sdk.name`,Xe=`telemetry.sdk.version`,Ze=`url.full`,v;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(v||={});function Qe(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function $e(){return{handleResponse(e){e==null||!Qe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||_.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}var et=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:v.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:v.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:v.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:v.FAILED,error:e.error});return}else e.status===`retryable`?t({code:v.FAILED,error:new Te(`Export failed with retryable status`)}):t({code:v.FAILED,error:new Te(`Export failed with unknown error`)})},e=>t({code:v.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug(`shutdown started`),await this.forceFlush(),this._transport.shutdown()}};function tt(e,t){return new et(e.transport,e.serializer,$e(),e.promiseHandler,t.timeout)}function nt(e,t,n){return tt({transport:n,serializer:t,promiseHandler:je(e)},{timeout:e.timeoutMillis})}var rt=10**9;function it(e){return e[0]*rt+e[1]}function at(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function ot(e){let t=new Uint8Array(e.length/2),n=0;for(let r=0;r<e.length;r+=2){let i=at(e.charCodeAt(r)),a=at(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function st(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function ct(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function lt(e){return ct(st(e))}function ut(e){return st(e).toString()}var dt=typeof BigInt<`u`?ut:it;function ft(e){return e}function pt(e){if(e!==void 0)return ot(e)}var mt={encodeHrTime:lt,encodeSpanContext:ot,encodeOptionalSpanContext:pt};function ht(e){if(e===void 0)return mt;let t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?lt:dt,encodeSpanContext:n?ft:ot,encodeOptionalSpanContext:n?ft:pt}}function gt(e){let t={attributes:vt(e.attributes),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==``&&(t.schemaUrl=n),t}function _t(e){return{name:e.name,version:e.version}}function vt(e){return Object.keys(e).map(t=>yt(t,e[t]))}function yt(e,t){return{key:e,value:bt(t)}}function bt(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(bt)}}:t===`object`&&e!=null?{kvlistValue:{values:Object.entries(e).map(([e,t])=>yt(e,t))}}:{}}function xt(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:vt(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>Ct(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>St(e,t)),droppedLinksCount:e.droppedLinksCount}}function St(e,t){return{attributes:e.attributes?vt(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function Ct(e,t){return{attributes:e.attributes?vt(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function wt(e,t){return{resourceSpans:Et(e,ht(t))}}function Tt(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 Et(e,t){let n=Tt(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=>xt(e,t));o.push({scope:_t(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=gt(e),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}var Dt={serializeRequest:e=>{let t=wt(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))}},Ot=5,kt=1e3,At=5e3,jt=1.5,Mt=.2;function Nt(){return 2*Mt*Math.random()-Mt}var Pt=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=Ot,a=kt;for(;r.status===`retryable`&&i>0;){i--;let t=Math.max(Math.min(a,At)+Nt(),0);a*=jt;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 Ft(e){return new Pt(e.transport)}function It(e){return[429,502,503,504].includes(e)}function Lt(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 Rt=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&&It(r.status)?n({status:`retryable`,retryInMillis:Lt(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 zt(e){return new Rt(e)}var Bt=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 Vt(e){return new Bt(e)}var Ht=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`}):It(i.status)?{status:`retryable`,retryInMillis:Lt(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 Ut(e){return new Ht(e)}function Wt(e,t){return nt(e,t,Ft({transport:zt(e)}))}function Gt(e,t){return nt(e,t,Ft({transport:Ut(e)}))}function Kt(e,t){return nt(e,t,Ft({transport:Vt({url:e.url,blobType:e.headers()[`Content-Type`]})}))}function qt(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 Jt(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 Yt(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 Xt(n){return async r=>{let{Agent:i}=await t(()=>import(`./__vite-browser-external-FEGw1XPd.js`).then(t=>e(t.default)),__vite__mapDeps([0,1]),import.meta.url);return new i(n)}}function Zt(e,t,n){return{...Oe(e,t,n),headers:Jt(qt(e.headers),t.headers,n.headers),url:Yt(e.url)??t.url??n.url,agentFactory:e.agentFactory??t.agentFactory??n.agentFactory}}function Qt(e,t){return{...ke(),headers:()=>e,url:`http://localhost:4318/`+t,agentFactory:Xt({keepAlive:!0})}}function $t(e,t,n){return Zt({url:e.url,timeoutMillis:e.timeoutMillis,headers:De(e.headers),concurrencyLimit:e.concurrencyLimit},{},Qt(n,t))}function en(e,t,n,r){return tn(e.headers)($t(e,n,r),t)}function tn(e){return!e&&typeof navigator.sendBeacon==`function`?Kt:globalThis.fetch===void 0?Wt:Gt}var nn=class extends we{constructor(e={}){super(en(e,Dt,`v1/traces`,{"Content-Type":`application/json`}))}},rn=class{emit(e){}},an=new rn,on=new class{getLogger(e,t,n){return new rn}},sn=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):an}},cn=class{getLogger(e,t,n){return this._getDelegateLogger(e,t,n)??new sn(this,e,t,n)}_getDelegate(){return this._delegate??on}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}},ln=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{},y=Symbol.for(`io.opentelemetry.js.api.logs`),b=ln;function un(e,t,n){return r=>r===e?t:n}var dn=class e{constructor(){this._proxyLoggerProvider=new cn}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return b[y]?this.getLoggerProvider():(b[y]=un(1,e,on),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return b[y]?.call(b,1)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete b[y],this._proxyLoggerProvider=new cn}}.getInstance();function fn(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 pn(e){e.forEach(e=>e.disable())}function mn(e){let t=e.tracerProvider||f.getTracerProvider(),n=e.meterProvider||Ce.getMeterProvider(),r=e.loggerProvider||dn.getLoggerProvider(),i=e.instrumentations?.flat()??[];return fn(i,t,n,r),()=>{pn(i)}}var x=console.error.bind(console);function S(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 hn=(e,t,n)=>{if(!e||!e[t]){x(`no original function `+String(t)+` to wrap`);return}if(!n){x(`no wrapper function`),x(Error().stack);return}let r=e[t];if(typeof r!=`function`||typeof n!=`function`){x(`original object and wrapper must be functions`);return}let i=n(r,t);return S(i,`__original`,r),S(i,`__unwrap`,()=>{e[t]===i&&S(e,t,r)}),S(i,`__wrapped`,!0),S(e,t,i),i},gn=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{x(`must provide one or more modules to patch`),x(Error().stack);return}if(!(t&&Array.isArray(t))){x(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{hn(e,t,n)})})},_n=(e,t)=>{if(!e||!e[t]){x(`no function to unwrap.`),x(Error().stack);return}let n=e[t];if(!n.__unwrap)x(`no original to unwrap to -- has `+String(t)+` already been unwrapped?`);else{n.__unwrap();return}},vn=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{x(`must provide one or more modules to patch`),x(Error().stack);return}if(!(t&&Array.isArray(t))){x(`must provide one or more functions to unwrap on modules`);return}e.forEach(e=>{t.forEach(t=>{_n(e,t)})})};function C(e){e&&e.logger&&(typeof e.logger==`function`?x=e.logger:x(`new logger isn't a function, not replacing`))}C.wrap=hn,C.massWrap=gn,C.unwrap=_n,C.massUnwrap=vn;var yn=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=f.getTracer(e,t),this._meter=Ce.getMeter(e,t),this._logger=dn.getLogger(e,t),this._updateMetricInstruments()}_wrap=hn;_unwrap=_n;_massWrap=gn;_massUnwrap=vn;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)}}},bn=class extends yn{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}};function w(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 T(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}var E;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(E||={});function xn(e,t){let n=E.OLD,r=t?.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let t of r??[])if(t.toLowerCase()===e+`/dup`){n=E.DUPLICATE;break}else t.toLowerCase()===e&&(n=E.STABLE);return n}var Sn=s(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function Cn(e){return e.setValue(Sn,!0)}function wn(e){return e.getValue(Sn)===!0}var Tn=`baggage`,En=4096;function Dn(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function On(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 kn(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,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch{return}let c;return t!==-1&&t<e.length-1&&(c=ee(e.substring(t+1))),{key:o,value:s,metadata:c}}var An=class{inject(e,t,n){let r=h.getBaggage(e);if(!r||wn(e))return;let i=Dn(On(r).filter(e=>e.length<=En).slice(0,180));i.length>0&&n.set(t,Tn,i)}extract(e,t,n){let r=n.get(t,Tn),i=Array.isArray(r)?r.join(`,`):r;if(!i)return e;let a={};return i.length===0||(i.split(`,`).forEach(e=>{let t=kn(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),a[t.key]=e}}),Object.entries(a).length===0)?e:h.setBaggage(e,h.createBaggage(a))}fields(){return[Tn]}};function D(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!jn(n)){_.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!Mn(r)){_.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function jn(e){return typeof e==`string`&&e!==``}function Mn(e){return e==null?!0:Array.isArray(e)?Nn(e):Pn(typeof e)}function Nn(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(Pn(e)){t=e;continue}return!1}return!1}}return!0}function Pn(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}function Fn(){return e=>{_.error(In(e))}}function In(e){return typeof e==`string`?e:JSON.stringify(Ln(e))}function Ln(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 Rn=Fn();function O(e){try{Rn(e)}catch{}}var zn=`2.7.0`,Bn=`process.runtime.name`,Vn={[Ye]:`opentelemetry`,[Bn]:`browser`,[qe]:Je,[Xe]:zn},k=performance,Hn=9,Un=10**6,Wn=10**Hn;function A(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*Un)]}function Gn(e){return Yn(A(k.timeOrigin),A(typeof e==`number`?e:k.now()))}function Kn(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=Wn),[n,r]}function qn(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function Jn(e){return qn(e)||typeof e==`number`||e instanceof Date}function Yn(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Wn&&(n[1]-=Wn,n[0]+=1),n}var Xn;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(Xn||={});var Zn=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()}},Qn=`[_0-9a-z-*/]`,$n=`[a-z]${Qn}{0,255}`,er=`[a-z0-9]${Qn}{0,240}@[a-z]${Qn}{0,13}`,tr=RegExp(`^(?:${$n}|${er})$`),nr=/^[ -~]{0,255}[!-~]$/,rr=/,|=/;function ir(e){return tr.test(e)}function ar(e){return nr.test(e)&&!rr.test(e)}var or=32,sr=512,cr=`,`,lr=`=`,ur=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+lr+this.get(t)),e),[]).join(cr)}_parse(e){e.length>sr||(this._internalState=e.split(cr).reverse().reduce((e,t)=>{let n=t.trim(),r=n.indexOf(lr);if(r!==-1){let i=n.slice(0,r),a=n.slice(r+1,t.length);ir(i)&&ar(a)&&e.set(i,a)}return e},new Map),this._internalState.size>or&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,or))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}},j=`traceparent`,dr=`tracestate`,fr=`00`,pr=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function mr(e){let t=pr.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var hr=class{inject(e,t,n){let r=f.getSpanContext(e);if(!r||wn(e)||!d(r))return;let i=`${fr}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||l.NONE).toString(16)}`;n.set(t,j,i),r.traceState&&n.set(t,dr,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,j);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=mr(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,dr);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new ur(typeof e==`string`?e:void 0)}return f.setSpanContext(e,a)}fields(){return[j,dr]}},gr=`[object Object]`,_r=`[object Null]`,vr=`[object Undefined]`,yr=Function.prototype.toString,br=yr.call(Object),xr=Object.getPrototypeOf,Sr=Object.prototype,Cr=Sr.hasOwnProperty,M=Symbol?Symbol.toStringTag:void 0,wr=Sr.toString;function Tr(e){if(!Er(e)||Dr(e)!==gr)return!1;let t=xr(e);if(t===null)return!0;let n=Cr.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&yr.call(n)===br}function Er(e){return typeof e==`object`&&!!e}function Dr(e){return e==null?e===void 0?vr:_r:M&&M in Object(e)?Or(e):kr(e)}function Or(e){let t=Cr.call(e,M),n=e[M],r=!1;try{e[M]=void 0,r=!0}catch{}let i=wr.call(e);return r&&(t?e[M]=n:delete e[M]),i}function kr(e){return wr.call(e)}var Ar=20;function jr(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=Nr(t,e.shift(),0,n);return t}function Mr(e){return N(e)?e.slice():e}function Nr(e,t,n=0,r){let i;if(!(n>Ar)){if(n++,F(e)||F(t)||Fr(t))i=Mr(t);else if(N(e)){if(i=e.slice(),N(t))for(let e=0,n=t.length;e<n;e++)i.push(Mr(t[e]));else if(P(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]=Mr(t[r]))}}}else if(P(e))if(P(t)){if(!Ir(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(F(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(Pr(e,s,r)||Pr(t,s,r))delete i[s];else{if(P(a)&&P(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]=Nr(i[s],c,n,r)}}}}else i=t;return i}}function Pr(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 N(e){return Array.isArray(e)}function Fr(e){return typeof e==`function`}function P(e){return!F(e)&&!N(e)&&!Fr(e)&&typeof e==`object`}function F(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function Ir(e,t){return!(!Tr(e)||!Tr(t))}var Lr=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)}},Rr=class{_isCalled=!1;_deferred=new Lr;_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}},I;function zr(){if(I===void 0)try{let e=globalThis.process.argv0;I=e?`unknown_service:${e}`:`unknown_service`}catch{I=`unknown_service`}return I}var L=e=>typeof e==`object`&&!!e&&typeof e.then==`function`,Br=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Ur(t),r._asyncAttributesPending=t.filter(([e,t])=>L(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(L(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Ur(this._rawAttributes),this._schemaUrl=Wr(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,L(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(L(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=Gr(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}};function Vr(e,t){return Br.FromAttributeList(Object.entries(e),t)}function Hr(){return Vr({[Ge]:zr(),[qe]:Vn[qe],[Ye]:Vn[Ye],[Xe]:Vn[Xe]})}function Ur(e){return e.map(([e,t])=>L(t)?[e,t.catch(t=>{_.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Wr(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 Gr(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 Kr=`exception`,qr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:c.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=k.now(),this._performanceOffset=t-(this._performanceStartTime+k.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(!Mn(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++),Jn(t)&&(Jn(n)||(n=t),t=void 0);let i=D(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=D(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===c.UNSET||this.status.code===c.OK)return this;let t={code:e.code};return e.code===c.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=Kn(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<=k.now())return Gn(e+this._performanceOffset);if(typeof e==`number`)return A(e);if(e instanceof Date)return A(e.getTime());if(qn(e))return e;if(this._startTimeProvided)return A(Date.now());let t=k.now()-this._performanceStartTime;return Yn(this.startTime,A(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[Le]=e:e&&(e.code?n[ze]=e.code.toString():e.name&&(n[ze]=e.name),e.message&&(n[Le]=e.message),e.stack&&(n[Re]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(Kr,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}},R;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(R||={});var z=class{shouldSample(){return{decision:R.NOT_RECORD}}toString(){return`AlwaysOffSampler`}},B=class{shouldSample(){return{decision:R.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}},V=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||=(O(Error(`ParentBasedSampler must have a root sampler configured`)),new B),this._remoteParentSampled=e.remoteParentSampled??new B,this._remoteParentNotSampled=e.remoteParentNotSampled??new z,this._localParentSampled=e.localParentSampled??new B,this._localParentNotSampled=e.localParentNotSampled??new z}shouldSample(e,t,n,r,i,a){let o=f.getSpanContext(e);return!o||!d(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&l.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&l.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()}}`}},Jr=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:o(t)&&this._accumulate(t)<this._upperBound?R.RECORD_AND_SAMPLED:R.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}},H;(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`})(H||={});var Yr=1;function Xr(){return{sampler:Zr(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Zr(){let e=H.ParentBasedAlwaysOn;switch(e){case H.AlwaysOn:return new B;case H.AlwaysOff:return new z;case H.ParentBasedAlwaysOn:return new V({root:new B});case H.ParentBasedAlwaysOff:return new V({root:new z});case H.TraceIdRatio:return new Jr(Qr());case H.ParentBasedTraceIdRatio:return new V({root:new Jr(Qr())});default:return _.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${H.ParentBasedAlwaysOn}".`),new V({root:new B})}}function Qr(){return _.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Yr}.`),Yr}function $r(e){let t={sampler:Zr()},n=Xr(),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 ei(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 ti=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 Rr(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&l.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);m.with(Cn(m.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===Xn.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=>{O(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,O(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)}},ni=class extends ti{_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=>{O(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{O(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))}},ri=16,ii=8,ai=new Uint8Array(ri),oi=new Uint8Array(ii),si=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function ci(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 li(e){let t=``;for(let n=0;n<e.length;n++)t+=si[e[n]];return t}var ui=class{generateTraceId(){return ci(ai),li(ai)}generateSpanId(){return ci(oi),li(oi)}},di=`otel.span.parent.origin`,fi=`otel.span.sampling_result`,pi=`otel.sdk.span.live`,mi=`otel.sdk.span.started`,hi=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(mi,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(pi,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=_i(t);if(this.startedSpans.add(1,{[di]:gi(e),[fi]:n}),t===R.NOT_RECORD)return()=>{};let r={[fi]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}};function gi(e){return e?e.isRemote?`remote`:`local`:`none`}function _i(e){switch(e){case R.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case R.RECORD:return`RECORD_ONLY`;case R.NOT_RECORD:return`DROP`}}var vi=`2.7.0`,yi=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t,n,r){let i=$r(t);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new ui,this._resource=n,this._spanProcessor=r,this.instrumentationScope=e,this._tracerMetrics=new hi(i.meterProvider?i.meterProvider.getMeter(`@opentelemetry/sdk-trace`,vi):ve())}startSpan(e,t={},r=m.active()){t.root&&(r=f.deleteSpan(r));let i=f.getSpan(r);if(wn(r))return _.debug(`Instrumentation suppressed, returning Noop Span`),f.wrapSpanContext(n);let a=i?.spanContext(),o=this._idGenerator.generateSpanId(),s,c,u;!a||!f.isSpanContextValid(a)?c=this._idGenerator.generateTraceId():(c=a.traceId,u=a.traceState,s=a);let d=t.kind??be.INTERNAL,p=(t.links??[]).map(e=>({context:e.context,attributes:D(e.attributes)})),ee=D(t.attributes),h=this._sampler.shouldSample(r,c,e,d,ee,p),te=this._tracerMetrics.startSpan(a,h.decision);u=h.traceState??u;let g=h.decision===ye.RECORD_AND_SAMPLED?l.SAMPLED:l.NONE,ne={traceId:c,spanId:o,traceFlags:g,traceState:u};if(h.decision===ye.NOT_RECORD)return _.debug(`Recording is off, propagating context in a non-recording span`),f.wrapSpanContext(ne);let re=D(Object.assign(ee,h.attributes));return new qr({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:ne,name:e,kind:d,links:p,parentSpanContext:s,attributes:re,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:te})}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??m.active(),c=this.startSpan(e,i,s),l=f.setSpan(s,c);return m.with(l,o,void 0,c)}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=>{O(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)})}},U;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(U||={});var xi=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){let t=jr({},Xr(),ei(e));this._resource=t.resource??Hr(),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 yi({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=U.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==U.timeout&&(r=U.resolved,n(r))}).catch(e=>{clearTimeout(i),r=U.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==U.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}},Si=class{_enabled=!1;_currentContext=r;_bindFunction(e=r,t){let n=this,i=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(i,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),i}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=r,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=r,this)}with(e,t,n,...i){let a=this._currentContext;this._currentContext=e||r;try{return t.call(n,...i)}finally{this._currentContext=a}}};function Ci(e){if(e!==null){if(e===void 0){let e=new Si;e.enable(),m.setGlobalContextManager(e);return}e.enable(),m.setGlobalContextManager(e)}}function wi(e){if(e!==null){if(e===void 0){h.setGlobalPropagator(new Zn({propagators:[new hr,new An]}));return}h.setGlobalPropagator(e)}}var Ti=class extends xi{constructor(e={}){super(e)}register(e={}){f.setGlobalTracerProvider(this),wi(e.propagator),Ci(e.contextManager)}},W;(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`})(W||={});var Ei=`http.response_content_length`,Di=`http.response_content_length_uncompressed`;function G(e,t){return t in e}function K(e,t,n,r=!0){if(G(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Oi(e,t,n=!1,r,i){if(r===void 0&&(r=t[W.START_TIME]!==0),n||(K(e,W.FETCH_START,t,r),K(e,W.DOMAIN_LOOKUP_START,t,r),K(e,W.DOMAIN_LOOKUP_END,t,r),K(e,W.CONNECT_START,t,r),K(e,W.SECURE_CONNECTION_START,t,r),K(e,W.CONNECT_END,t,r),K(e,W.REQUEST_START,t,r),K(e,W.RESPONSE_START,t,r),K(e,W.RESPONSE_END,t,r)),!i){let n=t[W.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(Ei,n);let r=t[W.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(Di,r)}}function ki(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return`/`;let n=ji(e,t);if(t&&n.indexOf(`@id`)>0)return n;let r=``;return e.parentNode&&(r+=ki(e.parentNode,t)),r+=n,r}function Ai(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 ji(e,t){let n=e.nodeType,r=Ai(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 q;(function(e){e.DOCUMENT_LOAD=`documentLoad`,e.DOCUMENT_FETCH=`documentFetch`,e.RESOURCE_FETCH=`resourceFetch`})(q||={});var Mi=`0.49.0`,Ni=`@opentelemetry/instrumentation-document-load`,Pi;(function(e){e.FIRST_PAINT=`firstPaint`,e.FIRST_CONTENTFUL_PAINT=`firstContentfulPaint`})(Pi||={});var Fi=()=>{let e={},t=k.getEntriesByType?.(`navigation`)[0];if(t)Object.values(W).forEach(n=>{if(G(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}});else{let t=k.timing;t&&Object.values(W).forEach(n=>{if(G(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}})}return e},Ii={"first-paint":Pi.FIRST_PAINT,"first-contentful-paint":Pi.FIRST_CONTENTFUL_PAINT},Li=e=>{let t=k.getEntriesByType?.(`paint`);t&&t.forEach(({name:t,startTime:n})=>{G(Ii,t)&&e.addEvent(Ii[t],n)})},Ri=class extends bn{component=`document-load`;version=`1`;moduleName=this.component;constructor(e={}){super(Ni,Mi,e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){let t=k.getEntriesByType?.(`resource`);t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){let e=Array.from(document.getElementsByTagName(`meta`)).find(e=>e.getAttribute(`name`)===j),t=Fi(),n=e&&e.content||``;m.with(h.extract(r,{traceparent:n}),()=>{let e=this._startSpan(q.DOCUMENT_LOAD,W.FETCH_START,t);e&&(m.with(f.setSpan(m.active(),e),()=>{let e=this._startSpan(q.DOCUMENT_FETCH,W.FETCH_START,t);e&&(e.setAttribute(Pe,location.href),m.with(f.setSpan(m.active(),e),()=>{Oi(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,W.RESPONSE_END,t)}))}),e.setAttribute(Pe,location.href),e.setAttribute(Fe,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||(K(e,W.FETCH_START,t),K(e,W.UNLOAD_EVENT_START,t),K(e,W.UNLOAD_EVENT_END,t),K(e,W.DOM_INTERACTIVE,t),K(e,W.DOM_CONTENT_LOADED_EVENT_START,t),K(e,W.DOM_CONTENT_LOADED_EVENT_END,t),K(e,W.DOM_COMPLETE,t),K(e,W.LOAD_EVENT_START,t),K(e,W.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||Li(e),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,W.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&(G(n,t)?e.end(n[t]):e.end())}_initResourceSpan(e,t){let n=this._startSpan(q.RESOURCE_FETCH,W.FETCH_START,e,t);n&&(n.setAttribute(Pe,e.name),Oi(n,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(n,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(n,W.RESPONSE_END,e))}_startSpan(e,t,n,r){if(G(n,t)&&typeof n[t]==`number`)return this.tracer.startSpan(e,{startTime:n[t]},r?f.setSpan(m.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&&w(()=>t(e),e=>{e&&this._diag.error(`addCustomAttributesOnSpan`,e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&w(()=>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)}},zi=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{},Bi=performance,Vi=9,Hi=10**6,Ui=10**Vi;function J(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*Hi)]}function Wi(){let e=Bi.timeOrigin;if(typeof e!=`number`){let t=Bi;e=t.timing&&t.timing.fetchStart}return e}function Gi(e){return qi(J(Wi()),J(typeof e==`number`?e:Bi.now()))}function Y(e){if(Ki(e))return e;if(typeof e==`number`)return e<Wi()?Gi(e):J(e);if(e instanceof Date)return J(e.getTime());throw TypeError(`Invalid input type`)}function X(e){return e[0]*Ui+e[1]}function Ki(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function qi(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Ui&&(n[1]-=Ui,n[0]+=1),n}function Ji(e,t){return typeof t==`string`?e===t:!!e.match(t)}function Yi(e,t){if(!t)return!1;for(let n of t)if(Ji(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 Xi=`http.response_content_length`,Zi=`http.response_content_length_uncompressed`,Qi;function $i(){return Qi||=document.createElement(`a`),Qi}function ea(e,t){return t in e}function Q(e,t,n,r=!0){if(ea(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function ta(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(Xi,n);let r=t[Z.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(Zi,r)}}function na(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 ra(){return typeof location<`u`?location.origin:void 0}function ia(e,t,n,r,i=new WeakSet,a){let o=sa(e);e=o.toString();let s=oa(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=na(s);if(o.origin!==ra()&&c.length>1){let e=c[0],t=aa(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 aa(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 oa(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 sa(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=$i();return t.href=e,t}function ca(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),sa(e).origin===ra()?!0:n.some(t=>Ji(e,t))}var la;(function(e){e.COMPONENT=`component`,e.HTTP_STATUS_TEXT=`http.status_text`})(la||={});var ua=`http.host`,da=`http.method`,fa=`http.request.body.size`,pa=`http.request_content_length_uncompressed`,ma=`http.scheme`,ha=`http.status_code`,ga=`http.url`,_a=`http.user_agent`,va=_.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-fetch/utils`});function ya(...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}=ba(t.body);return t.body=e,n}else return Promise.resolve(Sa(t.body))}else{let t=e[0];return t?.body?t.clone().text().then(e=>wa(e)):Promise.resolve()}}function ba(e){if(!e.pipeThrough)return va.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 xa(e){return typeof Document<`u`&&e instanceof Document}function Sa(e){if(xa(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return wa(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Ta(e);if(e instanceof URLSearchParams)return wa(e.toString());if(e.byteLength!==void 0)return e.byteLength;va.warn(`unknown body type`)}var Ca=new TextEncoder;function wa(e){return Ca.encode(e).byteLength}function Ta(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 Ea(e){let t=ka(),n=e.toUpperCase();return n in t?n:`_OTHER`}var Da={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},Oa;function ka(){return Oa===void 0&&(Oa=Da),Oa}var Aa={"https:":`443`,"http:":`80`};function ja(e){let t=Number(e.port||Aa[e.protocol]);if(t&&!isNaN(t))return t}var Ma=`0.204.0`,Na=300,Pa=typeof process==`object`&&process.release?.name===`node`,Fa=class extends bn{component=`fetch`;version=Ma;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super(`@opentelemetry/instrumentation-fetch`,Ma,e),this._semconvStability=xn(`http`,e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan(`CORS Preflight`,{startTime:t[Z.FETCH_START]},f.setSpan(m.active(),e)),r=!(this._semconvStability&E.OLD);ta(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[Z.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=sa(t.url);if(this._semconvStability&E.OLD&&(e.setAttribute(ha,t.status),t.statusText!=null&&e.setAttribute(la.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(ua,n.host),e.setAttribute(ma,n.protocol.replace(`:`,``)),typeof navigator<`u`&&e.setAttribute(_a,navigator.userAgent)),this._semconvStability&E.STABLE){e.setAttribute(He,t.status),e.setAttribute(Ue,n.hostname);let r=ja(n);r&&e.setAttribute(We,r)}}_addHeaders(e,t){if(!ca(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};h.inject(m.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}if(e instanceof Request)h.inject(m.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Headers)h.inject(m.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Map)h.inject(m.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else{let t={};h.inject(m.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(Yi(e,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let n=``,r={};if(this._semconvStability&E.OLD){let i=(t.method||`GET`).toUpperCase();n=`HTTP ${i}`,r[la.COMPONENT]=this.moduleName,r[da]=i,r[ga]=e}if(this._semconvStability&E.STABLE){let i=t.method,a=Ea(t.method||`GET`);n||=a,r[Be]=a,a!==i&&(r[Ve]=i),r[Ze]=e}return this.tracer.startSpan(n,{kind:be.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType(`resource`)}let i=ia(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&E.OLD);ta(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=J(Date.now()),i=Gi();this._addFinalSpanAttributes(e,n),this._semconvStability&E.STABLE&&n.status>=400&&(e.setStatus({code:c.ERROR}),e.setAttribute(Ie,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},Na)}_patchConstructor(){return e=>{let t=this;return function(...n){let r=this,i=sa(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},o=t._createSpan(i,a);if(!o)return e.apply(this,n);let s=t._prepareSpanData(i);t.getConfig().measureRequestSize&&ya(...n).then(e=>{e&&(t._semconvStability&E.OLD&&o.setAttribute(pa,e),t._semconvStability&E.STABLE&&o.setAttribute(fa,e))}).catch(e=>{t._diag.warn(`getFetchBodyLength`,e)});function c(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,s,{status:n.status||0,statusText:n.message,url:i})}function l(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,s,n):t._endSpan(e,s,{status:n.status,statusText:n.statusText,url:i})}function u(e,t,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?l(e,n):i()},t=>{c(e,t)})};i()}else l(e,n)}finally{t(n)}}function d(e,t,n){try{c(e,n)}finally{t(n)}}return new Promise((n,s)=>m.with(f.setSpan(m.active(),o),()=>(t._addHeaders(a,i),t._callRequestHook(o,a),t._tasksCount++,e.apply(r,a instanceof Request?[a]:[i,a]).then(u.bind(r,o,n),d.bind(r,o,s)))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&w(()=>r(e,t,n),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&w(()=>n(e,t),e=>{e&&this._diag.error(`requestHook`,e)},!0)}_prepareSpanData(e){let t=Gi(),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(Pa){this._diag.warn(`this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()`);return}T(fetch)&&(this._unwrap(zi,`fetch`),this._diag.debug(`removing previous patch for constructor`)),this._wrap(zi,`fetch`,this._patchConstructor())}disable(){Pa||(this._unwrap(zi,`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 Ia=`0.49.0`,La=`@opentelemetry/instrumentation-user-interaction`,Ra=`OT_ZONE_CONTEXT`,za=`Navigation:`,Ba=[`click`];function Va(){return!1}var Ha=class extends bn{version=Ia;moduleName=`user-interaction`;_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super(La,Ia,e),this._eventNames=new Set(e?.eventNames??Ba),this._shouldPreventSpanCreation=typeof e?.shouldPreventSpanCreation==`function`?e.shouldPreventSpanCreation:Va}init(){}_checkForTimeout(e,t){let n=this._spansData.get(t);n&&(e.source===`setTimeout`?n.hrTimeLastTimeout=Gn():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=ki(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?f.setSpan(m.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(Ra);return t&&f.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,o=function(...t){let i,o=t[0],s=o?.target;o&&(i=e._eventsSpanMap.get(o)),a&&e.removePatchedListener(this,n,r);let c=e._createSpan(s,n,i);return c?(o&&e._eventsSpanMap.set(o,c),m.with(f.setSpan(m.active(),c),()=>{let n=e._invokeListener(r,this,t);return c.end(),n})):e._invokeListener(r,this,t)};if(e.addPatchedListener(this,n,r,o))return t.call(this,n,o,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(){T(history.replaceState)&&this._unwrap(history,`replaceState`),T(history.pushState)&&this._unwrap(history,`pushState`),T(history.back)&&this._unwrap(history,`back`),T(history.forward)&&this._unwrap(history,`forward`),T(history.go)&&this._unwrap(history,`go`)}_updateInteractionName(e){let t=f.getSpan(m.active());t&&typeof t.updateName==`function`&&t.updateName(`${za} ${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,o,s=this;if(a){if(o=e._createSpan(a,n.eventName),o)return e._incrementTask(o),s.run(()=>{try{return m.with(f.setSpan(m.active(),o),()=>{let e=Zone.current;return n._zone=e,t.call(e,n,r,i)})}finally{e._decrementTask(o)}})}else o=e._getCurrentSpan(s);try{return t.call(s,n,r,i)}finally{o&&e._shouldCountTask(n,s)&&e._decrementTask(o)}}}_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?(T(e.prototype.runTask)&&(this._unwrap(e.prototype,`runTask`),this._diag.debug(`removing previous patch from method runTask`)),T(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,`scheduleTask`),this._diag.debug(`removing previous patch from method scheduleTask`)),T(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=>{T(e.addEventListener)&&(this._unwrap(e,`addEventListener`),this._diag.debug(`removing previous patch from method addEventListener`)),T(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?(T(e.prototype.runTask)&&this._unwrap(e.prototype,`runTask`),T(e.prototype.scheduleTask)&&this._unwrap(e.prototype,`scheduleTask`),T(e.prototype.cancelTask)&&this._unwrap(e.prototype,`cancelTask`)):this._getPatchableEventTargets().forEach(e=>{T(e.addEventListener)&&this._unwrap(e,`addEventListener`),T(e.removeEventListener)&&this._unwrap(e,`removeEventListener`)}),this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}},Ua=`deployment.environment.name`,Wa=!1;function Ga(){return{BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1}?.VITE_OTEL_COLLECTOR_URL??`http://localhost:4318`}function Ka(){if(Wa)return;Wa=!0;let e=null,t=!1;try{let n=Ga(),r={BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1};e=new Ti({resource:Vr({[Ge]:`open-knowledge-app`,[Ke]:r?.VITE_APP_VERSION??`dev`,[Ua]:r?.MODE??`dev`}),spanProcessors:[new ni(new nn({url:`${n}/v1/traces`}),{maxExportBatchSize:50,scheduledDelayMillis:2e3})]}),e.register(),t=!0,mn({instrumentations:[new Ri,new Ha({eventNames:[`click`,`submit`]}),new Fa({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(()=>{}),Wa=!1}}export{Ka as install};
@@ -0,0 +1,120 @@
1
+ import{n as e,r as t,t as n}from"./src-C9jsS3p4.js";import{$ as r,K as i,Q as a,a as o,b as s,o as c,tt as l,y as u}from"./chunk-ICPOFSXX-CrnuSfeJ.js";import{C as d}from"./src-zyMpT2LE.js";import{t as f}from"./arc-BL_OKZmE.js";import{f as p}from"./chunk-5PVQY5BW-Cxi5d3lT.js";import{t as m}from"./chunk-426QAEUC-BoBKbVmN.js";var h=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return e(d,`Parser`),d.prototype=u,u.Parser=d,new d})();h.parser=h;var g=h,_={};n(_,{addEvent:()=>M,addSection:()=>O,addTask:()=>j,addTaskOrg:()=>N,clear:()=>T,default:()=>ee,getCommonDb:()=>w,getDirection:()=>D,getSections:()=>k,getTasks:()=>A,setDirection:()=>E});var v=``,y=0,b=`LR`,x=[],S=[],C=[],w=e(()=>c,`getCommonDb`),T=e(function(){x.length=0,S.length=0,v=``,C.length=0,b=`LR`,o()},`clear`),E=e(function(e){b=e},`setDirection`),D=e(function(){return b},`getDirection`),O=e(function(e){v=e,x.push(e)},`addSection`),k=e(function(){return x},`getSections`),A=e(function(){let e=P(),t=0;for(;!e&&t<100;)e=P(),t++;return S.push(...C),S},`getTasks`),j=e(function(e,t,n){let r={id:y++,section:v,type:v,task:e,score:t||0,events:n?[n]:[]};C.push(r)},`addTask`),M=e(function(e){C.find(e=>e.id===y-1).events.push(e)},`addEvent`),N=e(function(e){let t={section:v,type:v,description:e,task:e,classes:[]};S.push(t)},`addTaskOrg`),P=e(function(){let t=e(function(e){return C[e].processed},`compileTask`),n=!0;for(let[e,r]of C.entries())t(e),n&&=r.processed;return n},`compileTasks`),ee={clear:T,getCommonDb:w,getDirection:D,setDirection:E,addSection:O,getSections:k,getTasks:A,addTask:j,addTaskOrg:N,addEvent:M},F=0,I=e(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),te=e(function(t,n){let r=t.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),i=t.append(`g`);i.append(`circle`).attr(`cx`,n.cx-15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),i.append(`circle`).attr(`cx`,n.cx+15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(e){let t=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}e(a,`smile`);function o(e){let t=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}e(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return e(s,`ambivalent`),n.score>3?a(i):n.score<3?o(i):s(i),r},`drawFace`),ne=e(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),L=e(function(e,t){let n=t.text.replace(/<br\s*\/?>/gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),re=e(function(t,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}e(r,`genPoints`);let i=t.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,L(t,n)},`drawLabel`),R=e(function(e,t,n){let r=e.append(`g`),i=B();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,I(r,i),V(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),z=-1,ie=e(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);z++,a.append(`line`).attr(`id`,r+`-task`+z).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),te(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=B();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,I(a,o),V(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),ae=e(function(e,t){I(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),oe=e(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),B=e(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),V=(function(){function t(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}e(t,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,r).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(p,s)}}e(n,`byTspan`);function r(e,t,r,a,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,a,o,s,c,l),i(d,c)}e(r,`byFo`);function i(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return e(i,`_setTextAttrs`),function(e){return e.textPlacement===`fo`?r:e.textPlacement===`old`?t:n}})(),se=e(function(e,t){F=0,z=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,5).attr(`refY`,2).attr(`markerWidth`,6).attr(`markerHeight`,4).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0,0 V 4 L6,2 Z`)},`initGraphics`);function H(e,t){e.each(function(){var e=d(this),n=e.text().split(/(\s+|<br>)/).reverse(),r,i=[],a=1.1,o=e.attr(`y`),s=parseFloat(e.attr(`dy`)),c=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,s+`em`);for(let s=0;s<n.length;s++)r=n[n.length-1-s],i.push(r),c.text(i.join(` `).trim()),(c.node().getComputedTextLength()>t||r===`<br>`)&&(i.pop(),c.text(i.join(` `).trim()),i=r===`<br>`?[``]:[r],c=e.append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,a+`em`).text(r))})}e(H,`wrap`);var ce=e(function(e,t,n,r,i,a=!1){let{theme:o,look:s}=r,c=o?.includes(`redux`),l=n%(r?.themeVariables?.THEME_COLOR_LIMIT??12)-1,u=e.append(`g`);t.section=l,u.attr(`class`,(t.class?t.class+` `:``)+`timeline-node `+(`section-`+l));let f=u.append(`g`),p=u.append(`g`),m=p.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(H,t.width).node().getBBox(),h=r.fontSize?.replace?r.fontSize.replace(`px`,``):r.fontSize;if(t.height=m.height+h*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,p.attr(`transform`,`translate(`+t.width/2+`, `+t.padding/2+`)`),c&&p.attr(`transform`,`translate(${t.width/2}, ${a?t.padding/2+3:t.padding})`),ue(f,t,l,i,r),s===`neo`&&(u.attr(`data-look`,`neo`),c)){let t=o.includes(`dark`),n=d(e.node()?.ownerSVGElement??e.node()),r=n.attr(`id`)??``,i=r?`${r}-drop-shadow`:`drop-shadow`;if(n.select(`#${i}`).empty()){let e=n.select(`defs`);(e.empty()?n.append(`defs`):e).append(`filter`).attr(`id`,i).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,t?`0.2`:`0.06`).attr(`flood-color`,t?`#FFFFFF`:`#000000`)}}return t},`drawNode`),le=e(function(e,t,n){let r=e.append(`g`),i=r.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(H,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace(`px`,``):n.fontSize;return r.remove(),i.height+a*1.1*.5+t.padding},`getVirtualNodeHeight`),ue=e(function(e,t,n,r,i){let{theme:a}=i,o=a?.includes(`redux`)?0:5,s=o>0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+ F++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),U={drawRect:I,drawCircle:ne,drawSection:R,drawText:L,drawLabel:re,drawTask:ie,drawBackgroundRect:ae,getTextObj:oe,getNoteRect:B,initGraphics:se,drawNode:ce,getVirtualNodeHeight:le},de=e(function(e,n,r,a){let o=s(),{look:c,theme:l,themeVariables:u}=o,{useGradient:f,gradientStart:p,gradientStop:m}=u,h=o.timeline?.leftMargin??50;t.debug(`timeline`,a.db);let g=o.securityLevel,_;g===`sandbox`&&(_=d(`#i`+n));let v=d(g===`sandbox`?_.nodes()[0].contentDocument.body:`body`).select(`#`+n);v.append(`g`);let y=a.db.getTasks(),b=a.db.getCommonDb().getDiagramTitle();t.debug(`task`,y),U.initGraphics(v,n);let x=a.db.getSections();t.debug(`sections`,x);let S=0,C=0,w=0,T=0,E=50+h,D=50;T=50;let O=0,k=!0;x.forEach(function(e){let n={number:O,descr:e,section:O,width:150,padding:20,maxHeight:S},r=U.getVirtualNodeHeight(v,n,o);t.debug(`sectionHeight before draw`,r),S=Math.max(S,r+20)});let A=0,j=0;t.debug(`tasks.length`,y.length);for(let[e,n]of y.entries()){let r={number:e,descr:n,section:n.section,width:150,padding:20,maxHeight:C},i=U.getVirtualNodeHeight(v,r,o);t.debug(`taskHeight before draw`,i),C=Math.max(C,i+20),A=Math.max(A,n.events.length);let a=0;for(let e of n.events){let t={descr:e,section:n.section,number:n.section,width:150,padding:20,maxHeight:50};a+=U.getVirtualNodeHeight(v,t,o)}n.events.length>0&&(a+=(n.events.length-1)*10),j=Math.max(j,a)}t.debug(`maxSectionHeight before draw`,S),t.debug(`maxTaskHeight before draw`,C),x&&x.length>0?x.forEach(e=>{let r=y.filter(t=>t.section===e),i={number:O,descr:e,section:O,width:200*Math.max(r.length,1)-50,padding:20,maxHeight:S};t.debug(`sectionNode`,i);let a=v.append(`g`),s=U.drawNode(a,i,O,o,n);t.debug(`sectionNode output`,s),a.attr(`transform`,`translate(${E}, ${T})`),D+=S+50,r.length>0&&W(v,r,O,E,D,C,o,A,j,S,!1,n),E+=200*Math.max(r.length,1),D=T,O++}):(k=!1,W(v,y,O,E,D,C,o,A,j,S,!0,n));let M=v.node().getBBox();if(t.debug(`bounds`,M),b&&v.append(`text`).text(b).attr(`x`,c===`neo`?M.x*2+h:M.width/2-h).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),w=k?S+C+150:C+100,v.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,h).attr(`y1`,w).attr(`x2`,M.width+3*h).attr(`y2`,w).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${n}-arrowhead)`),c===`neo`&&f&&l!==`neutral`){let e=v.select(`defs`),t=(e.empty()?v.append(`defs`):e).append(`linearGradient`).attr(`id`,v.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,p).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,m).attr(`stop-opacity`,1)}i(void 0,v,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},`draw`),W=e(function(e,n,r,i,a,o,s,c,l,u,d,f){for(let c of n){let n={descr:c.task,section:r,number:r,width:150,padding:20,maxHeight:o};t.debug(`taskNode`,n);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=U.drawNode(u,n,r,s,f).height;if(t.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${i}, ${a})`),o=Math.max(o,p),c.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),n=o;a+=100,n+=fe(e,c.events,r,i,a,s,f),a-=100,t.append(`line`).attr(`x1`,i+190/2).attr(`y1`,a+o).attr(`x2`,i+190/2).attr(`y2`,a+o+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}i+=200,d&&!s.timeline?.disableMulticolor&&r++}a-=10},`drawTasks`),fe=e(function(e,n,r,i,a,o,s){let c=0,l=a;a+=100;for(let l of n){let n={descr:l,section:r,number:r,width:150,padding:20,maxHeight:50};t.debug(`eventNode`,n);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=U.drawNode(u,n,r,o,s,!0).height;c+=d,u.attr(`transform`,`translate(${i}, ${a})`),a=a+10+d}return a=l,c},`drawEvents`),pe={setConf:e(()=>{},`setConf`),draw:de},G=200,K=5,me=G+K*2,q=G+100,he=q+K*2,J=10,ge=0,Y=20,X=20,Z=30,Q=50,_e=e(function(e,n,r,a){let o=s(),c=o.timeline?.leftMargin??50;t.debug(`timeline`,a.db);let l=m(n);l.append(`g`);let u=a.db.getTasks(),d=a.db.getCommonDb().getDiagramTitle();t.debug(`task`,u),U.initGraphics(l);let f=a.db.getSections();t.debug(`sections`,f);let h=0,g=0,_=50+c,v=50,y=v,b=_,x=me+X,S=he+Q,C=b+x,w=0,T=f&&f.length>0,E=T?C:_+x,D=Math.max(50,x+S-K*2);f.forEach(function(e){let n={number:w,descr:e,section:w,width:D,padding:K,maxHeight:h},r=U.getVirtualNodeHeight(l,n,o);t.debug(`sectionHeight before draw`,r),h=Math.max(h,r)});let O=0;t.debug(`tasks.length`,u.length);for(let[e,n]of u.entries()){let r={number:e,descr:n,section:n.section,width:G,padding:K,maxHeight:g},i=U.getVirtualNodeHeight(l,r,o);t.debug(`taskHeight before draw`,i),g=Math.max(g,i);let a=0;for(let e of n.events){let t={descr:e,section:n.section,number:n.section,width:q,padding:K,maxHeight:50};a+=U.getVirtualNodeHeight(l,t,o)}n.events.length>0&&(a+=(n.events.length-1)*J),O=Math.max(O,a)+ge}t.debug(`maxSectionHeight before draw`,h),t.debug(`maxTaskHeight before draw`,g);let k=Math.max(g,O)+Z;T?f.forEach(e=>{let n=u.filter(t=>t.section===e),r={number:w,descr:e,section:w,width:D,padding:K,maxHeight:h};t.debug(`sectionNode`,r);let i=l.append(`g`),a=U.drawNode(i,r,w,o);t.debug(`sectionNode output`,a);let s=E-x;i.attr(`transform`,`translate(${s}, ${v})`);let c=v+a.height+Y;n.length>0&&$(l,n,w,E,c,g,o,k,!1);let d=n.length,f=a.height+Y+k*Math.max(d,1)-(d>0?Z*2:0);v+=f,w++}):$(l,u,w,E,v,g,o,k,!0);let A=l.node()?.getBBox();if(!A)throw Error(`bbox not found`);if(t.debug(`bounds`,A),d){if(l.append(`text`).text(d).attr(`x`,A.width/2-c).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),A=l.node()?.getBBox(),!A)throw Error(`bbox not found`);t.debug(`bounds after title`,A)}let[j]=p(o.fontSize),M=(j??16)*2,N=(j??16)*.5+20,P=l.append(`g`).attr(`class`,`lineWrapper`);P.append(`line`).attr(`x1`,E).attr(`y1`,y-M).attr(`x2`,E).attr(`y2`,A.y+A.height+N).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),P.lower(),i(void 0,l,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},`draw`),$=e(function(e,n,r,i,a,o,s,c,l){for(let u of n){let n={descr:u.task,section:r,number:r,width:G,padding:K,maxHeight:o};t.debug(`taskNode`,n);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=U.drawNode(d,n,r,s),p=f.height;t.debug(`taskHeight after draw`,p);let m=i-X-f.width;if(d.attr(`transform`,`translate(${m}, ${a})`),o=Math.max(o,p),u.events&&u.events.length>0){let t=a,n=i+Q;ve(e,u.events,r,i,n,t,s)}a+=c,l&&!s.timeline?.disableMulticolor&&r++}},`drawTasks`),ve=e(function(e,n,r,i,a,o,s){let c=o;for(let o of n){let n={descr:o,section:r,number:r,width:q,padding:K,maxHeight:0};t.debug(`eventNode`,n);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=U.drawNode(l,n,r,s).height;l.attr(`transform`,`translate(${a}, ${c})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=c+u/2;d.append(`line`).attr(`x1`,i).attr(`y1`,f).attr(`x2`,a).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),c=c+u+J}return c-o},`drawEvents`),ye={setConf:e(()=>{},`setConf`),draw:_e},be=e(e=>{let{theme:t}=u(),n=t?.includes(`dark`),r=t?.includes(`color`),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let i=`${17-3*t}`,s=r?e.borderColorArray[t]:e.mainBkg,c=r?e.borderColorArray[t]:e.nodeBorder;o+=`
7
+ .section-${t-1} rect,
8
+ .section-${t-1} path,
9
+ .section-${t-1} circle {
10
+ fill: ${n&&r?e.mainBkg:s};
11
+ stroke: ${c};
12
+ stroke-width: ${e.strokeWidth};
13
+ filter: ${a};
14
+ }
15
+
16
+ .section-${t-1} text {
17
+ fill: ${e.nodeBorder};
18
+ font-weight: ${e.fontWeight}
19
+ }
20
+
21
+ .node-icon-${t-1} {
22
+ font-size: 40px;
23
+ color: ${e[`cScaleLabel`+t]};
24
+ }
25
+
26
+ .section-edge-${t-1} {
27
+ stroke: ${e[`cScale`+t]};
28
+ }
29
+
30
+ .edge-depth-${t-1} {
31
+ stroke-width: ${i};
32
+ }
33
+
34
+ .section-${t-1} line {
35
+ stroke: ${e[`cScaleInv`+t]};
36
+ stroke-width: 3;
37
+ }
38
+
39
+ .lineWrapper line {
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width:${e.strokeWidth}
42
+ }
43
+
44
+ .disabled,
45
+ .disabled circle,
46
+ .disabled text {
47
+ fill: ${e.tertiaryColor??`lightgray`};
48
+ }
49
+
50
+ .disabled text {
51
+ fill: ${e.clusterBorder??`#efefef`};
52
+ }
53
+ `}return o},`genReduxSections`),xe=e(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],l(e[`lineColor`+t])?e[`lineColor`+t]=r(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(17-3*n);t+=`
54
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
55
+ fill: ${e[`cScale`+n]};
56
+ }
57
+ .section-${n-1} text {
58
+ fill: ${e[`cScaleLabel`+n]};
59
+ }
60
+ .node-icon-${n-1} {
61
+ font-size: 40px;
62
+ color: ${e[`cScaleLabel`+n]};
63
+ }
64
+ .section-edge-${n-1}{
65
+ stroke: ${e[`cScale`+n]};
66
+ }
67
+ .edge-depth-${n-1}{
68
+ stroke-width: ${r};
69
+ }
70
+ .section-${n-1} line {
71
+ stroke: ${e[`cScaleInv`+n]} ;
72
+ stroke-width: 3;
73
+ }
74
+
75
+ .lineWrapper line{
76
+ stroke: ${e[`cScaleLabel`+n]} ;
77
+ }
78
+
79
+ .disabled, .disabled circle, .disabled text {
80
+ fill: ${e.tertiaryColor??`lightgray`};
81
+ }
82
+ .disabled text {
83
+ fill: ${e.clusterBorder??`#efefef`};
84
+ }
85
+ `}return t},`genSections`),Se={db:_,renderer:{setConf:e(()=>{},`setConf`),draw:e((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?ye.draw(e,t,n,r):pe.draw(e,t,n,r),`draw`)},parser:g,styles:e(e=>{let{theme:t}=u(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r)for(let t=0;t<e.THEME_COLOR_LIMIT;t++)a+=`
86
+ .section-${t-1}[data-look="neo"] rect,
87
+ .section-${t-1}[data-look="neo"] path,
88
+ .section-${t-1}[data-look="neo"] circle {
89
+ fill: ${e.mainBkg};
90
+ stroke: url(#${i}-gradient);
91
+ stroke-width: 2;
92
+ }
93
+ .section-${t-1}[data-look="neo"] line {
94
+ stroke: url(#${i}-gradient);
95
+ stroke-width: 2;
96
+ }`;return`
97
+ .edge {
98
+ stroke-width: 3;
99
+ }
100
+ ${n?be(e):xe(e)}
101
+ ${a}
102
+ .section-root rect, .section-root path, .section-root circle {
103
+ fill: ${e.git0};
104
+ }
105
+ .section-root text {
106
+ fill: ${e.gitBranchLabel0};
107
+ }
108
+ .icon-container {
109
+ height:100%;
110
+ display: flex;
111
+ justify-content: center;
112
+ align-items: center;
113
+ }
114
+ .edge {
115
+ fill: none;
116
+ }
117
+ .eventWrapper {
118
+ filter: brightness(120%);
119
+ }
120
+ `},`getStyles`)};export{Se as diagram};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CFjPhJqf.js";import{n as t,r as n,t as r}from"./compiler-runtime-CVnuRdak.js";import{Gn as i,Jn as a,Kn as o,Yn as s,lr as c,qn as l}from"./doc-hash-Q6dTjwu5.js";import{a as u,c as d,f,h as p,l as m,m as h,o as g,r as _,u as ee,x as v,y}from"./button-BsFpqlpT.js";var b=e(t(),1),x=n(),[S,te]=h(`Tooltip`,[s]),C=s(),w=`TooltipProvider`,T=700,E=`tooltip.open`,[D,O]=S(w),k=e=>{let{__scopeTooltip:t,delayDuration:n=T,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=b.useRef(!0),s=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,x.jsx)(D,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:b.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};k.displayName=w;var A=`Tooltip`,[j,M]=S(A),N=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:c}=e,l=O(A,e.__scopeTooltip),u=C(t),[f,p]=b.useState(null),m=d(),h=b.useRef(0),g=s??l.disableHoverableContent,_=c??l.delayDuration,v=b.useRef(!1),[y,S]=ee({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(E))):l.onClose(),o?.(e)},caller:A}),te=b.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),w=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,S(!0)},[S]),T=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,S(!1)},[S]),D=b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,S(!0),h.current=0},_)},[_,S]);return b.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,x.jsx)(a,{...u,children:(0,x.jsx)(j,{scope:t,contentId:m,open:y,stateAttribute:te,trigger:f,onTriggerChange:p,onTriggerEnter:b.useCallback(()=>{l.isOpenDelayedRef.current?D():w()},[l.isOpenDelayedRef,D,w]),onTriggerLeave:b.useCallback(()=>{g?T():(window.clearTimeout(h.current),h.current=0)},[T,g]),onOpen:w,onClose:T,disableHoverableContent:g,children:n})})};N.displayName=A;var P=`TooltipTrigger`,F=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,a=M(P,n),o=O(P,n),s=C(n),c=v(t,b.useRef(null),a.onTriggerChange),l=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>l.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,x.jsx)(i,{asChild:!0,...s,children:(0,x.jsx)(p.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:f(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:f(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:f(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:f(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:f(e.onBlur,a.onClose),onClick:f(e.onClick,a.onClose)})})});F.displayName=P;var I=`TooltipPortal`,[L,R]=S(I,{forceMount:void 0}),z=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=M(I,t);return(0,x.jsx)(L,{scope:t,forceMount:n,children:(0,x.jsx)(m,{present:n||a.open,children:(0,x.jsx)(u,{asChild:!0,container:i,children:r})})})};z.displayName=I;var B=`TooltipContent`,V=b.forwardRef((e,t)=>{let n=R(B,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=M(B,e.__scopeTooltip);return(0,x.jsx)(m,{present:r||o.open,children:o.disableHoverableContent?(0,x.jsx)(K,{side:i,...a,ref:t}):(0,x.jsx)(H,{side:i,...a,ref:t})})}),H=b.forwardRef((e,t)=>{let n=M(B,e.__scopeTooltip),r=O(B,e.__scopeTooltip),i=b.useRef(null),a=v(t,i),[o,s]=b.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=b.useCallback(()=>{s(null),d(!1)},[d]),p=b.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=X(r,Y(r,n.getBoundingClientRect())),a=Z(t.getBoundingClientRect());s(re([...i,...a])),d(!0)},[d]);return b.useEffect(()=>()=>f(),[f]),b.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]),b.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=!ne(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,x.jsx)(K,{...e,ref:a})}),[U,W]=S(A,{isInside:!1}),G=y(`TooltipContent`),K=b.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,u=M(B,n),d=C(n),{onClose:f}=u;return b.useEffect(()=>(document.addEventListener(E,f),()=>document.removeEventListener(E,f)),[f]),b.useEffect(()=>{if(u.trigger){let e=e=>{e.target?.contains(u.trigger)&&f()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[u.trigger,f]),(0,x.jsx)(g,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,x.jsxs)(l,{"data-state":u.stateAttribute,...d,...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,x.jsx)(G,{children:r}),(0,x.jsx)(U,{scope:n,isInside:!0,children:(0,x.jsx)(c,{id:u.contentId,role:`tooltip`,children:i||r})})]})})});V.displayName=B;var q=`TooltipArrow`,J=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=C(n);return W(q,n).isInside?null:(0,x.jsx)(o,{...i,...r,ref:t})});J.displayName=q;function Y(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 X(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 Z(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 ne(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 re(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)),ie(t)}function ie(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 Q=k,ae=N,oe=F,se=z,ce=V,le=J,$=r();function ue(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,x.jsx)(Q,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function de(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,x.jsx)(ae,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function fe(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,x.jsx)(oe,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function pe(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=_(`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,x.jsx)(le,{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,x.jsx)(se,{children:(0,x.jsxs)(ce,{"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{fe as i,pe as n,ue as r,de as t};
@@ -0,0 +1 @@
1
+ var e=`1.9.1`,t=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function n(e){let n=new Set([e]),r=new Set,i=e.match(t);if(!i)return()=>!1;let a={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(a.prerelease!=null)return function(t){return t===e};function o(e){return r.add(e),!1}function s(e){return n.add(e),!0}return function(e){if(n.has(e))return!0;if(r.has(e))return!1;let i=e.match(t);if(!i)return o(e);let c={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};return c.prerelease!=null||a.major!==c.major?o(e):a.major===0?a.minor===c.minor&&a.patch<=c.patch?s(e):o(e):a.minor<=c.minor?s(e):o(e)}}var r=n(e),i=e.split(`.`)[0],a=Symbol.for(`opentelemetry.js.api.${i}`),o=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{};function s(t,n,r,i=!1){let s=o[a]=o[a]??{version:e};if(!i&&s[t]){let e=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return r.error(e.stack||e.message),!1}if(s.version!==`1.9.1`){let n=Error(`@opentelemetry/api: Registration of version v${s.version} for ${t} does not match previously registered API v${e}`);return r.error(n.stack||n.message),!1}return s[t]=n,r.debug(`@opentelemetry/api: Registered a global for ${t} v${e}.`),!0}function c(e){let t=o[a]?.version;if(!(!t||!r(t)))return o[a]?.[e]}function l(t,n){n.debug(`@opentelemetry/api: Unregistering a global for ${t} v${e}.`);let r=o[a];r&&delete r[t]}var u=class{constructor(e){this._namespace=e.namespace||`DiagComponentLogger`}debug(...e){return d(`debug`,this._namespace,e)}error(...e){return d(`error`,this._namespace,e)}info(...e){return d(`info`,this._namespace,e)}warn(...e){return d(`warn`,this._namespace,e)}verbose(...e){return d(`verbose`,this._namespace,e)}};function d(e,t,n){let r=c(`diag`);if(r)return r[e](t,...n)}var f;(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(f||={});function p(e,t){e<f.NONE?e=f.NONE:e>f.ALL&&(e=f.ALL),t||={};function n(n,r){let i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,f.ERROR),warn:n(`warn`,f.WARN),info:n(`info`,f.INFO),debug:n(`debug`,f.DEBUG),verbose:n(`verbose`,f.VERBOSE)}}var m=`diag`,h=class e{static instance(){return this._instance||=new e,this._instance}constructor(){function e(e){return function(...t){let n=c(`diag`);if(n)return n[e](...t)}}let t=this;t.setLogger=(e,n={logLevel:f.INFO})=>{if(e===t){let e=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(e.stack??e.message),!1}typeof n==`number`&&(n={logLevel:n});let r=c(`diag`),i=p(n.logLevel??f.INFO,e);if(r&&!n.suppressOverrideMessage){let e=Error().stack??`<failed to generate stacktrace>`;r.warn(`Current logger will be overwritten from ${e}`),i.warn(`Current logger will overwrite one already registered from ${e}`)}return s(`diag`,i,t,!0)},t.disable=()=>{l(m,t)},t.createComponentLogger=e=>new u(e),t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}};function g(e){return Symbol.for(e)}var _=new class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=e=>n._currentContext.get(e),n.setValue=(t,r)=>{let i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=t=>{let r=new e(n._currentContext);return r._currentContext.delete(t),r}}},v=class{active(){return _}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}},y=`context`,b=new v,x=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalContextManager(e){return s(y,e,h.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return c(y)||b}disable(){this._getContextManager().disable(),l(y,h.instance())}},S;(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(S||={});var C={traceId:`00000000000000000000000000000000`,spanId:`0000000000000000`,traceFlags:S.NONE},w=class{constructor(e=C){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){}},T=g(`OpenTelemetry Context Key SPAN`);function E(e){return e.getValue(T)||void 0}function D(){return E(x.getInstance().active())}function O(e,t){return e.setValue(T,t)}function k(e){return e.deleteValue(T)}function A(e,t){return O(e,new w(t))}function j(e){return E(e)?.spanContext()}var M=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 N(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(M[e.charCodeAt(t)]|0)+(M[e.charCodeAt(t+1)]|0)+(M[e.charCodeAt(t+2)]|0)+(M[e.charCodeAt(t+3)]|0);return n===t}function P(e){return N(e,32)&&e!==`00000000000000000000000000000000`}function F(e){return N(e,16)&&e!==`0000000000000000`}function I(e){return P(e.traceId)&&F(e.spanId)}function L(e){return new w(e)}var R=x.getInstance(),z=class{startSpan(e,t,n=R.active()){if(t?.root)return new w;let r=n&&j(n);return B(r)&&I(r)?new w(r):new w}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??R.active(),c=this.startSpan(e,i,s),l=O(s,c);return R.with(l,o,void 0,c)}};function B(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 V=new z,H=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):V}},U=new class{getTracer(e,t,n){return new z}},W=class{getTracer(e,t,n){return this.getDelegateTracer(e,t,n)??new H(this,e,t,n)}getDelegate(){return this._delegate??U}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){return this._delegate?.getTracer(e,t,n)}},G;(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(G||={});var K=`trace`,q=class e{constructor(){this._proxyTracerProvider=new W,this.wrapSpanContext=L,this.isSpanContextValid=I,this.deleteSpan=k,this.getSpan=E,this.getActiveSpan=D,this.getSpanContext=j,this.setSpan=O,this.setSpanContext=A}static getInstance(){return this._instance||=new e,this._instance}setGlobalTracerProvider(e){let t=s(K,this._proxyTracerProvider,h.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return c(K)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){l(K,h.instance()),this._proxyTracerProvider=new W}}.getInstance();export{C as a,_ as c,c as d,s as f,P as i,g as l,G as n,S as o,l as p,I as r,x as s,q as t,h as u};
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-CtREah_n.js";import{n as e}from"./chunk-ORNJ4GCN-Dv2PvYVu.js";export{e as createTreeViewServices};
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-CtREah_n.js";import{n as e}from"./chunk-LIHQZDEY-D63TRk6j.js";export{e as createTreemapServices};
@@ -0,0 +1,34 @@
1
+ import{n as e}from"./src-C9jsS3p4.js";import{$ as t,B as n,C as r,Q as i,V as a,W as o,_ as s,a as c,c as l,d as u,et as d,tt as f,v as p,y as m}from"./chunk-ICPOFSXX-CrnuSfeJ.js";import{C as h}from"./src-zyMpT2LE.js";import{r as g}from"./chunk-5PVQY5BW-Cxi5d3lT.js";import{t as _}from"./chunk-426QAEUC-BoBKbVmN.js";import{t as v}from"./rough.esm-BFJ-MgcB.js";var y=(e,t)=>d(e,`a`,-t),b=1e-10;function x(e,t){let n=C(e),r=n.filter(t=>S(t,e)),i=0,a=0,o=[];if(r.length>1){let t=O(r);for(let e=0;e<r.length;++e){let n=r[e];n.angle=Math.atan2(n.x-t.x,n.y-t.y)}r.sort((e,t)=>t.angle-e.angle);let n=r[r.length-1];for(let t=0;t<r.length;++t){let s=r[t];a+=(n.x+s.x)*(s.y-n.y);let c={x:(s.x+n.x)/2,y:(s.y+n.y)/2},l=null;for(let t=0;t<s.parentIndex.length;++t)if(n.parentIndex.includes(s.parentIndex[t])){let r=e[s.parentIndex[t]],i=Math.atan2(s.x-r.x,s.y-r.y),a=Math.atan2(n.x-r.x,n.y-r.y),o=a-i;o<0&&(o+=2*Math.PI);let u=a-o/2,d=T(c,{x:r.x+r.radius*Math.sin(u),y:r.y+r.radius*Math.cos(u)});d>r.radius*2&&(d=r.radius*2),(l==null||l.width>d)&&(l={circle:r,width:d,p1:s,p2:n,large:d>r.radius,sweep:!0})}l!=null&&(o.push(l),i+=w(l.circle.radius,l.width),n=s)}}else{let t=e[0];for(let n=1;n<e.length;++n)e[n].radius<t.radius&&(t=e[n]);let n=!1;for(let r=0;r<e.length;++r)if(T(e[r],t)>Math.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-b,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function S(e,t){return t.every(t=>T(e,t)<t.radius+b)}function C(e){let t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){let i=D(e[n],e[r]);for(let e of i)e.parentIndex=[n,r],t.push(e)}return t}function w(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function T(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function E(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return w(e,r)+w(t,i)}function D(e,t){let n=T(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,c=e.y+a*(t.y-e.y)/n,l=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function O(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function k(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),c=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n<i;++n){c/=2;let n=t+c,r=e(n);if(r*o>=0&&(t=n),Math.abs(c)<a||r===0)return n}return t+c}function A(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function j(e,t){return A(e).map(()=>A(t))}function M(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function N(e){return Math.sqrt(M(e,e))}function P(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function F(e,t,n,r,i){for(let a=0;a<e.length;++a)e[a]=t*n[a]+r*i[a]}function I(e,t,n){n||={};let r=n.maxIterations||t.length*200,i=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,o=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,c=n.rho===void 0?1:n.rho,l=n.chi===void 0?2:n.chi,u=n.psi===void 0?-.5:n.psi,d=n.sigma===void 0?.5:n.sigma,f,p=t.length,m=Array(p+1);m[0]=t,m[0].fx=e(t),m[0].id=0;for(let n=0;n<p;++n){let r=t.slice();r[n]=r[n]?r[n]*i:a,m[n+1]=r,m[n+1].fx=e(r),m[n+1].id=n+1}function h(e){for(let t=0;t<e.length;t++)m[p][t]=e[t];m[p].fx=e.fx}let g=(e,t)=>e.fx-t.fx,_=t.slice(),v=t.slice(),y=t.slice(),b=t.slice();for(let t=0;t<r;++t){if(m.sort(g),n.history){let e=m.map(e=>{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:m[0].slice(),fx:m[0].fx,simplex:e})}f=0;for(let e=0;e<p;++e)f=Math.max(f,Math.abs(m[0][e]-m[1][e]));if(Math.abs(m[0].fx-m[p].fx)<o&&f<s)break;for(let e=0;e<p;++e){_[e]=0;for(let t=0;t<p;++t)_[e]+=m[t][e];_[e]/=p}let t=m[p];if(F(v,1+c,_,-c,t),v.fx=e(v),v.fx<m[0].fx)F(b,1+l,_,-l,t),b.fx=e(b),b.fx<v.fx?h(b):h(v);else if(v.fx>=m[p-1].fx){let n=!1;if(v.fx>t.fx?(F(y,1+u,_,-u,t),y.fx=e(y),y.fx<t.fx?h(y):n=!0):(F(y,1-u*c,_,u*c,t),y.fx=e(y),y.fx<v.fx?h(y):n=!0),n){if(d>=1)break;for(let t=1;t<m.length;++t)F(m[t],1-d,m[0],d,m[t]),m[t].fx=e(m[t])}}else h(v)}return m.sort(g),{fx:m[0].fx,x:m[0]}}function L(e,t,n,r,i,a,o){let s=n.fx,c=M(n.fxprime,t),l=s,u=s,d=c,f=0;i||=1,a||=1e-6,o||=.1;function p(u,f,p){for(let m=0;m<16;++m)if(i=(u+f)/2,F(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=M(r.fxprime,t),l>s+a*i*c||l>=p)f=i;else{if(Math.abs(d)<=-o*c)return i;d*(f-u)>=0&&(f=u),u=i,p=l}return 0}for(let m=0;m<10;++m){if(F(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=M(r.fxprime,t),l>s+a*i*c||m&&l>=u)return p(f,i,u);if(Math.abs(d)<=-o*c)return i;if(d>=0)return p(i,f,l);u=l,f=i,i*=2}return i}function ee(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,c=1,l;n||={},l=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),P(o,r.fxprime,-1);for(let t=0;t<l;++t){if(c=L(e,o,r,i,c),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),!c)P(o,r.fxprime,-1);else{F(a,1,i.fxprime,-1,r.fxprime);let e=M(r.fxprime,r.fxprime),t=Math.max(0,M(a,i.fxprime)/e);F(o,t,o,-1,i.fxprime),s=r,r=i,i=s}if(N(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),r}function te(e,t={}){t.maxIterations=t.maxIterations||500;let n=t.initialLayout||oe,r=t.lossFunction||z,i=re(e,t),a=n(i,t),o=Object.keys(a),s=[];for(let e of o)s.push(a[e].x),s.push(a[e].y);let c=I(e=>{let t={};for(let n=0;n<o.length;++n){let r=o[n];t[r]={x:e[2*n],y:e[2*n+1],radius:a[r].radius}}return r(t,i)},s,t).x;for(let e=0;e<o.length;++e){let t=o[e];a[t].x=c[2*e],a[t].y=c[2*e+1]}return a}var ne=1e-10;function R(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+ne?Math.abs(e-t):k(r=>E(e,t,r)-n,0,e+t)}function re(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;n<t.sets.length;n++){let r=String(t.sets[n]);e.set(r,t.size+(e.get(r)||0));for(let i=n+1;i<t.sets.length;i++){let n=String(t.sets[i]),a=`${r};${n}`,o=`${n};${r}`;e.set(a,t.size+(e.get(a)||0)),e.set(o,t.size+(e.get(o)||0))}}for(let t of r)t.sets.length<3&&(t.size=e.get(i(t.sets)))}let a=[],o=new Set;for(let e of r)if(e.sets.length===1)a.push(e.sets[0]);else if(e.sets.length===2){let t=e.sets[0],n=e.sets[1];o.add(i(e.sets)),o.add(i([n,t]))}a.sort((e,t)=>e===t?0:e<t?-1:1);for(let e=0;e<a.length;++e){let t=a[e];for(let n=e+1;n<a.length;++n){let e=a[n];o.has(i([t,e]))||r.push({sets:[t,e],size:0})}}return r}function ie(e,t,n){let r=j(t.length,t.length),i=j(t.length,t.length);return e.filter(e=>e.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=R(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let c=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?c=1:e.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c}),{distances:r,constraints:i}}function ae(e,t,n,r){for(let e=0;e<t.length;++e)t[e]=0;let i=0;for(let a=0;a<n.length;++a){let o=e[2*a],s=e[2*a+1];for(let c=a+1;c<n.length;++c){let l=e[2*c],u=e[2*c+1],d=n[a][c],f=r[a][c],p=(l-o)*(l-o)+(u-s)*(u-s),m=Math.sqrt(p),h=p-d*d;f>0&&m<=d||f<0&&m>=d||(i+=2*h*h,t[2*a]+=4*h*(o-l),t[2*a+1]+=4*h*(s-u),t[2*c]+=4*h*(l-o),t[2*c+1]+=4*h*(u-s))}}return i}function oe(e,t={}){let n=ce(e,t),r=t.lossFunction||z;if(e.length>=8){let i=se(e,t),a=r(i,e),o=r(n,e);a+1e-8<o&&(n=i)}return n}function se(e,t={}){let n=t.restarts||10,r=[],i={};for(let t of e)t.sets.length===1&&(i[t.sets[0]]=r.length,r.push(t));let{distances:a,constraints:o}=ie(e,r,i),s=N(a.map(N))/a.length;a=a.map(e=>e.map(e=>e/s));let c=(e,t)=>ae(e,t,a,o),l=null;for(let e=0;e<n;++e){let e=ee(c,A(a.length*2).map(Math.random),t);(!l||e.fx<l.fx)&&(l=e)}let u=l.x,d={};for(let e=0;e<r.length;++e){let t=r[e];d[t.sets[0]]={x:u[2*e]*s,y:u[2*e+1]*s,radius:Math.sqrt(t.size/Math.PI)}}if(t.history)for(let e of t.history)P(e.x,s);return d}function ce(e,t){let n=t&&t.lossFunction?t.lossFunction:z,r={},i={};for(let t of e)if(t.sets.length===1){let e=t.sets[0];r[e]={x:1e10,y:1e10,rowid:r.length,size:t.size,radius:Math.sqrt(t.size/Math.PI)},i[e]=[]}e=e.filter(e=>e.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+ne>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;n<i[e].length;++n)t+=i[e][n].size*i[e][n].weight;a.push({set:e,size:t})});function o(e,t){return t.size-e.size}a.sort(o);let s={};function c(e){return e.set in s}function l(e,t){r[t].x=e.x,r[t].y=e.y,s[t]=!0}l({x:0,y:0},a[0].set);for(let t=1;t<a.length;++t){let s=a[t].set,d=i[s].filter(c),f=r[s];if(d.sort(o),d.length===0)throw`ERROR: missing pairwise overlap information`;let p=[];for(var u=0;u<d.length;++u){let e=r[d[u].set],t=R(f.radius,e.radius,d[u].size);p.push({x:e.x+t,y:e.y}),p.push({x:e.x-t,y:e.y}),p.push({y:e.y+t,x:e.x}),p.push({y:e.y-t,x:e.x});for(let n=u+1;n<d.length;++n){let i=r[d[n].set],a=R(f.radius,i.radius,d[n].size),o=D({x:e.x,y:e.y,radius:t},{x:i.x,y:i.y,radius:a});p.push(...o)}}let m=1e50,h=p[0];for(let t of p){r[s].x=t.x,r[s].y=t.y;let i=n(r,e);i<m&&(m=i,h=t)}l(h,s)}return r}function z(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=E(n.radius,i.radius,T(n,i))}else t=x(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function le(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=E(n.radius,i.radius,T(n,i))}else t=x(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function ue(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&T(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function de(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t<e.length;++t)for(let r=t+1;r<e.length;++r){let i=e[t].radius+e[r].radius;T(e[t],e[r])+1e-10<i&&n(e[r],e[t])}let r=new Map;for(let n=0;n<e.length;++n){let i=t(e[n]).parent.setid;r.has(i)||r.set(i,[]),r.get(i).push(e[n])}return e.forEach(e=>{delete e.parent}),Array.from(r.values())}function B(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function fe(e,t,n){t??=Math.PI/2;let r=he(e).map(e=>Object.assign({},e)),i=de(r);for(let e of i){ue(e,t,n);let r=B(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,c;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)c=a.yRange.max-i.yRange.min+o;else{c=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(c+=e)}for(let t of e)t.x+=s,t.y+=c,r.push(t)}let c=1;for(;c<i.length;)s(i[c],!0,!1),s(i[c+1],!1,!0),s(i[c+2],!0,!0),c+=3,a=B(r);return me(r)}function pe(e,t,n,r,i){let a=he(e);t-=2*r,n-=2*r;let{xRange:o,yRange:s}=B(a);if(o.max===o.min||s.max===s.min)return console.log(`not scaling solution: zero size detected`),e;let c,l;if(i){let e=Math.sqrt(i/Math.PI)*2;c=t/e,l=n/e}else c=t/(o.max-o.min),l=n/(s.max-s.min);let u=Math.min(l,c),d=(t-(o.max-o.min)*u)/2,f=(n-(s.max-s.min)*u)/2;return me(a.map(e=>({radius:u*e.radius,x:r+d+(e.x-o.min)*u,y:r+f+(e.y-s.min)*u,setid:e.setid})))}function me(e){let t={};for(let n of e)t[n.setid]=n;return t}function he(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function ge(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,c=null,l=!0,u=!0,d=null,f=null,p=!1,m=null,h=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,g={},_=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],v=0,y=function(e){if(e in g)return g[e];var t=g[e]=_[v];return v+=1,v>=_.length&&(v=0),t},b=te,x=z;function S(g){let _=g.datum(),v=new Set;_.forEach(e=>{e.size==0&&e.sets.length==1&&v.add(e.sets[0])}),_=_.filter(e=>!e.sets.some(e=>v.has(e)));let S={},C={};if(_.length>0){let e=b(_,{lossFunction:x,distinct:p});s&&(e=fe(e,o,f)),S=pe(e,n,r,i,c),C=ye(S,_,h)}let w={};_.forEach(e=>{e.label&&(w[e.sets]=e.label)});function T(e){if(e.sets in w)return w[e.sets];if(e.sets.length==1)return``+e.sets[0]}g.selectAll(`svg`).data([S]).enter().append(`svg`);let E=g.select(`svg`);t?E.attr(`viewBox`,`0 0 ${n} ${r}`):E.attr(`width`,n).attr(`height`,r);let D={},O=!1;E.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!p&&(O=!0,D[e.sets[0]]=xe(t))});function k(e){return t=>we(e.sets.map(e=>{let i=D[e],a=S[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),m)}let A=E.selectAll(`.venn-area`).data(_,e=>e.sets),j=A.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),M=j.append(`path`),N=j.append(`text`).attr(`class`,`label`).text(e=>T(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);u&&(M.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:y(e.sets)).style(`fill-opacity`,`.25`),N.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?y(t.sets):`#444`));function P(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let F=g;O&&typeof F.transition==`function`?(F=P(g),F.selectAll(`path`).attrTween(`d`,k)):F.selectAll(`path`).attr(`d`,e=>we(e.sets.map(e=>S[e])),m);let I=F.selectAll(`text`).filter(e=>e.sets in C).text(e=>T(e)).attr(`x`,e=>Math.floor(C[e.sets].x)).attr(`y`,e=>Math.floor(C[e.sets].y));l&&(O?`on`in I?I.on(`end`,V(S,T)):I.each(`end`,V(S,T)):I.each(V(S,T)));let L=P(A.exit()).remove();typeof A.transition==`function`&&L.selectAll(`path`).attrTween(`d`,k);let ee=L.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return d!==null&&(N.style(`font-size`,`0px`),I.style(`font-size`,d),ee.style(`font-size`,`0px`)),{circles:S,textCentres:C,nodes:A,enter:j,update:F,exit:L}}return S.wrap=function(e){return arguments.length?(l=e,S):l},S.useViewBox=function(){return t=!0,S},S.width=function(e){return arguments.length?(n=e,S):n},S.height=function(e){return arguments.length?(r=e,S):r},S.padding=function(e){return arguments.length?(i=e,S):i},S.distinct=function(e){return arguments.length?(p=e,S):p},S.colours=function(e){return arguments.length?(y=e,S):y},S.colors=function(e){return arguments.length?(y=e,S):y},S.fontSize=function(e){return arguments.length?(d=e,S):d},S.round=function(e){return arguments.length?(m=e,S):m},S.duration=function(e){return arguments.length?(a=e,S):a},S.layoutFunction=function(e){return arguments.length?(b=e,S):b},S.normalize=function(e){return arguments.length?(s=e,S):s},S.scaleToFit=function(e){return arguments.length?(c=e,S):c},S.styled=function(e){return arguments.length?(u=e,S):u},S.orientation=function(e){return arguments.length?(o=e,S):o},S.orientationOrder=function(e){return arguments.length?(f=e,S):f},S.lossFunction=function(e){return arguments.length?(x=e===`default`?z:e===`logRatio`?le:e,S):x},S}function V(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,c=o.pop(),l=[c],u=0,d=1.1;r.textContent=null;let f=[];function p(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,f.push(t),r.append(t),t}let m=p(c);for(;c=o.pop(),c;){l.push(c);let e=l.join(` `);m.textContent=e,e.length>s&&m.getComputedTextLength()>i&&(l.pop(),m.textContent=l.join(` `),l=[c],m=p(c),u++)}let h=.35-u*d/2,g=r.getAttribute(`x`),_=r.getAttribute(`y`);f.forEach((e,t)=>{e.setAttribute(`x`,g),e.setAttribute(`y`,_),e.setAttribute(`dy`,`${h+t*d}em`)})}}function H(e,t,n){let r=t[0].radius-T(t[0],e);for(let n=1;n<t.length;++n){let i=t[n].radius-T(t[n],e);i<=r&&(r=i)}for(let t=0;t<n.length;++t){let i=T(n[t],e)-n[t].radius;i<=r&&(r=i)}return r}function _e(e,t,n){let r=[];for(let t of e)r.push({x:t.x,y:t.y}),r.push({x:t.x+t.radius/2,y:t.y}),r.push({x:t.x-t.radius/2,y:t.y}),r.push({x:t.x,y:t.y+t.radius/2}),r.push({x:t.x,y:t.y-t.radius/2});let i=r[0],a=H(r[0],e,t);for(let n=1;n<r.length;++n){let o=H(r[n],e,t);o>=a&&(i=r[n],a=o)}let o=I(n=>-1*H({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},c=!0;for(let t of e)if(T(s,t)>t.radius){c=!1;break}for(let e of t)if(T(s,e)<e.radius){c=!1;break}if(c)return s;if(e.length==1)return{x:e[0].x,y:e[0].y};let l={};return x(e,l),l.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:l.arcs.length==1?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:t.length?_e(e,[]):O(l.arcs.map(e=>e.p1))}function ve(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r<n.length;r++){let i=n[r],a=e[i];for(let o=r+1;o<n.length;++o){let r=n[o],s=e[r],c=T(a,s);c+s.radius<=a.radius+1e-10?t[r].push(i):c+a.radius<=s.radius+1e-10&&t[i].push(r)}}return t}function ye(e,t,n){let r={},i=ve(e);for(let a=0;a<t.length;++a){let o=t[a].sets,s={},c={};for(let e=0;e<o.length;++e){s[o[e]]=!0;let t=i[o[e]];for(let e=0;e<t.length;++e)c[t[e]]=!0}let l=[],u=[];for(let t in e)t in s?l.push(e[t]):t in c||u.push(e[t]);let d=_e(l,u,n);r[o]=d,d.disjoint&&t[a].size>0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function be(e,t,n){let r=[];return r.push(`
2
+ M`,e,t),r.push(`
3
+ m`,-n,0),r.push(`
4
+ a`,n,n,0,1,0,n*2,0),r.push(`
5
+ a`,n,n,0,1,0,-n*2,0),r.join(` `)}function xe(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function Se(e){if(e.length===0)return[];let t={};return x(e,t),t.arcs}function Ce(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return be(r(t.x),r(t.y),r(t.radius))}let i=[`
6
+ M`,r(e[0].p2.x),r(e[0].p2.y)];for(let t of e){let e=r(t.circle.radius);i.push(`
7
+ A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}function we(e,t){return Ce(Se(e),t)}function Te(e,t={}){let{lossFunction:n,layoutFunction:r=te,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:o,width:s=600,height:c=350,padding:l=15,scaleToFit:u=!1,symmetricalTextCentre:d=!1,distinct:f,round:p=2}=t,m=r(e,{lossFunction:n===`default`||!n?z:n===`logRatio`?le:n,distinct:f});i&&(m=fe(m,a,o));let h=pe(m,s,c,l,u),g=ye(h,e,d),_=new Map(Object.keys(h).map(e=>[e,{set:e,x:h[e].x,y:h[e].y,radius:h[e].radius}])),v=e.map(e=>{let t=e.sets.map(e=>_.get(e)),n=Se(t);return{circles:t,arcs:n,path:Ce(n,p),area:e,has:new Set(e.sets)}});function y(e){let t=``;for(let n of v)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return v.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:g[r.sets],circles:e,arcs:t,path:n,distinctPath:n+y(r.sets)}))}var U=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],a=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],c=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:`error`,5:`VENN`,7:`EOF`,8:`NEWLINE`,11:`TITLE`,12:`SET`,14:`BRACKET_LABEL`,15:`COLON`,16:`NUMERIC`,17:`UNION`,19:`TEXT`,20:`IDENTIFIER`,21:`STRING`,22:`INDENT_TEXT`,24:`STYLE`,27:`COMMA`,31:`HEXCOLOR`,32:`RGBCOLOR`,33:`RGBACOLOR`},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var c=r.getCurrentSets();if(!c)throw Error(`text requires set`);r.addTextData(c,a[s],void 0);break;case 27:case 28:var c=r.getCurrentSets();if(!c)throw Error(`text requires set`);r.addTextData(c,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s];break}},`anonymous`),table:[t(n,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(n,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13:16,20:i,21:a},{13:20,18:19,20:i,21:a},{13:20,18:21,20:i,21:a},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:a},t(r,[2,9],{14:[1,27],15:[1,28]}),t(o,[2,43]),t(o,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},t(r,[2,22]),t(r,[2,24],{14:[1,35]}),t(r,[2,25],{14:[1,36]}),t(r,[2,26]),{20:c,25:37,26:38,27:s},t(r,[2,10],{15:[1,40]}),{16:[1,41]},t(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:a},t(r,[2,17],{14:[1,45]}),t(r,[2,18],{14:[1,46]}),t(r,[2,19]),t(r,[2,27]),t(r,[2,28]),t(r,[2,23],{27:[1,47]}),t(l,[2,29]),{15:[1,48]},{16:[1,49]},t(r,[2,11]),{16:[1,50]},t(r,[2,15]),t(o,[2,42]),t(r,[2,20]),t(r,[2,21]),{20:c,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},t(r,[2,12]),t(r,[2,16]),t(l,[2,30]),t(l,[2,31]),t(l,[2,32]),t(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),t(h,[2,34]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),t(h,[2,39]),t(h,[2,40]),t(h,[2,35])],defaultActions:{6:[2,1]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
8
+ `+h.showPosition()+`
9
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};g.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
10
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
11
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}}})();function _(){this.yy={}}return e(_,`Parser`),_.prototype=g,g.Parser=_,new _})();U.parser=U;var Ee=U,W=[],G=[],K=[],q=new Set,J,Y=!1,De=e((e,t,n)=>{let r=Z(e).sort(),i=n??10/e.length**2;J=r,r.length===1&&q.add(r[0]),W.push({sets:r,size:i,label:t?X(t):void 0})},`addSubsetData`),Oe=e(()=>W,`getSubsetData`),X=e(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),ke=e(e=>e&&X(e),`normalizeStyleValue`),Ae=e((e,t,n)=>{let r=X(t);G.push({sets:Z(e).sort(),id:r,label:n?X(n):void 0})},`addTextData`),je=e((e,t)=>{let n=Z(e).sort(),r={};for(let[e,n]of t)r[e]=ke(n)??n;K.push({targets:n,styles:r})},`addStyleData`),Me=e(()=>K,`getStyleData`),Z=e(e=>e.map(e=>X(e)),`normalizeIdentifierList`),Ne=e(e=>{let t=Z(e).filter(e=>!q.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),Pe=e(()=>G,`getTextData`),Fe=e(()=>J,`getCurrentSets`),Ie=e(()=>Y,`getIndentMode`),Le=e(e=>{Y=e},`setIndentMode`),Re=u.venn;function ze(){return g(Re,m().venn)}e(ze,`getConfig`);var Be={getConfig:ze,clear:e(()=>{c(),W.length=0,G.length=0,K.length=0,q.clear(),J=void 0,Y=!1},`customClear`),setAccTitle:a,getAccTitle:p,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n,addSubsetData:De,getSubsetData:Oe,addTextData:Ae,addStyleData:je,validateUnionIdentifiers:Ne,getTextData:Pe,getStyleData:Me,getCurrentSets:Fe,getIndentMode:Ie,setIndentMode:Le},Ve=e(e=>`
13
+ .venn-title {
14
+ font-size: 32px;
15
+ fill: ${e.vennTitleTextColor};
16
+ font-family: ${e.fontFamily};
17
+ }
18
+
19
+ .venn-circle text {
20
+ font-size: 48px;
21
+ font-family: ${e.fontFamily};
22
+ }
23
+
24
+ .venn-intersection text {
25
+ font-size: 48px;
26
+ fill: ${e.vennSetTextColor};
27
+ font-family: ${e.fontFamily};
28
+ }
29
+
30
+ .venn-text-node {
31
+ font-family: ${e.fontFamily};
32
+ color: ${e.vennSetTextColor};
33
+ }
34
+ `,`getStyles`);function He(e){let t=new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}e(He,`buildStyleByKey`);var Ue=e((e,n,r,a)=>{let o=a.db,s=o.getConfig?.(),{themeVariables:c,look:u,handDrawnSeed:d}=m(),p=u===`handDrawn`,g=[c.venn1,c.venn2,c.venn3,c.venn4,c.venn5,c.venn6,c.venn7,c.venn8].filter(Boolean),b=o.getDiagramTitle?.(),x=o.getSubsetData(),S=o.getTextData(),C=He(o.getStyleData()),w=s?.width??800,T=s?.height??450,E=w/1600,D=b?48*E:0,O=c.primaryTextColor??c.textColor,k=_(n);k.attr(`viewBox`,`0 0 ${w} ${T}`),b&&k.append(`text`).text(b).attr(`class`,`venn-title`).attr(`font-size`,`${32*E}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*E).style(`fill`,c.vennTitleTextColor||c.titleColor);let A=h(document.createElement(`div`)),j=ge().width(w).height(T-D);A.datum(x).call(j);let M=p?v.svg(A.select(`svg`).node()):void 0,N=Te(x,{width:w,height:T-D,padding:s?.padding??15}),P=new Map;for(let e of N){let t=Q([...e.data.sets].sort());P.set(t,e)}S.length>0&&$(s,P,A,S,E,C);let F=f(c.background||`#f4f4f4`);A.selectAll(`.venn-circle`).each(function(e,n){let r=h(this),a=Q([...e.sets].sort()),o=C.get(a),s=o?.fill||g[n%g.length]||c.primaryColor;r.classed(`venn-set-${n%8}`,!0);let l=o?.[`fill-opacity`]??.1,u=o?.stroke||s,f=o?.[`stroke-width`]||`${5*E}`;if(p&&M){let e=P.get(a);if(e&&e.circles.length>0){let t=e.circles[0],i=M.circle(t.x,t.y,t.radius*2,{roughness:.7,seed:d,fill:y(s,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+n*60,stroke:u,strokeWidth:parseFloat(String(f))});r.select(`path`).remove(),r.node()?.insertBefore(i,r.select(`text`).node())}}else r.select(`path`).style(`fill`,s).style(`fill-opacity`,l).style(`stroke`,u).style(`stroke-width`,f).style(`stroke-opacity`,.95);let m=o?.color||(F?t(s,30):i(s,30));r.select(`text`).style(`font-size`,`${48*E}px`).style(`fill`,m)}),p&&M?A.selectAll(`.venn-intersection`).each(function(e){let t=h(this),n=Q([...e.sets].sort()),r=C.get(n),i=r?.fill;if(i){let e=t.select(`path`),n=e.attr(`d`);if(n){let t=M.path(n,{roughness:.7,seed:d,fill:y(i,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(t,r),e.remove()}}else t.select(`path`).style(`fill-opacity`,0);t.select(`text`).style(`font-size`,`${48*E}px`).style(`fill`,r?.color??c.vennSetTextColor??O)}):(A.selectAll(`.venn-intersection text`).style(`font-size`,`${48*E}px`).style(`fill`,e=>{let t=Q([...e.sets].sort());return C.get(t)?.color??c.vennSetTextColor??O}),A.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=Q([...e.sets].sort());return+!!C.get(t)?.fill}).style(`fill`,e=>{let t=Q([...e.sets].sort());return C.get(t)?.fill??`transparent`}));let I=k.append(`g`).attr(`transform`,`translate(0, ${D})`),L=A.select(`svg`).node();if(L&&`childNodes`in L)for(let e of[...L.childNodes])I.node()?.appendChild(e);l(k,T,w,s?.useMaxWidth??!0)},`draw`);function Q(e){return e.join(`|`)}e(Q,`stableSetsKey`);function $(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),c=new Map;for(let e of r){let t=Q(e.sets),n=c.get(t);n?n.push(e):c.set(t,[e])}for(let[e,n]of c.entries()){let r=t.get(e);if(!r?.text)continue;let c=r.text.x,l=r.text.y,u=Math.min(...r.circles.map(e=>e.radius)),d=Math.min(...r.circles.map(e=>e.radius-Math.hypot(c-e.x,l-e.y))),f=Number.isFinite(d)?Math.max(0,d):0;f===0&&Number.isFinite(u)&&(f=u*.6);let p=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&p.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,c).attr(`cy`,l).attr(`r`,f).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let m=Math.max(80*i,f*2*.95),h=Math.max(60*i,f*2*.95),g=(r.data.label&&r.data.label.length>0?Math.min(32*i,f*.25):0)+(n.length<=2?30*i:0),_=c-m/2,v=l-h/2+g,y=Math.max(1,Math.ceil(Math.sqrt(n.length))),b=Math.max(1,Math.ceil(n.length/y)),x=m/y,S=h/b;for(let[e,t]of n.entries()){let n=e%y,r=Math.floor(e/y),s=_+x*(n+.5),c=v+S*(r+.5);o&&p.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,_+x*n).attr(`y`,v+S*r).attr(`width`,x).attr(`height`,S).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let l=x*.9,u=S*.9,d=p.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,l).attr(`height`,u).attr(`x`,s-l/2).attr(`y`,c-u/2).attr(`overflow`,`visible`),f=a.get(t.id)?.color,m=d.append(`xhtml:span`).attr(`class`,`venn-text-node`).style(`display`,`flex`).style(`width`,`100%`).style(`height`,`100%`).style(`white-space`,`normal`).style(`align-items`,`center`).style(`justify-content`,`center`).style(`text-align`,`center`).style(`overflow-wrap`,`normal`).style(`word-break`,`normal`).text(t.label??t.id);f&&m.style(`color`,f)}}}e($,`renderTextNodes`);var We={parser:Ee,db:Be,renderer:{draw:Ue},styles:Ve};export{We as diagram};
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-CtREah_n.js";import{n as e}from"./chunk-CIAEETIT-D1Fpp2md.js";export{e as createWardleyServices};