@puddle-code/cli 0.3.2 → 0.3.4

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 (225) hide show
  1. package/CHANGELOG.md +9 -7
  2. package/dist/host-control.mjs +67 -6
  3. package/dist/index.js +191 -31
  4. package/dist/public/assets/App-CwV0Dizo.js +2 -0
  5. package/dist/public/assets/Dashboard-fA7E3Mr1.js +1 -0
  6. package/dist/public/assets/EditorTabClose-DNWGZZN8.js +1 -0
  7. package/dist/public/assets/FindWidget-BSK2PIfO.js +1 -0
  8. package/dist/public/assets/LazyTerminal-CAvxgexS.js +2 -0
  9. package/dist/public/assets/{ModelRefcount-Dkp1avzM.js → ModelRefcount-CJK-g5rf.js} +1 -1
  10. package/dist/public/assets/NewProjectDialog-eDAOcbIM.js +1 -0
  11. package/dist/public/assets/PaneEditorBody-Cxn0s84L.js +302 -0
  12. package/dist/public/assets/PdfViewer-BY5xRKk1.js +2 -0
  13. package/dist/public/assets/SettingsDialog-Sd6i7Plz.js +8 -0
  14. package/dist/public/assets/Terminal-CqjwbNAI.js +66 -0
  15. package/dist/public/assets/Workspace-C-M1AjMn.js +20 -0
  16. package/dist/public/assets/abnfDiagram-VCTEODGH-CIbaiPRK.js +1 -0
  17. package/dist/public/assets/architecture-7GRP2DOG-C37y6gLW.js +1 -0
  18. package/dist/public/assets/architectureDiagram-5GKGNRK7-OE8n13hC.js +36 -0
  19. package/dist/public/assets/auth-cjbSLnao.js +73 -0
  20. package/dist/public/assets/{blockDiagram-I7D4REHJ-NHlOsaCN.js → blockDiagram-I7D4REHJ-TUFuv4qI.js} +1 -1
  21. package/dist/public/assets/buffer-store-BAQjeFXg.js +16 -0
  22. package/dist/public/assets/button-Chvl9hcE.js +1 -0
  23. package/dist/public/assets/{c4Diagram-7LVT6UL2-ZLfrwKT4.js → c4Diagram-7LVT6UL2-Cwvhq15S.js} +1 -1
  24. package/dist/public/assets/channel-Bl1m0NKH.js +1 -0
  25. package/dist/public/assets/chunk-2E4U76K2-3abpRZU5.js +2 -0
  26. package/dist/public/assets/chunk-2ZTRR5NV-NvRGlFrK.js +2 -0
  27. package/dist/public/assets/chunk-3Z5EZCMW-DiR4QWP9.js +1 -0
  28. package/dist/public/assets/{chunk-4HAMMTFA-Brp_wxZT.js → chunk-4HAMMTFA-eolw8o4c.js} +1 -1
  29. package/dist/public/assets/chunk-5V3GS4D5-C1iY134n.js +1 -0
  30. package/dist/public/assets/chunk-6AZGARVD-_0gi5QUW.js +1 -0
  31. package/dist/public/assets/chunk-6EIED4P4-BxkNo1Kd.js +1 -0
  32. package/dist/public/assets/chunk-6K3QC6MW-3E45BuBF.js +1 -0
  33. package/dist/public/assets/chunk-6TQVIW2G-CakkaKNk.js +1 -0
  34. package/dist/public/assets/chunk-747NJXEK-pfB9pTl1.js +2 -0
  35. package/dist/public/assets/{chunk-75Z2AOVW-9vLeKuoB.js → chunk-75Z2AOVW-CYC6lmPG.js} +1 -1
  36. package/dist/public/assets/{chunk-CLGD4ZFX-B8Oa13vy.js → chunk-CLGD4ZFX-85mvsF4F.js} +1 -1
  37. package/dist/public/assets/chunk-DU6HZSFF-1ZoT19aa.js +125 -0
  38. package/dist/public/assets/{chunk-F27PBJKO-I29_mrbz.js → chunk-F27PBJKO-DM71futS.js} +1 -1
  39. package/dist/public/assets/{chunk-GMAD6QVW-ZzqGXNRY.js → chunk-GMAD6QVW-BzDEhlK8.js} +1 -1
  40. package/dist/public/assets/{chunk-GVQU2GXP-DiJctosx.js → chunk-GVQU2GXP-CZrUjjq3.js} +1 -1
  41. package/dist/public/assets/chunk-I5DQTOEV-Dcwirj_w.js +1 -0
  42. package/dist/public/assets/chunk-ICYGCRZG-BJAGKQA9.js +1 -0
  43. package/dist/public/assets/chunk-IH6LHLGP-BN2I9ljI.js +1 -0
  44. package/dist/public/assets/{chunk-IMKFNOWR-yuPnJltA.js → chunk-IMKFNOWR-CLsPi8Op.js} +1 -1
  45. package/dist/public/assets/chunk-KI3K4JFJ-v5_17D28.js +1 -0
  46. package/dist/public/assets/{chunk-L3NEJ4N5-DB3LOw2c.js → chunk-L3NEJ4N5-BW3s5_r9.js} +1 -1
  47. package/dist/public/assets/{chunk-OSK3NFVY-ygO9ccvX.js → chunk-OSK3NFVY-Cs_K17E_.js} +1 -1
  48. package/dist/public/assets/chunk-OUJLGHUK-FHDQe81Z.js +2 -0
  49. package/dist/public/assets/{chunk-P2QGCYS3-CaO30dnF.js → chunk-P2QGCYS3-C5-f0Lvg.js} +1 -1
  50. package/dist/public/assets/{chunk-POPQ4Y6H-BS_wlBQ7.js → chunk-POPQ4Y6H-gkafJx1Z.js} +1 -1
  51. package/dist/public/assets/{chunk-PWAF6VOD-BYtVJDwT.js → chunk-PWAF6VOD-CTSTb7zN.js} +1 -1
  52. package/dist/public/assets/{chunk-SHT3W25Y-DbWwFCez.js → chunk-SHT3W25Y-Cg6sVFNA.js} +1 -1
  53. package/dist/public/assets/{chunk-SVP7TREG-DLDU3lFF.js → chunk-SVP7TREG-DRUnItYx.js} +1 -1
  54. package/dist/public/assets/{chunk-TICWLB2K-Bo_jKuAY.js → chunk-TICWLB2K-HtG8ibWH.js} +1 -1
  55. package/dist/public/assets/chunk-TLUHSLCS-CcE5HWjm.js +2 -0
  56. package/dist/public/assets/chunk-UY3FDG6J-DHD-4eXF.js +1 -0
  57. package/dist/public/assets/chunk-XHIXRSVI-DRL0dwtI.js +1 -0
  58. package/dist/public/assets/classDiagram-ZZMXUADV-AgT8hWlv.js +1 -0
  59. package/dist/public/assets/classDiagram-v2-VYDZK3BY-AgT8hWlv.js +1 -0
  60. package/dist/public/assets/client-settings-CwqpIric.js +1 -0
  61. package/dist/public/assets/context-menu-DVUv5Z6a.js +1 -0
  62. package/dist/public/assets/copy-Df7qIcX6.js +1 -0
  63. package/dist/public/assets/cssMode-CSjHtANE.js +1 -0
  64. package/dist/public/assets/cynefin-OW5HDTMX-Dy2ZNO0g.js +1 -0
  65. package/dist/public/assets/cynefinDiagram-5FMLGOSQ-C2miE5p0.js +62 -0
  66. package/dist/public/assets/{dagre-GXQ25YYZ-DJ40uVpF.js → dagre-GXQ25YYZ-BjnR_o63.js} +1 -1
  67. package/dist/public/assets/{diagram-S7CK7UJ4-CakLFIEW.js → diagram-S7CK7UJ4-CBYedG6v.js} +3 -3
  68. package/dist/public/assets/diagram-UQ7AKVKN-CUL346-t.js +41 -0
  69. package/dist/public/assets/diagram-VSXAHHWV-1DKb_UJ5.js +3 -0
  70. package/dist/public/assets/{diagram-VX7I27RA-VJip2Tpi.js → diagram-VX7I27RA-DYP31PbY.js} +2 -2
  71. package/dist/public/assets/{diagram-Z3DM3KII-CPQuWy39.js → diagram-Z3DM3KII-C-mC8cmq.js} +1 -1
  72. package/dist/public/assets/dialog-Bnex_wlx.js +1 -0
  73. package/dist/public/assets/disclosure-C2uTs3Vm.js +1 -0
  74. package/dist/public/assets/dist-B67qxih2.js +1 -0
  75. package/dist/public/assets/dist-BCwJL3w9.js +1 -0
  76. package/dist/public/assets/dist-Cl5AP2As.js +1 -0
  77. package/dist/public/assets/dist-DmyIHyF9.js +1 -0
  78. package/dist/public/assets/ebnfDiagram-PWID7BFC-CnSa44Tb.js +1 -0
  79. package/dist/public/assets/{erDiagram-RLTQ6QDP-DqwnnH7t.js → erDiagram-RLTQ6QDP-ZmDlrO9k.js} +1 -1
  80. package/dist/public/assets/{errors-BkbAF9Bu.js → errors-BiS6nBXL.js} +1 -1
  81. package/dist/public/assets/es2015-CrC2hHeB.js +41 -0
  82. package/dist/public/assets/eventmodeling-NTZA5JFV-uFnlWNGc.js +1 -0
  83. package/dist/public/assets/flowDiagram-HODETNUW-CW47qpBT.js +1 -0
  84. package/dist/public/assets/{ganttDiagram-EL5Y4UJY-BvWbPqg4.js → ganttDiagram-EL5Y4UJY-raM_gefY.js} +1 -1
  85. package/dist/public/assets/gitGraph-4MIJSDKK-1PxNX92k.js +1 -0
  86. package/dist/public/assets/gitGraphDiagram-WWUBYQGX-DnLrgk4s.js +106 -0
  87. package/dist/public/assets/htmlMode-CIHMS93l.js +1 -0
  88. package/dist/public/assets/index-CW1P_8TN.js +10 -0
  89. package/dist/public/assets/index-XBWIhnuP.css +2 -0
  90. package/dist/public/assets/info-A6RAGUB7-BZV44TW1.js +1 -0
  91. package/dist/public/assets/infoDiagram-27XIBGKW-eCv-Vsx8.js +2 -0
  92. package/dist/public/assets/{ishikawaDiagram-5VMMS53U-Bq13tOFJ.js → ishikawaDiagram-5VMMS53U-DCFnvrdr.js} +1 -1
  93. package/dist/public/assets/{journeyDiagram-3NMN7TZE-7GJvjukT.js → journeyDiagram-3NMN7TZE-6o4KvbhJ.js} +1 -1
  94. package/dist/public/assets/{jsonMode-C6jAdn8r.js → jsonMode-BijgXT6I.js} +1 -1
  95. package/dist/public/assets/jsx-runtime-ffCh33zF.js +1 -0
  96. package/dist/public/assets/{kanban-definition-UXKFOSKX-BIFvSwV9.js → kanban-definition-UXKFOSKX-CQKuhkFV.js} +1 -1
  97. package/dist/public/assets/{line-BjlS8UJs.js → line-D4r_bmlv.js} +1 -1
  98. package/dist/public/assets/markdown-mermaid-JPAETK2Y.js +2 -0
  99. package/dist/public/assets/{math-BNNuKpUP.js → math-CSw6sgCC.js} +2 -2
  100. package/dist/public/assets/math-delimiters-BCnTi7Ii.js +1 -0
  101. package/dist/public/assets/media-refresh-store-CHnqDJWI.js +1 -0
  102. package/dist/public/assets/mermaid-parser.core-CICMKhjq.js +4 -0
  103. package/dist/public/assets/mermaid.core-D2QzpYEE.js +11 -0
  104. package/dist/public/assets/{mindmap-definition-YA3MSWOX-Cy4SIHHe.js → mindmap-definition-YA3MSWOX-DAB8mHOv.js} +1 -1
  105. package/dist/public/assets/monaco.contribution-C0TYpF88.js +2 -0
  106. package/dist/public/assets/notification-delivery-Lz-hnQG7.js +1 -0
  107. package/dist/public/assets/packet-AYTQ26CC-Cw5JteoC.js +1 -0
  108. package/dist/public/assets/{pdf-Cnp8bCq1.js → pdf-EQHMWEbX.js} +1 -1
  109. package/dist/public/assets/pegDiagram-XKGWAZYB-BE_LYTdh.js +1 -0
  110. package/dist/public/assets/pie-WAS4IAKB-CnPKaBaN.js +1 -0
  111. package/dist/public/assets/pieDiagram-E7YTZNPT-BRffiJ1a.js +39 -0
  112. package/dist/public/assets/popover-C-BfSLgw.js +1 -0
  113. package/dist/public/assets/preload-helper-Czpn1I53.js +1 -0
  114. package/dist/public/assets/preview-kind-CJ9RTgbs.js +1 -0
  115. package/dist/public/assets/project-abbrev-Bz8ZEwrb.js +1 -0
  116. package/dist/public/assets/protocol-support-CJIxbQCB.js +1 -0
  117. package/dist/public/assets/{quadrantDiagram-AXDQQJYC-2BigfRRK.js → quadrantDiagram-AXDQQJYC-DYWp1Jjq.js} +1 -1
  118. package/dist/public/assets/radar-RG4KPBEZ-Dqx79rlE.js +1 -0
  119. package/dist/public/assets/railroad-74A4TZTK-BkDQqaz7.js +1 -0
  120. package/dist/public/assets/railroad-abnf-HS5TGJTU-kgqWL-Ba.js +1 -0
  121. package/dist/public/assets/railroad-ebnf-LZEXJU2U-GspfOzjs.js +1 -0
  122. package/dist/public/assets/railroad-peg-WCYAUIDC-qO23KZap.js +1 -0
  123. package/dist/public/assets/railroadDiagram-O6MQD6OU-wuPYUWJ2.js +1 -0
  124. package/dist/public/assets/recipes-K5GH3Kht.js +1 -0
  125. package/dist/public/assets/{requirementDiagram-BXWQKSXE-BfBBVeo_.js → requirementDiagram-BXWQKSXE-BtGNZ92J.js} +1 -1
  126. package/dist/public/assets/rotate-ccw-CNjR2LSi.js +1 -0
  127. package/dist/public/assets/{sankeyDiagram-P5KCCOFB-BHy22mhl.js → sankeyDiagram-P5KCCOFB-XgIIrsbe.js} +1 -1
  128. package/dist/public/assets/scroll-restoration-r--43sOx.js +1 -0
  129. package/dist/public/assets/select-YFIOZ3zx.js +1 -0
  130. package/dist/public/assets/selection-actions-C2udLSyj.js +1 -0
  131. package/dist/public/assets/{sequenceDiagram-WJ2MYXX4-Dhgnxvrt.js → sequenceDiagram-WJ2MYXX4-CVIIE7ze.js} +1 -1
  132. package/dist/public/assets/{stateDiagram-D77RDMKH-CPWwa5Aj.js → stateDiagram-D77RDMKH-0kIDexDQ.js} +1 -1
  133. package/dist/public/assets/stateDiagram-v2-MP3YSRHH-DdU6a-zG.js +1 -0
  134. package/dist/public/assets/{swimlanes-42K2YHIH-DsqTASlp.js → swimlanes-42K2YHIH-BY2JV_Jb.js} +1 -1
  135. package/dist/public/assets/swimlanesDiagram-VR7AAH4N-BCiIa4tX.js +8 -0
  136. package/dist/public/assets/switch-DwMO1AUH.js +1 -0
  137. package/dist/public/assets/{timeline-definition-24CTP7MA-B7hjD0KJ.js → timeline-definition-24CTP7MA-CPRUSXUS.js} +1 -1
  138. package/dist/public/assets/treeView-Q6P3EWNA-CiZNqz_z.js +1 -0
  139. package/dist/public/assets/treemap-WGGIJYW6-5hDYDC6e.js +1 -0
  140. package/dist/public/assets/{tsMode-CillYPbz.js → tsMode-B7q3gz7a.js} +1 -1
  141. package/dist/public/assets/use-ui-state-Crvfdw4F.js +1 -0
  142. package/dist/public/assets/{vennDiagram-4TSXK5OY-BvS0i65j.js → vennDiagram-4TSXK5OY-CU1Q7iGV.js} +1 -1
  143. package/dist/public/assets/wardley-WFR3VGLG-CWb_ROLo.js +1 -0
  144. package/dist/public/assets/{wardleyDiagram-VM6X3IG4-CxconmGB.js → wardleyDiagram-VM6X3IG4-B2Pn7CDF.js} +3 -3
  145. package/dist/public/assets/whole-word-2m2pmAFT.js +1 -0
  146. package/dist/public/assets/workers-Ck67TJT4.js +1 -0
  147. package/dist/public/assets/ws-B1kcYo2j.js +1 -0
  148. package/dist/public/assets/x-DCpy1q13.js +1 -0
  149. package/dist/public/assets/{xychartDiagram-S5SC5T6Z-DSJMW0r7.js → xychartDiagram-S5SC5T6Z-xhQ4tT_S.js} +1 -1
  150. package/dist/public/index.html +6 -2
  151. package/dist/pudl.js +68 -7
  152. package/package.json +1 -1
  153. package/dist/public/assets/App-D_YTB3jH.js +0 -2
  154. package/dist/public/assets/Dashboard-Djw9nPV_.js +0 -1
  155. package/dist/public/assets/EditorTabClose-BCunnuEj.js +0 -1
  156. package/dist/public/assets/FindWidget-Ch-y_4eH.js +0 -1
  157. package/dist/public/assets/LazyTerminal-BN3rEDcD.js +0 -2
  158. package/dist/public/assets/NewProjectDialog-BK_gfWmL.js +0 -1
  159. package/dist/public/assets/PaneEditorBody-ClWRSuGV.js +0 -299
  160. package/dist/public/assets/PdfViewer-CbC1KAkq.js +0 -2
  161. package/dist/public/assets/SettingsDialog-DsmyHhQB.js +0 -8
  162. package/dist/public/assets/Terminal-CDnGRsgd.js +0 -66
  163. package/dist/public/assets/Workspace-CmclLFK3.js +0 -20
  164. package/dist/public/assets/abnfDiagram-VCTEODGH-Aa5uAdnV.js +0 -1
  165. package/dist/public/assets/architecture-7GRP2DOG-D3814jvH.js +0 -1
  166. package/dist/public/assets/architectureDiagram-5GKGNRK7-B0d475xG.js +0 -36
  167. package/dist/public/assets/buffer-store-BtRP7zZm.js +0 -16
  168. package/dist/public/assets/button-D3DTuFk3.js +0 -1
  169. package/dist/public/assets/channel-C6g1aWXR.js +0 -1
  170. package/dist/public/assets/chunk-2E4U76K2-DyVxGuz5.js +0 -2
  171. package/dist/public/assets/chunk-DU6HZSFF-ziCxw8j9.js +0 -125
  172. package/dist/public/assets/chunk-TLUHSLCS-BGFLoTUj.js +0 -2
  173. package/dist/public/assets/classDiagram-ZZMXUADV-BiQrxRCS.js +0 -1
  174. package/dist/public/assets/classDiagram-v2-VYDZK3BY-BiQrxRCS.js +0 -1
  175. package/dist/public/assets/context-menu-CwR-PGrS.js +0 -1
  176. package/dist/public/assets/copy-ZzKoF5dj.js +0 -1
  177. package/dist/public/assets/cssMode-DBrJeag9.js +0 -1
  178. package/dist/public/assets/cynefin-OW5HDTMX-DsXo9hDP.js +0 -1
  179. package/dist/public/assets/cynefinDiagram-5FMLGOSQ-CNr5UISm.js +0 -62
  180. package/dist/public/assets/diagram-UQ7AKVKN-Blm9jWHJ.js +0 -41
  181. package/dist/public/assets/diagram-VSXAHHWV-BzXCydDQ.js +0 -3
  182. package/dist/public/assets/dialog-BoaHxScl.js +0 -41
  183. package/dist/public/assets/disclosure-DNbP2Rp4.js +0 -1
  184. package/dist/public/assets/dist-CQZ_zg-s.js +0 -1
  185. package/dist/public/assets/dist-DUfD4S2p.js +0 -1
  186. package/dist/public/assets/ebnfDiagram-PWID7BFC-x8Hm-8FP.js +0 -1
  187. package/dist/public/assets/eventmodeling-NTZA5JFV-DE-zSV6F.js +0 -1
  188. package/dist/public/assets/flowDiagram-HODETNUW-Cn9XuALP.js +0 -1
  189. package/dist/public/assets/gitGraph-4MIJSDKK-DKeR8Wjx.js +0 -1
  190. package/dist/public/assets/gitGraphDiagram-WWUBYQGX-CPJ482wi.js +0 -106
  191. package/dist/public/assets/htmlMode-CKCaIwmL.js +0 -1
  192. package/dist/public/assets/index-CAvJOpdz.css +0 -2
  193. package/dist/public/assets/index-CPKHBs7z.js +0 -82
  194. package/dist/public/assets/info-A6RAGUB7-CYKUxPau.js +0 -1
  195. package/dist/public/assets/infoDiagram-27XIBGKW-5qHuu76B.js +0 -2
  196. package/dist/public/assets/markdown-mermaid-B_y_6yBe.js +0 -2
  197. package/dist/public/assets/media-refresh-store-BnZNW8xS.js +0 -1
  198. package/dist/public/assets/mermaid-parser.core-BwJKOdFv.js +0 -7
  199. package/dist/public/assets/mermaid.core-Cii531li.js +0 -11
  200. package/dist/public/assets/notification-delivery-Cn-YcMec.js +0 -1
  201. package/dist/public/assets/packet-AYTQ26CC-y8aHtpCT.js +0 -1
  202. package/dist/public/assets/pegDiagram-XKGWAZYB-yIL7Oty_.js +0 -1
  203. package/dist/public/assets/pie-WAS4IAKB-DNZ4gYKN.js +0 -1
  204. package/dist/public/assets/pieDiagram-E7YTZNPT-CUwYqrWF.js +0 -39
  205. package/dist/public/assets/preview-kind-QJSMKfUN.js +0 -1
  206. package/dist/public/assets/project-abbrev-B5CMO00I.js +0 -1
  207. package/dist/public/assets/protocol-support-hVrRUHAd.js +0 -1
  208. package/dist/public/assets/radar-RG4KPBEZ-DCE8-Z-G.js +0 -1
  209. package/dist/public/assets/railroad-74A4TZTK-BfnC2It7.js +0 -1
  210. package/dist/public/assets/railroad-abnf-HS5TGJTU-C8QChwRk.js +0 -1
  211. package/dist/public/assets/railroad-ebnf-LZEXJU2U-DN6nLE-f.js +0 -1
  212. package/dist/public/assets/railroad-peg-WCYAUIDC-emPIg_g-.js +0 -1
  213. package/dist/public/assets/railroadDiagram-O6MQD6OU-DpX2WbJ5.js +0 -1
  214. package/dist/public/assets/scroll-restoration-rhyw8Ck0.js +0 -1
  215. package/dist/public/assets/selection-actions-BDJnKwuj.js +0 -1
  216. package/dist/public/assets/stateDiagram-v2-MP3YSRHH-CmGYleZg.js +0 -1
  217. package/dist/public/assets/swimlanesDiagram-VR7AAH4N-CUahIPDv.js +0 -8
  218. package/dist/public/assets/switch-DGZtVofo.js +0 -1
  219. package/dist/public/assets/treeView-Q6P3EWNA-WU6eWUi6.js +0 -1
  220. package/dist/public/assets/treemap-WGGIJYW6-BNZcLwqI.js +0 -1
  221. package/dist/public/assets/use-ui-state-BZeOd2de.js +0 -1
  222. package/dist/public/assets/view-state-store-BEl9Q1Jm.js +0 -1
  223. package/dist/public/assets/wardley-WFR3VGLG-ChvHhLGz.js +0 -1
  224. package/dist/public/assets/ws-B6RLTvWI.js +0 -1
  225. package/dist/public/assets/x-CZCUod6A.js +0 -1
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{w as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createInfoServices};
@@ -1,2 +0,0 @@
1
- import{n as e}from"./mermaid-parser.core-BwJKOdFv.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-_wZywoZs.js";import{c as r}from"./chunk-DU6HZSFF-ziCxw8j9.js";import{t as i}from"./chunk-CLGD4ZFX-B8Oa13vy.js";var a={parse:t(async t=>{let r=await e(`info`,t);n.debug(r)},`parse`)},o={version:`11.17.2`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((e,t,a)=>{n.debug(`rendering info diagram
2
- `+e);let o=i(t);r(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-Cii531li.js","assets/index-CPKHBs7z.js","assets/rolldown-runtime-QTnfLwEv.js","assets/react-CZI7_Jkm.js","assets/index-CAvJOpdz.css","assets/purify.es-D8QhFVkO.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-_wZywoZs.js","assets/chunk-DU6HZSFF-ziCxw8j9.js","assets/chunk-75Z2AOVW-9vLeKuoB.js","assets/dist-D9sYb5Oa.js","assets/chunk-CLGD4ZFX-B8Oa13vy.js","assets/chunk-PWAF6VOD-BYtVJDwT.js","assets/chunk-GMAD6QVW-ZzqGXNRY.js","assets/chunk-P2QGCYS3-CaO30dnF.js","assets/chunk-4HAMMTFA-Brp_wxZT.js","assets/rough.esm-CSKSodPl.js","assets/chunk-GVQU2GXP-DiJctosx.js","assets/chunk-OSK3NFVY-ygO9ccvX.js","assets/line-BjlS8UJs.js","assets/path-BWPyau1x.js","assets/array-BifhSqXX.js","assets/chunk-L3NEJ4N5-DB3LOw2c.js","assets/chunk-TLUHSLCS-BGFLoTUj.js","assets/chunk-2E4U76K2-DyVxGuz5.js","assets/graphlib-DS17s2tU.js","assets/chunk-LNGE3PJU-DNNNwF8Y.js"])))=>i.map(i=>d[i]);
2
- import{n as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./index-CPKHBs7z.js";var r=e({MERMAID_SELECTOR:()=>i,renderMermaidDiagrams:()=>s}),i=`[data-puddle-mermaid]`,a=0,o=Promise.resolve();function s(e,t,n,r=!1){let i=o.then(()=>c(e,t,n,r));return o=i.catch(()=>void 0),i}async function c(e,r,o,s=!1){if(o?.aborted)return;let c=[...e.querySelectorAll(i)];if(c.length===0)return;let d;try{({default:d}=await n(()=>import(`./mermaid.core-Cii531li.js`),__vite__mapDeps([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,26])))}catch{if(!o?.aborted)for(let e of c)l(e,`Mermaid could not be loaded`);return}if(!o?.aborted){try{let n=t(),i=getComputedStyle(e).fontSize,a=Number.parseFloat(i);d.initialize({startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,theme:`base`,htmlLabels:!1,fontFamily:n(`--font-sans`),...s&&Number.isFinite(a)?{flowchart:{nodeSpacing:a,rankSpacing:a*2,padding:a/2,subGraphTitleMargin:{top:a/2,bottom:a}},sequence:{diagramMarginY:a/2,messageMargin:a,actorMargin:a}}:{},secure:[`secure`,`securityLevel`,`startOnLoad`,`maxTextSize`,`maxEdges`,`suppressErrorRendering`,`theme`,`themeCSS`,`themeVariables`,`fontFamily`],themeVariables:{darkMode:r===`dark`,background:n(`--bg-base`),primaryColor:n(`--bg-elevated`),primaryTextColor:n(`--text-primary`),primaryBorderColor:n(`--border`),secondaryColor:n(`--bg-surface`),secondaryTextColor:n(`--text-primary`),secondaryBorderColor:n(`--border`),tertiaryColor:n(`--bg-base`),tertiaryTextColor:n(`--text-secondary`),tertiaryBorderColor:n(`--border`),lineColor:n(`--text-muted`),textColor:n(`--text-primary`),fontFamily:n(`--font-sans`),fontSize:i}})}catch(e){if(!o?.aborted)for(let t of c)l(t,u(e));return}for(let e of c){if(o?.aborted||!e.isConnected)return;let t=e.textContent??``,n=`puddle-mermaid-${a++}`;try{let{svg:r}=await d.render(n,t);if(o?.aborted||!e.isConnected)continue;e.innerHTML=r,e.removeAttribute(`data-puddle-mermaid`)}catch(t){document.getElementById(n)?.remove(),!o?.aborted&&e.isConnected&&l(e,u(t))}}}}function l(e,t){if(e.querySelector(`.mermaid-error`))return;let n=document.createElement(`p`);n.className=`mermaid-error`,n.textContent=`Unable to render Mermaid diagram.`,n.title=t,e.prepend(n)}function u(e){return e instanceof Error?e.message:String(e)}export{s as n,r as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{n}from"./index-CPKHBs7z.js";import{a as r,i,n as a}from"./dist-CQZ_zg-s.js";import{At as o,Ft as s,Lt as c,Nt as l,Ot as u,Rt as d,jt as f,kt as p}from"./protocol-support-hVrRUHAd.js";import{t as m}from"./createLucideIcon-DyMAgLa3.js";var h=class extends s{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,l=n.fetchMeta?.fetchMore?.direction,u=o&&l===`forward`,f=i&&l===`forward`,p=o&&l===`backward`,m=i&&l===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:c(t,n.data),hasPreviousPage:d(t,n.data),isFetchNextPageError:u,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:m,isRefetchError:s&&!u&&!p,isRefetching:a&&!f&&!m}}};function g(e,t){return f(e,h,t)}var ee=m(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),_=50;function v(e){return e===void 0?``:`&root=${encodeURIComponent(e)}`}function y(e){return e?{placeholderData:e=>e}:{}}function b(e,t,n){let r=e!==void 0;return o({queryKey:n===void 0?[`wt-tree`,e,t]:[`wt-tree`,e,t,n],queryFn:()=>i(`GET`,`/api/worktrees/${e}/tree?path=${encodeURIComponent(t)}${v(n)}`),enabled:r,...y(r)})}function x(e,t,n){let r=n?.root;return o({queryKey:r===void 0?[`wt-file`,e,t]:[`wt-file`,e,t,r],queryFn:()=>i(`GET`,`/api/worktrees/${e}/file?path=${encodeURIComponent(t)}${v(r)}`),enabled:e!==void 0&&(n?.enabled??!0),...n?.live===!0?{refetchInterval:u(3e3),refetchOnWindowFocus:!0}:{}})}function S(e,t){let n=l();return p({mutationFn:({path:n,...r})=>i(`PUT`,`/api/worktrees/${e}/file?path=${encodeURIComponent(n)}${v(t)}`,r),onSuccess:(r,{path:i})=>{n.invalidateQueries({queryKey:t===void 0?[`wt-file`,e,i]:[`wt-file`,e,i,t]}),n.invalidateQueries({queryKey:[`wt-diff`,e]})}})}function te(e,t){let n=t?.against??`base`,r=t?.area,a=t?.root,s=e!==void 0&&(t?.enabled??!0);return o({queryKey:a===void 0?[`wt-diff`,e,n,r]:[`wt-diff`,e,n,r,a],queryFn:()=>{let t=r===void 0?``:`&area=${r}`;return i(`GET`,`/api/worktrees/${e}/diff?against=${n}${t}${v(a)}`)},enabled:s,refetchInterval:u(1e4),refetchOnWindowFocus:!0,...y(s)})}function ne(e,t){let n=t?.root,r=e!==void 0&&(t?.enabled??!0);return o({queryKey:n===void 0?[`git-repositories`,e]:[`git-repositories`,e,n],queryFn:()=>i(`GET`,`/api/worktrees/${e}/git-repositories${C(n)}`),enabled:r,refetchInterval:u(1e4),refetchOnWindowFocus:!0,...y(r)})}function re(e,t,n){let r=n?.root,a=e!==void 0&&(n?.enabled??!0);return o({queryKey:[`git-original`,e,t,r],queryFn:()=>i(`GET`,`/api/worktrees/${e}/git-original?path=${encodeURIComponent(t)}${v(r)}`),enabled:a,refetchInterval:u(1e4),refetchOnWindowFocus:!0})}function ie(e,t,n){let r=n?.root;return o({queryKey:[`git-index-file`,e,t,r],queryFn:()=>i(`GET`,`/api/worktrees/${e}/index-file?path=${encodeURIComponent(t)}${v(r)}`),enabled:e!==void 0&&(n?.enabled??!0)})}function ae(e,t){let n=l();return p({mutationFn:({action:n,...r})=>i(`POST`,`/api/worktrees/${e}/git-${n}${C(t)}`,r),onSuccess:()=>{n.invalidateQueries({queryKey:[`git-repositories`,e]}),n.invalidateQueries({queryKey:[`wt-git-status`,e]}),n.invalidateQueries({queryKey:[`wt-diff`,e]}),n.invalidateQueries({queryKey:[`wt-log`,e]}),n.invalidateQueries({queryKey:[`wt-show`,e]}),n.invalidateQueries({queryKey:[`git-original`,e]}),n.invalidateQueries({queryKey:[`git-index-file`,e]})}})}function oe(e,t){let n=t?.root,r=e!==void 0&&(t?.enabled??!0);return o({queryKey:n===void 0?[`wt-git-status`,e]:[`wt-git-status`,e,n],queryFn:()=>i(`GET`,`/api/worktrees/${e}/git-status${C(n)}`),enabled:r,refetchInterval:u(1e4),refetchOnWindowFocus:!0,...y(r)})}function C(e){return e===void 0?``:`?root=${encodeURIComponent(e)}`}function se(e,t,n,r){return i(`POST`,`/api/worktrees/${e}/create${C(r)}`,{path:t,kind:n})}function ce(e,t,n,r){return i(`POST`,`/api/worktrees/${e}/rename${C(r)}`,{from:t,to:n})}function le(e,t,n,r){return i(`POST`,`/api/worktrees/${e}/copy${C(r)}`,{from:t,to:n})}function ue(e,t,n){return i(`POST`,`/api/worktrees/${e}/transfer${C(n)}`,t)}function de(e,t,n){return i(`POST`,`/api/worktrees/${e}/delete${C(n)}`,{path:t})}function fe(e,t,n){let{query:r,regex:a,caseSensitive:s,wholeWord:c}=t;return o({queryKey:[`wt-search`,e,r,a,s,c,n],queryFn:()=>{let t=new URLSearchParams({q:r});return a&&t.set(`regex`,`1`),s&&t.set(`case`,`1`),c&&t.set(`word`,`1`),n!==void 0&&t.set(`root`,n),i(`GET`,`/api/worktrees/${e}/search?${t.toString()}`)},enabled:e!==void 0&&r.length>0,staleTime:2e3})}function pe(e,t,n,r){let a=r?.root;return o({queryKey:[`wt-file-at`,e,t,n,a],queryFn:()=>i(`GET`,`/api/worktrees/${e}/file-at?ref=${encodeURIComponent(t)}&path=${encodeURIComponent(n)}${v(a)}`),enabled:e!==void 0&&(r?.enabled??!0),staleTime:1/0})}function me(e,t){let n=t?.root,r=e!==void 0&&(t?.enabled??!0);return g({queryKey:n===void 0?[`wt-log`,e]:[`wt-log`,e,n],queryFn:({pageParam:t})=>i(`GET`,`/api/worktrees/${e}/log?limit=${_}&skip=${t}${v(n)}`),initialPageParam:0,getNextPageParam:(e,t)=>e.has_more?t.length*_:void 0,enabled:r,...y(r)})}function w(e,t,n){return o({queryKey:n===void 0?[`wt-show`,e,t]:[`wt-show`,e,t,n],queryFn:()=>i(`GET`,`/api/worktrees/${e}/show/${t}${C(n)}`),enabled:e!==void 0&&t!==void 0,staleTime:1/0})}var T=64*1024*1024;function E(e,t){let n=[],r=[],i=0;for(let a of e)r.length>0&&i+a.size>t&&(n.push(r),r=[],i=0),r.push(a),i+=a.size;return r.length>0&&n.push(r),n}async function D(e,t,n,i){let a=[];for(let o of E(n,T)){let n=new FormData;for(let e of o)n.append(`files`,e,e.name);let s=await r(`POST`,`/api/worktrees/${e}/upload?dir=${encodeURIComponent(t)}${v(i)}`,{body:n});a.push(...(await s.json()).files)}return{files:a}}function O(e,t){if(!e)return t;let n=/filename\*=UTF-8''([^;]+)/i.exec(e);if(n?.[1])try{return decodeURIComponent(n[1])}catch{return t}return/filename="?([^"; ]+)"?/i.exec(e)?.[1]??t}async function k(e,t,n){let i=await r(`GET`,`/api/worktrees/${e}/download?path=${encodeURIComponent(t)}${v(n)}`),a=await i.blob(),o=t.split(`/`).filter(Boolean).pop()??`worktree`,s=O(i.headers.get(`content-disposition`),o),c=URL.createObjectURL(a);try{let e=document.createElement(`a`);e.href=c,e.download=s,document.body.appendChild(e),e.click(),e.remove()}finally{URL.revokeObjectURL(c)}}var A=e(t(),1),j=[],M=new Map,N=new Map,P=new Map;function F(e,t){let n=M.get(e)??j;t.length===0?M.delete(e):M.set(e,t);let r=new Set([...n.map(e=>B(e.source)),...t.map(e=>B(e.source))]);for(let e of r)z(e)}function I(e){F(e,j)}function L(e,t,n){let r=B({session:e,path:t,...n===void 0?{}:{root:n}});return(0,A.useSyncExternalStore)((0,A.useCallback)(e=>he(r,e),[r]),()=>R({session:e,path:t,...n===void 0?{}:{root:n}}))}function R(e){return N.get(B(e))??j}function z(e){let t=[...M.values()].flatMap(t=>t.filter(t=>B(t.source)===e));t.length===0?N.delete(e):N.set(e,t);for(let t of P.get(e)??[])t()}function he(e,t){let n=P.get(e)??new Set;return n.add(t),P.set(e,n),()=>{n.delete(t),n.size===0&&P.delete(e)}}function B(e){return JSON.stringify([e.session,e.root??null,e.path])}function V(e,t,n){let r=`${encodeURIComponent(e)}:${encodeURIComponent(t)}`;return n===void 0?r:`${r}:${encodeURIComponent(n)}`}var H=new Map;function ge(e,t,n){let r={save:t,...n?{target:n}:{}};return H.set(e,r),()=>{H.get(e)===r&&H.delete(e)}}function _e(e){if(e===null)return!1;let t=H.get(e);return t?(t.save(),!0):!1}async function ve(e,t){let n=V(e.session,e.path,e.root),r=[...H.entries()].flatMap(([r,i])=>{let a=i.target;if(!a||a.session!==e.session||a.root!==e.root)return[];let o=ye(a.path);return r!==n&&!t.has(o)?[]:[Promise.resolve(i.save())]});return(await Promise.all(r)).every(e=>e!==!1)}function ye(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<0?``:t.slice(n+1).toLowerCase()}var be=`UTC`;function xe(e){return new Date(e).toLocaleDateString(`en-GB`,{day:`numeric`,month:`short`,year:`numeric`,timeZone:be})}var U=60,W=60*U,G=24*W,Se=7*G;function Ce(e,t=new Date){let n=new Date(e).getTime(),r=Math.max(0,Math.floor((t.getTime()-n)/1e3));return r<U?`just now`:r<W?`${Math.floor(r/U)} m ago`:r<G?`${Math.floor(r/W)} h ago`:r<Se?`${Math.floor(r/G)} d ago`:xe(n)}function we(e,t){return t?`added`:e}function Te(e){return i(`POST`,`/api/profiles/${e}/untitled`)}function K(e,t){return[`untitled`,e,t]}function Ee(e,t){return o({queryKey:K(e,t),queryFn:()=>i(`GET`,`/api/profiles/${e}/untitled/${t}`),enabled:e!==null,staleTime:1/0})}function De(e,t,n,r){e.setQueryData(K(t,n),e=>e===void 0?e:{...e,content:r})}function Oe(e,t,n){return i(`PUT`,`/api/profiles/${e}/untitled/${t}`,{content:n})}function ke(e,t){return i(`DELETE`,`/api/profiles/${e}/untitled/${t}`)}var q=null,J=new Map;function Ae(e){q=e}function je(e){q?.(e)}function Me(e,t){J.set(e,t)}function Ne(e){return J.get(e)}function Pe(e){J.delete(e)}var Y=n(),X=(0,A.createContext)({openFile:()=>void 0,handler:null,setHandler:()=>void 0});function Fe({children:e}){let[t,n]=(0,A.useState)(null),r=(0,A.useCallback)(e=>n(()=>e),[]),i=(0,A.useCallback)((e,n,r,i)=>{if(!t){a(`The editor is not ready yet.`);return}t(e,n,r,i)},[t]),o=(0,A.useMemo)(()=>({openFile:i,handler:t,setHandler:r}),[i,t,r]);return(0,Y.jsx)(X.Provider,{value:o,children:e})}function Ie(){let{openFile:e}=(0,A.useContext)(X);return{openFile:e}}function Le(e){let{setHandler:t}=(0,A.useContext)(X),n=(0,A.useRef)(e);n.current=e,(0,A.useEffect)(()=>(t((e,t,r,i)=>n.current(e,t,r,i)),()=>t(null)),[t])}var Z=new Map,Q=new Map;function Re(e,t,n){let r=$(e,t,n);Z.set(r,(Z.get(r)??0)+1);for(let e of Q.get(r)??[])e()}function ze(e,t,n){let r=$(e,t,n),i=(0,A.useCallback)(e=>Be(r,e),[r]),a=(0,A.useCallback)(()=>Z.get(r)??0,[r]);return(0,A.useSyncExternalStore)(i,a,a)}function Be(e,t){let n=Q.get(e);return n||(n=new Set,Q.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&Q.delete(e)}}function $(e,t,n){return JSON.stringify([e,n??null,t])}export{v as A,te as B,F as C,de as D,se as E,ae as F,b as G,oe as H,re as I,ee as K,ne as L,D as M,w as N,k as O,pe as P,ie as R,I as S,le as T,me as U,x as V,fe as W,Ce as _,Le as a,ve as b,je as c,Te as d,ke as f,we as g,Ee as h,Ie as i,ue as j,ce as k,Ae as l,De as m,ze as n,Pe as o,Oe as p,Fe as r,Me as s,Re as t,Ne as u,ge as v,L as w,V as x,_e as y,S as z};
@@ -1,7 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-A6RAGUB7-CYKUxPau.js","assets/chunk-FOHPRMQF-CdD2_EOh.js","assets/packet-AYTQ26CC-y8aHtpCT.js","assets/pie-WAS4IAKB-DNZ4gYKN.js","assets/treeView-Q6P3EWNA-WU6eWUi6.js","assets/architecture-7GRP2DOG-D3814jvH.js","assets/gitGraph-4MIJSDKK-DKeR8Wjx.js","assets/eventmodeling-NTZA5JFV-DE-zSV6F.js","assets/radar-RG4KPBEZ-DCE8-Z-G.js","assets/railroad-74A4TZTK-BfnC2It7.js","assets/railroad-ebnf-LZEXJU2U-DN6nLE-f.js","assets/railroad-abnf-HS5TGJTU-C8QChwRk.js","assets/railroad-peg-WCYAUIDC-emPIg_g-.js","assets/treemap-WGGIJYW6-BNZcLwqI.js","assets/wardley-WFR3VGLG-ChvHhLGz.js","assets/cynefin-OW5HDTMX-DsXo9hDP.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./index-CPKHBs7z.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./chunk-FOHPRMQF-CdD2_EOh.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
3
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ce=class extends c{static{p(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return I(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return I(t)}},L={parser:{TokenBuilder:p(()=>new Se,`TokenBuilder`),ValueConverter:p(()=>new Ce,`ValueConverter`)}};function we(e=l){let r=f(t(e),d),i=f(n({shared:r}),ne,L);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(we,`createRailroadServices`);var Te=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Ee=class extends c{static{p(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},R={parser:{TokenBuilder:p(()=>new Te,`TokenBuilder`),ValueConverter:p(()=>new Ee,`ValueConverter`)}};function z(e=l){let r=f(t(e),d),i=f(n({shared:r}),ae,R);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(z,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},B=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
4
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Oe=class extends c{static{p(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return B(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return B(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},V={parser:{TokenBuilder:p(()=>new De,`TokenBuilder`),ValueConverter:p(()=>new Oe,`ValueConverter`)}};function H(e=l){let r=f(t(e),d),i=f(n({shared:r}),re,V);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(H,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},U=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
5
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-CYKUxPau.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]));$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-y8aHtpCT.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]));$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-DNZ4gYKN.js`);return{createPieServices:e}},__vite__mapDeps([3,1]));$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-WU6eWUi6.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]));$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-D3814jvH.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]));$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-DKeR8Wjx.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]));$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-DE-zSV6F.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]));$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-DCE8-Z-G.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]));$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-BfnC2It7.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]));$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-DN6nLE-f.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]));$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-C8QChwRk.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]));$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-emPIg_g-.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]));$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-BNZcLwqI.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]));$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-ChvHhLGz.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]));$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-DsXo9hDP.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]));$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
6
- `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
7
- `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,O as C,w as D,D as E,h as M,T as O,j as S,E as T,P as _,Y as a,N as b,q as c,V as d,H as f,we as g,L as h,Q as i,m as j,g as k,W as l,z as m,ze as n,X as o,R as p,Z as r,K as s,Be as t,G as u,F as v,k as w,A as x,M as y};
@@ -1,11 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-7LVT6UL2-ZLfrwKT4.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-_wZywoZs.js","assets/rolldown-runtime-QTnfLwEv.js","assets/chunk-DU6HZSFF-ziCxw8j9.js","assets/index-CPKHBs7z.js","assets/react-CZI7_Jkm.js","assets/index-CAvJOpdz.css","assets/purify.es-D8QhFVkO.js","assets/chunk-75Z2AOVW-9vLeKuoB.js","assets/dist-D9sYb5Oa.js","assets/chunk-PWAF6VOD-BYtVJDwT.js","assets/chunk-GMAD6QVW-ZzqGXNRY.js","assets/chunk-P2QGCYS3-CaO30dnF.js","assets/chunk-4HAMMTFA-Brp_wxZT.js","assets/rough.esm-CSKSodPl.js","assets/chunk-F27PBJKO-I29_mrbz.js","assets/flowDiagram-HODETNUW-Cn9XuALP.js","assets/chunk-GVQU2GXP-DiJctosx.js","assets/chunk-OSK3NFVY-ygO9ccvX.js","assets/line-BjlS8UJs.js","assets/path-BWPyau1x.js","assets/array-BifhSqXX.js","assets/chunk-XXDRQBXY-BuE3VzE_.js","assets/chunk-POPQ4Y6H-BS_wlBQ7.js","assets/chunk-L3NEJ4N5-DB3LOw2c.js","assets/chunk-TLUHSLCS-BGFLoTUj.js","assets/chunk-LNGE3PJU-DNNNwF8Y.js","assets/chunk-SHT3W25Y-DbWwFCez.js","assets/channel-C6g1aWXR.js","assets/chunk-5VM5RSS4-ZNzvKenW.js","assets/swimlanesDiagram-VR7AAH4N-CUahIPDv.js","assets/erDiagram-RLTQ6QDP-DqwnnH7t.js","assets/gitGraphDiagram-WWUBYQGX-CPJ482wi.js","assets/mermaid-parser.core-BwJKOdFv.js","assets/chunk-FOHPRMQF-CdD2_EOh.js","assets/chunk-JWPE2WC7-DVXcaiue.js","assets/chunk-2Q5K7J3B-C1jixKkw.js","assets/ganttDiagram-EL5Y4UJY-BvWbPqg4.js","assets/linear-B7l8qgEw.js","assets/defaultLocale-C8Fc0cco.js","assets/init-D6jRqBbL.js","assets/infoDiagram-27XIBGKW-5qHuu76B.js","assets/chunk-CLGD4ZFX-B8Oa13vy.js","assets/pieDiagram-E7YTZNPT-CUwYqrWF.js","assets/ordinal-hYBb2elL.js","assets/arc-BjSQqbzd.js","assets/quadrantDiagram-AXDQQJYC-2BigfRRK.js","assets/xychartDiagram-S5SC5T6Z-DSJMW0r7.js","assets/requirementDiagram-BXWQKSXE-BfBBVeo_.js","assets/sequenceDiagram-WJ2MYXX4-Dhgnxvrt.js","assets/classDiagram-ZZMXUADV-BiQrxRCS.js","assets/chunk-TICWLB2K-Bo_jKuAY.js","assets/classDiagram-v2-VYDZK3BY-BiQrxRCS.js","assets/stateDiagram-D77RDMKH-CPWwa5Aj.js","assets/graphlib-DS17s2tU.js","assets/dagre-CNOzUhxk.js","assets/chunk-IMKFNOWR-yuPnJltA.js","assets/stateDiagram-v2-MP3YSRHH-CmGYleZg.js","assets/journeyDiagram-3NMN7TZE-7GJvjukT.js","assets/timeline-definition-24CTP7MA-B7hjD0KJ.js","assets/mindmap-definition-YA3MSWOX-Cy4SIHHe.js","assets/kanban-definition-UXKFOSKX-BIFvSwV9.js","assets/sankeyDiagram-P5KCCOFB-BHy22mhl.js","assets/diagram-Z3DM3KII-CPQuWy39.js","assets/diagram-UQ7AKVKN-Blm9jWHJ.js","assets/blockDiagram-I7D4REHJ-NHlOsaCN.js","assets/diagram-S7CK7UJ4-CakLFIEW.js","assets/architectureDiagram-5GKGNRK7-B0d475xG.js","assets/cytoscape.esm-Dic2qDnk.js","assets/diagram-VSXAHHWV-BzXCydDQ.js","assets/ishikawaDiagram-5VMMS53U-Bq13tOFJ.js","assets/vennDiagram-4TSXK5OY-BvS0i65j.js","assets/diagram-VX7I27RA-VJip2Tpi.js","assets/wardleyDiagram-VM6X3IG4-CxconmGB.js","assets/cynefinDiagram-5FMLGOSQ-CNr5UISm.js","assets/railroadDiagram-O6MQD6OU-DpX2WbJ5.js","assets/chunk-SVP7TREG-DLDU3lFF.js","assets/ebnfDiagram-PWID7BFC-x8Hm-8FP.js","assets/abnfDiagram-VCTEODGH-Aa5uAdnV.js","assets/pegDiagram-XKGWAZYB-yIL7Oty_.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./index-CPKHBs7z.js";import{t}from"./purify.es-D8QhFVkO.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{h as r,m as i,p as a}from"./src-_wZywoZs.js";import{C as o,E as s,I as c,L as l,N as u,P as d,Q as f,S as p,T as m,V as h,W as g,X as _,Z as v,_ as y,b,c as x,g as S,l as C,m as w,n as ee,p as te,q as ne,r as re,t as T,u as E}from"./chunk-DU6HZSFF-ziCxw8j9.js";import{S as ie,a as ae,f as oe,g as D,h as se,i as ce,o as le,v as ue,x as de,y as fe}from"./chunk-75Z2AOVW-9vLeKuoB.js";import{t as pe}from"./chunk-CLGD4ZFX-B8Oa13vy.js";import{r as me}from"./chunk-PWAF6VOD-BYtVJDwT.js";import{i as he}from"./chunk-GMAD6QVW-ZzqGXNRY.js";import"./chunk-P2QGCYS3-CaO30dnF.js";import"./chunk-4HAMMTFA-Brp_wxZT.js";import"./chunk-GVQU2GXP-DiJctosx.js";import"./chunk-OSK3NFVY-ygO9ccvX.js";import"./chunk-L3NEJ4N5-DB3LOw2c.js";import{n as ge}from"./chunk-TLUHSLCS-BGFLoTUj.js";import{i as _e,l as ve,n as ye,o as be}from"./chunk-2E4U76K2-DyVxGuz5.js";import{n as xe,t as Se}from"./chunk-LNGE3PJU-DNNNwF8Y.js";function Ce(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function we(e){if(e==null)return!0;if(de(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!ie(e)&&!ue(e)&&!fe(e)?!1:e.length===0;if(typeof e==`object`||typeof e==`function`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Ce(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Te=`comm`,Ee=`rule`,De=`decl`,Oe=`@import`,ke=`@namespace`,Ae=`@keyframes`,je=`@layer`,Me=Math.abs,O=String.fromCharCode;function Ne(e){return e.trim()}function k(e,t,n){return e.replace(t,n)}function A(e,t){return e.charCodeAt(t)|0}function j(e,t,n){return e.slice(t,n)}function M(e){return e.length}function Pe(e){return e.length}function N(e,t){return t.push(e),e}var P=1,F=1,Fe=0,I=0,L=0,R=``;function z(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:P,column:F,length:o,return:``,siblings:s}}function Ie(){return L}function Le(){return L=I>0?A(R,--I):0,F--,L===10&&(F=1,P--),L}function B(){return L=I<Fe?A(R,I++):0,F++,L===10&&(F=1,P++),L}function V(){return A(R,I)}function H(){return I}function U(e,t){return j(R,e,t)}function W(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Re(e){return P=F=1,Fe=M(R=e),I=0,[]}function ze(e){return R=``,e}function G(e){return Ne(U(I-1,K(e===91?e+2:e===40?e+1:e)))}function Be(e){for(;(L=V())&&L<33;)B();return W(e)>2||W(L)>3?``:` `}function Ve(e,t){for(;--t&&B()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return U(e,H()+(t<6&&V()==32&&B()==32))}function K(e){for(;B();)switch(L){case e:return I;case 34:case 39:e!==34&&e!==39&&K(L);break;case 40:e===41&&K(e);break;case 92:B();break}return I}function He(e,t){for(;B()&&e+L!==57&&!(e+L===84&&V()===47););return`/*`+U(t,I-1)+`*`+O(e===47?e:B())}function Ue(e){for(;!W(V());)B();return U(e,I)}function We(e){return ze(q(``,null,null,null,[``],e=Re(e),0,[0],e))}function q(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=B()){case 40:m!=108&&A(w,d-1)==58?(v++,w+=`(`):w+=G(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=G(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=O(y);break}w+=Be(m);break;case 92:w+=Ve(H()-1,7);continue;case 47:switch(V()){case 42:case 47:N(Ke(He(B(),H()),t,n,c),c),(W(m||1)==5||W(V()||1)==5)&&M(w)&&j(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=M(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=O(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=k(w,/\f/g,``)),p>0&&(M(w)-d||h===0)&&N(p>32?qe(w+`;`,r,n,d-1,c):qe(k(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(N(C=Ge(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)q(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(A(w,3)===110)break;case 108:if(A(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?q(e,C,C,r&&N(Ge(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):q(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+M(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Le()==125)continue}switch(w+=O(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(M(w)-1)*_,_=1;break;case 64:V()===45&&(w+=G(B())),f=V(),u=d=M(b=w+=Ue(H())),y++;break;case 45:m===45&&M(w)==2&&(h=0)}}return a}function Ge(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Pe(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=j(e,f+1,f=Me(g=o[h])),b=e;v<m;++v)(b=Ne(g>0?p[v]+` `+y:k(y,/&\f/g,p[v])))&&(c[_++]=b);return z(e,t,n,i===0?Ee:s,c,l,u,d)}function Ke(e,t,n,r){return z(e,t,n,Te,O(Ie()),j(e,2,-2),0,r)}function qe(e,t,n,r,i){return z(e,t,n,De,j(e,0,r),j(e,r+1,-1),r,i)}function J(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Je(e,t,n,r){switch(e.type){case je:if(e.children.length)break;case Oe:case ke:case De:return e.return=e.return||e.value;case Te:return``;case Ae:return e.return=e.value+`{`+J(e.children,r)+`}`;case Ee:if(!M(e.value=e.props.join(`,`)))return``}return M(n=J(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Ye(e){var t=Pe(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}var Xe=`c4`,Ze={id:Xe,detector:n(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./c4Diagram-7LVT6UL2-ZLfrwKT4.js`);return{diagram:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]));return{id:Xe,diagram:t}},`loader`)},Qe=`flowchart`,$e={id:Qe,detector:n((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-HODETNUW-Cn9XuALP.js`);return{diagram:e}},__vite__mapDeps([17,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,27,28,29,30]));return{id:Qe,diagram:t}},`loader`)},et=`flowchart-v2`,tt={id:et,detector:n((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-HODETNUW-Cn9XuALP.js`);return{diagram:e}},__vite__mapDeps([17,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,27,28,29,30]));return{id:et,diagram:t}},`loader`)},nt=`swimlane`,rt={id:nt,detector:n(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./swimlanesDiagram-VR7AAH4N-CUahIPDv.js`);return{diagram:e}},__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,27,28,29,30]));return{id:nt,diagram:t}},`loader`)},it=`er`,at={id:it,detector:n(e=>/^\s*erDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./erDiagram-RLTQ6QDP-DqwnnH7t.js`);return{diagram:e}},__vite__mapDeps([32,1,2,3,4,5,6,7,8,29,9,10,11,12,13,14,15,18,19,20,21,22,23,24,25,26]));return{id:it,diagram:t}},`loader`)},ot=`gitGraph`,st={id:ot,detector:n(e=>/^\s*gitGraph/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-WWUBYQGX-CPJ482wi.js`);return{diagram:e}},__vite__mapDeps([33,34,5,3,6,7,35,1,2,4,8,9,10,36,37]));return{id:ot,diagram:t}},`loader`)},ct=`gantt`,lt={id:ct,detector:n(e=>/^\s*gantt/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ganttDiagram-EL5Y4UJY-BvWbPqg4.js`);return{diagram:e}},__vite__mapDeps([38,3,1,2,4,5,6,7,8,39,40,41,10,9]));return{id:ct,diagram:t}},`loader`)},ut=`info`,dt={id:ut,detector:n(e=>/^\s*info/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./infoDiagram-27XIBGKW-5qHuu76B.js`);return{diagram:e}},__vite__mapDeps([42,34,5,3,6,7,35,1,2,4,8,43]));return{id:ut,diagram:t}},`loader`)},ft=`pie`,pt={id:ft,detector:n(e=>/^\s*pie/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./pieDiagram-E7YTZNPT-CUwYqrWF.js`);return{diagram:e}},__vite__mapDeps([44,34,5,3,6,7,35,1,2,4,8,45,41,21,10,46,22,9,43,36]));return{id:ft,diagram:t}},`loader`)},mt=`quadrantChart`,ht={id:mt,detector:n(e=>/^\s*quadrantChart/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./quadrantDiagram-AXDQQJYC-2BigfRRK.js`);return{diagram:e}},__vite__mapDeps([47,1,2,3,4,5,6,7,8,39,40,41]));return{id:mt,diagram:t}},`loader`)},gt=`xychart`,_t={id:gt,detector:n(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./xychartDiagram-S5SC5T6Z-DSJMW0r7.js`);return{diagram:e}},__vite__mapDeps([48,1,2,3,4,5,6,7,8,39,40,41,45,9,10,20,21,22,43,11,12]));return{id:gt,diagram:t}},`loader`)},vt=`requirement`,yt={id:vt,detector:n(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./requirementDiagram-BXWQKSXE-BfBBVeo_.js`);return{diagram:e}},__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,23,24,25,26]));return{id:vt,diagram:t}},`loader`)},bt=`sequence`,xt={id:bt,detector:n(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./sequenceDiagram-WJ2MYXX4-Dhgnxvrt.js`);return{diagram:e}},__vite__mapDeps([50,1,2,3,4,5,6,7,8,10,9,16,37,27]));return{id:bt,diagram:t}},`loader`)},St=`class`,Ct={id:St,detector:n((e,t)=>t?.class?.defaultRenderer!==`dagre-wrapper`&&/^\s*classDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./classDiagram-ZZMXUADV-BiQrxRCS.js`);return{diagram:e}},__vite__mapDeps([51,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,52,30]));return{id:St,diagram:t}},`loader`)},wt=`classDiagram`,Tt={id:wt,detector:n((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./classDiagram-v2-VYDZK3BY-BiQrxRCS.js`);return{diagram:e}},__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,52,30]));return{id:wt,diagram:t}},`loader`)},Et=`state`,Dt={id:Et,detector:n((e,t)=>t?.state?.defaultRenderer!==`dagre-wrapper`&&/^\s*stateDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./stateDiagram-D77RDMKH-CPWwa5Aj.js`);return{diagram:e}},__vite__mapDeps([54,1,2,3,4,5,6,7,8,9,10,20,21,22,11,12,13,14,15,18,19,55,56,16,23,24,25,26,57]));return{id:Et,diagram:t}},`loader`)},Ot=`stateDiagram`,kt={id:Ot,detector:n((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-MP3YSRHH-CmGYleZg.js`);return{diagram:e}},__vite__mapDeps([58,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,57]));return{id:Ot,diagram:t}},`loader`)},At=`journey`,jt={id:At,detector:n(e=>/^\s*journey/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./journeyDiagram-3NMN7TZE-7GJvjukT.js`);return{diagram:e}},__vite__mapDeps([59,1,2,3,4,5,6,7,8,46,21,10,30,16]));return{id:At,diagram:t}},`loader`)},Mt={draw:n((e,t,n)=>{i.debug(`rendering svg for syntax error
3
- `);let r=pe(t),a=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),x(r,100,512,!0),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},Nt=Mt,Pt={db:{},renderer:Mt,parser:{parse:n(()=>{},`parse`)}},Ft=`flowchart-elk`,It={id:Ft,detector:n((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-HODETNUW-Cn9XuALP.js`);return{diagram:e}},__vite__mapDeps([17,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,16,23,24,25,26,27,28,29,30]));return{id:Ft,diagram:t}},`loader`)},Lt=`timeline`,Rt={id:Lt,detector:n(e=>/^\s*timeline/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./timeline-definition-24CTP7MA-B7hjD0KJ.js`);return{diagram:e}},__vite__mapDeps([60,1,2,3,4,5,6,7,8,46,21,10,9,43]));return{id:Lt,diagram:t}},`loader`)},zt=`mindmap`,Bt={id:zt,detector:n(e=>/^\s*mindmap/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./mindmap-definition-YA3MSWOX-Cy4SIHHe.js`);return{diagram:e}},__vite__mapDeps([61,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20,21,22,23,24,25,26]));return{id:zt,diagram:t}},`loader`)},Vt=`kanban`,Ht={id:Vt,detector:n(e=>/^\s*kanban/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./kanban-definition-UXKFOSKX-BIFvSwV9.js`);return{diagram:e}},__vite__mapDeps([62,1,2,3,4,5,6,7,8,9,10,43,11,12,30,13,14,15,18,25,27]));return{id:Vt,diagram:t}},`loader`)},Ut=`sankey`,Wt={id:Ut,detector:n(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./sankeyDiagram-P5KCCOFB-BHy22mhl.js`);return{diagram:e}},__vite__mapDeps([63,1,2,3,4,5,6,7,8,45,41]));return{id:Ut,diagram:t}},`loader`)},Gt=`packet`,Kt={id:Gt,detector:n(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-Z3DM3KII-CPQuWy39.js`);return{diagram:e}},__vite__mapDeps([64,34,5,3,6,7,35,1,2,4,8,9,10,43,36]));return{id:Gt,diagram:t}},`loader`)},qt=`radar`,Jt={id:qt,detector:n(e=>/^\s*radar-beta/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-UQ7AKVKN-Blm9jWHJ.js`);return{diagram:e}},__vite__mapDeps([65,34,5,3,6,7,35,1,2,4,8,9,10,43,36]));return{id:qt,diagram:t}},`loader`)},Yt=`block`,Xt={id:Yt,detector:n(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./blockDiagram-I7D4REHJ-NHlOsaCN.js`);return{diagram:e}},__vite__mapDeps([66,1,2,3,4,5,6,7,8,29,9,10,11,12,30,13,14,15,18,19,20,21,22,55]));return{id:Yt,diagram:t}},`loader`)},Zt=`treeView`,Qt={id:Zt,detector:n(e=>/^\s*treeView-beta/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-S7CK7UJ4-CakLFIEW.js`);return{diagram:e}},__vite__mapDeps([67,34,5,3,6,7,35,1,2,4,8,9,10,43,36,11,37]));return{id:Zt,diagram:t}},`loader`)},$t=`architecture`,en={id:$t,detector:n(e=>/^\s*architecture/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./architectureDiagram-5GKGNRK7-B0d475xG.js`);return{diagram:e}},__vite__mapDeps([68,3,34,5,6,7,35,1,2,4,8,9,10,43,36,11,12,69]));return{id:$t,diagram:t}},`loader`)},tn=`eventmodeling`,nn={id:tn,detector:n(e=>/^\s*eventmodeling/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-VSXAHHWV-BzXCydDQ.js`);return{diagram:e}},__vite__mapDeps([70,35,34,5,3,6,7,1,2,4,8,9,10,36]));return{id:tn,diagram:t}},`loader`)},rn=`ishikawa`,an={id:rn,detector:n(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-5VMMS53U-Bq13tOFJ.js`);return{diagram:e}},__vite__mapDeps([71,1,2,3,4,5,6,7,8,9,10,43,15]));return{id:rn,diagram:t}},`loader`)},on=`venn`,sn={id:on,detector:n(e=>/^\s*venn-beta/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./vennDiagram-4TSXK5OY-BvS0i65j.js`);return{diagram:e}},__vite__mapDeps([72,1,2,3,4,5,6,7,8,9,10,43,15]));return{id:on,diagram:t}},`loader`)},cn=`treemap`,ln={id:cn,detector:n(e=>/^\s*treemap/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-VX7I27RA-VJip2Tpi.js`);return{diagram:e}},__vite__mapDeps([73,34,5,3,6,7,35,1,2,4,8,45,41,40,9,10,43,36,13,24]));return{id:cn,diagram:t}},`loader`)},un=`wardley`,dn={id:un,detector:n(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./wardleyDiagram-VM6X3IG4-CxconmGB.js`);return{diagram:e}},__vite__mapDeps([74,34,5,3,6,7,35,1,2,4,8,9,10,43,36]));return{id:un,diagram:t}},`loader`)},fn=`cynefin`,pn={id:fn,detector:n(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./cynefinDiagram-5FMLGOSQ-CNr5UISm.js`);return{diagram:e}},__vite__mapDeps([75,34,5,3,6,7,35,1,2,4,8,9,10,43,36]));return{id:fn,diagram:t}},`loader`)},mn=`railroad`,hn={id:mn,detector:n(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./railroadDiagram-O6MQD6OU-DpX2WbJ5.js`);return{diagram:e}},__vite__mapDeps([76,34,5,3,6,7,35,1,2,4,8,43,77,36]));return{id:mn,diagram:t}},`loader`)},gn=`railroadEbnf`,_n={id:gn,detector:n(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ebnfDiagram-PWID7BFC-x8Hm-8FP.js`);return{diagram:e}},__vite__mapDeps([78,34,5,3,6,7,35,1,2,4,8,43,77,36]));return{id:gn,diagram:t}},`loader`)},vn=`railroadAbnf`,yn={id:vn,detector:n(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./abnfDiagram-VCTEODGH-Aa5uAdnV.js`);return{diagram:e}},__vite__mapDeps([79,34,5,3,6,7,35,1,2,4,8,43,77,36]));return{id:vn,diagram:t}},`loader`)},bn=`railroadPeg`,xn={id:bn,detector:n(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./pegDiagram-XKGWAZYB-yIL7Oty_.js`);return{diagram:e}},__vite__mapDeps([80,34,5,3,6,7,35,1,2,4,8,43,77,36]));return{id:bn,diagram:t}},`loader`)},Sn=!1,Y=n(()=>{Sn||(Sn=!0,u(`error`,Pt,e=>e.toLowerCase().trim()===`error`),u(`---`,{db:{clear:n(()=>{},`clear`)},styles:{},renderer:{draw:n(()=>{},`draw`)},parser:{parse:n(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:n(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),d(It,Bt,en),d(Ze,Ht,Tt,Ct,at,lt,dt,pt,yt,xt,rt,tt,$e,Rt,st,kt,Dt,jt,ht,Wt,Kt,_t,Xt,nn,Qt,Jt,an,ln,hn,_n,yn,xn,sn,dn,pn))},`addDiagrams`),Cn=n(async()=>{i.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(w).map(async([e,{detector:t,loader:n}])=>{if(n)try{p(e)}catch{try{let{diagram:e,id:r}=await n();u(r,e,t)}catch(t){throw i.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete w[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){i.error(`Failed to load ${e.length} external diagrams`);for(let t of e)i.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),wn=`graphics-document document`;function Tn(e,t){e.attr(`role`,wn),t!==``&&e.attr(`aria-roledescription`,t)}n(Tn,`setA11yDiagramInfo`);function En(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}n(En,`addSVGa11yTitleDescription`);var X=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{n(this,`Diagram`)}static async fromText(t,n={}){let r=b(),i=te(t,r);t=le(t)+`
4
- `;try{p(i)}catch{let e=o(i);if(!e)throw new T(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();u(t,n)}let{db:a,parser:s,renderer:c,init:l}=p(i);return s.parser&&(s.parser.yy=a),a.clear?.(),l?.(r),n.title&&a.setDiagramTitle?.(n.title),await s.parse(t),new e(i,t,a,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},Dn=[],On=n(()=>{Dn.forEach(e=>{e()}),Dn=[]},`attachFunctions`),kn=n(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function An(e){let t=e.match(y);if(!t)return{text:e,metadata:{}};let n=t[1],r=xe(n?t[2].split(`
5
- `).map(e=>e.startsWith(n)?e.slice(n.length):e).join(`
6
- `):t[2],{schema:Se})??{};r=typeof r==`object`&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}n(An,`extractFrontMatter`);var jn=n(e=>e.replace(/\r\n?/g,`
7
- `).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),Mn=n(e=>{let{text:t,metadata:n}=An(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),Nn=n(e=>{let t=D.detectInit(e)??{},n=D.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:se(e),directive:t}},`processDirectives`);function Pn(e){let t=Mn(jn(e)),n=Nn(t.text),r=ce(t.config,n.directive);return e=kn(n.text),{code:e,title:t.title,config:r}}n(Pn,`preprocessDiagram`);function Fn(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}n(Fn,`toBase64`);var In=5e4,Ln=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,Rn=`sandbox`,zn=`loose`,Bn=`http://www.w3.org/2000/svg`,Vn=`http://www.w3.org/1999/xlink`,Hn=`http://www.w3.org/1999/xhtml`,Un=`100%`,Wn=`100%`,Gn=`border:0;margin:0;`,Kn=`margin:0`,qn=`allow-top-navigation-by-user-activation allow-popups`,Jn=`The "iframe" tag is not supported by your browser.`,Yn=[`foreignobject`],Xn=[`dominant-baseline`];function Zn(e){let t=Pn(e);return c(),ee(t.config??{}),t}n(Zn,`processAndSetConfigs`);async function Qn(e,t){Y();try{let{code:t,config:n}=Zn(e);return{diagramType:(await ur(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}n(Qn,`parse`);var $n=n((e,t,n=[])=>`.${e} ${t} ${l(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),er=n((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=m(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{we(e.styles)||r.forEach(t=>{n.insertRule($n(e.id,t,e.styles),n.cssRules.length)}),we(e.textStyles)||n.insertRule($n(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0)if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=C(t)+`
8
- `}else r+=`${e.themeCSS}
9
- `;return r+C(n)},`createCssStyles`),tr=n((e,t)=>J(We(`${e}{${t}}`),Ye([n(function(t,n,r,a){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(i.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=Te))},`addNamespace`),Je])),`compileCSS`),nr=n((e,t,n,r)=>tr(r,_(t,er(e,n),{...e.themeVariables,theme:e.theme,look:e.look},r)),`createUserStyles`),rr=n((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=ae(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),ir=n((e=``,t)=>`<iframe style="width:${Un};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:Wn};${Gn}" src="data:text/html;charset=UTF-8;base64,${Fn(`<body style="${Kn}">${e}</body>`)}" sandbox="${qn}">
10
- ${Jn}
11
- </iframe>`,`putIntoIFrame`),ar=n((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,Bn);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function or(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}n(or,`sandboxedIframe`);var sr=n((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),cr=n(async function(e,r,o){Y();let s=Zn(r);r=s.code;let c=b();i.debug(c),r.length>(c?.maxTextSize??In)&&(r=Ln);let l=`#${e}`,u=`i`+e,d=`#`+u,f=`d`+e,p=`#`+f,m=n(()=>{let e=a(g?d:p).node();e&&`remove`in e&&e.remove()},`removeTempElements`),h=a(document.body),g=c.securityLevel===Rn,_=c.securityLevel===zn,v=c.fontFamily;o===void 0?(sr(document,e,f,u),g?(h=a(or(a(document.body),u).nodes()[0].contentDocument.body),h.node().style.margin=`0`):h=a(`body`),ar(h,e,f)):(o&&(o.innerHTML=``),g?(h=a(or(a(o),u).nodes()[0].contentDocument.body),h.node().style.margin=`0`):h=a(o),ar(h,e,f,`font-family: ${v}`,Vn));let y,x;try{y=await X.fromText(r,{title:s.title})}catch(e){if(c.suppressErrorRendering)throw m(),e;y=await X.fromText(`error`),x=e}let C=h.select(p).node(),w=y.type,ee=C.firstChild,te=ee.firstChild,ne=y.renderer.getClasses?.(r,y),re=nr(c,w,ne,l),T=document.createElement(`style`);T.innerHTML=re,ee.insertBefore(T,te);try{await y.renderer.draw(r,e,`11.17.2`,y)}catch(t){throw c.suppressErrorRendering?m():Nt.draw(r,e,`11.17.2`),t}let E=h.select(`${p} svg`),ie=y.db.getAccTitle?.(),ae=y.db.getAccDescription?.();dr(w,E,ie,ae);let oe=n(()=>{h.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Hn);let n=h.select(p).node().innerHTML;if(i.debug(`config.arrowMarkerAbsolute`,c.arrowMarkerAbsolute),n=rr(n,g,S(c.arrowMarkerAbsolute)),g){let e=h.select(p+` svg`).node();n=ir(n,e)}else _||(n=t.sanitize(n,{ADD_TAGS:Yn,ADD_ATTR:Xn,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return On(),n},`serializeSvg`)();if(x)throw x;return m(),{diagramType:w,svg:oe,bindFunctions:y.db.bindFunctions}},`render`);function lr(e={}){let t=re({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),h(t),t?.theme&&t.theme in v?t.themeVariables=v[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=v.default.getThemeVariables(t.themeVariables)),r((typeof t==`object`?ne(t):s()).logLevel),Y()}n(lr,`initialize`);var ur=n((e,t={})=>{let{code:n}=Pn(e);return X.fromText(n,t)},`getDiagramFromText`);function dr(e,t,n,r){Tn(t,e),En(t,n,r,t.attr(`id`))}n(dr,`addA11yInfo`);var Z=Object.freeze({render:cr,parse:Qn,getDiagramFromText:ur,initialize:lr,getConfig:b,setConfig:g,getSiteConfig:s,updateSiteConfig:f,reset:n(()=>{c()},`reset`),globalReset:n(()=>{c(E)},`globalReset`),defaultConfig:E});r(b().logLevel),c(b());var fr=n((e,t,n)=>{i.warn(e),oe(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),pr=n(async function(e={querySelector:`.mermaid`}){try{await mr(e)}catch(t){if(oe(t)&&i.error(t.str),$.parseError&&$.parseError(t),!e.suppressErrors)throw i.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),mr=n(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Z.getConfig();i.debug(`${e?``:`No `}Callback function found`);let a;if(n)a=n;else if(t)a=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);i.debug(`Found ${a.length} diagrams`),r?.startOnLoad!==void 0&&(i.debug(`Start On Load: `+r?.startOnLoad),Z.updateSiteConfig({startOnLoad:r?.startOnLoad}));let o=new D.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),s,c=[];for(let t of Array.from(a)){if(i.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${o.next()}`;s=t.innerHTML,s=he(D.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=D.detectInit(s);r&&i.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await Cr(n,s,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){fr(e,c,$.parseError)}}if(c.length>0)throw c[0]},`runThrowsErrors`),hr=n(function(e){Z.initialize(e)},`initialize`),gr=n(async function(e,t,n){i.warn(`mermaid.init is deprecated. Please use run instead.`),e&&hr(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await pr(r)},`init`),_r=n(async(e,{lazyLoad:t=!0}={})=>{Y(),d(...e),t===!1&&await Cn()},`registerExternalDiagrams`),vr=n(function(){if($.startOnLoad){let{startOnLoad:e}=Z.getConfig();e&&$.run().catch(e=>i.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,vr,!1);var yr=n(function(e){$.parseError=e},`setParseErrorHandler`),Q=[],br=!1,xr=n(async()=>{if(!br){for(br=!0;Q.length>0;){let e=Q.shift();if(e)try{await e()}catch(e){i.error(`Error executing queue`,e)}}br=!1}},`executeQueue`),Sr=n(async(e,t)=>new Promise((r,a)=>{let o=n(()=>new Promise((n,o)=>{Z.parse(e,t).then(e=>{n(e),r(e)},e=>{i.error(`Error parsing`,e),$.parseError?.(e),o(e),a(e)})}),`performCall`);Q.push(o),xr().catch(a)}),`parse`),Cr=n((e,t,r)=>new Promise((a,o)=>{let s=n(()=>new Promise((n,s)=>{Z.render(e,t,r).then(e=>{n(e),a(e)},e=>{i.error(`Error parsing`,e),$.parseError?.(e),s(e),o(e)})}),`performCall`);Q.push(s),xr().catch(o)}),`render`),$={startOnLoad:!0,mermaidAPI:Z,parse:Sr,render:Cr,init:gr,run:pr,registerExternalDiagrams:_r,registerLayoutLoaders:ge,initialize:hr,parseError:void 0,contentLoaded:vr,setParseErrorHandler:yr,detectType:te,registerIconPacks:me,getRegisteredDiagramsMetadata:n(()=>Object.keys(w).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},wr=$;export{ye as clearLayoutRenderState,_e as createCommonLayoutRenderer,wr as default,be as defaultMeasureLayout,ve as paintLayoutData};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{et as n,n as r}from"./index-CPKHBs7z.js";import{o as i}from"./dist-CQZ_zg-s.js";import{At as a,Nt as o,Qt as s,kt as c}from"./protocol-support-hVrRUHAd.js";import{S as l,T as u,_ as d,a as f,b as ee,d as p,f as te,g as m,h as ne,m as re,n as ie,o as ae,p as oe,r as se,t as ce,v as le,w as ue}from"./dialog-BoaHxScl.js";import{a as h,n as de}from"./button-D3DTuFk3.js";import{_ as g,g as fe,h as pe,i as me,m as he,p as _,t as ge}from"./LazyTerminal-BN3rEDcD.js";import{c as _e,f as ve,s as ye}from"./switch-DGZtVofo.js";import{n as v}from"./x-CZCUod6A.js";import{t as y}from"./createLucideIcon-DyMAgLa3.js";var be=y(`anchor`,[[`path`,{d:`M12 6v16`,key:`nqf5sj`}],[`path`,{d:`m19 13 2-1a9 9 0 0 1-18 0l2 1`,key:`y7qv08`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),xe=y(`bike`,[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]),Se=y(`bird`,[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]),Ce=y(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),we=y(`book`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Te=y(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),Ee=y(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),De=y(`cake`,[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]),Oe=y(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),ke=y(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]),Ae=y(`cat`,[[`path`,{d:`M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z`,key:`x6xyqk`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M11.25 16.25h1.5L12 17l-.75-.75Z`,key:`12kq1m`}]]),je=y(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Me=y(`coffee`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]),Ne=y(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),Pe=y(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Fe=y(`dog`,[[`path`,{d:`M11.25 16.25h1.5L12 17z`,key:`w7jh35`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309`,key:`u7s9ue`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5`,key:`v8hric`}]]),Ie=y(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),Le=y(`feather`,[[`path`,{d:`M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z`,key:`18jl4k`}],[`path`,{d:`M16 8 2 22`,key:`vp34q`}],[`path`,{d:`M17.5 15H9`,key:`1oz8nu`}]]),Re=y(`fish`,[[`path`,{d:`M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z`,key:`15baut`}],[`path`,{d:`M18 12v.5`,key:`18hhni`}],[`path`,{d:`M16 17.93a9.77 9.77 0 0 1 0-11.86`,key:`16dt7o`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33`,key:`l9di03`}],[`path`,{d:`M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4`,key:`1kjonw`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98`,key:`1zlm23`}]]),ze=y(`flame`,[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]),Be=y(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),Ve=y(`flower`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5`,key:`14wa3c`}],[`path`,{d:`M12 7.5V9`,key:`1oy5b0`}],[`path`,{d:`M7.5 12H9`,key:`eltsq1`}],[`path`,{d:`M16.5 12H15`,key:`vk5kw4`}],[`path`,{d:`M12 16.5V15`,key:`k7eayi`}],[`path`,{d:`m8 8 1.88 1.88`,key:`nxy4qf`}],[`path`,{d:`M14.12 9.88 16 8`,key:`1lst6k`}],[`path`,{d:`m8 16 1.88-1.88`,key:`h2eex1`}],[`path`,{d:`M14.12 14.12 16 16`,key:`uqkrx3`}]]),He=y(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),Ue=y(`gem`,[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]),We=y(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),Ge=y(`gift`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]),Ke=y(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),qe=y(`guitar`,[[`path`,{d:`m11.9 12.1 4.514-4.514`,key:`109xqo`}],[`path`,{d:`M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z`,key:`txyc8t`}],[`path`,{d:`m6 16 2 2`,key:`16qmzd`}],[`path`,{d:`M8.23 9.85A3 3 0 0 1 11 8a5 5 0 0 1 5 5 3 3 0 0 1-1.85 2.77l-.92.38A2 2 0 0 0 12 18a4 4 0 0 1-4 4 6 6 0 0 1-6-6 4 4 0 0 1 4-4 2 2 0 0 0 1.85-1.23z`,key:`1de1vg`}]]),Je=y(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),Ye=y(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Xe=y(`ice-cream-cone`,[[`path`,{d:`m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11`,key:`1v6356`}],[`path`,{d:`M17 7A5 5 0 0 0 7 7`,key:`151p3v`}],[`path`,{d:`M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4`,key:`1sdaij`}]]),Ze=y(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Qe=y(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),$e=y(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),b=y(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),et=y(`mountain-snow`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}],[`path`,{d:`M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19`,key:`1pvmmp`}]]),tt=y(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),nt=y(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),x=y(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),rt=y(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),it=y(`pizza`,[[`path`,{d:`m12 14-1 1`,key:`11onhr`}],[`path`,{d:`m13.75 18.25-1.25 1.42`,key:`1yisr3`}],[`path`,{d:`M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12`,key:`1qtqk6`}],[`path`,{d:`M18.8 9.3a1 1 0 0 0 2.1 7.7`,key:`fbbbr2`}],[`path`,{d:`M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z`,key:`1hyfdd`}]]),at=y(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),ot=y(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),st=y(`rabbit`,[[`path`,{d:`M13 16a3 3 0 0 1 2.24 5`,key:`1epib5`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3`,key:`ue9ozu`}],[`path`,{d:`M20 8.54V4a2 2 0 1 0-4 0v3`,key:`49iql8`}],[`path`,{d:`M7.612 12.524a3 3 0 1 0-1.6 4.3`,key:`1e33i0`}]]),ct=y(`rainbow`,[[`path`,{d:`M22 17a10 10 0 0 0-20 0`,key:`ozegv`}],[`path`,{d:`M6 17a6 6 0 0 1 12 0`,key:`5giftw`}],[`path`,{d:`M10 17a2 2 0 0 1 4 0`,key:`gnsikk`}]]),lt=y(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),ut=y(`sailboat`,[[`path`,{d:`M10 2v15`,key:`1qf71f`}],[`path`,{d:`M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z`,key:`1pxcvx`}],[`path`,{d:`M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z`,key:`5oog16`}]]),dt=y(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),ft=y(`snail`,[[`path`,{d:`M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0`,key:`hneq2s`}],[`circle`,{cx:`10`,cy:`13`,r:`8`,key:`194lz3`}],[`path`,{d:`M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6`,key:`ixqyt7`}],[`path`,{d:`M18 3 19.1 5.2`,key:`9tjm43`}],[`path`,{d:`M22 3 20.9 5.2`,key:`j3odrs`}]]),pt=y(`snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6h-4`,key:`15hhxa`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`M22 12h-6.5L14 15`,key:`1mxi28`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h4`,key:`1otusx`}]]),mt=y(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),ht=y(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),gt=y(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),S=y(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),_t=y(`tent`,[[`path`,{d:`M3.5 21 14 3`,key:`1szst5`}],[`path`,{d:`M20.5 21 10 3`,key:`1310c3`}],[`path`,{d:`M15.5 21 12 15l-3.5 6`,key:`1ddtfw`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}]]),vt=y(`train-front`,[[`path`,{d:`M8 3.1V7a4 4 0 0 0 8 0V3.1`,key:`1v71zp`}],[`path`,{d:`m9 15-1-1`,key:`1yrq24`}],[`path`,{d:`m15 15 1-1`,key:`1t0d6s`}],[`path`,{d:`M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z`,key:`1p0hjs`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m16 19 2 3`,key:`xo31yx`}]]),yt=y(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),bt=y(`trees`,[[`path`,{d:`M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z`,key:`1l6gj6`}],[`path`,{d:`M7 16v6`,key:`1a82de`}],[`path`,{d:`M13 19v3`,key:`13sx9i`}],[`path`,{d:`M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5`,key:`1sj9kv`}]]),xt=y(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),St=y(`turtle`,[[`path`,{d:`m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z`,key:`1lbbv7`}],[`path`,{d:`M4.82 7.9 8 10`,key:`m9wose`}],[`path`,{d:`M15.18 7.9 12 10`,key:`p8dp2u`}],[`path`,{d:`M16.93 10H20a2 2 0 0 1 0 4H2`,key:`12nsm7`}]]),Ct=y(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),C=[{name:`mountain`,Icon:tt},{name:`mountain-snow`,Icon:et},{name:`tree-pine`,Icon:yt},{name:`trees`,Icon:bt},{name:`leaf`,Icon:Qe},{name:`flower`,Icon:Ve},{name:`flower-2`,Icon:Be},{name:`sprout`,Icon:ht},{name:`sun`,Icon:S},{name:`moon`,Icon:b},{name:`star`,Icon:gt},{name:`cloud`,Icon:je},{name:`snowflake`,Icon:pt},{name:`zap`,Icon:ye},{name:`flame`,Icon:ze},{name:`droplet`,Icon:Ie},{name:`rainbow`,Icon:ct},{name:`wind`,Icon:Ct},{name:`bird`,Icon:Se},{name:`fish`,Icon:Re},{name:`cat`,Icon:Ae},{name:`dog`,Icon:Fe},{name:`rabbit`,Icon:st},{name:`turtle`,Icon:St},{name:`bug`,Icon:Ee},{name:`snail`,Icon:ft},{name:`paw-print`,Icon:rt},{name:`feather`,Icon:Le},{name:`rocket`,Icon:lt},{name:`anchor`,Icon:be},{name:`compass`,Icon:Ne},{name:`map`,Icon:$e},{name:`tent`,Icon:_t},{name:`camera`,Icon:Oe},{name:`music`,Icon:nt},{name:`headphones`,Icon:Je},{name:`palette`,Icon:x},{name:`brush`,Icon:Te},{name:`pencil`,Icon:me},{name:`book`,Icon:we},{name:`book-open`,Icon:Ce},{name:`coffee`,Icon:Me},{name:`pizza`,Icon:it},{name:`ice-cream-cone`,Icon:Xe},{name:`cake`,Icon:De},{name:`gift`,Icon:Ge},{name:`gamepad-2`,Icon:He},{name:`puzzle`,Icon:ot},{name:`bike`,Icon:xe},{name:`car`,Icon:ke},{name:`plane`,Icon:at},{name:`ship`,Icon:dt},{name:`sailboat`,Icon:ut},{name:`train-front`,Icon:vt},{name:`heart`,Icon:Ye},{name:`sparkles`,Icon:mt},{name:`crown`,Icon:Pe},{name:`gem`,Icon:Ue},{name:`trophy`,Icon:xt},{name:`ghost`,Icon:We},{name:`bot`,Icon:ve},{name:`globe`,Icon:Ke},{name:`guitar`,Icon:qe}],wt=Object.fromEntries(C.map(e=>[e.name,e.Icon])),w=r(),Tt={navy:`text-fg`,gold:`text-fg-gold`,blue:`text-icon-blue`,green:`text-icon-green`,amber:`text-icon-amber`,red:`text-icon-red`,violet:`text-icon-violet`,cyan:`text-icon-cyan`,accent:`text-accent`};function T(e){return e&&Tt[e]||``}function Et({icon:e,colour:t,className:n}){let r=v(`size-4 shrink-0`,t?T(t):`text-fg-muted`,n);return(0,w.jsx)(e&&wt[e]||_e,{className:r})}var E=e(t(),1),D=`Popover`,[O,Dt]=ue(D,[g]),k=g(),[Ot,A]=O(D),j=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=k(t),c=E.useRef(null),[l,u]=E.useState(!1),[d,f]=ne({prop:r,defaultProp:i??!1,onChange:a,caller:D});return(0,w.jsx)(fe,{...s,children:(0,w.jsx)(Ot,{scope:t,contentId:le(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:E.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:E.useCallback(()=>u(!0),[]),onCustomAnchorRemove:E.useCallback(()=>u(!1),[]),modal:o,children:n})})};j.displayName=D;var M=`PopoverAnchor`,kt=E.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A(M,n),a=k(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return E.useEffect(()=>(o(),()=>s()),[o,s]),(0,w.jsx)(_,{...a,...r,ref:t})});kt.displayName=M;var N=`PopoverTrigger`,P=E.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A(N,n),a=k(n),o=h(t,i.triggerRef),s=(0,w.jsx)(l.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":V(i.open),...r,ref:o,onClick:u(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,w.jsx)(_,{asChild:!0,...a,children:s})});P.displayName=N;var F=`PopoverPortal`,[At,jt]=O(F,{forceMount:void 0}),I=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=A(F,t);return(0,w.jsx)(At,{scope:t,forceMount:n,children:(0,w.jsx)(m,{present:n||a.open,children:(0,w.jsx)(d,{asChild:!0,container:i,children:r})})})};I.displayName=F;var L=`PopoverContent`,R=E.forwardRef((e,t)=>{let n=jt(L,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=A(L,e.__scopePopover);return(0,w.jsx)(m,{present:r||a.open,children:a.modal?(0,w.jsx)(Nt,{...i,ref:t}):(0,w.jsx)(Pt,{...i,ref:t})})});R.displayName=L;var Mt=de(`PopoverContent.RemoveScroll`),Nt=E.forwardRef((e,t)=>{let n=A(L,e.__scopePopover),r=E.useRef(null),i=h(t,r),a=E.useRef(!1);return E.useEffect(()=>{let e=r.current;if(e)return p(e)},[]),(0,w.jsx)(te,{as:Mt,allowPinchZoom:!0,children:(0,w.jsx)(z,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pt=E.forwardRef((e,t)=>{let n=A(L,e.__scopePopover),r=E.useRef(!1),i=E.useRef(!1);return(0,w.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),z=E.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=A(L,n),p=k(n);return oe(),(0,w.jsx)(re,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,w.jsx)(pe,{"data-state":V(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),B=`PopoverClose`,Ft=E.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A(B,n);return(0,w.jsx)(l.button,{type:`button`,...r,ref:t,onClick:u(e.onClick,()=>i.onOpenChange(!1))})});Ft.displayName=B;var It=`PopoverArrow`,Lt=E.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=k(n);return(0,w.jsx)(he,{...i,...r,ref:t})});Lt.displayName=It;function V(e){return e?`open`:`closed`}var Rt=j,zt=P,Bt=I,Vt=R,Ht=Rt,Ut=zt;function Wt({className:e,align:t=`end`,sideOffset:n=8,...r}){return(0,w.jsx)(Bt,{children:(0,w.jsx)(Vt,{align:t,sideOffset:n,className:v(`z-50 rounded-lg bg-elevated p-5 shadow-2xl outline-none`,e),...r})})}function Gt({stream:e,label:t,hint:n,onClose:r}){let[i,a]=(0,E.useState)(null);return(0,w.jsx)(ce,{open:!0,onOpenChange:e=>!e&&r(),children:(0,w.jsxs)(ie,{className:`h-[85vh] max-w-[calc(100vw-4rem)]`,children:[(0,w.jsxs)(f,{children:[(0,w.jsxs)(ae,{children:[t,` — login`]}),(0,w.jsx)(se,{children:i===null?`Complete the agent’s login flow below.${n===void 0?` The account shows as logged in once it finishes cleanly.`:` ${n}`}`:`The login exited with code ${i} without completing. The output above may say why; close this and try again.`})]}),(0,w.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden rounded-md bg-ground p-1`,children:(0,w.jsx)(ge,{stream:e,onExit:e=>e===0?r():a(e)})})]})})}var H=e=>e&&typeof e==`object`?e:{},U=[{id:`appearance`,label:`Appearance`,fields:[{key:`theme`,store:`theme`},{key:`cursorPackage`,store:`client`},{key:`uiFontSize`,store:`client`},{key:`terminalFontSize`,store:`client`},{key:`editorFontSize`,store:`client`},{key:`density`,store:`client`},{key:`terminalScrollback`,store:`client`},{key:`projectBasedLayout`,store:`client`},{key:`showAllProjectSessions`,store:`client`}]},{id:`profile`,label:`Profile`,fields:[{key:`branch_prefix`,store:`profileColumn`},{key:`icon`,store:`profileColumn`},{key:`icon_colour`,store:`profileColumn`}]},{id:`sessions`,label:`Sessions`,fields:[{key:`onboardingTemplate`,store:`profileSettings`},{key:`concurrentTemplate`,store:`profileSettings`},{key:`restartTemplate`,store:`profileSettings`},{key:`tabTitleTemplate`,store:`profileSettings`},{key:`sessionDefaults`,store:`profileSettings`},{key:`allowSkipPermissions`,store:`profileSettings`},{key:`captureSessionEnv`,store:`profileSettings`}]},{id:`editor`,label:`Editor`,fields:[{key:`editorTabSize`,store:`client`},{key:`editorWordWrap`,store:`client`},{key:`editorLinkSshHost`,store:`client`}]},{id:`hotkeys`,label:`Hotkeys`,fields:[{key:`hotkeys`,store:`profileSettings`}]},{id:`notifications`,label:`Notifications`,fields:[{key:`notifications`,store:`profileSettings`,pick:e=>{let{desktop:t,sound:n,when_focused:r}=H(e);return{desktop:t,sound:n,...r===void 0?{}:{when_focused:r}}},mergeInto:(e,t)=>({...H(t),...H(e)})}]},{id:`scratchpad`,label:`Scratchpad (profile-wide entries)`,fields:[{key:`entries`,store:`scratchpad`}]}];function W(e){return e.filter(e=>e.scope===`profile`).map(e=>({title:e.title,body:e.body,tags:e.tags,agent_type:e.agent_type}))}function G(e){return JSON.stringify([e.title??``,e.body,e.tags,e.agent_type??``])}function Kt(e,t){if(!Array.isArray(e))return[];let n=new Set(W(t).map(G)),r=new Set,i=[];for(let t of e){let e=H(t);if(typeof e.body!=`string`||e.body.length===0)continue;let a={title:typeof e.title==`string`&&e.title!==``?e.title:null,body:e.body,tags:Array.isArray(e.tags)?e.tags.filter(e=>typeof e==`string`):[],agent_type:typeof e.agent_type==`string`?e.agent_type:null},o=G(a);n.has(o)||r.has(o)||(r.add(o),i.push(a))}return i}function qt(e,t){switch(e.store){case`client`:return t.client[e.key];case`theme`:return t.theme;case`profileSettings`:return t.profileSettings[e.key];case`profileColumn`:return t.profile[e.key];case`scratchpad`:return W(t.scratchpad)}}function Jt(e,t){let n={};for(let r of U){if(!e.includes(r.id))continue;let i={};for(let e of r.fields){let n=qt(e,t);n!==void 0&&(i[e.key]=e.pick?e.pick(n):n)}Object.keys(i).length>0&&(n[r.id]=i)}return n}function Yt(e,t,n,r){if(!e||typeof e!=`object`)return[];let i=e,a={},o={},s={},c=[];for(let e of U){if(r&&!r.includes(e.id))continue;let l=i[e.id];if(!l||typeof l!=`object`)continue;let u=l,d=!1;for(let r of e.fields){if(!(r.key in u))continue;let e=u[r.key];if(r.store===`scratchpad`){let r=Kt(e,n.scratchpad);r.length>0&&(t.createScratchpad(r),d=!0);continue}d=!0;let i=r.mergeInto?r.mergeInto(e,r.store===`profileSettings`?n.profileSettings[r.key]:void 0):e;r.store===`client`?a[r.key]=i:r.store===`theme`?t.setTheme(i):r.store===`profileSettings`?o[r.key]=i:s[r.key]=i}d&&c.push(e.label)}return Object.keys(a).length>0&&t.setClient(a),Object.keys(o).length>0&&t.patchProfileSettings(o),Object.keys(s).length>0&&t.patchProfileColumns(s),c}var K={version:1,profiles:{}};function Xt(e,t){return e.profiles[t]??{enabled:!0,groups:U.map(e=>e.id),doc:{},updatedAt:new Date(0).toISOString()}}async function Zt(){try{let e=await fetch(`/cockpit/local-sync`,{headers:i(),cache:`no-store`});return e.ok?{available:!0,file:await e.json()}:{available:!1,file:K}}catch{return{available:!1,file:K}}}function Qt(){return a({queryKey:[`local-sync`],queryFn:Zt,staleTime:5e3,refetchOnWindowFocus:!0,retry:!1})}function $t(){let e=o();return c({mutationFn:async e=>{let t=await fetch(`/cockpit/local-sync`,{method:`PUT`,headers:{...i(),"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok)throw Error(`The local sync store did not accept the write.`);return await t.json()},onSuccess:t=>e.setQueryData([`local-sync`],{available:!0,file:t})})}function en(){return s()?.showNotification?`unverified`:typeof Notification>`u`?`unsupported`:Notification.permission}async function tn(e,t){let n;try{return await Promise.race([e,new Promise((e,r)=>{n=setTimeout(()=>r(Error(t)),1e4)})])}finally{clearTimeout(n)}}var q;async function nn(){return!(`serviceWorker`in navigator)||!window.isSecureContext?null:(q||=rn().catch(e=>{throw q=void 0,e}),q)}async function rn(){let e=await tn(navigator.serviceWorker.register(`/notification-worker.js`),`Notification support did not respond. Reload Puddle and try again.`);if(e.active)return e;let t=e.installing??e.waiting;if(!t)throw Error(`Notification support could not start. Reload and try again.`);return await new Promise((e,n)=>{let r=r=>{clearTimeout(a),t.removeEventListener(`statechange`,i),r?n(r):e()},i=()=>{t.state===`activated`?r():t.state===`redundant`&&r(Error(`Notification support could not start.`))},a=setTimeout(()=>r(Error(`Notification support timed out.`)),1e4);t.addEventListener(`statechange`,i),i()}),e}async function an(e,t){if(!e.active)throw Error(`Notification support is not active.`);await new Promise((n,r)=>{let i=new MessageChannel,a=e=>{clearTimeout(o),i.port1.close(),e?r(e):n()},o=setTimeout(()=>a(Error(`Notification delivery timed out.`)),1e4);i.port1.onmessage=e=>a(e.data?.ok?void 0:Error(`The browser could not deliver the notification. Check system permissions.`)),e.active.postMessage({t:`show-notification`,request:t},[i.port2])})}var J={state:`unverified`,message:null},Y=new Set,X=new Map,Z=!1,on=!1;function Q(e,t){X.set(e,t),X.size>64&&X.delete(X.keys().next().value)}function $(e){J=e;for(let e of Y)e();return e}function sn(){return(0,E.useSyncExternalStore)(e=>(Y.add(e),()=>{Y.delete(e)}),()=>J)}async function cn(){let e=s();if(e?.notificationStatus)try{$(n.parse(await e.notificationStatus()))}catch{$({state:`failed`,message:`Could not read desktop notification delivery status.`})}}async function ln(e,t){try{let r=s();if(r?.showNotification){!Z&&r.onNotificationClick&&(r.onNotificationClick((e,t)=>{t||X.get(e)?.(),X.delete(e)}),Z=!0),Q(e.id,t);let{target:i,...a}=e;return $(n.parse(await r.showNotification(r.notificationTargets?{...a,target:i}:a)))}if(typeof Notification>`u`)return $({state:`unsupported`,message:`This browser cannot show notifications.`});if(Notification.permission!==`granted`)return $({state:`failed`,message:`Allow notifications for Puddle in browser settings.`});let i=await nn();return i?(on||=(navigator.serviceWorker.addEventListener(`message`,e=>{e.data?.t!==`notification-click`||typeof e.data.id!=`string`||(e.data.target||X.get(e.data.id)?.(),X.delete(e.data.id))}),!0),Q(e.id,t),await an(i,e),$({state:`shown`,message:null})):await new Promise(n=>{let r=new Notification(e.title,{body:e.body,tag:e.id,silent:!0}),i=setTimeout(()=>n($({state:`unverified`,message:`Delivery has not been confirmed. Check system notification settings.`})),5e3);r.onshow=()=>{clearTimeout(i),n($({state:`shown`,message:null}))},r.onerror=()=>{clearTimeout(i),n($({state:`failed`,message:`The browser could not deliver the notification. Check system permissions.`}))},r.onclick=()=>{window.focus(),t(),r.close()}})}catch(e){return $({state:`failed`,message:e instanceof Error?e.message:`Notification delivery failed.`})}}export{C as _,Xt as a,b,U as c,Gt as d,Ht as f,T as g,Et as h,en as i,Yt as l,Ut as m,cn as n,Qt as o,Wt as p,sn as r,$t as s,ln as t,Jt as u,S as v,Ze as x,x as y};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{S as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createPacketServices};
@@ -1 +0,0 @@
1
- import{t as e,u as t}from"./mermaid-parser.core-BwJKOdFv.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-ziCxw8j9.js";import"./chunk-CLGD4ZFX-B8Oa13vy.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-DLDU3lFF.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{b as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createPieServices};
@@ -1,39 +0,0 @@
1
- import{n as e}from"./mermaid-parser.core-BwJKOdFv.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-_wZywoZs.js";import{H as r,K as i,U as a,a as o,c as s,f as c,v as l,w as u,x as d,y as f}from"./chunk-DU6HZSFF-ziCxw8j9.js";import{t as p}from"./ordinal-hYBb2elL.js";import{n as m}from"./path-BWPyau1x.js";import{m as h}from"./dist-D9sYb5Oa.js";import{t as g}from"./arc-BjSQqbzd.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,p as y}from"./chunk-75Z2AOVW-9vLeKuoB.js";import{t as b}from"./chunk-CLGD4ZFX-B8Oa13vy.js";import{t as x}from"./chunk-JWPE2WC7-DVXcaiue.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=c.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,o()},`clear`),setDiagramTitle:i,getDiagramTitle:u,setAccTitle:a,getAccTitle:f,setAccDescription:r,getAccDescription:l,addSection:t(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(e=>`
2
- .pieCircle{
3
- stroke: ${e.pieStrokeColor};
4
- stroke-width : ${e.pieStrokeWidth};
5
- opacity : ${e.pieOpacity};
6
- }
7
- .pieCircle.highlighted{
8
- scale: 1.05;
9
- opacity: 1;
10
- }
11
- .pieCircle.highlightedOnHover:hover{
12
- transition-duration: 250ms;
13
- scale: 1.05;
14
- opacity: 1;
15
- }
16
- .pieOuterCircle{
17
- stroke: ${e.pieOuterStrokeColor};
18
- stroke-width: ${e.pieOuterStrokeWidth};
19
- fill: none;
20
- }
21
- .pieTitleText {
22
- text-anchor: middle;
23
- font-size: ${e.pieTitleTextSize};
24
- fill: ${e.pieTitleTextColor};
25
- font-family: ${e.fontFamily};
26
- }
27
- .slice {
28
- font-family: ${e.fontFamily};
29
- fill: ${e.pieSectionTextColor};
30
- font-size:${e.pieSectionTextSize};
31
- // fill: white;
32
- }
33
- .legend text {
34
- fill: ${e.pieLegendTextColor};
35
- font-family: ${e.fontFamily};
36
- font-size: ${e.pieLegendTextSize};
37
- }
38
- `,`getStyles`),P=t(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:t((e,t,r,i)=>{n.debug(`rendering pie chart
39
- `+e);let a=i.db,o=d(),c=v(a.getConfig(),o.pie),l=b(t),u=l.append(`g`);u.attr(`transform`,`translate(225,225)`);let{themeVariables:f}=o,[m]=y(f.pieOuterStrokeWidth);m??=2;let h=c.legendPosition,_=c.textPosition,x=c.donutHole>0&&c.donutHole<=.9?c.donutHole:0,S=g().innerRadius(x*185).outerRadius(185),C=g().innerRadius(185*_).outerRadius(185*_),w=u.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let T=a.getSections(),E=P(T),D=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],O=0;T.forEach(e=>{O+=e});let k=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),A=p(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(k).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>A(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return c.highlightSlice===`hover`?t+=` highlightedOnHover`:c.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(k).enter().append(`text`).text(e=>(e.data.value/O*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+C.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let j=u.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),M=[...T.entries()].map(([e,t])=>({label:e,value:t})),N=u.selectAll(`.legend`).data(M).enter().append(`g`).attr(`class`,`legend`);N.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>A(e.label)).style(`stroke`,e=>A(e.label)),N.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...N.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=M.length*22;switch(h){case`center`:N.attr(`transform`,(e,t)=>{let n=22*M.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,N.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,N.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(216,`+(t*22-n)+`)`});break}let z=j.node()?.getBoundingClientRect().width??0,B=450/2-z/2,V=450/2+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;l.attr(`viewBox`,`${H} 0 ${U} ${I}`),s(l,I,U,c.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
@@ -1 +0,0 @@
1
- function e(e){return e.kind??`file`}function t(t){if(t.view===`linked`||t.view===`locked`)return t.view;let n=`${e(t)}:${t.session}:${t.sha??``}:${t.root??``}:${t.path}`;return t.git_area===void 0?n:`${n}:git-${t.git_area}`}var n={md:`markdown`,markdown:`markdown`,mdown:`markdown`,html:`html`,htm:`html`};function r(e){let t=e.split(`/`).pop()??e,r=t.lastIndexOf(`.`);return r<=0?null:n[t.slice(r+1).toLowerCase()]??null}function i(e,t){if(t===``||t.startsWith(`#`)||t.startsWith(`//`)||/^[a-z][a-z0-9+.-]*:/i.test(t))return null;let n=t.split(`#`)[0].split(`?`)[0];if(n===``||n===`/`)return null;let r=[...n.startsWith(`/`)?[]:e.split(`/`).slice(0,-1)];for(let e of decodeURI(n).split(`/`))if(!(e===``||e===`.`))if(e===`..`){if(r.length===0)return null;r.pop()}else r.push(e);return r.length>0?r.join(`/`):null}function a(e){let t=[],n=0,r=e=>/[\t\n\f\r ]/.test(e);for(;n<e.length;){for(;n<e.length&&(r(e[n])||e[n]===`,`);)n+=1;if(n>=e.length)break;let i=n;for(;n<e.length&&!r(e[n]);)n+=1;let a=e.slice(i,n);if(a.endsWith(`,`)){a=a.replace(/,+$/,``),a!==``&&t.push({ref:a,descriptor:``});continue}for(;n<e.length&&r(e[n]);)n+=1;let o=n;for(;n<e.length&&e[n]!==`,`;)n+=1;let s=e.slice(o,n).trim();n<e.length&&(n+=1),a!==``&&t.push({ref:a,descriptor:s})}return t}function o(e){return e.map(({ref:e,descriptor:t})=>`${e}${t===``?``:` ${t}`}`).join(`, `)}export{t as a,o as i,r as n,e as o,i as r,a as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{t as n}from"./index-CPKHBs7z.js";import{t as r}from"./createLucideIcon-DyMAgLa3.js";var i=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,a=/^[\\/]{2}/;function o(e,t){return t+e.replace(/\\/g,`/`)}var s=`popstate`;function c(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function l(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return m(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:h(t)}return _(t,n,null,e)}function u(e,t){if(e===!1||e==null)throw Error(t)}function d(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function f(){return Math.random().toString(36).substring(2,10)}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?g(t):t,state:n,key:t&&t.key||r||f(),mask:i}}function h({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function g(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function _(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l=`POP`,u=null,d=f();d??(d=0,o.replaceState({...o.state,idx:d},``));function f(){return(o.state||{idx:null}).idx}function h(){l=`POP`;let e=f(),t=e==null?null:e-d;d=e,u&&u({action:l,location:b.location,delta:t})}function g(e,t){l=`PUSH`;let r=c(e)?e:m(b.location,e,t);n&&n(r,e),d=f()+1;let s=p(r,d),h=b.createHref(r.mask||r);try{o.pushState(s,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(h)}a&&u&&u({action:l,location:b.location,delta:1})}function _(e,t){l=`REPLACE`;let r=c(e)?e:m(b.location,e,t);n&&n(r,e),d=f();let i=p(r,d),s=b.createHref(r.mask||r);o.replaceState(i,``,s),a&&u&&u({action:l,location:b.location,delta:0})}function y(e){return v(i,e)}let b={get action(){return l},get location(){return e(i,o)},listen(e){if(u)throw Error(`A history only accepts one active listener`);return i.addEventListener(s,h),u=e,()=>{i.removeEventListener(s,h),u=null}},createHref(e){return t(i,e)},createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:g,replace:_,go(e){return o.go(e)}};return b}function v(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),u(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:h(t);return i=i.replace(/ $/,`%20`),!n&&a.test(i)&&(i=r+i),new URL(i,r)}var y=e(t(),1);function b(e,t,n=`/`){return x(e,t,n,!1)}function x(e,t,n,r,i){let a=A((typeof t==`string`?g(t):t).pathname||`/`,n);if(a==null)return null;let o=i??C(e),s=null,c=fe(a);for(let e=0;s==null&&e<o.length;++e)s=le(o[e],c,r);return s}function S(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function C(e){let t=w(e);return E(t),t}function w(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;u(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=N([r,c.relativePath]),d=n.concat(c);e.children&&e.children.length>0&&(u(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),w(e.children,t,d,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:se(l,e.index),routesMeta:d.map((e,t)=>{let[n,r]=de(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of T(e.path))a(e,t,!0,n)}),t}function T(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=T(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function E(e){e.sort((e,t)=>e.score===t.score?ce(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ee=/^:[\w-]+$/,te=/^:[\w-]+/,ne=3.5,D=3,O=2,re=1,ie=10,ae=-2,oe=e=>e===`*`;function se(e,t){let n=e.split(`/`),r=n.length;return n.some(oe)&&(r+=ae),t&&(r+=O),n.filter(e=>!oe(e)).reduce((e,t)=>e+(ee.test(t)?D:te.test(t)?ne:t===``?re:ie),r)}function ce(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function le(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ue(u,l,s.matcher,s.compiledParams):k(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=k({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:N([a,d.pathname]),pathnameBase:ye(N([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=N([a,d.pathnameBase]))}return o}function k(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=de(e.path,e.caseSensitive,e.end);return ue(e,t,n,r)}function ue(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function de(e,t=!1,n=!0){d(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function fe(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function A(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function pe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?g(e):e,a;return n?(n=_e(n),a=n.startsWith(`/`)?me(n.substring(1),`/`):me(n,t)):a=t,{pathname:a,search:be(r),hash:xe(i)}}function me(e,t){let n=ve(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function j(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function M(e,t,n,r=!1){let i;typeof e==`string`?i=g(e):(i={...e},u(!i.pathname||!i.pathname.includes(`?`),j(`?`,`pathname`,`search`,i)),u(!i.pathname||!i.pathname.includes(`#`),j(`#`,`pathname`,`hash`,i)),u(!i.search||!i.search.includes(`#`),j(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=pe(i,s),l=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||d)&&(c.pathname+=`/`),c}var _e=e=>e.replace(/[\\/]{2,}/g,`/`),N=e=>_e(e.join(`/`)),ve=e=>e.replace(/\/+$/,``),ye=e=>ve(e).replace(/^\/*/,`/`),be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Se=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ce(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function we(e){return N(e.map(e=>e.route.path).filter(Boolean))||`/`}var Te=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ee(e,t){let n=e;if(typeof n!=`string`||!i.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(Te)try{let e=new URL(window.location.href),r=a.test(n)?new URL(o(n,e.protocol)):new URL(n),i=A(r.pathname,t);r.origin===e.origin&&i!=null?n=i+r.search+r.hash:s=!0}catch{d(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:n}}var De=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(De);var Oe=[`GET`,...De];new Set(Oe);var ke=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ae(e){try{return ke.includes(new URL(e).protocol)}catch{return!1}}var P=y.createContext(null);P.displayName=`DataRouter`;var F=y.createContext(null);F.displayName=`DataRouterState`;var je=y.createContext(!1);function Me(){return y.useContext(je)}var Ne=y.createContext({isTransitioning:!1});Ne.displayName=`ViewTransition`;var Pe=y.createContext(new Map);Pe.displayName=`Fetchers`;var Fe=y.createContext(null);Fe.displayName=`Await`;var I=y.createContext(null);I.displayName=`Navigation`;var L=y.createContext(null);L.displayName=`Location`;var R=y.createContext({outlet:null,matches:[],isDataRoute:!1});R.displayName=`Route`;var z=y.createContext(null);z.displayName=`RouteError`;var Ie=`REACT_ROUTER_ERROR`,Le=`REDIRECT`,Re=`ROUTE_ERROR_RESPONSE`;function ze(e){if(e.startsWith(`${Ie}:${Le}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Be(e){if(e.startsWith(`${Ie}:${Re}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Se(t.status,t.statusText,t.data)}catch{}}function Ve(e,{relative:t}={}){u(B(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=y.useContext(I),{hash:i,pathname:a,search:o}=H(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:N([n,a])),r.createHref({pathname:s,search:o,hash:i})}function B(){return y.useContext(L)!=null}function V(){return u(B(),`useLocation() may be used only in the context of a <Router> component.`),y.useContext(L).location}var He=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Ue(){let{isDataRoute:e}=y.useContext(R);return e?ct():We()}function We(){u(B(),`useNavigate() may be used only in the context of a <Router> component.`);let e=y.useContext(P),{basename:t,navigator:n}=y.useContext(I),{matches:r}=y.useContext(R),{pathname:i}=V(),a=JSON.stringify(ge(r)),o=y.useRef(!1);return y.useLayoutEffect(()=>{o.current=!0}),y.useCallback((r,s={})=>{if(d(o.current,He),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=M(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:N([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Ge=y.createContext(null);function Ke(e){let t=y.useContext(R).outlet;return y.useMemo(()=>t&&y.createElement(Ge.Provider,{value:e},t),[t,e])}function qe(){let{matches:e}=y.useContext(R);return e[e.length-1]?.params??{}}function H(e,{relative:t}={}){let{matches:n}=y.useContext(R),{pathname:r}=V(),i=JSON.stringify(ge(n));return y.useMemo(()=>M(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Je(e,t){return Ye(e,t)}function Ye(e,t,n){u(B(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=y.useContext(I),{matches:i}=y.useContext(R),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=V(),l;if(t){let e=typeof t==`string`?g(t):t;u(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let d=l.pathname||`/`,f=d;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):b(e,{pathname:f}),m=tt(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:N([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:N([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&m?y.createElement(L.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},m):m}function Xe(){let e=st(),t=Ce(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return y.createElement(y.Fragment,null,y.createElement(`h2`,null,`Unexpected Application Error!`),y.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?y.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Ze=y.createElement(Xe,null),Qe=class extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=je;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Be(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:y.createElement(R.Provider,{value:this.props.routeContext},y.createElement(z.Provider,{value:e,children:this.props.component}));return this.context?y.createElement($e,{error:e},t):t}},U=new WeakMap;function $e({children:e,error:t}){let{basename:n}=y.useContext(I);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ze(t.digest);if(e){let r=U.get(t);if(r)throw r;let i=Ee(e.location,n),a=i.absoluteURL||i.to;if(Ae(a))throw Error(`Invalid redirect location`);if(Te&&!U.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw U.set(t,n),n}return y.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function et({routeContext:e,match:t,children:n}){let r=y.useContext(P);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(R.Provider,{value:e},n)}function tt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:we(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Ze,o&&(s<0&&c===0?(ut(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?y.createElement(n.route.Component,null):n.route.element?n.route.element:e,y.createElement(et,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?y.createElement(Qe,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function W(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nt(e){let t=y.useContext(P);return u(t,W(e)),t}function G(e){let t=y.useContext(F);return u(t,W(e)),t}function rt(e){let t=y.useContext(R);return u(t,W(e)),t}function K(e){let t=rt(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function it(){return K(`useRouteId`)}function at(){let e=G(`useNavigation`);return y.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function ot(){let{matches:e,loaderData:t}=G(`useMatches`);return y.useMemo(()=>e.map(e=>S(e,t)),[e,t])}function st(){let e=y.useContext(z),t=G(`useRouteError`),n=K(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ct(){let{router:e}=nt(`useNavigate`),t=K(`useNavigate`),n=y.useRef(!1);return y.useLayoutEffect(()=>{n.current=!0}),y.useCallback(async(r,i={})=>{d(n.current,He),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var lt={};function ut(e,t,n){!t&&!lt[e]&&(lt[e]=!0,d(!1,n))}y.memo(dt);function dt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ye(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ft(e){return Ke(e.context)}function pt(e){u(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function mt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){u(!B(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=y.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=g(n));let{pathname:l=`/`,search:f=``,hash:p=``,state:m=null,key:h=`default`,mask:_}=n,v=y.useMemo(()=>{let e=A(l,s);return e==null?null:{location:{pathname:e,search:f,hash:p,state:m,key:h,mask:_},navigationType:r}},[s,l,f,p,m,h,r,_]);return d(v!=null,`<Router basename="${s}"> is not able to match the URL "${l}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:y.createElement(I.Provider,{value:c},y.createElement(L.Provider,{children:t,value:v}))}function ht({children:e,location:t}){return Je(q(e),t)}y.Component;function q(e,t=[]){let n=[];return y.Children.forEach(e,(e,r)=>{if(!y.isValidElement(e))return;let i=[...t,r];if(e.type===y.Fragment){n.push.apply(n,q(e.props.children,i));return}u(e.type===pt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;u(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=q(a.children,i)),n.push(o)}),n}var J=`application/x-www-form-urlencoded`;function Y(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function gt(e){return Y(e)&&e.tagName.toLowerCase()===`button`}function _t(e){return Y(e)&&e.tagName.toLowerCase()===`form`}function vt(e){return Y(e)&&e.tagName.toLowerCase()===`input`}function yt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bt(e,t){return e.button===0&&(!t||t===`_self`)&&!yt(e)}var X=null;function xt(){if(X===null)try{new FormData(document.createElement(`form`),0),X=!1}catch{X=!0}return X}var St=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Ct(e){return e!=null&&!St.has(e)?(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${J}"`),null):e}function wt(e,t){let n,r,i,a,o;if(_t(e)){let o=e.getAttribute(`action`);r=o?A(o,t):null,n=e.getAttribute(`method`)||`get`,i=Ct(e.getAttribute(`enctype`))||J,a=new FormData(e)}else if(gt(e)||vt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?A(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Ct(e.getAttribute(`formenctype`))||Ct(o.getAttribute(`enctype`))||J,a=new FormData(o,e),!xt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Y(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=J,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Tt(e,t){if(e===!1||e==null)throw Error(t)}var Et={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Dt=/[&><\u2028\u2029]/g;function Ot(e){return e.replace(Dt,e=>Et[e])}function kt(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname.endsWith(`/`)?n.pathname=`${n.pathname}_.${t}`:n.pathname=`${n.pathname}.${t}`,n}async function At(e,t){if(e.id in t)return t[e.id];try{let r=await n(()=>import(e.module),[]);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jt(e){return e!=null&&typeof e.page==`string`}function Mt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Nt(e,t,n){return Rt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await At(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Mt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Pt(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ft(e,t,{includeHydrateFallback:n}={}){return It(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function It(e){return[...new Set(e)]}function Lt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Rt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!jt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Lt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function zt(){let e=y.useContext(P);return Tt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Bt(){let e=y.useContext(F);return Tt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Z=y.createContext(void 0);Z.displayName=`FrameworkContext`;function Vt(){let e=y.useContext(Z);return Tt(e,`You must render this element inside a <HydratedRouter> element`),e}function Ht(e,t){let n=y.useContext(Z),[r,i]=y.useState(!1),[a,o]=y.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=y.useRef(null);y.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),y.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Q(s,p),onBlur:Q(c,m),onMouseEnter:Q(l,p),onMouseLeave:Q(u,m),onTouchStart:Q(d,p)}]:[a,f,{}]:[!1,f,{}]}function Q(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ut({page:e,...t}){let n=Me(),{nonce:r}=Vt(),{router:i}=zt(),a=y.useMemo(()=>b(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?y.createElement(Gt,{page:e,matches:a,...t}):y.createElement(Kt,{page:e,matches:a,...t})):null}function Wt(e){let{manifest:t,routeModules:n}=Vt(),[r,i]=y.useState([]);return y.useEffect(()=>{let r=!1;return Nt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Gt({page:e,matches:t,...n}){let r=V(),i=y.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=kt(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return y.createElement(y.Fragment,null,i.map(e=>y.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Kt({page:e,matches:t,...n}){let r=V(),{manifest:i,routeModules:a}=Vt(),{loaderData:o,matches:s}=Bt(),c=y.useMemo(()=>Pt(e,t,s,i,r,`data`),[e,t,s,i,r]),l=y.useMemo(()=>Pt(e,t,s,i,r,`assets`),[e,t,s,i,r]),u=y.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];!t||!t.hasLoader||(!c.some(t=>t.route.id===e.route.id)&&e.route.id in o&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let l=kt(e,`data`);return s&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[o,r,i,c,t,e,a]),d=y.useMemo(()=>Ft(l,i),[l,i]),f=Wt(l);return y.createElement(y.Fragment,null,u.map(e=>y.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>y.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>y.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function qt(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Jt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Jt&&(window.__reactRouterVersion=`8.2.0`)}catch{}function Yt({basename:e,children:t,useTransitions:n,window:r}){let i=y.useRef(null);i.current??=l({window:r,v5Compat:!0});let a=i.current,[o,s]=y.useState({action:a.action,location:a.location}),c=y.useCallback(e=>{n===!1?s(e):y.startTransition(()=>s(e))},[n]);return y.useLayoutEffect(()=>a.listen(c),[a,c]),y.createElement(mt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Xt({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=y.useState({action:n.action,location:n.location}),o=y.useCallback(e=>{r===!1?a(e):y.startTransition(()=>a(e))},[r]);return y.useLayoutEffect(()=>n.listen(o),[n,o]),y.createElement(mt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Xt.displayName=`unstable_HistoryRouter`;var Zt=y.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:a,replace:o,mask:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:v}=y.useContext(I),b=typeof u==`string`&&i.test(u),x=Ee(u,g);u=x.to;let S=Ve(u,{relative:r}),C=V(),w=null;if(s){let e=M(s,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:N([g,e.pathname])),w=_.createHref(e)}let[T,E,ee]=Ht(n,m),te=an(u,{replace:o,mask:s,state:c,target:l,preventScrollReset:d,relative:r,viewTransition:f,defaultShouldRevalidate:p,useTransitions:v});function ne(t){e&&e(t),t.defaultPrevented||te(t)}let D=!(x.isExternal||a),O=y.createElement(`a`,{...m,...ee,href:(D?w:void 0)||x.absoluteURL||S,onClick:D?ne:e,ref:qt(h,E),target:l,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?y.createElement(y.Fragment,null,O,y.createElement(Ut,{page:S})):O});Zt.displayName=`Link`;var Qt=y.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=H(a,{relative:c.relative}),d=V(),f=y.useContext(F),{navigator:p,basename:m}=y.useContext(I),h=f!=null&&mn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=A(v,m)||v);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(b)===`/`,S=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return y.createElement(Zt,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Qt.displayName=`NavLink`;var $t=y.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=`get`,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=y.useContext(I),_=cn(),v=ln(c,{relative:u}),b=s.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&i.test(c);return y.createElement(`form`,{ref:h,method:b,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute(`formmethod`)||s,c=()=>_(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:a,state:o,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?y.startTransition(()=>c()):c()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});$t.displayName=`Form`;function en({getKey:e,storageKey:t,...n}){let r=y.useContext(Z),{basename:i}=y.useContext(I),a=V(),o=ot();fn({getKey:e,storageKey:t});let s=y.useMemo(()=>{if(!r||!e)return null;let t=dn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),y.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ot(JSON.stringify(t||un))}, ${Ot(JSON.stringify(s))})`}})}en.displayName=`ScrollRestoration`;function tn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nn(e){let t=y.useContext(P);return u(t,tn(e)),t}function rn(e){let t=y.useContext(F);return u(t,tn(e)),t}function an(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Ue(),d=V(),f=H(e,{relative:o});return y.useCallback(p=>{if(bt(p,t)){p.preventDefault();let t=n===void 0?h(d)===h(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?y.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var on=0,sn=()=>`__${String(++on)}__`;function cn(){let{router:e}=nn(`useSubmit`),{basename:t}=y.useContext(I),n=it(),r=e.fetch,i=e.navigate;return y.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=wt(e,t);a.navigate===!1?await r(a.fetcherKey||sn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ln(e,{relative:t}={}){let{basename:n}=y.useContext(I),r=y.useContext(R);u(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...H(e||`.`,{relative:t})},o=V();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:N([n,a.pathname])),h(a)}var un=`react-router-scroll-positions`,$={};function dn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:A(e.pathname,n)||e.pathname},t)),i??=e.key,i}function fn({getKey:e,storageKey:t}={}){let{router:n}=nn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=rn(`useScrollRestoration`),{basename:a}=y.useContext(I),o=V(),s=ot(),c=at();y.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),pn(y.useCallback(()=>{if(c.state===`idle`){let t=dn(o,s,a,e);$[t]=window.scrollY}try{sessionStorage.setItem(t||un,JSON.stringify($))}catch(e){d(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(y.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||un);e&&($=JSON.parse(e))}catch{}},[t]),y.useLayoutEffect(()=>{let t=n?.enableScrollRestoration($,()=>window.scrollY,e?(t,n)=>dn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),y.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{d(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function pn(e,t){let{capture:n}=t||{};y.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function mn(e,{relative:t}={}){let n=y.useContext(Ne);u(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=nn(`useViewTransitionState`),i=H(e,{relative:t});if(!n.isTransitioning)return!1;let a=A(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=A(n.nextLocation.pathname,r)||n.nextLocation.pathname;return k(i.pathname,o)!=null||k(i.pathname,a)!=null}var hn=r(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),gn=r(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),_n=r(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]);function vn(e){return e.trim().slice(0,5).toUpperCase()}function yn(e){return e.abbrev??vn(e.name)}function bn(e){return e.trim().toUpperCase().slice(0,5)}export{gn as a,Zt as c,ht as d,V as f,_n as i,ft as l,qe as m,bn as n,hn as o,Ue as p,yn as r,Yt as s,vn as t,pt as u};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{b as n,n as r}from"./index-CPKHBs7z.js";import{i}from"./dist-CQZ_zg-s.js";var a=r(),o=e(t(),1);function s(){return window.puddleDesktop}function c(){let[e,t]=(0,o.useState)({fullScreen:!1,animate:!1});return(0,o.useEffect)(()=>{let e=s();if(!e)return;let n=!0;e.isFullScreen?.()?.then(e=>{n&&t({fullScreen:e,animate:!1})});let r=e.onFullScreenChange?.(e=>t({fullScreen:e,animate:!0}));return()=>{n=!1,r?.()}},[]),e}var l=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},u=new class extends l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},f=new class{#e=d;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function p(e){setTimeout(e,0)}var m=typeof window>`u`||`Deno`in globalThis;function h(){}function g(e,t){return typeof e==`function`?e(t):e}function _(e){return typeof e==`number`&&e>=0&&e!==1/0}function v(e,t){return Math.max(e+(t||0)-Date.now(),0)}function y(e,t){return typeof e==`function`?e(t):e}function b(e,t){return typeof e==`function`?e(t):e}function x(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==C(o,t.options))return!1}else if(!T(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function S(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(w(t.options.mutationKey)!==w(a))return!1}else if(!T(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function C(e,t){return(t?.queryKeyHashFn||w)(e)}function w(e){return JSON.stringify(e,(e,t)=>D(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function T(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>T(e[n],t[n])):!1}var ee=Object.prototype.hasOwnProperty;function te(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ne(e)&&ne(t);if(!r&&!(D(e)&&D(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ee.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=te(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function E(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ne(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function D(e){if(!re(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!re(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function re(e){return Object.prototype.toString.call(e)===`[object Object]`}function ie(e){return new Promise(t=>{f.setTimeout(t,e)})}function O(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:te(e,t)}function ae(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function oe(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k=Symbol();function se(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===k?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function A(e,t){return typeof e==`function`?e(...t):!!e}function ce(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var j=(()=>{let e=()=>m;return{isServer(){return e()},setIsServer(t){e=t}}})();function M(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var le=p;function ue(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=le,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var N=ue(),P=new class extends l{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function de(e){return Math.min(1e3*2**e,3e4)}function fe(e){return(e??`online`)!==`online`||P.isOnline()}var F=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function I(e){let t=!1,n=0,r,i=M(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new F(t);p(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>u.isFocused()&&(e.networkMode===`always`||P.isOnline())&&e.canRun(),d=()=>fe(e.networkMode)&&e.canRun(),f=e=>{a()||(r?.(),i.resolve(e))},p=e=>{a()||(r?.(),i.reject(e))},m=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(a())return;let i=e.retry??(j.isServer()?0:3),o=e.retryDelay??de,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){p(r);return}n++,e.onFail?.(n,r),ie(s).then(()=>l()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:d,start:()=>(d()?h():m().then(h),i)}}var pe=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_(this.gcTime)&&(this.#e=f.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(j.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(f.clearTimeout(this.#e),this.#e=void 0)}};function me(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{ce(e,()=>t.signal,()=>n=!0)},u=se(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?oe:ae;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?he:L,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:L(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function L(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function he(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ge(e,t){return t?L(e,t)!=null:!1}function _e(e,t){return!t||!e.getPreviousPageParam?!1:he(e,t)!=null}var ve=class extends pe{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=xe(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=xe(this.options);e.data!==void 0&&(this.setState(be(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=O(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(h).catch(h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>b(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===k||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>y(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!v(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=se(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?me(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=I({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof F&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof F){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ye(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...be(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ye(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function be(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function xe(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Se=class extends l{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=M(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),we(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return R(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return R(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof b(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!E(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&z(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||b(this.options.enabled,this.#t)!==b(t.enabled,this.#t)||y(this.options.staleTime,this.#t)!==y(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||b(this.options.enabled,this.#t)!==b(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Te(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(h)),t}#g(){this.#b();let e=y(this.options.staleTime,this.#t);if(j.isServer()||this.#r.isStale||!_(e))return;let t=v(this.#r.dataUpdatedAt,e)+1;this.#d=f.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(j.isServer()||b(this.options.enabled,this.#t)===!1||!_(this.#p)||this.#p===0)&&(this.#f=f.setInterval(()=>{(this.options.refetchIntervalInBackground||u.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(f.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(f.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&we(e,t),o=i&&z(e,n,t,r);(a||o)&&(l={...l,...ye(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=O(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=O(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,x=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&x,isStale:B(e,t),refetch:this.refetch,promise:this.#o,isEnabled:b(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{let e=this.#o=S.promise=M();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a();break}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!E(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){N.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Ce(e,t){return b(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&b(t.retryOnMount,e)===!1)}function we(e,t){return Ce(e,t)||e.state.data!==void 0&&R(e,t,t.refetchOnMount)}function R(e,t,n){if(b(t.enabled,e)!==!1&&y(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&B(e,t)}return!1}function z(e,t,n,r){return(e!==t||b(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&B(e,n)}function B(e,t){return b(t.enabled,e)!==!1&&e.isStaleByTime(y(t.staleTime,e))}function Te(e,t){return!E(e.getCurrentResult(),t)}var Ee=class extends pe{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||V(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=I({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),N.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function V(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var De=class extends l{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),E(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&w(t.mutationKey)!==w(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??V();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){N.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Oe=o.createContext(void 0),H=e=>{let t=o.useContext(Oe);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},ke=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,a.jsx)(Oe.Provider,{value:e,children:t})),Ae=o.createContext(!1),je=()=>o.useContext(Ae);Ae.Provider;function Me(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ne=o.createContext(Me()),Pe=()=>o.useContext(Ne),Fe=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?A(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ie=e=>{o.useEffect(()=>{e.clearReset()},[e])},Le=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||A(n,[e.error,r])),Re=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},ze=(e,t)=>e.isLoading&&e.isFetching&&!t,Be=(e,t)=>e?.suspense&&t.isPending,Ve=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function He(e,t,n){let r=je(),i=Pe(),a=H(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let c=a.getQueryCache().get(s.queryHash),l=e.subscribed!==!1;s._optimisticResults=r?`isRestoring`:l?`optimistic`:void 0,Re(s),Fe(s,i,c),Ie(i);let u=!a.getQueryCache().get(s.queryHash),[d]=o.useState(()=>new t(a,s)),f=d.getOptimisticResult(s),p=!r&&l;if(o.useSyncExternalStore(o.useCallback(e=>{let t=p?d.subscribe(N.batchCalls(e)):h;return d.updateResult(),t},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),o.useEffect(()=>{d.setOptions(s)},[s,d]),Be(s,f))throw Ve(s,d,i);if(Le({result:f,errorResetBoundary:i,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(s,f),s.experimental_prefetchInRender&&!j.isServer()&&ze(f,r)&&(u?Ve(s,d,i):c?.promise)?.catch(h).finally(()=>{d.updateResult()}),s.notifyOnChangeProps?f:d.trackResult(f)}function U(e,t){return He(e,Se,t)}function W(e,t){let n=H(t),[r]=o.useState(()=>new De(n,e));o.useEffect(()=>{r.setOptions(e)},[r,e]);let i=o.useSyncExternalStore(o.useCallback(e=>r.subscribe(N.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=o.useCallback((e,t)=>{r.mutate(e,t).catch(h)},[r]);if(i.error&&A(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Ue=12,G=typeof document<`u`?document.hasFocus():!0;typeof window<`u`&&(window.addEventListener(`focus`,()=>{G=!0}),window.addEventListener(`blur`,()=>{G=!1}),u.setEventListener(e=>{let t=()=>e(void 0);return window.addEventListener(`visibilitychange`,t,!1),window.addEventListener(`focus`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t),window.removeEventListener(`focus`,t)}}));function K(e){return()=>G?e:e*Ue}function We(){return U({queryKey:[`profiles`],queryFn:()=>i(`GET`,`/api/profiles`)})}function Ge(e){return U({queryKey:[`profile-settings`,e],queryFn:()=>i(`GET`,`/api/profiles/${e}/settings`),enabled:e!==void 0})}function Ke(e){return U({queryKey:[`accounts`,e],queryFn:()=>i(`GET`,`/api/accounts?profile=${e}`),enabled:e!==void 0})}function qe(e){return U({queryKey:[`account-usage`,e],queryFn:()=>i(`GET`,`/api/accounts/${e}/usage`),enabled:e!==void 0,staleTime:15e3})}function Je(){return U({queryKey:[`repos`],queryFn:()=>i(`GET`,`/api/repos`)})}function Ye(e,t=!0){return U({queryKey:[`projects`,e??`all`],queryFn:()=>i(`GET`,e===void 0?`/api/projects`:`/api/projects?profile=${e}`),enabled:t})}function Xe(e){return U({queryKey:[`project`,e],queryFn:()=>i(`GET`,`/api/projects/${e}`),enabled:e!==void 0,placeholderData:e=>e})}function Ze(e){return i(`POST`,`/api/projects/${e}/conversations/refresh`)}function Qe(e){return U({queryKey:[`sessions`,e],queryFn:()=>i(`GET`,`/api/sessions?project=${e}`),enabled:e!==void 0})}var $e={queryKey:[`sessions`,`all`],queryFn:()=>i(`GET`,`/api/sessions`)};function et(e=!0){return U({...$e,enabled:e})}function tt(e){return e.fetchQuery($e)}function nt(){return U({queryKey:[`config`],queryFn:()=>i(`GET`,`/api/config`)})}function rt(e){return U({queryKey:[`repo-branches`,e],queryFn:()=>i(`GET`,`/api/repos/${e}/branches`),enabled:e!==void 0,staleTime:3e4})}function it(e,t=1e4){return U({queryKey:[`repo-worktrees`,e],queryFn:()=>i(`GET`,`/api/repos/${e}/worktrees`),enabled:e!==void 0,staleTime:t})}function at(e,t){let n=H();return W({mutationFn:t=>i(`DELETE`,`/api/repos/${e}/worktrees?path=${encodeURIComponent(t)}`),onSuccess:r=>{n.setQueryData([`repo-worktrees`,e],r),n.invalidateQueries({queryKey:[`project`,t]})}})}function ot(e,t){let n=H();return W({mutationFn:({name:t,confirm:n})=>{let r=new URLSearchParams({name:t});return n&&r.set(`confirm`,`1`),i(`DELETE`,`/api/repos/${e}/branches?${r.toString()}`)},onSuccess:r=>{n.setQueryData([`repo-worktrees`,e],r),n.invalidateQueries({queryKey:[`project`,t]})}})}function st(e){return U({queryKey:[`fs-dirs`,e],queryFn:()=>i(`GET`,`/api/fs/dirs?prefix=${encodeURIComponent(e)}`),enabled:e.startsWith(`/`)||e.startsWith(`~`),placeholderData:e=>e,staleTime:1e4})}function ct(){return U({queryKey:[`version`],queryFn:()=>i(`GET`,`/api/version`),staleTime:1/0})}function lt(){return U({queryKey:[`host`],queryFn:()=>i(`GET`,`/api/host`),staleTime:1/0})}function ut(e){return e?e.displayName||e.hostname:void 0}function dt(){return U({queryKey:[`agents`],queryFn:()=>i(`GET`,`/api/agents`),staleTime:3e4,refetchOnWindowFocus:!0})}function ft(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/profiles`,e),onSuccess:()=>void e.invalidateQueries({queryKey:[`profiles`]})})}function pt(e){let t=H();return W({mutationFn:t=>i(`PATCH`,`/api/profiles/${e}/settings`,t),onSuccess:n=>t.setQueryData([`profile-settings`,e],n)})}function mt(){let e=H();return W({mutationFn:({id:e,...t})=>i(`PATCH`,`/api/profiles/${e}`,t),onSuccess:()=>void e.invalidateQueries({queryKey:[`profiles`]})})}function ht(){let e=H();return W({mutationFn:({id:e,...t})=>i(`PATCH`,`/api/accounts/${e}`,t),onSuccess:t=>{e.invalidateQueries({queryKey:[`accounts`,t.profile_id]}),e.invalidateQueries({queryKey:[`account-usage`,t.id]})}})}function gt(){let e=H();return W({mutationFn:e=>i(`DELETE`,`/api/profiles/${e}`),onSuccess:()=>e.clear()})}function _t(){let e=H();return W({mutationFn:e=>i(`DELETE`,`/api/accounts/${e}`),onSuccess:()=>void e.invalidateQueries({queryKey:[`accounts`]})})}function vt(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/accounts`,e),onSuccess:t=>void e.invalidateQueries({queryKey:[`accounts`,t.profile_id]})})}function yt(){return W({mutationFn:e=>i(`POST`,`/api/accounts/${e}/login`)})}function bt(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/repos`,e),onSuccess:()=>void e.invalidateQueries({queryKey:[`repos`]})})}function xt(){let e=H();return W({mutationFn:({id:e,...t})=>i(`PATCH`,`/api/repos/${e}`,t),onSuccess:()=>void e.invalidateQueries({queryKey:[`repos`]})})}function St(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/repos/${e}/fetch`),onSuccess:()=>void e.invalidateQueries({queryKey:[`repos`]})})}function Ct(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/projects`,e),onSuccess:()=>void e.invalidateQueries({queryKey:[`projects`]})})}function wt(){let e=H();return W({mutationFn:({id:e,...t})=>i(`PATCH`,`/api/projects/${e}`,t),onSuccess:()=>void e.invalidateQueries({queryKey:[`projects`]})})}function Tt(e,t){return U({queryKey:[`scratchpad`,e,t??`none`],queryFn:()=>i(`GET`,`/api/scratchpad?profile=${e}${t?`&project=${t}`:``}`),enabled:e!==void 0})}function Et(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/scratchpad`,e),onSuccess:()=>void e.invalidateQueries({queryKey:[`scratchpad`]})})}function Dt(){let e=H();return W({mutationFn:({id:e,...t})=>i(`PATCH`,`/api/scratchpad/${e}`,t),onSuccess:()=>void e.invalidateQueries({queryKey:[`scratchpad`]})})}function Ot(){let e=H();return W({mutationFn:e=>i(`DELETE`,`/api/scratchpad/${e}`),onSuccess:()=>void e.invalidateQueries({queryKey:[`scratchpad`]})})}function kt(e,t){return U({queryKey:[`layouts`,e,t??`none`],queryFn:()=>i(`GET`,`/api/layouts?profile=${e}${t?`&project=${t}`:``}`),enabled:e!==void 0})}function At(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/layouts`,e),onSuccess:()=>void e.invalidateQueries({queryKey:[`layouts`]})})}function jt(){let e=H();return W({mutationFn:({id:e,...t})=>i(`PATCH`,`/api/layouts/${e}`,t),onSuccess:()=>void e.invalidateQueries({queryKey:[`layouts`]})})}function Mt(){let e=H();return W({mutationFn:e=>i(`DELETE`,`/api/layouts/${e}`),onSuccess:()=>void e.invalidateQueries({queryKey:[`layouts`]})})}function q(e,t){e.invalidateQueries({queryKey:[`sessions`]}),e.invalidateQueries({queryKey:[`project`,t.project_id]})}function Nt(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/sessions`,e),onSuccess:t=>q(e,t)})}function Pt(e){let t=H();return W({mutationFn:t=>i(`POST`,`/api/sessions/${t}/${e}`),onSuccess:e=>q(t,e)})}function Ft(){let e=H();return W({mutationFn:({sessionId:e,accountId:t})=>i(`POST`,`/api/sessions/${e}/migrate`,{account_id:t}),onSuccess:t=>q(e,t)})}function It(){let e=H();return W({mutationFn:({sessionId:e,accountId:t})=>i(`POST`,`/api/sessions/${e}/handoff`,{account_id:t}),onSuccess:(t,{sessionId:n})=>{q(e,t),e.invalidateQueries({queryKey:[`session`,n]})}})}function Lt(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/sessions/${e}/archive`),onSuccess:t=>q(e,t)})}function Rt(){let e=H();return W({mutationFn:e=>i(`POST`,`/api/sessions/${e}/unarchive`),onSuccess:t=>q(e,t)})}function zt(){let e=H();return W({mutationFn:({sessionId:e,title:t})=>i(`PATCH`,`/api/sessions/${e}`,{title:t}),onSuccess:t=>q(e,t)})}function Bt(){let e=H();return W({mutationFn:e=>i(`PATCH`,`/api/config`,e),onSuccess:(t,n)=>{e.setQueryData([`config`],t),`displayName`in n&&e.invalidateQueries({queryKey:[`host`]})}})}async function Vt(e){try{return await i(`GET`,`/api/profiles/${e}/state`)}catch(e){if(e instanceof Error&&`code`in e&&e.code===`no_state`)return null;throw e}}function Ht(e,t){return i(`PUT`,`/api/profiles/${e}/state`,{ui_state:t})}function Ut(e,t){return U({queryKey:[`ports`,e],queryFn:()=>i(`GET`,`/api/sessions/${e}/ports`),enabled:e!==void 0&&t,refetchInterval:K(5e3),refetchIntervalInBackground:!1})}function Wt(e,t){return U({queryKey:[`session-env`,e],queryFn:()=>i(`GET`,`/api/sessions/${e}/env`),enabled:e!==void 0&&t,refetchInterval:K(5e3),refetchIntervalInBackground:!1})}function Gt(){let e=H();return W({mutationFn:e=>i(`DELETE`,`/api/sessions/${e}/env`),onSuccess:(t,n)=>{e.setQueryData([`session-env`,n],{vars:[]})}})}var J=n(`puddle.profile-id`);function Kt(){let e=(0,o.useSyncExternalStore)(J.subscribe,J.get);return e!==null&&/^[0-9a-f]{10}$/.test(e)?e:null}function qt(e){window.location.pathname!==`/`&&window.history.replaceState(null,``,`/`),J.set(e)}var Jt=[`Layout & tabs`,`Editor`,`Left sidebar`,`Right sidebar`],Y=[{id:`palette.toggle`,label:`Command palette`,group:`Layout & tabs`,defaultBinding:`meta+KeyK`},{id:`tab.close`,label:`Close current tab`,group:`Layout & tabs`,defaultBinding:`ctrl+alt+KeyW`,desktopBinding:`meta+KeyW`},{id:`tab.reopen`,label:`Reopen last closed tab`,group:`Layout & tabs`,defaultBinding:`ctrl+alt+KeyT`,desktopBinding:`shift+meta+KeyT`},{id:`tab.newUntitled`,label:`New untitled file`,group:`Layout & tabs`,defaultBinding:`ctrl+alt+KeyN`,desktopBinding:`meta+KeyN`},{id:`tab.next`,label:`Next tab in pane`,group:`Layout & tabs`,defaultBinding:`ctrl+alt+BracketRight`,desktopBinding:`ctrl+Tab`},{id:`tab.prev`,label:`Previous tab in pane`,group:`Layout & tabs`,defaultBinding:`ctrl+alt+BracketLeft`,desktopBinding:`ctrl+shift+Tab`},{id:`window.close`,label:`Close window`,group:`Layout & tabs`,defaultBinding:`meta+KeyW`,desktopBinding:`shift+meta+KeyW`},{id:`sidebar.left`,label:`Toggle left sidebar`,group:`Layout & tabs`,defaultBinding:`alt+meta+Comma`,desktopBinding:`meta+KeyB`},{id:`sidebar.right`,label:`Toggle right sidebar`,group:`Layout & tabs`,defaultBinding:`alt+meta+Period`,desktopBinding:`shift+meta+KeyB`},{id:`editor.save`,label:`Save`,group:`Editor`,defaultBinding:`meta+KeyS`,editor:!0},{id:`editor.wordWrap`,label:`Toggle word wrap`,group:`Editor`,defaultBinding:`alt+KeyZ`,editor:!0},{id:`nav.files`,label:`Open Files`,group:`Left sidebar`,defaultBinding:`alt+meta+KeyE`},{id:`nav.search`,label:`Open Search`,group:`Left sidebar`,defaultBinding:`alt+meta+KeyF`},{id:`nav.changes`,label:`Open Changes`,group:`Left sidebar`,defaultBinding:`alt+meta+KeyV`},{id:`nav.worktrees`,label:`Open Worktrees`,group:`Left sidebar`,defaultBinding:`alt+meta+KeyB`},{id:`session.newAgent`,label:`New agent`,group:`Right sidebar`,defaultBinding:`ctrl+alt+Backquote`,desktopBinding:`meta+KeyT`},{id:`session.newTerminal`,label:`New terminal`,group:`Right sidebar`,defaultBinding:`ctrl+Backquote`},{id:`scratchpad.toggle`,label:`Toggle Scratchpad`,group:`Right sidebar`,defaultBinding:`alt+meta+KeyS`},{id:`layouts.toggle`,label:`Toggle Layouts`,group:`Right sidebar`,defaultBinding:`alt+meta+KeyL`}],Yt=new Map(Y.map(e=>[e.id,e])),Xt=typeof window<`u`&&s()!==void 0;function Zt(e,t=Xt){return t&&e.desktopBinding?e.desktopBinding:e.defaultBinding}function Qt(e){let t=e.code;if(!t||/^(Control|Alt|Shift|Meta)(Left|Right)$/.test(t))return null;let n=[];return e.ctrlKey&&n.push(`ctrl`),e.altKey&&n.push(`alt`),e.shiftKey&&n.push(`shift`),e.metaKey&&n.push(`meta`),n.length===0?null:(n.push(t),n.join(`+`))}var $t={ctrl:`⌃`,alt:`⌥`,shift:`⇧`,meta:`⌘`},en={Comma:`,`,Period:`.`,Backquote:"`",Slash:`/`,Backslash:`\\`,Minus:`-`,Equal:`=`,Space:`␣`,Enter:`↵`,Escape:`Esc`,Tab:`⇥`,BracketLeft:`[`,BracketRight:`]`};function tn(e){return e.startsWith(`Key`)?e.slice(3):e.startsWith(`Digit`)?e.slice(5):en[e]??e}function nn(e){if(!e)return`—`;let t=e.split(`+`),n=t.pop()??``;return t.map(e=>$t[e]??e).join(``)+tn(n)}var X=new Map;function rn(e,t){return X.set(e,t),()=>{X.get(e)===t&&X.delete(e)}}var an=e=>X.get(e),on=e=>Yt.get(e);function sn(e,t){return e.id===`editor.save`||t&&e.editor!==!0}var cn={},Z=new Set,Q=ln();function ln(){let e={};for(let t of Y)e[t.id]=cn[t.id]||Zt(t);return e}function un(e){cn=e??{},Q=ln(),Z.forEach(e=>e())}var dn=e=>Q[e]??``;function fn(e){for(let[t,n]of Object.entries(Q))if(n===e)return t}function pn(e){return nn(mn()[e]??``)}function mn(){return(0,o.useSyncExternalStore)(e=>(Z.add(e),()=>Z.delete(e)),()=>Q)}function $(e,t,n){return!e||e.major>t||e.major===t&&e.minor>=n}var hn=e=>e!==void 0&&$(e,21,3);function gn(e){return $(e,17,1)}function _n(e){return $(e,17,3)}var vn=e=>$(e,10,3),yn=e=>$(e,12,3),bn=e=>$(e,12,4),xn=e=>$(e,15,3),Sn=e=>e!==void 0&&$(e,16,3),Cn=e=>$(e,16,4),wn=e=>$(e,14,1);export{St as $,c as $t,Ht as A,U as At,At as B,N as Bt,pn as C,Pt as Ct,tt as D,Rt as Dt,Kt as E,Qe as Et,et as F,Se as Ft,Nt as G,x as Gt,Ct as H,w as Ht,Lt as I,ve as It,ot as J,y as Jt,ct as K,h as Kt,Gt as L,ge as Lt,qe as M,ke as Mt,Ke as N,H as Nt,Vt as O,K as Ot,dt as P,Ee as Pt,st as Q,s as Qt,nt as R,_e as Rt,Zt as S,Tt as St,qt as T,Ut as Tt,bt as U,C as Ut,ft as V,g as Vt,Et as W,S as Wt,gt as X,u as Xt,Mt as Y,k as Yt,Ot as Z,l as Zt,an as _,at as _t,wn as a,ht as at,rn as b,it as bt,Cn as c,mt as ct,Y as d,xt as dt,It as et,Jt as f,Dt as ft,on as g,Ye as gt,nn as h,Xe as ht,Sn as i,Ft as it,Ze as j,He as jt,ut as k,W as kt,xn as l,pt as lt,Qt as m,We as mt,_n as n,kt as nt,bn as o,Bt as ot,fn as p,Ge as pt,_t as q,T as qt,gn as r,yt as rt,hn as s,jt as st,yn as t,lt as tt,vn as u,wt as ut,dn as v,zt as vt,J as w,Wt as wt,un as x,Je as xt,sn as y,rt as yt,vt as z,P as zt};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{v as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createRadarServices};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{g as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createRailroadServices};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{m as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createRailroadAbnfServices};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{f as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createRailroadEbnfServices};
@@ -1 +0,0 @@
1
- import"./chunk-FOHPRMQF-CdD2_EOh.js";import{u as e}from"./mermaid-parser.core-BwJKOdFv.js";export{e as createRailroadPegServices};
@@ -1 +0,0 @@
1
- import{g as e,t}from"./mermaid-parser.core-BwJKOdFv.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-ziCxw8j9.js";import"./chunk-CLGD4ZFX-B8Oa13vy.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-DLDU3lFF.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";var c=e().Railroad.parser.LangiumParser,l=n(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(u(e)))},`populateDb`),f={parser:{parse:n(e=>{o.clear(),r.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[Railroad Parser] Parsed rules:`,i.rules.length),d(i),r.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{f as diagram};
@@ -1 +0,0 @@
1
- import{t as e}from"./view-state-store-BEl9Q1Jm.js";var t=new e;function n(e,n,r,i=()=>!0){let a=t.get(r),o=-1,s=-1,c=()=>({height:Math.max(0,e.scrollHeight-e.clientHeight),width:Math.max(0,e.scrollWidth-e.clientWidth)}),l=()=>{!i()||!e.clientHeight||!e.clientWidth||({height:o,width:s}=c(),a&&(e.scrollTop=a.height?a.top/a.height*o:0,e.scrollLeft=a.width?a.left/a.width*s:0))},u=()=>{if(!i()||!e.clientHeight||!e.clientWidth)return;let n=c();({height:o,width:s}=n),a={top:e.scrollTop,left:e.scrollLeft,...n},t.set(r,a)},d=()=>{if(!i()||!e.clientHeight||!e.clientWidth)return;let t=c();if(t.height!==o||t.width!==s){l();return}u()};l(),e.addEventListener(`scroll`,d,{passive:!0});let f=new ResizeObserver(l);f.observe(e),f.observe(n);let p=new MutationObserver(l);return p.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-scroll-ready`]}),{capture:u,dispose:()=>{d(),e.removeEventListener(`scroll`,d),f.disconnect(),p.disconnect()}}}export{n as t};