@fudanda/admin-antd 0.0.0-stage → 2.20261024.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -3
  3. package/THIRD_PARTY_NOTICES.md +55 -0
  4. package/dist/assets/libarchive-DxGirPmi.wasm +0 -0
  5. package/dist/assets/pdfium-BJ2Yip8Q.wasm +0 -0
  6. package/dist/assets/ppt-font-cjk-DxgKpThH.otf +0 -0
  7. package/dist/assets/ppt-native-Cz5DBbag.wasm +0 -0
  8. package/dist/assets/pptx.worker-CtaL8LO_.js +30 -0
  9. package/dist/assets/worker-C5LZNsKY.mjs +1650 -0
  10. package/dist/assets/worker-CDeo9jS-.js +40 -0
  11. package/dist/assets/worker-bundle-Dx5mKZOL.js +6 -0
  12. package/dist/automation.d.ts +3 -0
  13. package/dist/automation.js +15 -0
  14. package/dist/chunks/App-DNjXLysb.js +79 -0
  15. package/dist/chunks/AppModal-DJzQA6FR.js +1 -0
  16. package/dist/chunks/ArcBaseAdmin-BZrHGq2f.js +1 -0
  17. package/dist/chunks/ConfigurableTable-DzmZDd8F.js +55 -0
  18. package/dist/chunks/DashboardPage-BohGodSl.js +22 -0
  19. package/dist/chunks/DataScopePanel-B2-x8Jcz.js +1 -0
  20. package/dist/chunks/DateTimeText-CIt0Qy45.js +1 -0
  21. package/dist/chunks/DepartmentsPage-DMWY__Y_.js +1 -0
  22. package/dist/chunks/DictTag-2-adKbYg.js +1 -0
  23. package/dist/chunks/DictsPage-DILDyHi-.js +15 -0
  24. package/dist/chunks/EditFormModal-DNHOZHxM.js +1 -0
  25. package/dist/chunks/EmptyIllustration-DUC3RZmF.js +1 -0
  26. package/dist/chunks/EntityContextRuntime-DMklAv-k.js +1 -0
  27. package/dist/chunks/EntityContextRuntime-sslBZqYD.js +1 -0
  28. package/dist/chunks/EntityRelationButton-DWn1rC2J.js +8 -0
  29. package/dist/chunks/ExportButton-AzH4D0oW.js +1 -0
  30. package/dist/chunks/FileNameCell-DPyi64Rv.js +1 -0
  31. package/dist/chunks/FileStorageConfigsPage-CzuOgeK0.js +15 -0
  32. package/dist/chunks/FileTypeIcon-DIih3XQG.js +1 -0
  33. package/dist/chunks/FileViewerPreviewPanel-CMqVtGCr.js +41 -0
  34. package/dist/chunks/FilesPage-BaEBCOCs.js +43 -0
  35. package/dist/chunks/IdentitySecurityPage-BO7nY8id.js +1 -0
  36. package/dist/chunks/JsonPreviewPanel-Dhbza-Uu.js +1 -0
  37. package/dist/chunks/LogStatsScaffold-CLycj3da.js +1 -0
  38. package/dist/chunks/LoginLogsPage-DTmHi8u0.js +1 -0
  39. package/dist/chunks/LoginLogsTable-DVmHnC6V.js +1 -0
  40. package/dist/chunks/MarkdownPreviewPanel-DoiaAeRv.js +51 -0
  41. package/dist/chunks/MasterDetailLayout-sjPWw8BI.js +8 -0
  42. package/dist/chunks/MemberAssignmentSheet-Czbt6_zv.js +1 -0
  43. package/dist/chunks/MenuCommandPalette-BCOzf-Kq.js +8 -0
  44. package/dist/chunks/MenusPage-DN8DTGB1.js +1 -0
  45. package/dist/chunks/ModalFooter-RMlvqrO9.js +1 -0
  46. package/dist/chunks/MonacoPreviewPanel-Dnz7xpWP.js +1 -0
  47. package/dist/chunks/NavListPanel-vjIOIqK0.js +1 -0
  48. package/dist/chunks/OnlineSessionsPage-FoHYZKlR.js +1 -0
  49. package/dist/chunks/OperationLogsPage-BeRnGcBJ.js +1 -0
  50. package/dist/chunks/OperationLogsTable-COI-Lp-y.js +1 -0
  51. package/dist/chunks/PDFPreviewPanel-BIQuBnZZ.js +37 -0
  52. package/dist/chunks/PasswordInput-DGEJO9yx.js +1 -0
  53. package/dist/chunks/PositionsPage-DohI0luX.js +1 -0
  54. package/dist/chunks/PreferencesSheetBody-B9niQABW.js +43 -0
  55. package/dist/chunks/ProfilePage-CVTRv7xb.js +15 -0
  56. package/dist/chunks/RelationPanel-B1X6AVaM.js +36 -0
  57. package/dist/chunks/ResponsiveTableActions-y54aSdhs.js +1 -0
  58. package/dist/chunks/RolesPage-CtUw93L8.js +1 -0
  59. package/dist/chunks/ScrollArea-DqjJmHDN.js +11 -0
  60. package/dist/chunks/SearchToolbar-CvgYKUjr.js +1 -0
  61. package/dist/chunks/SessionClientTag-DIwnYodW.js +22 -0
  62. package/dist/chunks/SessionConflictModal-BLNuDsN_.js +1 -0
  63. package/dist/chunks/SettingRow-DVNmTJWC.js +1 -0
  64. package/dist/chunks/SettingsPage-BRnCxYQm.js +26 -0
  65. package/dist/chunks/StatCard-Czjfs0fa.js +4 -0
  66. package/dist/chunks/UTIF-QUtClmQd.js +1 -0
  67. package/dist/chunks/UserAvatar-B8CFnTCn.js +1 -0
  68. package/dist/chunks/UserDisplay-J0Re8z-7.js +1 -0
  69. package/dist/chunks/UserGroupsPage-CNwbejx-.js +1 -0
  70. package/dist/chunks/UserLogsPanels-BHeSxWrk.js +36 -0
  71. package/dist/chunks/UserTransferSelect-CAeyxdor.js +22 -0
  72. package/dist/chunks/UsersPage-BXt9fOru.js +36 -0
  73. package/dist/chunks/abnfDiagram-VCTEODGH-Z6OhNjoW.js +1 -0
  74. package/dist/chunks/activity-DBu4axwF.js +8 -0
  75. package/dist/chunks/arc-B3K1fDeF.js +1 -0
  76. package/dist/chunks/architecture-7GRP2DOG-CMtoOwin.js +1 -0
  77. package/dist/chunks/architectureDiagram-5GKGNRK7-V5A7S5fY.js +36 -0
  78. package/dist/chunks/archive-B_IKvysI.js +72 -0
  79. package/dist/chunks/array-BrHhzP_A.js +1 -0
  80. package/dist/chunks/arrow-left-CsxBMzKY.js +8 -0
  81. package/dist/chunks/avsc-C0VoJRmm.js +160 -0
  82. package/dist/chunks/blockDiagram-I7D4REHJ-CFKGJkc_.js +129 -0
  83. package/dist/chunks/browser-BKLM0ThC-mnGPrtB_.js +1 -0
  84. package/dist/chunks/browser-index-JqxD-45S.js +1 -0
  85. package/dist/chunks/builtin_esm-external-require-react-BsBndGeN.js +1 -0
  86. package/dist/chunks/bundle-DbfUnEV1.js +29 -0
  87. package/dist/chunks/c4Diagram-7LVT6UL2-BqYYoXPe.js +38 -0
  88. package/dist/chunks/channel-C9Dr7Z-W.js +1 -0
  89. package/dist/chunks/chart-data-DImT_Mzn.js +5 -0
  90. package/dist/chunks/chart-renderer-k-Rd8vdL.js +7 -0
  91. package/dist/chunks/chevron-down-mn2tSKQd.js +8 -0
  92. package/dist/chunks/chevron-right-EBApfX6q.js +15 -0
  93. package/dist/chunks/chevrons-up-down-2M6hY6wt.js +15 -0
  94. package/dist/chunks/chunk-2E4U76K2-DNbbdpCx.js +1 -0
  95. package/dist/chunks/chunk-2Q5K7J3B-CmAE3Vs0.js +1 -0
  96. package/dist/chunks/chunk-2ZTRR5NV-BjsSRgBv.js +2 -0
  97. package/dist/chunks/chunk-3Z5EZCMW-uYiqz-6y.js +1 -0
  98. package/dist/chunks/chunk-4HAMMTFA-Aw59LwS3.js +62 -0
  99. package/dist/chunks/chunk-5V3GS4D5-B_CVcJic.js +1 -0
  100. package/dist/chunks/chunk-5VM5RSS4-DMlsEAcl.js +15 -0
  101. package/dist/chunks/chunk-6AZGARVD-CgAiC5mV.js +1 -0
  102. package/dist/chunks/chunk-6EIED4P4-CXz5D9B0.js +1 -0
  103. package/dist/chunks/chunk-6K3QC6MW-DtaQ52mY.js +1 -0
  104. package/dist/chunks/chunk-6TQVIW2G-D0YDxefI.js +1 -0
  105. package/dist/chunks/chunk-747NJXEK-DGoElbDa.js +2 -0
  106. package/dist/chunks/chunk-75Z2AOVW-IO9R6faP.js +2 -0
  107. package/dist/chunks/chunk-CLGD4ZFX-tRS89bnq.js +1 -0
  108. package/dist/chunks/chunk-DU6HZSFF-Bx48E1rg.js +125 -0
  109. package/dist/chunks/chunk-F27PBJKO-DtLva7y0.js +1 -0
  110. package/dist/chunks/chunk-FOHPRMQF-B8MMrnxV.js +255 -0
  111. package/dist/chunks/chunk-GMAD6QVW-D41KnniX.js +72 -0
  112. package/dist/chunks/chunk-GVQU2GXP-CVzgM_ui.js +1 -0
  113. package/dist/chunks/chunk-I5DQTOEV-CoecQT42.js +1 -0
  114. package/dist/chunks/chunk-ICYGCRZG-lH3opfCY.js +1 -0
  115. package/dist/chunks/chunk-IH6LHLGP-tD-j3Rsy.js +1 -0
  116. package/dist/chunks/chunk-IMKFNOWR-CL9pLQhV.js +231 -0
  117. package/dist/chunks/chunk-JWPE2WC7-Wk0BVLn5.js +1 -0
  118. package/dist/chunks/chunk-KI3K4JFJ-C-3Y_9er.js +1 -0
  119. package/dist/chunks/chunk-L3NEJ4N5-CmvrS7Dt.js +1 -0
  120. package/dist/chunks/chunk-LNGE3PJU-BP1fsJRz.js +34 -0
  121. package/dist/chunks/chunk-OSK3NFVY-C9uWOXTC.js +10 -0
  122. package/dist/chunks/chunk-OUJLGHUK-Cm55l9bx.js +2 -0
  123. package/dist/chunks/chunk-P2QGCYS3-C9bc1yiM.js +1 -0
  124. package/dist/chunks/chunk-POPQ4Y6H-P1s5xaxM.js +1 -0
  125. package/dist/chunks/chunk-PWAF6VOD-IORmPx9D.js +1 -0
  126. package/dist/chunks/chunk-SHT3W25Y-Bip4melZ.js +168 -0
  127. package/dist/chunks/chunk-SVP7TREG-BKCgUOuy.js +88 -0
  128. package/dist/chunks/chunk-TICWLB2K-12W2EmSx.js +206 -0
  129. package/dist/chunks/chunk-TLUHSLCS-DsqF476v.js +1 -0
  130. package/dist/chunks/chunk-UY3FDG6J-71d_M6t3.js +1 -0
  131. package/dist/chunks/chunk-XHIXRSVI-C2X1-xC6.js +1 -0
  132. package/dist/chunks/chunk-XXDRQBXY-Bl6AoSZF.js +1 -0
  133. package/dist/chunks/chunk-Y2CYZVJY-DjEHBC-3.js +1 -0
  134. package/dist/chunks/circle-check-RKAno__V.js +8 -0
  135. package/dist/chunks/circle-x-BB5x-D-8.js +8 -0
  136. package/dist/chunks/classDiagram-ZZMXUADV-CZrpYcfK.js +1 -0
  137. package/dist/chunks/classDiagram-v2-VYDZK3BY-CZrpYcfK.js +1 -0
  138. package/dist/chunks/clipboard-ERcMSMRH.js +1 -0
  139. package/dist/chunks/clock-CniP1gZS.js +8 -0
  140. package/dist/chunks/confirm-BtBBEqk8.js +1 -0
  141. package/dist/chunks/controls-C5dPckUT.js +1 -0
  142. package/dist/chunks/copy-ofLPH1I0.js +8 -0
  143. package/dist/chunks/cose-bilkent-JH36ORCC-D9OUqkk5.js +1 -0
  144. package/dist/chunks/createLucideIcon-BtwfYE6A.js +83 -0
  145. package/dist/chunks/cynefin-OW5HDTMX-B8_kUynj.js +1 -0
  146. package/dist/chunks/cynefinDiagram-5FMLGOSQ-DhQChnCg.js +62 -0
  147. package/dist/chunks/cytoscape.esm-wDUnleWx.js +339 -0
  148. package/dist/chunks/dagre-GXQ25YYZ-CfbwC_a5.js +4 -0
  149. package/dist/chunks/dagre-ZVAWSfFw.js +1 -0
  150. package/dist/chunks/data-B05HzECj.js +28 -0
  151. package/dist/chunks/date-picker-CPUxgHVv.js +1 -0
  152. package/dist/chunks/defaultLocale-BvxIcb9Y.js +1 -0
  153. package/dist/chunks/deleteAction-CCocr5uV.js +1 -0
  154. package/dist/chunks/diagram-D9cwc7QH.js +5 -0
  155. package/dist/chunks/diagram-S7CK7UJ4-DVPbdtMm.js +30 -0
  156. package/dist/chunks/diagram-UQ7AKVKN-D_ZBhGLL.js +41 -0
  157. package/dist/chunks/diagram-VSXAHHWV-Dqypp-OX.js +3 -0
  158. package/dist/chunks/diagram-VX7I27RA-CbWJVJ_L.js +24 -0
  159. package/dist/chunks/diagram-Z3DM3KII-CUyP4-RY.js +24 -0
  160. package/dist/chunks/direct-engine-thps0u7R.js +5 -0
  161. package/dist/chunks/dist-Bauqz5on.js +1 -0
  162. package/dist/chunks/dist-CWj_XYki.js +1 -0
  163. package/dist/chunks/dist-D_KGQS7-.js +11 -0
  164. package/dist/chunks/dist-DdW4yNBK.js +1 -0
  165. package/dist/chunks/docx-preview-CPN81HCr.js +11 -0
  166. package/dist/chunks/download--5IybXxz.js +8 -0
  167. package/dist/chunks/drawing-D2Qrun-P.js +48 -0
  168. package/dist/chunks/ebnfDiagram-PWID7BFC-C5NMigjm.js +1 -0
  169. package/dist/chunks/ellipsis-Dux1Nxa5.js +8 -0
  170. package/dist/chunks/email-ByshRsFv.js +61 -0
  171. package/dist/chunks/emailHtml-BAKcRhSm.js +1 -0
  172. package/dist/chunks/erDiagram-RLTQ6QDP-B5rUHJPJ.js +99 -0
  173. package/dist/chunks/eventmodeling-NTZA5JFV-C74no5BH.js +1 -0
  174. package/dist/chunks/export-BkwewH6Q.js +1 -0
  175. package/dist/chunks/export-DlTz5dc2.js +341 -0
  176. package/dist/chunks/eye-off-BtJoIT5n.js +8 -0
  177. package/dist/chunks/feedback-BnjMKZpz.js +1 -0
  178. package/dist/chunks/file-utils-DyvnVEoH.js +1 -0
  179. package/dist/chunks/fit-CsnhEncA.js +1 -0
  180. package/dist/chunks/flowDiagram-HODETNUW-BuMvaSeo.js +1 -0
  181. package/dist/chunks/form-CQutQFiD.js +1 -0
  182. package/dist/chunks/funnel-BwQjQI4Y.js +8 -0
  183. package/dist/chunks/ganttDiagram-EL5Y4UJY-DIAlbvVg.js +292 -0
  184. package/dist/chunks/geo-DR0fL7r2.js +38 -0
  185. package/dist/chunks/gitGraph-4MIJSDKK-Ce5mOfp1.js +1 -0
  186. package/dist/chunks/gitGraphDiagram-WWUBYQGX-DN3G9xiQ.js +106 -0
  187. package/dist/chunks/graphlib-CYBMTUbW.js +1 -0
  188. package/dist/chunks/icons-CbRx5Om7.js +1 -0
  189. package/dist/chunks/illustrations-DT1eq6jI.js +1 -0
  190. package/dist/chunks/image-ez9hvzKT.js +17 -0
  191. package/dist/chunks/index.es-OAWlVkoK.js +16 -0
  192. package/dist/chunks/info-A6RAGUB7-BP6lMBIR.js +1 -0
  193. package/dist/chunks/info-BQa8C31Y.js +8 -0
  194. package/dist/chunks/infoDiagram-27XIBGKW-BhQtr_Ti.js +2 -0
  195. package/dist/chunks/init-Ca_Ibf4y.js +1 -0
  196. package/dist/chunks/ishikawaDiagram-5VMMS53U-CLR6CAi4.js +70 -0
  197. package/dist/chunks/journeyDiagram-3NMN7TZE-_-Q7sjsP.js +139 -0
  198. package/dist/chunks/json-viewer-DHYRjY8I.js +1 -0
  199. package/dist/chunks/jszip.min-hNOoGCeG.js +14 -0
  200. package/dist/chunks/kanban-definition-UXKFOSKX-D97mHeUZ.js +89 -0
  201. package/dist/chunks/katex-D5qu7EYh.js +257 -0
  202. package/dist/chunks/layout-grid-Bp9bwiQZ.js +8 -0
  203. package/dist/chunks/lib-BlRm3nk1.js +15 -0
  204. package/dist/chunks/lib-C1nFUu19.js +4 -0
  205. package/dist/chunks/lib-CqYXBtHb.js +1 -0
  206. package/dist/chunks/libarchive-DRzzJvQl.js +7 -0
  207. package/dist/chunks/line-BV7qVRkM.js +1 -0
  208. package/dist/chunks/line-qVHaOdPp.js +1 -0
  209. package/dist/chunks/linear-DXABSWHW.js +1 -0
  210. package/dist/chunks/list-0CbyOlT9.js +1 -0
  211. package/dist/chunks/list-DCcWnjUg.js +8 -0
  212. package/dist/chunks/listTableProps-DDynsnLF.js +1 -0
  213. package/dist/chunks/log-in-OzbNes8i.js +8 -0
  214. package/dist/chunks/lucide-react-VfAPsQQ5.js +8 -0
  215. package/dist/chunks/maplibre-gl-Bxi83GUP.js +819 -0
  216. package/dist/chunks/maplibre-shared-Oo0L8Lll.js +6 -0
  217. package/dist/chunks/maximize-CnmQ11E7.js +8 -0
  218. package/dist/chunks/media-DoGe_p4O.js +1 -0
  219. package/dist/chunks/menu-mQgsexFx.js +15 -0
  220. package/dist/chunks/mermaid-parser.core-DvCAQkzY.js +3 -0
  221. package/dist/chunks/mermaid.core-CxOC6yPr.js +15 -0
  222. package/dist/chunks/messages-CFyOVxEM.js +1 -0
  223. package/dist/chunks/mindmap-definition-YA3MSWOX-A2UgnMwx.js +96 -0
  224. package/dist/chunks/minimize-Bpau_zCe.js +8 -0
  225. package/dist/chunks/msg-BzZbudMm.js +7 -0
  226. package/dist/chunks/ofd-C7DKqJ6Z.js +33 -0
  227. package/dist/chunks/ofd-DrJyXIpS.js +14 -0
  228. package/dist/chunks/openDocument-DGzqlyJg.js +12 -0
  229. package/dist/chunks/options-B65xkxOY.js +1 -0
  230. package/dist/chunks/ordinal-NuFkISw7.js +1 -0
  231. package/dist/chunks/packet-AYTQ26CC-DS6h3a5l.js +1 -0
  232. package/dist/chunks/panzoom.es-DnuzxUQi.js +1 -0
  233. package/dist/chunks/parse-6ZQGx714.js +1 -0
  234. package/dist/chunks/parser-DC3PvpL4.js +72 -0
  235. package/dist/chunks/path-VUNELGFR.js +1 -0
  236. package/dist/chunks/pegDiagram-XKGWAZYB-DxQqpKfh.js +1 -0
  237. package/dist/chunks/pie-WAS4IAKB-BsaegmNA.js +1 -0
  238. package/dist/chunks/pieDiagram-E7YTZNPT-BUsnkTkJ.js +39 -0
  239. package/dist/chunks/postal-mime-DMcA5b7k.js +28 -0
  240. package/dist/chunks/ppt-B0WY5Gks.js +30 -0
  241. package/dist/chunks/ppt-BIiNnCyj.js +1 -0
  242. package/dist/chunks/pptx-DX5KDFZ7.js +109 -0
  243. package/dist/chunks/preload-helper-C-73SErw.js +1 -0
  244. package/dist/chunks/print-mask-Dguzv0rv.js +17 -0
  245. package/dist/chunks/printLayout-oeudvFkr.js +34 -0
  246. package/dist/chunks/printMask-LefOTJqk.js +8 -0
  247. package/dist/chunks/psd-hjeNFQZ-.js +36 -0
  248. package/dist/chunks/purify.es-BsWMI_aG.js +5 -0
  249. package/dist/chunks/quadrantDiagram-AXDQQJYC-BmQNSzhY.js +7 -0
  250. package/dist/chunks/radar-RG4KPBEZ-BoHdw2h7.js +1 -0
  251. package/dist/chunks/railroad-74A4TZTK-BifJffb4.js +1 -0
  252. package/dist/chunks/railroad-abnf-HS5TGJTU-CMEPumRO.js +1 -0
  253. package/dist/chunks/railroad-ebnf-LZEXJU2U-B06BgAeN.js +1 -0
  254. package/dist/chunks/railroad-peg-WCYAUIDC-CMjriUEs.js +1 -0
  255. package/dist/chunks/railroadDiagram-O6MQD6OU-B2t5KY26.js +1 -0
  256. package/dist/chunks/react-runtime-x2lFbSKq.js +11 -0
  257. package/dist/chunks/refresh-cw-Dz8O9-Hp.js +8 -0
  258. package/dist/chunks/rendered-slot-YhfmcMJr.js +1 -0
  259. package/dist/chunks/requirementDiagram-BXWQKSXE-CBBfNOAp.js +84 -0
  260. package/dist/chunks/rolldown-runtime-BKuNeK48.js +1 -0
  261. package/dist/chunks/rotate-ccw-D2__Zisi.js +8 -0
  262. package/dist/chunks/rotate-cw-BSTVLlWY.js +8 -0
  263. package/dist/chunks/rough.esm-CVrpq1dW.js +1 -0
  264. package/dist/chunks/sankeyDiagram-P5KCCOFB-Cp8SrFyb.js +40 -0
  265. package/dist/chunks/save-w-NwiMMY.js +8 -0
  266. package/dist/chunks/search-DYZU68h1.js +8 -0
  267. package/dist/chunks/search-filters-CRIhZ0gL.js +1 -0
  268. package/dist/chunks/sequenceDiagram-WJ2MYXX4-PDtVfEoj.js +162 -0
  269. package/dist/chunks/shield-alert-De_Hx56I.js +8 -0
  270. package/dist/chunks/sizeCapture-INFHLROL-DA-kAaXB.js +1 -0
  271. package/dist/chunks/skeleton-CrjMjJNr.js +1 -0
  272. package/dist/chunks/spreadsheet-BzbBEhmY.js +1 -0
  273. package/dist/chunks/spreadsheet-LR3SOG-x.js +58 -0
  274. package/dist/chunks/sql-wasm-browser-CFddXd9f.js +2 -0
  275. package/dist/chunks/src-C1iDJpBK.js +1 -0
  276. package/dist/chunks/src-vLpLkuQx.js +1 -0
  277. package/dist/chunks/stateDiagram-D77RDMKH-C1Sx8KUD.js +1 -0
  278. package/dist/chunks/stateDiagram-v2-MP3YSRHH-7wYLSzBX.js +1 -0
  279. package/dist/chunks/swimlanes-42K2YHIH-BmybX9eL.js +1 -0
  280. package/dist/chunks/swimlanesDiagram-VR7AAH4N-DxhXklfm.js +8 -0
  281. package/dist/chunks/tabs-BobA_IcO.js +1 -0
  282. package/dist/chunks/theme-controller-D-ATwFal.js +1 -0
  283. package/dist/chunks/timeline-definition-24CTP7MA-QS9QNm2i.js +120 -0
  284. package/dist/chunks/tinycolor-CG1wnM-U.js +1 -0
  285. package/dist/chunks/togeojson.es-BE8iM7U6.js +1 -0
  286. package/dist/chunks/toolbar-controls-CThS0xuP.js +15 -0
  287. package/dist/chunks/trash-tHBT8Mpw.js +8 -0
  288. package/dist/chunks/treeView-Q6P3EWNA-CN0l7whJ.js +1 -0
  289. package/dist/chunks/treemap-WGGIJYW6-C4P1fQxS.js +1 -0
  290. package/dist/chunks/typography-DKK_iHcj.js +1 -0
  291. package/dist/chunks/ui-BFsHoY7a.js +1 -0
  292. package/dist/chunks/ui-utils-ClxYogUQ.js +1 -0
  293. package/dist/chunks/upload-M-n6woFv.js +8 -0
  294. package/dist/chunks/useCrudOperationColumn-D935tixd.js +1 -0
  295. package/dist/chunks/useListPage-CbcOQG4m.js +1 -0
  296. package/dist/chunks/useModalViewport-HF7te75S.js +1 -0
  297. package/dist/chunks/useRowSelection-4GOMFmjG.js +1 -0
  298. package/dist/chunks/useStatusToggle-B2qZaoc-.js +1 -0
  299. package/dist/chunks/user-round-kYfBkPNu.js +15 -0
  300. package/dist/chunks/users-BXZLb4TY.js +8 -0
  301. package/dist/chunks/vennDiagram-4TSXK5OY-CVd73ycc.js +34 -0
  302. package/dist/chunks/view-B8ZvC8z3.js +1 -0
  303. package/dist/chunks/viewer-Ct88ypIL.js +24 -0
  304. package/dist/chunks/wardley-WFR3VGLG-cG9pRFwD.js +1 -0
  305. package/dist/chunks/wardleyDiagram-VM6X3IG4-B42d0Gqz.js +78 -0
  306. package/dist/chunks/wordDoc-BZY3ZnxN.js +152 -0
  307. package/dist/chunks/wordDocx-Bt2mlB3C.js +77 -0
  308. package/dist/chunks/wordMl-Y_ghyTZ8.js +1 -0
  309. package/dist/chunks/worker-engine-B4e92GsN.js +17369 -0
  310. package/dist/chunks/x-Ak9hw1R9.js +8 -0
  311. package/dist/chunks/xmind-CF9YwkOD.js +58 -0
  312. package/dist/chunks/xychartDiagram-S5SC5T6Z-B_Owv9Ho.js +7 -0
  313. package/dist/file-viewer/flyfish-viewer-assets.json +46 -0
  314. package/dist/file-viewer/vendor/docx/docx.worker.js +5 -0
  315. package/dist/file-viewer/vendor/docx/jszip.min.js +13 -0
  316. package/dist/file-viewer/vendor/xlsx/sheet.worker.js +107 -0
  317. package/dist/file-viewer/wasm/data/sql-wasm.wasm +0 -0
  318. package/dist/index.d.ts +5 -0
  319. package/dist/index.js +1 -0
  320. package/dist/public/avatars/avatar-01.svg +1 -0
  321. package/dist/public/avatars/avatar-02.svg +1 -0
  322. package/dist/public/avatars/avatar-03.svg +1 -0
  323. package/dist/public/avatars/avatar-04.svg +1 -0
  324. package/dist/public/avatars/avatar-05.svg +1 -0
  325. package/dist/public/avatars/avatar-06.svg +1 -0
  326. package/dist/public/avatars/avatar-07.svg +1 -0
  327. package/dist/public/avatars/avatar-08.svg +1 -0
  328. package/dist/public/avatars/avatar-09.svg +1 -0
  329. package/dist/public/avatars/avatar-10.svg +1 -0
  330. package/dist/public/avatars/avatar-11.svg +1 -0
  331. package/dist/public/avatars/avatar-12.svg +1 -0
  332. package/dist/public/monaco/vs/abap-D-t0cyap.js +1 -0
  333. package/dist/public/monaco/vs/apex-CcIm7xu6.js +1 -0
  334. package/dist/public/monaco/vs/assets/css.worker-URu8fCFR.js +97 -0
  335. package/dist/public/monaco/vs/assets/editor.worker-lj3bdIIn.js +30 -0
  336. package/dist/public/monaco/vs/assets/editorWebWorkerMain-CA_vMoUU.js +30 -0
  337. package/dist/public/monaco/vs/assets/html.worker-D1SL3iM8.js +474 -0
  338. package/dist/public/monaco/vs/assets/json.worker-CoJx_OPf.js +62 -0
  339. package/dist/public/monaco/vs/assets/ts.worker-BWKtMYOk.js +67722 -0
  340. package/dist/public/monaco/vs/azcli-BA0tQDCg.js +1 -0
  341. package/dist/public/monaco/vs/basic-languages/monaco.contribution.js +1 -0
  342. package/dist/public/monaco/vs/bat-C397hTD6.js +1 -0
  343. package/dist/public/monaco/vs/bicep-DF5aW17k.js +2 -0
  344. package/dist/public/monaco/vs/cameligo-plsz8qhj.js +1 -0
  345. package/dist/public/monaco/vs/clojure-Y2auQMzK.js +1 -0
  346. package/dist/public/monaco/vs/coffee-Bu45yuWE.js +1 -0
  347. package/dist/public/monaco/vs/cpp-CkKPQIni.js +1 -0
  348. package/dist/public/monaco/vs/csharp-CX28MZyh.js +1 -0
  349. package/dist/public/monaco/vs/csp-D8uWnyxW.js +1 -0
  350. package/dist/public/monaco/vs/css-CaeNmE3S.js +3 -0
  351. package/dist/public/monaco/vs/css.worker-CyhWkhHo.js +1 -0
  352. package/dist/public/monaco/vs/cssMode-CV6Ay48H.js +1 -0
  353. package/dist/public/monaco/vs/cypher-DVThT8BS.js +1 -0
  354. package/dist/public/monaco/vs/dart-CmGfCvrO.js +1 -0
  355. package/dist/public/monaco/vs/dockerfile-CZqqYdch.js +1 -0
  356. package/dist/public/monaco/vs/ecl-30fUercY.js +1 -0
  357. package/dist/public/monaco/vs/editor/editor.main.css +1 -0
  358. package/dist/public/monaco/vs/editor/editor.main.js +1 -0
  359. package/dist/public/monaco/vs/editor-KLE6jdfb.js +831 -0
  360. package/dist/public/monaco/vs/editor.js +1 -0
  361. package/dist/public/monaco/vs/editorWorkerHost-fVE1cjcC.js +35 -0
  362. package/dist/public/monaco/vs/elixir-xjPaIfzF.js +1 -0
  363. package/dist/public/monaco/vs/flow9-DqtmStfK.js +1 -0
  364. package/dist/public/monaco/vs/freemarker2-FWreY7v7.js +3 -0
  365. package/dist/public/monaco/vs/fsharp-BOMdg4U1.js +1 -0
  366. package/dist/public/monaco/vs/go-D_hbi-Jt.js +1 -0
  367. package/dist/public/monaco/vs/graphql-CKUU4kLG.js +1 -0
  368. package/dist/public/monaco/vs/handlebars-CZi4pHCH.js +1 -0
  369. package/dist/public/monaco/vs/hcl-DTaboeZW.js +1 -0
  370. package/dist/public/monaco/vs/html-j_7ZTNRU.js +1 -0
  371. package/dist/public/monaco/vs/html.worker-CA3iAimZ.js +1 -0
  372. package/dist/public/monaco/vs/htmlMode-27by_KM4.js +1 -0
  373. package/dist/public/monaco/vs/index-049xrXrp.js +1 -0
  374. package/dist/public/monaco/vs/index-CBVt3dzv.js +5 -0
  375. package/dist/public/monaco/vs/index.js +1 -0
  376. package/dist/public/monaco/vs/ini-CsNwO04R.js +1 -0
  377. package/dist/public/monaco/vs/initialize-DL0l1TGY.js +1 -0
  378. package/dist/public/monaco/vs/java-CI4ZMsH9.js +1 -0
  379. package/dist/public/monaco/vs/javascript-DTJl4Jn1.js +1 -0
  380. package/dist/public/monaco/vs/json.worker-BizpAl9O.js +1 -0
  381. package/dist/public/monaco/vs/jsonMode-DLUiMUrI.js +1 -0
  382. package/dist/public/monaco/vs/julia-BwzEvaQw.js +1 -0
  383. package/dist/public/monaco/vs/kotlin-IUYPiTV8.js +1 -0
  384. package/dist/public/monaco/vs/language/css/monaco.contribution.js +1 -0
  385. package/dist/public/monaco/vs/language/html/monaco.contribution.js +1 -0
  386. package/dist/public/monaco/vs/language/json/monaco.contribution.js +1 -0
  387. package/dist/public/monaco/vs/language/typescript/monaco.contribution.js +1 -0
  388. package/dist/public/monaco/vs/less-C0eDYdqa.js +2 -0
  389. package/dist/public/monaco/vs/lexon-iON-Kj97.js +1 -0
  390. package/dist/public/monaco/vs/liquid-CLJYelW6.js +1 -0
  391. package/dist/public/monaco/vs/loader.js +1368 -0
  392. package/dist/public/monaco/vs/lspLanguageFeatures-BIkJOWLw.js +2 -0
  393. package/dist/public/monaco/vs/lua-DtygF91M.js +1 -0
  394. package/dist/public/monaco/vs/m3-CsR4AuFi.js +1 -0
  395. package/dist/public/monaco/vs/main-BEx-Fmlo.js +15 -0
  396. package/dist/public/monaco/vs/main-DsK8pnKg.js +3 -0
  397. package/dist/public/monaco/vs/markdown-C_rD0bIw.js +1 -0
  398. package/dist/public/monaco/vs/mdx-CpzZIPHF.js +1 -0
  399. package/dist/public/monaco/vs/mips-CiYP61RB.js +1 -0
  400. package/dist/public/monaco/vs/monaco.contribution-9cKT3C7t.js +1 -0
  401. package/dist/public/monaco/vs/monaco.contribution-BE88ZNGY.js +1 -0
  402. package/dist/public/monaco/vs/monaco.contribution-BPhsneLd.js +1 -0
  403. package/dist/public/monaco/vs/monaco.contribution-BgRy6xDf.js +1 -0
  404. package/dist/public/monaco/vs/msdax-C38-sJlp.js +1 -0
  405. package/dist/public/monaco/vs/mysql-CdtbpvbG.js +1 -0
  406. package/dist/public/monaco/vs/nls/lang/cs.d.ts +1 -0
  407. package/dist/public/monaco/vs/nls/lang/cs.js +9 -0
  408. package/dist/public/monaco/vs/nls/lang/de.d.ts +1 -0
  409. package/dist/public/monaco/vs/nls/lang/de.js +9 -0
  410. package/dist/public/monaco/vs/nls/lang/es.d.ts +1 -0
  411. package/dist/public/monaco/vs/nls/lang/es.js +9 -0
  412. package/dist/public/monaco/vs/nls/lang/fr.d.ts +1 -0
  413. package/dist/public/monaco/vs/nls/lang/fr.js +9 -0
  414. package/dist/public/monaco/vs/nls/lang/it.d.ts +1 -0
  415. package/dist/public/monaco/vs/nls/lang/it.js +9 -0
  416. package/dist/public/monaco/vs/nls/lang/ja.d.ts +1 -0
  417. package/dist/public/monaco/vs/nls/lang/ja.js +9 -0
  418. package/dist/public/monaco/vs/nls/lang/ko.d.ts +1 -0
  419. package/dist/public/monaco/vs/nls/lang/ko.js +9 -0
  420. package/dist/public/monaco/vs/nls/lang/pl.d.ts +1 -0
  421. package/dist/public/monaco/vs/nls/lang/pl.js +9 -0
  422. package/dist/public/monaco/vs/nls/lang/pt-br.d.ts +1 -0
  423. package/dist/public/monaco/vs/nls/lang/pt-br.js +9 -0
  424. package/dist/public/monaco/vs/nls/lang/ru.d.ts +1 -0
  425. package/dist/public/monaco/vs/nls/lang/ru.js +9 -0
  426. package/dist/public/monaco/vs/nls/lang/tr.d.ts +1 -0
  427. package/dist/public/monaco/vs/nls/lang/tr.js +9 -0
  428. package/dist/public/monaco/vs/nls/lang/zh-cn.d.ts +1 -0
  429. package/dist/public/monaco/vs/nls/lang/zh-cn.js +9 -0
  430. package/dist/public/monaco/vs/nls/lang/zh-tw.d.ts +1 -0
  431. package/dist/public/monaco/vs/nls/lang/zh-tw.js +9 -0
  432. package/dist/public/monaco/vs/nls.messages-loader.js +1 -0
  433. package/dist/public/monaco/vs/objective-c-CntZFaHX.js +1 -0
  434. package/dist/public/monaco/vs/pascal-r6kuqfl_.js +1 -0
  435. package/dist/public/monaco/vs/pascaligo-BiXoTmXh.js +1 -0
  436. package/dist/public/monaco/vs/perl-DABw_TcH.js +1 -0
  437. package/dist/public/monaco/vs/pgsql-me_jFXeX.js +1 -0
  438. package/dist/public/monaco/vs/php-D_kh-9LK.js +1 -0
  439. package/dist/public/monaco/vs/pla-VfZjczW0.js +1 -0
  440. package/dist/public/monaco/vs/postiats-BBSzz8Pk.js +1 -0
  441. package/dist/public/monaco/vs/powerquery-Dt-g_2cc.js +1 -0
  442. package/dist/public/monaco/vs/powershell-B-7ap1zc.js +1 -0
  443. package/dist/public/monaco/vs/protobuf-BmtuEB1A.js +2 -0
  444. package/dist/public/monaco/vs/pug-BRpRNeEb.js +1 -0
  445. package/dist/public/monaco/vs/python-CqWUUgfu.js +1 -0
  446. package/dist/public/monaco/vs/qsharp-BzsFaUU9.js +1 -0
  447. package/dist/public/monaco/vs/r-f8dDdrp4.js +1 -0
  448. package/dist/public/monaco/vs/razor-hok5y9Km.js +1 -0
  449. package/dist/public/monaco/vs/redis-fvZQY4PI.js +1 -0
  450. package/dist/public/monaco/vs/redshift-45Et0LQi.js +1 -0
  451. package/dist/public/monaco/vs/restructuredtext-C7UUFKFD.js +1 -0
  452. package/dist/public/monaco/vs/ruby-CZO8zYTz.js +1 -0
  453. package/dist/public/monaco/vs/rust-Bfetafyc.js +1 -0
  454. package/dist/public/monaco/vs/sb-3GYllVck.js +1 -0
  455. package/dist/public/monaco/vs/scala-foMgrKo1.js +1 -0
  456. package/dist/public/monaco/vs/scheme-CHdMtr7p.js +1 -0
  457. package/dist/public/monaco/vs/scss-C1cmLt9V.js +3 -0
  458. package/dist/public/monaco/vs/shell-ClXCKCEW.js +1 -0
  459. package/dist/public/monaco/vs/solidity-MZ6ExpPy.js +1 -0
  460. package/dist/public/monaco/vs/sophia-DWkuSsPQ.js +1 -0
  461. package/dist/public/monaco/vs/sparql-AUGFYSyk.js +1 -0
  462. package/dist/public/monaco/vs/sql-32GpJSV2.js +1 -0
  463. package/dist/public/monaco/vs/st-CuDFIVZ_.js +1 -0
  464. package/dist/public/monaco/vs/swift-t-PfMj7W.js +1 -0
  465. package/dist/public/monaco/vs/systemverilog-Ch4vA8Yt.js +1 -0
  466. package/dist/public/monaco/vs/tcl-D74tq1nH.js +1 -0
  467. package/dist/public/monaco/vs/toggleHighContrast-qGX7E9o7.js +61 -0
  468. package/dist/public/monaco/vs/ts.worker-2QLmBukE.js +1 -0
  469. package/dist/public/monaco/vs/tsMode-B0S_kp2q.js +11 -0
  470. package/dist/public/monaco/vs/twig-C6taOxMV.js +1 -0
  471. package/dist/public/monaco/vs/typescript-_2t_511t.js +1 -0
  472. package/dist/public/monaco/vs/typespec-8OfoLt6R.js +1 -0
  473. package/dist/public/monaco/vs/vb-Dyb2648j.js +1 -0
  474. package/dist/public/monaco/vs/wgsl-BhLXMOR0.js +298 -0
  475. package/dist/public/monaco/vs/workers-BBttULjf.js +1 -0
  476. package/dist/public/monaco/vs/xml-cZjNDqDT.js +1 -0
  477. package/dist/public/monaco/vs/yaml-A1fOIdH6.js +1 -0
  478. package/dist/src-LbWcrSWe.js +3 -0
  479. package/dist/styles.css +2 -0
  480. package/dist/styles.d.ts +1 -0
  481. package/dist/types.d.ts +1 -0
  482. package/package.json +113 -4
@@ -0,0 +1,129 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,r as n}from"./chunk-Y2CYZVJY-DjEHBC-3.js";import{C as r,S as i,t as a,w as o}from"./src-C1iDJpBK.js";import{a as s,b as c,c as l,ct as u,j as d,lt as f,s as p,x as m}from"./chunk-DU6HZSFF-Bx48E1rg.js";import{n as h,t as g}from"./channel-C9Dr7Z-W.js";import{A as _,B as v,F as y,G as b,H as x,I as S,J as C,K as w,L as T,M as E,N as D,P as O,Q as k,R as A,U as j,V as M,W as ee,X as te,Y as ne,Z as re,b as ie,d as ae,j as oe,k as se,l as ce,q as le,w as ue,y as de,z as fe}from"./chunk-75Z2AOVW-IO9R6faP.js";import{n as pe}from"./chunk-PWAF6VOD-IORmPx9D.js";import{i as me}from"./chunk-GMAD6QVW-D41KnniX.js";import{n as he,t as ge}from"./chunk-5VM5RSS4-DMlsEAcl.js";import{n as _e}from"./chunk-P2QGCYS3-C9bc1yiM.js";import{r as ve}from"./chunk-4HAMMTFA-Aw59LwS3.js";import{a as ye,i as be,r as xe}from"./chunk-GVQU2GXP-CVzgM_ui.js";import{a as Se,c as Ce,i as we,l as Te,o as Ee}from"./chunk-OSK3NFVY-C9uWOXTC.js";import{n as De,t as Oe}from"./graphlib-CYBMTUbW.js";function ke(e){return Array.isArray(e)}function Ae(e){if(ue(e))return e;let t=k(e);if(!je(e))return{};if(ke(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(ie(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?Ne(r,e):N(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=/* @__PURE__ */ new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=/* @__PURE__ */ new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return N(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return Pe(n,e),N(n,e),Me(n,e),n}function je(e){switch(k(e)){case se:case oe:case _:case D:case E:case O:case y:case S:case v:case A:case fe:case M:case x:case j:case ee:case b:case w:case le:case te:case re:case C:case ne:return!0;default:return!1}}function N(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function Me(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function Ne(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function Pe(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}function Fe(){return(Fe=e((()=>{T(),de()})))()}function Ie(e){switch(o.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return o.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}function Le(e){switch(o.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}function Re(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}function ze(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}function Be(e){return e.includes(`==`)?`thick`:`normal`}function Ve(e){return e.includes(`.-`)?`dotted`:`solid`}function P(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function F(e,t,n=0,r=0,i=8){o.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,n),e?.size?.width||(e.size={width:n,height:r,x:0,y:0});let a=0,s=0;if(e.children?.length>0){for(let n of e.children)F(n,t,0,0,i);let c=rt(e);a=c.width,s=c.height,o.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,s);for(let t of e.children)t.size&&(o.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${s} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=s,t.size.x=0,t.size.y=0,o.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${s}`));for(let n of e.children)F(n,t,a,s,i);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l<u&&(d=l);let f=Math.ceil(u/d),p=d*(a+i)+i,m=f*(s+i)+i;if(p<n){o.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${n} siblingHeight ${r} width ${p}`),p=n,m=r;let t=(n-d*i-i)/d,c=(r-f*i-i)/f;o.debug(`Size indata abc88`,e.id,`childWidth`,t,`maxWidth`,a),o.debug(`Size indata abc88`,e.id,`childHeight`,c,`maxHeight`,s),o.debug(`Size indata abc88 xSize`,d,`padding`,i);for(let n of e.children)n.size&&(n.size.width=t,n.size.height=c,n.size.x=0,n.size.y=0)}if(o.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${f} columns ${l}${e.children.length} width=${Math.max(p,e.size?.width||0)}`),p<(e?.size?.width||0)){p=e?.size?.width||0;let t=l>0?Math.min(e.children.length,l):e.children.length;if(t>0){let n=(p-t*i-i)/t;o.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,n);for(let t of e.children)t.size&&(t.size.width=n)}}e.size={width:p,height:m,x:0,y:0}}o.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function I(e,t,n=8){o.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(o.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*n;o.debug(`widthOfChildren 88`,a,`posX`);let s=/* @__PURE__ */ new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=P(r,t),i=s.get(e)??0;n.size.height>i&&s.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let c=/* @__PURE__ */ new Map;{let e=0,t=[...s.keys()].sort((e,t)=>e-t);for(let r of t)c.set(r,e),e+=(s.get(r)??0)+n}let l=0;o.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,d=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:f,height:p}=i.size,{px:m,py:h}=P(r,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,o.debug(`New row in layout for block`,e.id,` and child `,i.id,d)),o.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${l} (px, py) ${m},${h} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${f}${n}`),a.size){let e=f/2;i.size.x=u+n+e,o.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${u} new startingPosX${i.size.x} ${e} padding=${n} width=${f} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(i?.widthInColumns??1)/2}`),u=i.size.x+e;let t=c.get(h)??0,r=s.get(h)??p;i.size.y=a.size.y-a.size.height/2+t+r/2+n,o.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${u}${n}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${f*(i?.widthInColumns??1)/2}`)}i.children&&I(i,t,n);let g=i?.widthInColumns??1;r>0&&(g=Math.min(g,r-l%r)),l+=g,o.debug(`abc88 columnsPos`,i,l)}}o.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function L(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2<t&&(t=a-s/2),o-c/2<n&&(n=o-c/2),a+s/2>r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=L(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}function He(e){let t=e.getBlock(`root`);if(!t)return;let n=m()?.block?.padding??8;F(t,e,0,0,n),I(t,e,n),o.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:s}=L(t),c=s-i;return{x:r,y:i,width:a-r,height:c}}function R(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=(r?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,s=`rect`,l;switch(r.type){case`round`:o=5,s=`rect`;break;case`composite`:o=0,s=`composite`,l=0;break;case`square`:s=`rect`;break;case`diamond`:s=`question`;break;case`hexagon`:s=`hexagon`;break;case`block_arrow`:s=`block_arrow`;break;case`odd`:s=`rect_left_inv_arrow`;break;case`lean_right`:s=`lean_right`;break;case`lean_left`:s=`lean_left`;break;case`trapezoid`:s=`trapezoid`;break;case`inv_trapezoid`:s=`inv_trapezoid`;break;case`rect_left_inv_arrow`:s=`rect_left_inv_arrow`;break;case`circle`:s=`circle`;break;case`ellipse`:s=`ellipse`;break;case`stadium`:s=`stadium`;break;case`subroutine`:s=`subroutine`;break;case`cylinder`:s=`cylinder`;break;case`group`:s=`rect`;break;case`doublecircle`:s=`doublecircle`;break;default:s=`rect`}let u=ce(r?.styles??[]),d=r.label,f=r.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:u.labelStyle,shape:s,label:d,labelText:d,rx:o,ry:o,class:i,cssClasses:i,cssStyles:r?.styles??[],cssCompiledStyles:a,style:u.style,id:r.id,domId:p?`${p}-${r.id}`:r.id,isGroup:!1,directions:r.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||1/0,x:f.x,y:f.y,positioned:n,intersect:void 0,padding:l??c()?.block?.padding??0,widthInColumns:r.widthInColumns??1}}async function Ue(e,t,n){let r=R(t,n,!1);if(t.type===`group`)return;let i=c(),a=await be(e,r,{config:i}),o=a.node()?.getBBox()??{width:0,height:0},s=n.getBlock(r.id);s.size={width:o.width,height:o.height,x:0,y:0,node:a},n.setBlock(s),a.remove()}async function We(e,t,n){let r=R(t,n,!0);if(n.getBlock(r.id).type!==`space`){let n=c();await be(e,r,{config:n}),t.intersect=r?.intersect,ye(r)}}async function z(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await z(e,i.children,n,r)}async function Ge(e,t,n){await z(e,t,n,Ue)}async function Ke(e,t,n){await z(e,t,n,We)}async function qe(e,t,n,r,i){let a=new De({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,c=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],l=i?`${i}-${n.id}`:n.id,u=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;Se(e,{...n,id:l,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:u},{},`block`,a.node(n.start),a.node(n.end),i),n.label&&(await Ee(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:u}),Te({...n,x:c[1].x,y:c[1].y},{originalPath:c}))}}}var B,Je,V,H,U,W,G,Ye,K,q,J,Xe,Ze,Qe,$e,Y,X,Z,et,Q,tt,$,nt,rt,it;function at(){return(at=e((()=>{he(),we(),xe(),ve(),_e(),me(),pe(),ae(),d(),r(),n(),Fe(),h(),u(),a(),Oe(),B=(function(){var e=/* @__PURE__ */ t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:/* @__PURE__ */ t(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:/* @__PURE__ */ t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:o},{10:n,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:/* @__PURE__ */ t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:/* @__PURE__ */ t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=/* @__PURE__ */ (function(){return{EOF:1,parseError:/* @__PURE__ */ t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:/* @__PURE__ */ t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:/* @__PURE__ */ t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:/* @__PURE__ */ t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:/* @__PURE__ */ t(function(){return this._more=!0,this},`more`),reject:/* @__PURE__ */ t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:/* @__PURE__ */ t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:/* @__PURE__ */ t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:/* @__PURE__ */ t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:/* @__PURE__ */ t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:/* @__PURE__ */ t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:/* @__PURE__ */ t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:/* @__PURE__ */ t(function(){return this.next()||this.lex()},`lex`),begin:/* @__PURE__ */ t(function(e){this.conditionStack.push(e)},`begin`),popState:/* @__PURE__ */ t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:/* @__PURE__ */ t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:/* @__PURE__ */ t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:/* @__PURE__ */ t(function(e){this.begin(e)},`pushState`),stateStackSize:/* @__PURE__ */ t(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:/* @__PURE__ */ t(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return t(v,`Parser`),v.prototype=_,_.Parser=v,new v})(),B.parser=B,Je=B,V=/* @__PURE__ */ new Map,H=[],U=/* @__PURE__ */ new Map,W=`color`,G=`fill`,Ye=`bgFill`,K=`,`,q=/* @__PURE__ */ new Map,J=``,Xe=/* @__PURE__ */ t(e=>p.sanitizeText(e,m()),`sanitizeText`),Ze=/* @__PURE__ */ t(function(e,t=``){let n=q.get(e);n||(n={id:e,styles:[],textStyles:[]},q.set(e,n)),t?.split(K).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(W).exec(e)){let e=t.replace(G,Ye).replace(W,G);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),Qe=/* @__PURE__ */ t(function(e,t=``){let n=V.get(e);t!=null&&(n.styles=t.split(K))},`addStyle2Node`),$e=/* @__PURE__ */ t(function(e,t){e.split(`,`).forEach(function(e){let n=V.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},V.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),Y=/* @__PURE__ */ t((e,t)=>{let n=e.flat(),r=[],i=n.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of n)if(typeof i==`number`&&i>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>i&&o.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${i}`),e.label&&=Xe(e.label),e.type===`classDef`)Ze(e.id,e.css);else if(e.type===`applyClass`)$e(e.id,e?.styleClass??``);else if(e.type===`applyStyles`)e?.stylesStr&&Qe(e.id,e?.stylesStr);else if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(U.get(e.id)??0)+1;U.set(e.id,t),e.id=t+`-`+e.id,H.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=V.get(e.id);if(t===void 0?V.set(e.id,e):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&Y(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n<t;n++){let t=Ae(e);t.id=t.id+`-`+n,V.set(t.id,t),r.push(t)}}else t===void 0&&r.push(e)}t.children=r},`populateBlockDatabase`),X=[],Z={id:`root`,type:`composite`,children:[],columns:-1},et=/* @__PURE__ */ t(()=>{o.debug(`Clear called`),s(),Z={id:`root`,type:`composite`,children:[],columns:-1},V=/* @__PURE__ */ new Map([[`root`,Z]]),X=[],q=/* @__PURE__ */ new Map,H=[],U=/* @__PURE__ */ new Map,J=``},`clear`),t(Ie,`typeStr2Type`),t(Le,`edgeTypeStr2Type`),t(Re,`edgeStrToEdgeData`),t(ze,`edgeStrToEdgeStartData`),t(Be,`edgeStrToThickness`),t(Ve,`edgeStrToPattern`),Q=0,tt={getConfig:/* @__PURE__ */ t(()=>c().block,`getConfig`),typeStr2Type:Ie,edgeTypeStr2Type:Le,edgeStrToEdgeData:Re,edgeStrToEdgeStartData:ze,edgeStrToThickness:Be,edgeStrToPattern:Ve,getLogger:/* @__PURE__ */ t(()=>o,`getLogger`),getBlocksFlat:/* @__PURE__ */ t(()=>[...V.values()],`getBlocksFlat`),getBlocks:/* @__PURE__ */ t(()=>X||[],`getBlocks`),getEdges:/* @__PURE__ */ t(()=>H,`getEdges`),setHierarchy:/* @__PURE__ */ t(e=>{Z.children=e,Y(e,Z),X=Z.children},`setHierarchy`),getBlock:/* @__PURE__ */ t(e=>V.get(e),`getBlock`),setBlock:/* @__PURE__ */ t(e=>{V.set(e.id,e)},`setBlock`),getColumns:/* @__PURE__ */ t(e=>{let t=V.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:/* @__PURE__ */ t(function(){return q},`getClasses`),clear:et,generateId:/* @__PURE__ */ t(()=>(Q++,`id-`+Math.random().toString(36).substr(2,12)+`-`+Q),`generateId`),setDiagramId:/* @__PURE__ */ t(e=>{J=e},`setDiagramId`),getDiagramId:/* @__PURE__ */ t(()=>J,`getDiagramId`)},$=/* @__PURE__ */ t((e,t)=>{let n=g,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return f(r,i,a,t)},`fade`),nt=/* @__PURE__ */ t(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.nodeTextColor||e.textColor};
9
+ }
10
+ .cluster-label text {
11
+ fill: ${e.titleColor};
12
+ }
13
+ .cluster-label span {
14
+ color: ${e.titleColor};
15
+ }
16
+
17
+
18
+
19
+ .label text,span {
20
+ fill: ${e.nodeTextColor||e.textColor};
21
+ color: ${e.nodeTextColor||e.textColor};
22
+ }
23
+
24
+ .node rect,
25
+ .node circle,
26
+ .node ellipse,
27
+ .node polygon,
28
+ .node path {
29
+ fill: ${e.mainBkg};
30
+ stroke: ${e.nodeBorder};
31
+ stroke-width: 1px;
32
+ }
33
+ .flowchart-label text {
34
+ text-anchor: middle;
35
+ }
36
+ // .flowchart-label .text-outer-tspan {
37
+ // text-anchor: middle;
38
+ // }
39
+ // .flowchart-label .text-inner-tspan {
40
+ // text-anchor: start;
41
+ // }
42
+
43
+ .node .label {
44
+ text-align: center;
45
+ }
46
+ .node.clickable {
47
+ cursor: pointer;
48
+ }
49
+
50
+ .arrowheadPath {
51
+ fill: ${e.arrowheadColor};
52
+ }
53
+
54
+ .edgePaths .path {
55
+ stroke: ${e.lineColor};
56
+ stroke-width: 2.0px;
57
+ }
58
+
59
+ .flowchart-link {
60
+ stroke: ${e.lineColor};
61
+ fill: none;
62
+ }
63
+
64
+ .edgeLabel {
65
+ background-color: ${e.edgeLabelBackground};
66
+ /*
67
+ * This is for backward compatibility with existing code that didn't
68
+ * add a \`<p>\` around edge labels.
69
+ *
70
+ * TODO: We should probably remove this in a future release.
71
+ */
72
+ p {
73
+ margin: 0;
74
+ padding: 0;
75
+ display: inline;
76
+ }
77
+ rect {
78
+ opacity: 0.5;
79
+ background-color: ${e.edgeLabelBackground};
80
+ fill: ${e.edgeLabelBackground};
81
+ }
82
+ text-align: center;
83
+ }
84
+
85
+ /* For html labels only */
86
+ .labelBkg {
87
+ background-color: ${e.edgeLabelBackground};
88
+ }
89
+
90
+ .node .cluster {
91
+ // fill: ${$(e.mainBkg,.5)};
92
+ fill: ${$(e.clusterBkg,.5)};
93
+ stroke: ${$(e.clusterBorder,.2)};
94
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .cluster text {
99
+ fill: ${e.titleColor};
100
+ }
101
+
102
+ .cluster span {
103
+ color: ${e.titleColor};
104
+ }
105
+ /* .cluster div {
106
+ color: ${e.titleColor};
107
+ } */
108
+
109
+ div.mermaidTooltip {
110
+ position: absolute;
111
+ text-align: center;
112
+ max-width: 200px;
113
+ padding: 2px;
114
+ font-family: ${e.fontFamily};
115
+ font-size: 12px;
116
+ background: ${e.tertiaryColor};
117
+ border: 1px solid ${e.border2};
118
+ border-radius: 2px;
119
+ pointer-events: none;
120
+ z-index: 100;
121
+ }
122
+
123
+ .flowchartTitleText {
124
+ text-anchor: middle;
125
+ font-size: 18px;
126
+ fill: ${e.textColor};
127
+ }
128
+ ${ge()}
129
+ `,`getStyles`),t(P,`calculateBlockPosition`),rt=/* @__PURE__ */ t(e=>{let t=0,n=0;for(let r of e.children){let{width:e,height:i,x:a,y:s}=r.size??{width:0,height:0,x:0,y:0};if(o.debug(`getMaxChildSize abc95 child:`,r.id,`width:`,e,`height:`,i,`x:`,a,`y:`,s,r.type),r.type===`space`)continue;let c=e/(r.widthInColumns??1);c>t&&(t=c),i>n&&(n=i)}return{width:t,height:n}},`getMaxChildSize`),t(F,`setBlockSizes`),t(I,`layoutBlocks`),t(L,`findBounds`),t(He,`layout`),t(R,`getNodeFromBlock`),t(Ue,`calculateBlockSize`),t(We,`insertBlockPositioned`),t(z,`performOperations`),t(Ge,`calculateBlockSizes`),t(Ke,`insertBlocks`),t(qe,`insertEdges`),it={parser:Je,db:tt,renderer:{draw:/* @__PURE__ */ t(async function(e,t,n,r){let{securityLevel:a,block:s}=c(),u=r.db;u.setDiagramId(t);let d;a===`sandbox`&&(d=i(`#i`+t));let f=i(a===`sandbox`?d.nodes()[0].contentDocument.body:`body`),p=a===`sandbox`?f.select(`[id="${t}"]`):i(`[id="${t}"]`);Ce(p,[`point`,`circle`,`cross`],r.type,t);let m=u.getBlocks(),h=u.getBlocksFlat(),g=u.getEdges(),_=p.insert(`g`).attr(`class`,`block`);await Ge(_,m,u);let v=He(u);await Ke(_,m,u),await qe(_,g,h,u,t);let y=_.node()?.getBBox(),b=y&&Number.isFinite(y.width)&&Number.isFinite(y.height)?y:v;if(b){let e=Math.max(1,Math.round(.125*(b.width/b.height))),t=b.height+e+10,n=b.width+10,{useMaxWidth:r}=s;l(p,t,n,!!r),o.debug(`Here Bounds`,v,b),p.attr(`viewBox`,`${b.x-5} ${b.y-5} ${b.width+10} ${b.height+10}`)}},`draw`),getClasses:/* @__PURE__ */ t(function(e,t){return t.db.getClasses()},`getClasses`)},styles:nt}})))()}at();export{it as diagram};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{F as t,O as n,h as r,m as i,n as a,r as o}from"./dist-CWj_XYki.js";var s,c,l,u,d,f,p;function m(){return(m=e((()=>{t(),s=`TaskQueue`,c=`Queue`,l=/* @__PURE__ */ (e=>(e[e.CRITICAL=3]=`CRITICAL`,e[e.HIGH=2]=`HIGH`,e[e.MEDIUM=1]=`MEDIUM`,e[e.LOW=0]=`LOW`,e))(l||{}),u=class{constructor(e={}){this.queue=[],this.running=0,this.resultTasks=/* @__PURE__ */ new Map,this.idleListeners=/* @__PURE__ */ new Set;let{concurrency:t=1,comparator:n,ranker:r,onIdle:i,maxQueueSize:a,autoStart:s=!0,logger:c}=e;this.logger=c??new o,this.opts={concurrency:Math.max(1,t),comparator:n,ranker:r,onIdle:i??(()=>{}),maxQueueSize:a??1/0,autoStart:s}}setComparator(e){this.opts.comparator=e}setRanker(e){this.opts.ranker=e}size(){return this.queue.length}inFlight(){return this.running}isIdle(){return this.queue.length===0&&this.running===0}async drain(){this.isIdle()||await new Promise(e=>{let t=()=>{this.isIdle()&&(this.offIdle(t),e())};this.onIdle(t)})}notifyIdle(){this.isIdle()&&([...this.idleListeners].forEach(e=>e()),this.idleListeners.clear(),this.opts.onIdle())}onIdle(e){this.idleListeners.add(e)}offIdle(e){this.idleListeners.delete(e)}enqueue(e,t={}){let r=this.generateId(),i=t.priority??1,a=new n;if(this.queue.length>=this.opts.maxQueueSize){let e=/* @__PURE__ */ Error(`Queue is full (maxQueueSize reached).`);return a.reject(e),a}this.resultTasks.set(r,a);let o={id:r,priority:i,meta:t.meta??e.meta,executeFactory:e.execute};this.queue.push(o),this.logger.debug(s,c,`Task enqueued: ${r} | Priority: ${i} | Running: ${this.running} | Queued: ${this.queue.length}`);let l=a.abort.bind(a);return a.abort=e=>{this.logger.debug(s,c,`Task aborted: ${r}`),this.cancel(r),l(e)},this.opts.autoStart&&this.process(t.fifo===!0),a}cancel(e){let t=this.queue.length;this.queue=this.queue.filter(t=>t.id!==e||(t.cancelled=!0,!1)),this.resultTasks.delete(e),t!==this.queue.length&&(this.logger.debug(s,c,`Task cancelled and removed: ${e}`),this.kick())}kick(){queueMicrotask(()=>this.process())}async process(e=!1){for(this.logger.debug(s,c,`process() called | Running: ${this.running} | Concurrency: ${this.opts.concurrency} | Queued: ${this.queue.length}`);this.running<this.opts.concurrency&&this.queue.length>0;){this.logger.debug(s,c,`Starting new task | Running: ${this.running} | Queued: ${this.queue.length}`),e||this.sortQueue();let t=this.queue.shift();if(t.cancelled){this.logger.debug(s,c,`Skipping cancelled task: ${t.id}`);continue}let n=this.resultTasks.get(t.id);n&&(this.running++,(async()=>{let e=null;try{if(e=t.executeFactory(),!e)throw Error(`Task factory returned null/undefined`);e.wait(e=>{n.state.stage===0&&n.resolve(e)},e=>{n.state.stage===0&&(e.type===`abort`?n.abort(e.reason):n.reject(e.reason))}),e.onProgress(e=>{n.progress(e)}),await e.toPromise()}catch(e){n.state.stage===0&&n.reject(e)}finally{this.resultTasks.delete(t.id),this.running--,this.logger.debug(s,c,`Task completed: ${t.id} | Running: ${this.running} | Queued: ${this.queue.length}`),this.isIdle()?this.notifyIdle():this.queue.length>0&&this.kick()}})().catch(e=>{this.logger.error(s,c,`Unhandled error in task execution wrapper:`,e),this.running=Math.max(0,this.running-1),this.isIdle()?this.notifyIdle():this.queue.length>0&&this.kick()}))}}sortQueue(){let{comparator:e,ranker:t}=this.opts;if(e){this.queue.sort(e);return}let n=/* @__PURE__ */ new Map,r=e=>t?(n.has(e.id)||n.set(e.id,t(e)),n.get(e.id)):this.defaultRank(e);this.queue.sort((e,t)=>{if(e.priority!==t.priority)return t.priority-e.priority;let n=r(e),i=r(t);return n===i?this.extractTime(e.id)-this.extractTime(t.id):i-n})}defaultRank(e){return 0}generateId(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}extractTime(e){let t=Number(e.split(`-`)[0]);return Number.isFinite(t)?t:0}},d=`PdfEngine`,f=`Orchestrator`,p=class{constructor(e,t){this.executor=e,this.logger=t.logger??new o,this.options={imageConverter:t.imageConverter,fetcher:t.fetcher??(typeof fetch<`u`?(e,t)=>fetch(e,t):void 0),logger:this.logger},this.workerQueue=new u({concurrency:1,autoStart:!0,logger:this.logger}),this.logger.debug(d,f,`PdfEngine orchestrator created`)}chunkArray(e,t){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}isSupport(e){let t=new n;return t.resolve([i.Create,i.Read,i.Update,i.Delete]),t}destroy(){var e,t;let i=new n;try{this.executor.destroy(),(t=(e=this.options.imageConverter).destroy)==null||t.call(e),i.resolve(!0)}catch(e){i.reject({code:r.Unknown,message:String(e)})}return i}openDocumentUrl(e,t){let i=new n;return(async()=>{try{if(!this.options.fetcher)throw Error(`Fetcher is not set`);let n=await(await this.options.fetcher(e.url,t?.requestOptions)).arrayBuffer(),r={id:e.id,content:n};this.openDocumentBuffer(r,{password:t?.password,normalizeRotation:t?.normalizeRotation}).wait(e=>i.resolve(e),e=>i.fail(e))}catch(e){i.reject({code:r.Unknown,message:String(e)})}})(),i}openDocumentBuffer(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.openDocumentBuffer(e,t),meta:{docId:e.id,operation:`openDocumentBuffer`}},{priority:l.CRITICAL})}getMetadata(e){return this.workerQueue.enqueue({execute:()=>this.executor.getMetadata(e),meta:{docId:e.id,operation:`getMetadata`}},{priority:l.MEDIUM})}setMetadata(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.setMetadata(e,t),meta:{docId:e.id,operation:`setMetadata`}},{priority:l.MEDIUM})}getDocPermissions(e){return this.workerQueue.enqueue({execute:()=>this.executor.getDocPermissions(e),meta:{docId:e.id,operation:`getDocPermissions`}},{priority:l.MEDIUM})}getDocUserPermissions(e){return this.workerQueue.enqueue({execute:()=>this.executor.getDocUserPermissions(e),meta:{docId:e.id,operation:`getDocUserPermissions`}},{priority:l.MEDIUM})}getSignatures(e){return this.workerQueue.enqueue({execute:()=>this.executor.getSignatures(e),meta:{docId:e.id,operation:`getSignatures`}},{priority:l.MEDIUM})}getBookmarks(e){return this.workerQueue.enqueue({execute:()=>this.executor.getBookmarks(e),meta:{docId:e.id,operation:`getBookmarks`}},{priority:l.MEDIUM})}setBookmarks(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.setBookmarks(e,t),meta:{docId:e.id,operation:`setBookmarks`}},{priority:l.MEDIUM})}deleteBookmarks(e){return this.workerQueue.enqueue({execute:()=>this.executor.deleteBookmarks(e),meta:{docId:e.id,operation:`deleteBookmarks`}},{priority:l.MEDIUM})}renderPage(e,t,n){return this.renderWithEncoding(()=>this.executor.renderPageRaw(e,t,n),n,e.id,t.index,l.CRITICAL)}renderPageRect(e,t,n,r){return this.renderWithEncoding(()=>this.executor.renderPageRect(e,t,n,r),r,e.id,t.index,l.HIGH)}renderPageRaw(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.renderPageRaw(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`renderPageRaw`}},{priority:l.HIGH})}renderPageRectRaw(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.renderPageRect(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`renderPageRectRaw`}},{priority:l.HIGH})}renderThumbnail(e,t,n){return this.renderWithEncoding(()=>this.executor.renderThumbnailRaw(e,t,n),n,e.id,t.index,l.MEDIUM)}renderPageAnnotation(e,t,n,r){return this.renderWithEncoding(()=>this.executor.renderPageAnnotationRaw(e,t,n,r),r,e.id,t.index,l.MEDIUM)}renderPageAnnotations(e,t,r){let i=new n,a=this.workerQueue.enqueue({execute:()=>this.executor.renderPageAnnotationsRaw(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:`renderPageAnnotationsRaw`}},{priority:l.MEDIUM}),o=i.abort.bind(i);return i.abort=e=>{a.abort(e),o(e)},a.wait(e=>{i.state.stage===0&&this.encodeAppearanceMap(e,r,i)},e=>{i.state.stage===0&&i.fail(e)}),i}renderPageAnnotationsRaw(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.renderPageAnnotationsRaw(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`renderPageAnnotationsRaw`}},{priority:l.MEDIUM})}renderWithEncoding(e,t,r,i,a=l.CRITICAL){let o=new n,s=this.workerQueue.enqueue({execute:()=>e(),meta:{docId:r,pageIndex:i,operation:`render`}},{priority:a}),c=o.abort.bind(o);return o.abort=e=>{s.abort(e),c(e)},s.wait(e=>{o.state.stage===0&&this.encodeImage(e,t,o)},e=>{o.state.stage===0&&o.fail(e)}),o}encodeImage(e,t,n){let i=t?.imageType??`image/png`,a=t?.quality,o={data:new Uint8ClampedArray(e.data),width:e.width,height:e.height};this.options.imageConverter(()=>o,i,a).then(e=>n.resolve(e)).catch(e=>n.reject({code:r.Unknown,message:String(e)}))}encodeAppearanceMap(e,t,n){let i=t?.imageType??`image/png`,a=t?.imageQuality,o=e=>{let t={data:new Uint8ClampedArray(e.data),width:e.width,height:e.height};return this.options.imageConverter(()=>t,i,a)},s=[],c={},l=[`normal`,`rollover`,`down`];for(let[t,n]of Object.entries(e)){let e={};c[t]=e;for(let t of l){let r=n[t];r&&s.push(o(r.data).then(n=>{e[t]={data:n,rect:r.rect}}))}}Promise.all(s).then(()=>{n.state.stage===0&&n.resolve(c)}).catch(e=>{n.state.stage===0&&n.reject({code:r.Unknown,message:String(e)})})}getPageAnnotations(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageAnnotations(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageAnnotations`}},{priority:l.MEDIUM})}createPageAnnotation(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.createPageAnnotation(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`createPageAnnotation`}},{priority:l.MEDIUM})}updatePageAnnotation(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.updatePageAnnotation(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`updatePageAnnotation`}},{priority:l.MEDIUM})}removePageAnnotation(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.removePageAnnotation(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`removePageAnnotation`}},{priority:l.MEDIUM})}getAllAnnotations(e){let t=this.chunkArray(e.pages,500);this.logger.debug(d,f,`getAllAnnotations: ${e.pages.length} pages in ${t.length} chunks`);let n=new a({aggregate:e=>Object.assign({},...e)});return t.forEach((t,r)=>{let i=this.workerQueue.enqueue({execute:()=>this.executor.getAnnotationsBatch(e,t),meta:{docId:e.id,operation:`getAnnotationsBatch`,chunkSize:t.length}},{priority:l.LOW});i.onProgress(e=>{n.progress({page:e.pageIndex,result:e.result})}),n.addChild(i,r)}),n.finalize(),n}getPageTextRects(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageTextRects(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageTextRects`}},{priority:l.MEDIUM})}searchAllPages(e,t,n){let r=Array.isArray(n?.flags)?n.flags.reduce((e,t)=>e|t,0):n?.flags??0,i=this.chunkArray(e.pages,25);this.logger.debug(d,f,`searchAllPages: ${e.pages.length} pages in ${i.length} chunks`);let o=new a({aggregate:e=>{let t=e.flatMap(e=>Object.values(e).flat());return{results:t,total:t.length}}});return i.forEach((n,i)=>{let a=this.workerQueue.enqueue({execute:()=>this.executor.searchBatch(e,n,t,r),meta:{docId:e.id,operation:`searchBatch`,chunkSize:n.length}},{priority:l.LOW});a.onProgress(e=>{o.progress({page:e.pageIndex,results:e.result})}),o.addChild(a,i)}),o.finalize(),o}getAttachments(e){return this.workerQueue.enqueue({execute:()=>this.executor.getAttachments(e),meta:{docId:e.id,operation:`getAttachments`}},{priority:l.MEDIUM})}addAttachment(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.addAttachment(e,t),meta:{docId:e.id,operation:`addAttachment`}},{priority:l.MEDIUM})}removeAttachment(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.removeAttachment(e,t),meta:{docId:e.id,operation:`removeAttachment`}},{priority:l.MEDIUM})}readAttachmentContent(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.readAttachmentContent(e,t),meta:{docId:e.id,operation:`readAttachmentContent`}},{priority:l.MEDIUM})}getDocumentJavaScriptActions(e){return this.workerQueue.enqueue({execute:()=>this.executor.getDocumentJavaScriptActions(e),meta:{docId:e.id,operation:`getDocumentJavaScriptActions`}},{priority:l.MEDIUM})}getPageAnnoWidgets(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageAnnoWidgets(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageAnnoWidgets`}},{priority:l.MEDIUM})}getPageWidgetJavaScriptActions(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageWidgetJavaScriptActions(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageWidgetJavaScriptActions`}},{priority:l.MEDIUM})}setFormFieldValue(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.setFormFieldValue(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`setFormFieldValue`}},{priority:l.MEDIUM})}setFormFieldState(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.setFormFieldState(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`setFormFieldState`}},{priority:l.MEDIUM})}renameWidgetField(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.renameWidgetField(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`renameWidgetField`}},{priority:l.MEDIUM})}shareWidgetField(e,t,n,r,i){return this.workerQueue.enqueue({execute:()=>this.executor.shareWidgetField(e,t,n,r,i),meta:{docId:e.id,pageIndex:t.index,operation:`shareWidgetField`}},{priority:l.MEDIUM})}regenerateWidgetAppearances(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.regenerateWidgetAppearances(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`regenerateWidgetAppearances`}},{priority:l.MEDIUM})}flattenPage(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.flattenPage(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`flattenPage`}},{priority:l.MEDIUM})}extractPages(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.extractPages(e,t),meta:{docId:e.id,pageIndexes:t,operation:`extractPages`}},{priority:l.MEDIUM})}createDocument(e){return this.workerQueue.enqueue({execute:()=>this.executor.createDocument(e),meta:{docId:e,operation:`createDocument`}},{priority:l.MEDIUM})}importPages(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.importPages(e,t,n,r),meta:{docId:e.id,operation:`importPages`}},{priority:l.MEDIUM})}deletePage(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.deletePage(e,t),meta:{docId:e.id,operation:`deletePage`}},{priority:l.MEDIUM})}extractText(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.extractText(e,t),meta:{docId:e.id,pageIndexes:t,operation:`extractText`}},{priority:l.MEDIUM})}redactTextInRects(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.redactTextInRects(e,t,n,r),meta:{docId:e.id,pageIndex:t.index,operation:`redactTextInRects`}},{priority:l.MEDIUM})}applyRedaction(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.applyRedaction(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`applyRedaction`}},{priority:l.MEDIUM})}applyAllRedactions(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.applyAllRedactions(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`applyAllRedactions`}},{priority:l.MEDIUM})}flattenAnnotation(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.flattenAnnotation(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`flattenAnnotation`}},{priority:l.MEDIUM})}exportAnnotationAppearanceAsPdf(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.exportAnnotationAppearanceAsPdf(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`exportAnnotationAppearanceAsPdf`}},{priority:l.MEDIUM})}exportAnnotationsAppearanceAsPdf(e,t,n){return this.workerQueue.enqueue({execute:()=>this.executor.exportAnnotationsAppearanceAsPdf(e,t,n),meta:{docId:e.id,pageIndex:t.index,operation:`exportAnnotationsAppearanceAsPdf`}},{priority:l.MEDIUM})}getTextSlices(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getTextSlices(e,t),meta:{docId:e.id,slices:t,operation:`getTextSlices`}},{priority:l.MEDIUM})}getPageGlyphs(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageGlyphs(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageGlyphs`}},{priority:l.MEDIUM})}getPageGeometry(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageGeometry(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageGeometry`}},{priority:l.MEDIUM})}getPageTextRuns(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageTextRuns(e,t),meta:{docId:e.id,pageIndex:t.index,operation:`getPageTextRuns`}},{priority:l.MEDIUM})}merge(e){return this.workerQueue.enqueue({execute:()=>this.executor.merge(e),meta:{docId:e.map(e=>e.id).join(`,`),operation:`merge`}},{priority:l.MEDIUM})}mergePages(e){return this.workerQueue.enqueue({execute:()=>this.executor.mergePages(e),meta:{docId:e.map(e=>e.docId).join(`,`),operation:`mergePages`}},{priority:l.MEDIUM})}preparePrintDocument(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.preparePrintDocument(e,t),meta:{docId:e.id,operation:`preparePrintDocument`}},{priority:l.MEDIUM})}saveAsCopy(e){return this.workerQueue.enqueue({execute:()=>this.executor.saveAsCopy(e),meta:{docId:e.id,operation:`saveAsCopy`}},{priority:l.MEDIUM})}closeDocument(e){return this.workerQueue.enqueue({execute:()=>this.executor.closeDocument(e),meta:{docId:e.id,operation:`closeDocument`}},{priority:l.MEDIUM})}closeAllDocuments(){return this.workerQueue.enqueue({execute:()=>this.executor.closeAllDocuments(),meta:{operation:`closeAllDocuments`}},{priority:l.MEDIUM})}setDocumentEncryption(e,t,n,r){return this.workerQueue.enqueue({execute:()=>this.executor.setDocumentEncryption(e,t,n,r),meta:{docId:e.id,operation:`setDocumentEncryption`}},{priority:l.MEDIUM})}removeEncryption(e){return this.workerQueue.enqueue({execute:()=>this.executor.removeEncryption(e),meta:{docId:e.id,operation:`removeEncryption`}},{priority:l.MEDIUM})}unlockOwnerPermissions(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.unlockOwnerPermissions(e,t),meta:{docId:e.id,operation:`unlockOwnerPermissions`}},{priority:l.MEDIUM})}isEncrypted(e){return this.workerQueue.enqueue({execute:()=>this.executor.isEncrypted(e),meta:{docId:e.id,operation:`isEncrypted`}},{priority:l.MEDIUM})}isOwnerUnlocked(e){return this.workerQueue.enqueue({execute:()=>this.executor.isOwnerUnlocked(e),meta:{docId:e.id,operation:`isOwnerUnlocked`}},{priority:l.MEDIUM})}}})))()}function h(e,t,n){let r=t*n*4,i=e=>[e&255,e>>>8&255,e>>>16&255,e>>>24&255],a=new Uint8Array([66,77,...i(66+r),0,0,0,0,66,0,0,0,40,0,0,0,...i(t),...i(-n),1,0,32,0,3,0,0,0,...i(r),0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0,0,0,255,0,0,0,0,255,0]);return new Blob([a,new Uint8Array(e.buffer,e.byteOffset,e.byteLength)],{type:`image/bmp`})}function g(e){let t=async(t,n=`image/png`,r)=>{let i=t();if(n===`image/bmp`)return h(i.data,i.width,i.height);try{let t=new Uint8ClampedArray(i.data);return await e.encode({data:t,width:i.width,height:i.height},n,r)}catch(e){return console.warn(`Worker encoding failed, falling back to main-thread Canvas:`,e),v(t,n,r)}};return t.destroy=()=>e.destroy(),t}var _,v;function y(){return(y=e((()=>{_=class extends Error{constructor(e){super(e),this.name=`ImageConverterError`}},v=(e,t=`image/png`,n)=>{let r=e();if(t===`image/bmp`)return Promise.resolve(h(r.data,r.width,r.height));if(typeof document>`u`)return Promise.reject(new _(`document is not available. This converter requires a browser environment.`));let i=new ImageData(r.data,r.width,r.height);return new Promise((e,r)=>{let a=document.createElement(`canvas`);a.width=i.width,a.height=i.height,a.getContext(`2d`).putImageData(i,0,0),a.toBlob(t=>{t?e(t):r(new _(`Canvas toBlob returned null`))},t,n)})}})))()}export{m as a,p as i,g as n,y as r,v as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./rolldown-runtime-BKuNeK48.js";var n=/* @__PURE__ */ t(((t,n)=>{(function(e){if(typeof t==`object`&&n!==void 0)n.exports=e();else if(typeof define==`function`&&define.amd)define([],e);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.plantumlEncoder=e()}})(function(){return(function(){function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof e==`function`&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=/* @__PURE__ */ Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o=typeof e==`function`&&e,s=0;s<i.length;s++)a(i[s]);return a}return t})()({1:[function(e,t,n){var r=e("pako/lib/deflate.js");t.exports=function(e){return r.deflateRaw(e,{level:9,to:`string`})}},{"pako/lib/deflate.js":4}],2:[function(e,t,n){function r(e){return e<10?String.fromCharCode(48+e):(e-=10,e<26?String.fromCharCode(65+e):(e-=26,e<26?String.fromCharCode(97+e):(e-=26,e===0?`-`:e===1?`_`:`?`)))}function i(e,t,n){var i=e>>2,a=(e&3)<<4|t>>4,o=(t&15)<<2|n>>6,s=n&63,c=``;return c+=r(i&63),c+=r(a&63),c+=r(o&63),c+=r(s&63),c}t.exports=function(e){for(var t=``,n=0;n<e.length;n+=3)n+2===e.length?t+=i(e.charCodeAt(n),e.charCodeAt(n+1),0):n+1===e.length?t+=i(e.charCodeAt(n),0,0):t+=i(e.charCodeAt(n),e.charCodeAt(n+1),e.charCodeAt(n+2));return t}},{}],3:[function(e,t,n){var r=e("./deflate"),i=e("./encode64");t.exports.encode=function(e){return i(r(e))}},{"./deflate":1,"./encode64":2}],4:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=4,d=0,f=1,p=2,m=-1,h=0,g=8;function _(e){if(!(this instanceof _))return new _(e);this.options=i.assign({level:m,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:``},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==d)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var l=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary;if(n=r.deflateSetDictionary(this.strm,l),n!==d)throw Error(o[n]);this._dict_set=!0}}_.prototype.push=function(e,t){var n=this.strm,o=this.options.chunkSize,s,m;if(this.ended)return!1;m=t===~~t?t:t===!0?u:l,n.input=typeof e==`string`?a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new i.Buf8(o),n.next_out=0,n.avail_out=o),s=r.deflate(n,m),s!==f&&s!==d)return this.onEnd(s),this.ended=!0,!1;(n.avail_out===0||n.avail_in===0&&(m===u||m===p))&&(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(n.output,n.next_out))):this.onData(i.shrinkBuf(n.output,n.next_out)))}while((n.avail_in>0||n.avail_out===0)&&s!==f);return m===u?(s=r.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===d):(m===p&&(this.onEnd(d),n.avail_out=0),!0)},_.prototype.onData=function(e){this.chunks.push(e)},_.prototype.onEnd=function(e){e===d&&(this.result=this.options.to===`string`?this.chunks.join(``):i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function v(e,t){var n=new _(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}function y(e,t){return t||={},t.raw=!0,v(e,t)}function b(e,t){return t||={},t.gzip=!0,v(e,t)}n.Deflate=_,n.deflate=v,n.deflateRaw=y,n.gzip=b},{"./utils/common":5,"./utils/strings":6,"./zlib/deflate":9,"./zlib/messages":10,"./zlib/zstream":12}],5:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},o={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],6:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,/* @__PURE__ */ new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)n=e.charCodeAt(a),(n&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(n=65536+(n-55296<<10)+(i-56320),a++)),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=0,a=0;o<c;a++)n=e.charCodeAt(a),(n&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(n=65536+(n-55296<<10)+(i-56320),a++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};function c(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(s*2);for(r=0,n=0;n<s;)if(i=e[n++],i<128)l[r++]=i;else if(a=o[i],a>4)l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;a>1&&n<s;)i=i<<6|e[n++]&63,a--;a>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|i&1023)}return c(l,r)},n.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":5}],7:[function(e,t,n){function r(e,t,n,r){for(var i=e&65535,a=e>>>16&65535,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16}t.exports=r},{}],8:[function(e,t,n){function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var i=r();function a(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=a},{}],9:[function(e,t,n){var r=e("../utils/common"),i=e("./trees"),a=e("./adler32"),o=e("./crc32"),s=e("./messages"),c=0,l=1,u=3,d=4,f=5,p=0,m=1,h=-2,g=-3,_=-5,v=-1,y=1,b=2,x=3,S=4,C=0,w=2,T=8,E=9,ee=15,te=8,D=286,ne=30,re=19,O=2*D+1,k=15,A=3,j=258,M=j+A+1,ie=32,N=42,ae=69,oe=73,se=91,ce=103,P=113,F=666,I=1,L=2,le=3,ue=4,de=3;function fe(e,t){return e.msg=s[t],t}function R(e){return(e<<1)-(e>4?9:0)}function pe(e){for(var t=e.length;--t>=0;)e[t]=0}function me(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function z(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,me(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function V(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function he(e,t,n,i){var s=e.avail_in;return s>i&&(s=i),s===0?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,n),e.state.wrap===1?e.adler=a(e.adler,t,s,n):e.state.wrap===2&&(e.adler=o(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function H(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-M?e.strstart-(e.w_size-M):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+j,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,l[i+o]===m&&l[i+o-1]===p&&l[i]===l[r]&&l[++i]===l[r+1]){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=j-(f-r),r=f-j,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead}function U(e){var t=e.w_size,n,i,a,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-M)){r.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,n=i;do a=e.head[--n],e.head[n]=a>=t?a-t:0;while(--i);i=t,n=i;do a=e.prev[--n],e.prev[n]=a>=t?a-t:0;while(--i);o+=t}if(e.strm.avail_in===0)break;if(i=he(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+A-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<M&&e.strm.avail_in!==0)}function W(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),e.lookahead===0&&t===c)return I;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,z(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-M&&(z(e,!1),e.strm.avail_out===0))return I}return e.insert=0,t===d?(z(e,!0),e.strm.avail_out===0?le:ue):(e.strstart>e.block_start&&(z(e,!1),e.strm.avail_out),I)}function G(e,t){for(var n,r;;){if(e.lookahead<M){if(U(e),e.lookahead<M&&t===c)return I;if(e.lookahead===0)break}if(n=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-M&&(e.match_length=H(e,n)),e.match_length>=A){if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(z(e,!1),e.strm.avail_out===0))return I}return e.insert=e.strstart<A-1?e.strstart:A-1,t===d?(z(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(z(e,!1),e.strm.avail_out===0)?I:L}function K(e,t){for(var n,r,a;;){if(e.lookahead<M){if(U(e),e.lookahead<M&&t===c)return I;if(e.lookahead===0)break}if(n=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=A-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-M&&(e.match_length=H(e,n),e.match_length<=5&&(e.strategy===y||e.match_length===A&&e.strstart-e.match_start>4096)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-A,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=A-1,e.strstart++,r&&(z(e,!1),e.strm.avail_out===0))return I}else if(e.match_available){if(r=i._tr_tally(e,0,e.window[e.strstart-1]),r&&z(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return I}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=i._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<A-1?e.strstart:A-1,t===d?(z(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(z(e,!1),e.strm.avail_out===0)?I:L}function ge(e,t){for(var n,r,a,o,s=e.window;;){if(e.lookahead<=j){if(U(e),e.lookahead<=j&&t===c)return I;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=A&&e.strstart>0&&(a=e.strstart-1,r=s[a],r===s[++a]&&r===s[++a]&&r===s[++a])){o=e.strstart+j;do;while(r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&a<o);e.match_length=j-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(n=i._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(z(e,!1),e.strm.avail_out===0))return I}return e.insert=0,t===d?(z(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(z(e,!1),e.strm.avail_out===0)?I:L}function q(e,t){for(var n;;){if(e.lookahead===0&&(U(e),e.lookahead===0)){if(t===c)return I;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(z(e,!1),e.strm.avail_out===0))return I}return e.insert=0,t===d?(z(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(z(e,!1),e.strm.avail_out===0)?I:L}function J(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var _e=[new J(0,0,0,0,W),new J(4,4,8,4,G),new J(4,5,16,8,G),new J(4,6,32,32,G),new J(4,4,16,16,K),new J(8,16,32,32,K),new J(8,16,128,128,K),new J(8,32,128,256,K),new J(32,128,258,1024,K),new J(32,258,258,4096,K)];function ve(e){e.window_size=2*e.w_size,pe(e.head),e.max_lazy_match=_e[e.level].max_lazy,e.good_match=_e[e.level].good_length,e.nice_match=_e[e.level].nice_length,e.max_chain_length=_e[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0}function ye(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(O*2),this.dyn_dtree=new r.Buf16((2*ne+1)*2),this.bl_tree=new r.Buf16((2*re+1)*2),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(k+1),this.heap=new r.Buf16(2*D+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*D+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function be(e){var t;return!e||!e.state?fe(e,h):(e.total_in=e.total_out=0,e.data_type=w,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?N:P,e.adler=t.wrap===2?0:1,t.last_flush=c,i._tr_init(t),p)}function Y(e){var t=be(e);return t===p&&ve(e.state),t}function X(e,t){return!e||!e.state||e.state.wrap!==2?h:(e.state.gzhead=t,p)}function Z(e,t,n,i,a,o){if(!e)return h;var s=1;if(t===v&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>E||n!==T||i<8||i>15||t<0||t>9||o<0||o>S)return fe(e,h);i===8&&(i=9);var c=new ye;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+A-1)/A),c.window=new r.Buf8(c.w_size*2),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,Y(e)}function xe(e,t){return Z(e,t,T,ee,te,C)}function Se(e,t){var n,r,a,s;if(!e||!e.state||t>f||t<0)return e?fe(e,h):h;if(r=e.state,!e.output||!e.input&&e.avail_in!==0||r.status===F&&t!==d)return fe(e,e.avail_out===0?_:h);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===N){if(r.wrap===2)e.adler=0,B(r,31),B(r,139),B(r,8),r.gzhead?(B(r,+!!r.gzhead.text+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),B(r,r.gzhead.time&255),B(r,r.gzhead.time>>8&255),B(r,r.gzhead.time>>16&255),B(r,r.gzhead.time>>24&255),B(r,r.level===9?2:r.strategy>=b||r.level<2?4:0),B(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(B(r,r.gzhead.extra.length&255),B(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=o(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=ae):(B(r,0),B(r,0),B(r,0),B(r,0),B(r,0),B(r,r.level===9?2:r.strategy>=b||r.level<2?4:0),B(r,de),r.status=P);else{var g=T+(r.w_bits-8<<4)<<8,v=-1;v=r.strategy>=b||r.level<2?0:r.level<6?1:r.level===6?2:3,g|=v<<6,r.strstart!==0&&(g|=ie),g+=31-g%31,r.status=P,V(r,g),r.strstart!==0&&(V(r,e.adler>>>16),V(r,e.adler&65535)),e.adler=1}}if(r.status===ae){if(r.gzhead.extra){for(a=r.pending;r.gzindex<(r.gzhead.extra.length&65535)&&!(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),me(e),a=r.pending,r.pending===r.pending_buf_size));)B(r,r.gzhead.extra[r.gzindex]&255),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=oe)}else r.status=oe}if(r.status===oe){if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),me(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindex<r.gzhead.name.length?r.gzhead.name.charCodeAt(r.gzindex++)&255:0,B(r,s)}while(s!==0);r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),s===0&&(r.gzindex=0,r.status=se)}else r.status=se}if(r.status===se){if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),me(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindex<r.gzhead.comment.length?r.gzhead.comment.charCodeAt(r.gzindex++)&255:0,B(r,s)}while(s!==0);r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),s===0&&(r.status=ce)}else r.status=ce}if(r.status===ce&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&me(e),r.pending+2<=r.pending_buf_size&&(B(r,e.adler&255),B(r,e.adler>>8&255),e.adler=0,r.status=P)):r.status=P),r.pending!==0){if(me(e),e.avail_out===0)return r.last_flush=-1,p}else if(e.avail_in===0&&R(t)<=R(n)&&t!==d)return fe(e,_);if(r.status===F&&e.avail_in!==0)return fe(e,_);if(e.avail_in!==0||r.lookahead!==0||t!==c&&r.status!==F){var y=r.strategy===b?q(r,t):r.strategy===x?ge(r,t):_e[r.level].func(r,t);if((y===le||y===ue)&&(r.status=F),y===I||y===le)return e.avail_out===0&&(r.last_flush=-1),p;if(y===L&&(t===l?i._tr_align(r):t!==f&&(i._tr_stored_block(r,0,0,!1),t===u&&(pe(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),me(e),e.avail_out===0))return r.last_flush=-1,p}return t===d?r.wrap<=0?m:(r.wrap===2?(B(r,e.adler&255),B(r,e.adler>>8&255),B(r,e.adler>>16&255),B(r,e.adler>>24&255),B(r,e.total_in&255),B(r,e.total_in>>8&255),B(r,e.total_in>>16&255),B(r,e.total_in>>24&255)):(V(r,e.adler>>>16),V(r,e.adler&65535)),me(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending===0?m:p):p}function Ce(e){var t;return!e||!e.state?h:(t=e.state.status,t!==N&&t!==ae&&t!==oe&&t!==se&&t!==ce&&t!==P&&t!==F?fe(e,h):(e.state=null,t===P?fe(e,g):p))}function we(e,t){var n=t.length,i,o,s,c,l,u,d,f;if(!e||!e.state||(i=e.state,c=i.wrap,c===2||c===1&&i.status!==N||i.lookahead))return h;for(c===1&&(e.adler=a(e.adler,t,n,0)),i.wrap=0,n>=i.w_size&&(c===0&&(pe(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new r.Buf8(i.w_size),r.arraySet(f,t,n-i.w_size,i.w_size,0),t=f,n=i.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=n,e.next_in=0,e.input=t,U(i);i.lookahead>=A;){o=i.strstart,s=i.lookahead-(A-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[o+A-1])&i.hash_mask,i.prev[o&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=o,o++;while(--s);i.strstart=o,i.lookahead=A-1,U(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,i.wrap=c,p}n.deflateInit=xe,n.deflateInit2=Z,n.deflateReset=Y,n.deflateResetKeep=be,n.deflateSetHeader=X,n.deflate=Se,n.deflateEnd=Ce,n.deflateSetDictionary=we,n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":5,"./adler32":7,"./crc32":8,"./messages":10,"./trees":11}],10:[function(e,t,n){t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],11:[function(e,t,n){var r=e("../utils/common"),i=4,a=0,o=1,s=2;function c(e){for(var t=e.length;--t>=0;)e[t]=0}var l=0,u=1,d=2,f=3,p=258,m=29,h=256,g=h+1+m,_=30,v=19,y=2*g+1,b=15,x=16,S=7,C=256,w=16,T=17,E=18,ee=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],te=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],re=512,O=Array((g+2)*2);c(O);var k=Array(_*2);c(k);var A=Array(re);c(A);var j=Array(p-f+1);c(j);var M=Array(m);c(M);var ie=Array(_);c(ie);function N(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var ae,oe,se;function ce(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?A[e]:A[256+(e>>>7)]}function F(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function I(e,t,n){e.bi_valid>x-n?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>x-e.bi_valid,e.bi_valid+=n-x):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function L(e,t,n){I(e,n[t*2],n[t*2+1])}function le(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ue(e){e.bi_valid===16?(F(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function de(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=b;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<y;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function fe(e,t,n){for(var r=Array(b+1),i=0,a=1,o;a<=b;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=le(r[s]++,s))}}function R(){var e,t,n,r,i,a=Array(b+1);for(n=0,r=0;r<m-1;r++)for(M[r]=n,e=0;e<1<<ee[r];e++)j[n++]=r;for(j[n-1]=r,i=0,r=0;r<16;r++)for(ie[r]=i,e=0;e<1<<te[r];e++)A[i++]=r;for(i>>=7;r<_;r++)for(ie[r]=i<<7,e=0;e<1<<te[r]-7;e++)A[256+i++]=r;for(t=0;t<=b;t++)a[t]=0;for(e=0;e<=143;)O[e*2+1]=8,e++,a[8]++;for(;e<=255;)O[e*2+1]=9,e++,a[9]++;for(;e<=279;)O[e*2+1]=7,e++,a[7]++;for(;e<=287;)O[e*2+1]=8,e++,a[8]++;for(fe(O,g+1,a),e=0;e<_;e++)k[e*2+1]=5,k[e*2]=le(e,5);ae=new N(O,ee,h+1,g,b),oe=new N(k,te,0,_,b),se=new N([],D,0,v,S)}function pe(e){for(var t=0;t<g;t++)e.dyn_ltree[t*2]=0;for(t=0;t<_;t++)e.dyn_dtree[t*2]=0;for(t=0;t<v;t++)e.bl_tree[t*2]=0;e.dyn_ltree[C*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function me(e){e.bi_valid>8?F(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function z(e,t,n,i){me(e),i&&(F(e,n),F(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function B(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function V(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&B(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!B(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function he(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?L(e,i,t):(o=j[i],L(e,o+h+1,t),s=ee[o],s!==0&&(i-=M[o],I(e,i,s)),r--,o=P(r),L(e,o,n),s=te[o],s!==0&&(r-=ie[o],I(e,r,s)));while(a<e.last_lit);L(e,C,t)}function H(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=y,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)V(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,V(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],de(e,t),fe(n,c,e.bl_count)}function U(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[T*2]++:e.bl_tree[E*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[w*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))}function W(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do L(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(L(e,T,e.bl_tree),I(e,s-3,3)):(L(e,E,e.bl_tree),I(e,s-11,7)):(a!==i&&(L(e,a,e.bl_tree),s--),L(e,w,e.bl_tree),I(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}}function G(e){var t;for(U(e,e.dyn_ltree,e.l_desc.max_code),U(e,e.dyn_dtree,e.d_desc.max_code),H(e,e.bl_desc),t=v-1;t>=3&&e.bl_tree[ne[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function K(e,t,n,r){var i;for(I(e,t-257,5),I(e,n-1,5),I(e,r-4,4),i=0;i<r;i++)I(e,e.bl_tree[ne[i]*2+1],3);W(e,e.dyn_ltree,t-1),W(e,e.dyn_dtree,n-1)}function ge(e){for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return a;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return o;for(n=32;n<h;n++)if(e.dyn_ltree[n*2]!==0)return o;return a}var q=!1;function J(e){q||=(R(),!0),e.l_desc=new ce(e.dyn_ltree,ae),e.d_desc=new ce(e.dyn_dtree,oe),e.bl_desc=new ce(e.bl_tree,se),e.bi_buf=0,e.bi_valid=0,pe(e)}function _e(e,t,n,r){I(e,(l<<1)+ +!!r,3),z(e,t,n,!0)}function ve(e){I(e,u<<1,3),L(e,C,O),ue(e)}function ye(e,t,n,r){var a,o,c=0;e.level>0?(e.strm.data_type===s&&(e.strm.data_type=ge(e)),H(e,e.l_desc),H(e,e.d_desc),c=G(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?_e(e,t,n,r):e.strategy===i||o===a?(I(e,(u<<1)+ +!!r,3),he(e,O,k)):(I(e,(d<<1)+ +!!r,3),K(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),he(e,e.dyn_ltree,e.dyn_dtree)),pe(e),r&&me(e)}function be(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(j[n]+h+1)*2]++,e.dyn_dtree[P(t)*2]++),e.last_lit===e.lit_bufsize-1}n._tr_init=J,n._tr_stored_block=_e,n._tr_flush_block=ye,n._tr_tally=be,n._tr_align=ve},{"../utils/common":5}],12:[function(e,t,n){function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=r},{}]},{},[3])(3)})})),r=/* @__PURE__ */ t(((t,n)=>{(function(e){if(typeof t==`object`&&n!==void 0)n.exports=e();else if(typeof define==`function`&&define.amd)define([],e);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.plantumlEncoder=e()}})(function(){return(function(){function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof e==`function`&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=/* @__PURE__ */ Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o=typeof e==`function`&&e,s=0;s<i.length;s++)a(i[s]);return a}return t})()({1:[function(e,t,n){var r=e("pako/lib/inflate.js");t.exports=function(e){return r.inflateRaw(e,{to:`string`})}},{"pako/lib/inflate.js":4}],2:[function(e,t,n){function r(e){var t=e.charCodeAt(0);return e===`_`?63:e===`-`?62:t>=97?t-61:t>=65?t-55:t>=48?t-48:`?`}function i(e){var t=r(e[0]),n=r(e[1]),i=r(e[2]),a=r(e[3]);return[t<<2|n>>4&63,n<<4&240|i>>2&15,i<<6&192|a&63]}t.exports=function(e){var t=``,n=0;for(n=0;n<e.length;n+=4){var r=i(e.substring(n,n+4));t+=String.fromCharCode(r[0]),t+=String.fromCharCode(r[1]),t+=String.fromCharCode(r[2])}return t}},{}],3:[function(e,t,n){var r=e("./inflate"),i=e("./decode64");t.exports.decode=function(e){return r(i(e))}},{"./decode64":2,"./inflate":1}],4:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK||(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=a.string2buf(t.dictionary):u.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary),n!==o.Z_OK))))throw Error(s[n])}d.prototype.push=function(e,t){var n=this.strm,s=this.options.chunkSize,c=this.options.dictionary,l,d,f,p,m,h=!1;if(this.ended)return!1;d=t===~~t?t:t===!0?o.Z_FINISH:o.Z_NO_FLUSH,n.input=typeof e==`string`?a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new i.Buf8(s),n.next_out=0,n.avail_out=s),l=r.inflate(n,o.Z_NO_FLUSH),l===o.Z_NEED_DICT&&c&&(l=r.inflateSetDictionary(this.strm,c)),l===o.Z_BUF_ERROR&&h===!0&&(l=o.Z_OK,h=!1),l!==o.Z_STREAM_END&&l!==o.Z_OK)return this.onEnd(l),this.ended=!0,!1;n.next_out&&(n.avail_out===0||l===o.Z_STREAM_END||n.avail_in===0&&(d===o.Z_FINISH||d===o.Z_SYNC_FLUSH))&&(this.options.to===`string`?(f=a.utf8border(n.output,n.next_out),p=n.next_out-f,m=a.buf2string(n.output,f),n.next_out=p,n.avail_out=s-p,p&&i.arraySet(n.output,n.output,f,p,0),this.onData(m)):this.onData(i.shrinkBuf(n.output,n.next_out))),n.avail_in===0&&n.avail_out===0&&(h=!0)}while((n.avail_in>0||n.avail_out===0)&&l!==o.Z_STREAM_END);return l===o.Z_STREAM_END&&(d=o.Z_FINISH),d===o.Z_FINISH?(l=r.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===o.Z_OK):(d===o.Z_SYNC_FLUSH&&(this.onEnd(o.Z_OK),n.avail_out=0),!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}function p(e,t){return t||={},t.raw=!0,f(e,t)}n.Inflate=d,n.inflate=f,n.inflateRaw=p,n.ungzip=f},{"./utils/common":5,"./utils/strings":6,"./zlib/constants":8,"./zlib/gzheader":10,"./zlib/inflate":12,"./zlib/messages":14,"./zlib/zstream":15}],5:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},o={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],6:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,/* @__PURE__ */ new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)n=e.charCodeAt(a),(n&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(n=65536+(n-55296<<10)+(i-56320),a++)),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=0,a=0;o<c;a++)n=e.charCodeAt(a),(n&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(n=65536+(n-55296<<10)+(i-56320),a++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};function c(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(s*2);for(r=0,n=0;n<s;)if(i=e[n++],i<128)l[r++]=i;else if(a=o[i],a>4)l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;a>1&&n<s;)i=i<<6|e[n++]&63,a--;a>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|i&1023)}return c(l,r)},n.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":5}],7:[function(e,t,n){function r(e,t,n,r){for(var i=e&65535,a=e>>>16&65535,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16}t.exports=r},{}],8:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],9:[function(e,t,n){function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var i=r();function a(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=a},{}],10:[function(e,t,n){function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}t.exports=r},{}],11:[function(e,t,n){t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;top:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];dolen:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b===0)E[a++]=y&65535;else if(b&16){x=y&65535,b&=15,b&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];dodist:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b&16){if(S=y&65535,b&=15,m<b&&(p+=T[r++]<<m,m+=8,m<b&&(p+=T[r++]<<m,m+=8)),S+=p&(1<<b)-1,S>c){e.msg=`invalid distance too far back`,n.mode=30;break top}if(p>>>=b,m-=b,b=a-o,S>b){if(b=S-b,b>u&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break top}if(C=0,w=f,d===0){if(C+=l-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,b-=d,b<x){x-=b;do E[a++]=f[C++];while(--b);if(C=0,d<x){b=d,x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}}else if(C+=d-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}for(;x>2;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],x>1&&(E[a++]=w[C++]))}else{C=a-S;do E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],x-=3;while(x>2);x&&(E[a++]=E[C++],x>1&&(E[a++]=E[C++]))}}else if(b&64){e.msg=`invalid distance code`,n.mode=30;break top}else{y=g[(y&65535)+(p&(1<<b)-1)];continue dodist}break}}else if(!(b&64)){y=h[(y&65535)+(p&(1<<b)-1)];continue dolen}else if(b&32){n.mode=12;break top}else{e.msg=`invalid literal/length code`,n.mode=30;break top}break}}while(r<i&&a<s);x=m>>3,r-=x,m-=x<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?5+(i-r):5-(r-i),e.avail_out=a<s?257+(s-a):257-(a-s),n.hold=p,n.bits=m}},{}],12:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=0,l=1,u=2,d=4,f=5,p=6,m=0,h=1,g=2,_=-2,v=-3,y=-4,b=-5,x=8,S=1,C=2,w=3,T=4,E=5,ee=6,te=7,D=8,ne=9,re=10,O=11,k=12,A=13,j=14,M=15,ie=16,N=17,ae=18,oe=19,se=20,ce=21,P=22,F=23,I=24,L=25,le=26,ue=27,de=28,fe=29,R=30,pe=31,me=32,z=852,B=592,V=15;function he(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function H(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function U(e){var t;return!e||!e.state?_:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=S,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(z),t.distcode=t.distdyn=new r.Buf32(B),t.sane=1,t.back=-1,m)}function W(e){var t;return!e||!e.state?_:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,U(e))}function G(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?_:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,W(e))}function K(e,t){var n,r;return e?(r=new H,e.state=r,r.window=null,n=G(e,t),n!==m&&(e.state=null),n):_}function ge(e){return K(e,V)}var q=!0,J,_e;function ve(e){if(q){var t;for(J=new r.Buf32(512),_e=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,J,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,_e,0,e.work,{bits:5}),q=!1}e.lencode=J,e.lenbits=9,e.distcode=_e,e.distbits=5}function ye(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),i-=a,i?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function be(e,t){var n,z,B,V,H,U,W,G,K,ge,q,J,_e,be,Y=0,X,Z,xe,Se,Ce,we,Q,Te,$=new r.Buf8(4),Ee,De,Oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return _;n=e.state,n.mode===k&&(n.mode=A),H=e.next_out,B=e.output,W=e.avail_out,V=e.next_in,z=e.input,U=e.avail_in,G=n.hold,K=n.bits,ge=U,q=W,Te=m;inf_leave:for(;;)switch(n.mode){case S:if(n.wrap===0){n.mode=A;break}for(;K<16;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(n.wrap&2&&G===35615){n.check=0,$[0]=G&255,$[1]=G>>>8&255,n.check=a(n.check,$,2,0),G=0,K=0,n.mode=C;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((G&255)<<8)+(G>>8))%31){e.msg=`incorrect header check`,n.mode=R;break}if((G&15)!==x){e.msg=`unknown compression method`,n.mode=R;break}if(G>>>=4,K-=4,Q=(G&15)+8,n.wbits===0)n.wbits=Q;else if(Q>n.wbits){e.msg=`invalid window size`,n.mode=R;break}n.dmax=1<<Q,e.adler=n.check=1,n.mode=G&512?re:k,G=0,K=0;break;case C:for(;K<16;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(n.flags=G,(n.flags&255)!==x){e.msg=`unknown compression method`,n.mode=R;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=R;break}n.head&&(n.head.text=G>>8&1),n.flags&512&&($[0]=G&255,$[1]=G>>>8&255,n.check=a(n.check,$,2,0)),G=0,K=0,n.mode=w;case w:for(;K<32;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}n.head&&(n.head.time=G),n.flags&512&&($[0]=G&255,$[1]=G>>>8&255,$[2]=G>>>16&255,$[3]=G>>>24&255,n.check=a(n.check,$,4,0)),G=0,K=0,n.mode=T;case T:for(;K<16;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}n.head&&(n.head.xflags=G&255,n.head.os=G>>8),n.flags&512&&($[0]=G&255,$[1]=G>>>8&255,n.check=a(n.check,$,2,0)),G=0,K=0,n.mode=E;case E:if(n.flags&1024){for(;K<16;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}n.length=G,n.head&&(n.head.extra_len=G),n.flags&512&&($[0]=G&255,$[1]=G>>>8&255,n.check=a(n.check,$,2,0)),G=0,K=0}else n.head&&(n.head.extra=null);n.mode=ee;case ee:if(n.flags&1024&&(J=n.length,J>U&&(J=U),J&&(n.head&&(Q=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,z,V,J,Q)),n.flags&512&&(n.check=a(n.check,z,J,V)),U-=J,V+=J,n.length-=J),n.length))break inf_leave;n.length=0,n.mode=te;case te:if(n.flags&2048){if(U===0)break inf_leave;J=0;do Q=z[V+J++],n.head&&Q&&n.length<65536&&(n.head.name+=String.fromCharCode(Q));while(Q&&J<U);if(n.flags&512&&(n.check=a(n.check,z,J,V)),U-=J,V+=J,Q)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=D;case D:if(n.flags&4096){if(U===0)break inf_leave;J=0;do Q=z[V+J++],n.head&&Q&&n.length<65536&&(n.head.comment+=String.fromCharCode(Q));while(Q&&J<U);if(n.flags&512&&(n.check=a(n.check,z,J,V)),U-=J,V+=J,Q)break inf_leave}else n.head&&(n.head.comment=null);n.mode=ne;case ne:if(n.flags&512){for(;K<16;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(G!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=R;break}G=0,K=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=k;break;case re:for(;K<32;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}e.adler=n.check=he(G),G=0,K=0,n.mode=O;case O:if(n.havedict===0)return e.next_out=H,e.avail_out=W,e.next_in=V,e.avail_in=U,n.hold=G,n.bits=K,g;e.adler=n.check=1,n.mode=k;case k:if(t===f||t===p)break inf_leave;case A:if(n.last){G>>>=K&7,K-=K&7,n.mode=ue;break}for(;K<3;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}switch(n.last=G&1,G>>>=1,--K,G&3){case 0:n.mode=j;break;case 1:if(ve(n),n.mode=se,t===p){G>>>=2,K-=2;break inf_leave}break;case 2:n.mode=N;break;case 3:e.msg=`invalid block type`,n.mode=R}G>>>=2,K-=2;break;case j:for(G>>>=K&7,K-=K&7;K<32;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if((G&65535)!=(G>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=R;break}if(n.length=G&65535,G=0,K=0,n.mode=M,t===p)break inf_leave;case M:n.mode=ie;case ie:if(J=n.length,J){if(J>U&&(J=U),J>W&&(J=W),J===0)break inf_leave;r.arraySet(B,z,V,J,H),U-=J,V+=J,W-=J,H+=J,n.length-=J;break}n.mode=k;break;case N:for(;K<14;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(n.nlen=(G&31)+257,G>>>=5,K-=5,n.ndist=(G&31)+1,G>>>=5,K-=5,n.ncode=(G&15)+4,G>>>=4,K-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=R;break}n.have=0,n.mode=ae;case ae:for(;n.have<n.ncode;){for(;K<3;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}n.lens[Oe[n.have++]]=G&7,G>>>=3,K-=3}for(;n.have<19;)n.lens[Oe[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ee={bits:n.lenbits},Te=s(c,n.lens,0,19,n.lencode,0,n.work,Ee),n.lenbits=Ee.bits,Te){e.msg=`invalid code lengths set`,n.mode=R;break}n.have=0,n.mode=oe;case oe:for(;n.have<n.nlen+n.ndist;){for(;Y=n.lencode[G&(1<<n.lenbits)-1],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(X<=K);){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(xe<16)G>>>=X,K-=X,n.lens[n.have++]=xe;else{if(xe===16){for(De=X+2;K<De;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(G>>>=X,K-=X,n.have===0){e.msg=`invalid bit length repeat`,n.mode=R;break}Q=n.lens[n.have-1],J=3+(G&3),G>>>=2,K-=2}else if(xe===17){for(De=X+3;K<De;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}G>>>=X,K-=X,Q=0,J=3+(G&7),G>>>=3,K-=3}else{for(De=X+7;K<De;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}G>>>=X,K-=X,Q=0,J=11+(G&127),G>>>=7,K-=7}if(n.have+J>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=R;break}for(;J--;)n.lens[n.have++]=Q}}if(n.mode===R)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=R;break}if(n.lenbits=9,Ee={bits:n.lenbits},Te=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,Ee),n.lenbits=Ee.bits,Te){e.msg=`invalid literal/lengths set`,n.mode=R;break}if(n.distbits=6,n.distcode=n.distdyn,Ee={bits:n.distbits},Te=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ee),n.distbits=Ee.bits,Te){e.msg=`invalid distances set`,n.mode=R;break}if(n.mode=se,t===p)break inf_leave;case se:n.mode=ce;case ce:if(U>=6&&W>=258){e.next_out=H,e.avail_out=W,e.next_in=V,e.avail_in=U,n.hold=G,n.bits=K,o(e,q),H=e.next_out,B=e.output,W=e.avail_out,V=e.next_in,z=e.input,U=e.avail_in,G=n.hold,K=n.bits,n.mode===k&&(n.back=-1);break}for(n.back=0;Y=n.lencode[G&(1<<n.lenbits)-1],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(X<=K);){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(Z&&!(Z&240)){for(Se=X,Ce=Z,we=xe;Y=n.lencode[we+((G&(1<<Se+Ce)-1)>>Se)],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(Se+X<=K);){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}G>>>=Se,K-=Se,n.back+=Se}if(G>>>=X,K-=X,n.back+=X,n.length=xe,Z===0){n.mode=le;break}if(Z&32){n.back=-1,n.mode=k;break}if(Z&64){e.msg=`invalid literal/length code`,n.mode=R;break}n.extra=Z&15,n.mode=P;case P:if(n.extra){for(De=n.extra;K<De;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}n.length+=G&(1<<n.extra)-1,G>>>=n.extra,K-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=F;case F:for(;Y=n.distcode[G&(1<<n.distbits)-1],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(X<=K);){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(!(Z&240)){for(Se=X,Ce=Z,we=xe;Y=n.distcode[we+((G&(1<<Se+Ce)-1)>>Se)],X=Y>>>24,Z=Y>>>16&255,xe=Y&65535,!(Se+X<=K);){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}G>>>=Se,K-=Se,n.back+=Se}if(G>>>=X,K-=X,n.back+=X,Z&64){e.msg=`invalid distance code`,n.mode=R;break}n.offset=xe,n.extra=Z&15,n.mode=I;case I:if(n.extra){for(De=n.extra;K<De;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}n.offset+=G&(1<<n.extra)-1,G>>>=n.extra,K-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=R;break}n.mode=L;case L:if(W===0)break inf_leave;if(J=q-W,n.offset>J){if(J=n.offset-J,J>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=R;break}J>n.wnext?(J-=n.wnext,_e=n.wsize-J):_e=n.wnext-J,J>n.length&&(J=n.length),be=n.window}else be=B,_e=H-n.offset,J=n.length;J>W&&(J=W),W-=J,n.length-=J;do B[H++]=be[_e++];while(--J);n.length===0&&(n.mode=ce);break;case le:if(W===0)break inf_leave;B[H++]=n.length,W--,n.mode=ce;break;case ue:if(n.wrap){for(;K<32;){if(U===0)break inf_leave;U--,G|=z[V++]<<K,K+=8}if(q-=W,e.total_out+=q,n.total+=q,q&&(e.adler=n.check=n.flags?a(n.check,B,q,H-q):i(n.check,B,q,H-q)),q=W,(n.flags?G:he(G))!==n.check){e.msg=`incorrect data check`,n.mode=R;break}G=0,K=0}n.mode=de;case de:if(n.wrap&&n.flags){for(;K<32;){if(U===0)break inf_leave;U--,G+=z[V++]<<K,K+=8}if(G!==(n.total|0)){e.msg=`incorrect length check`,n.mode=R;break}G=0,K=0}n.mode=fe;case fe:Te=h;break inf_leave;case R:Te=v;break inf_leave;case pe:return y;case me:default:return _}return e.next_out=H,e.avail_out=W,e.next_in=V,e.avail_in=U,n.hold=G,n.bits=K,(n.wsize||q!==e.avail_out&&n.mode<R&&(n.mode<ue||t!==d))&&ye(e,e.output,e.next_out,q-e.avail_out)?(n.mode=pe,y):(ge-=e.avail_in,q-=e.avail_out,e.total_in+=ge,e.total_out+=q,n.total+=q,n.wrap&&q&&(e.adler=n.check=n.flags?a(n.check,B,q,e.next_out-q):i(n.check,B,q,e.next_out-q)),e.data_type=n.bits+(n.last?64:0)+(n.mode===k?128:0)+(n.mode===se||n.mode===M?256:0),(ge===0&&q===0||t===d)&&Te===m&&(Te=b),Te)}function Y(e){if(!e||!e.state)return _;var t=e.state;return t.window&&=null,e.state=null,m}function X(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?_:(n.head=t,t.done=!1,m)}function Z(e,t){var n=t.length,r,a,o;return!e||!e.state||(r=e.state,r.wrap!==0&&r.mode!==O)?_:r.mode===O&&(a=1,a=i(a,t,n,0),a!==r.check)?v:(o=ye(e,t,n,n),o?(r.mode=pe,y):(r.havedict=1,m))}n.inflateReset=W,n.inflateReset2=G,n.inflateResetKeep=U,n.inflateInit=ge,n.inflateInit2=K,n.inflate=be,n.inflateEnd=Y,n.inflateGetHeader=X,n.inflateSetDictionary=Z,n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":5,"./adler32":7,"./crc32":9,"./inffast":11,"./inftrees":13}],13:[function(e,t,n){var r=e("../utils/common"),i=15,a=852,o=592,s=0,c=1,l=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,m,h,g,_,v){var y=v.bits,b=0,x=0,S=0,C=0,w=0,T=0,E=0,ee=0,te=0,D=0,ne,re,O,k,A,j=null,M=0,ie,N=new r.Buf16(i+1),ae=new r.Buf16(i+1),oe=null,se=0,ce,P,F;for(b=0;b<=i;b++)N[b]=0;for(x=0;x<m;x++)N[t[n+x]]++;for(w=y,C=i;C>=1&&N[C]===0;C--);if(w>C&&(w=C),C===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(S=1;S<C&&N[S]===0;S++);for(w<S&&(w=S),ee=1,b=1;b<=i;b++)if(ee<<=1,ee-=N[b],ee<0)return-1;if(ee>0&&(e===s||C!==1))return-1;for(ae[1]=0,b=1;b<i;b++)ae[b+1]=ae[b]+N[b];for(x=0;x<m;x++)t[n+x]!==0&&(_[ae[t[n+x]]++]=x);if(e===s?(j=oe=_,ie=19):e===c?(j=u,M-=257,oe=d,se-=257,ie=256):(j=f,oe=p,ie=-1),D=0,x=0,b=S,A=g,T=w,E=0,O=-1,te=1<<w,k=te-1,e===c&&te>a||e===l&&te>o)return 1;for(;;){ce=b-E,_[x]<ie?(P=0,F=_[x]):_[x]>ie?(P=oe[se+_[x]],F=j[M+_[x]]):(P=96,F=0),ne=1<<b-E,re=1<<T,S=re;do re-=ne,h[A+(D>>E)+re]=ce<<24|P<<16|F;while(re!==0);for(ne=1<<b-1;D&ne;)ne>>=1;if(ne===0?D=0:(D&=ne-1,D+=ne),x++,--N[b]===0){if(b===C)break;b=t[n+_[x]]}if(b>w&&(D&k)!==O){for(E===0&&(E=w),A+=S,T=b-E,ee=1<<T;T+E<C&&(ee-=N[T+E],!(ee<=0));)T++,ee<<=1;if(te+=1<<T,e===c&&te>a||e===l&&te>o)return 1;O=D&k,h[O]=w<<24|T<<16|A-g}}return D!==0&&(h[A+D]=b-E<<24|4194304),v.bits=w,0}},{"../utils/common":5}],14:[function(e,t,n){t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],15:[function(e,t,n){function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=r},{}]},{},[3])(3)})})),i=/* @__PURE__ */ t(((e,t)=>{t.exports={encode:n().encode,decode:r().decode}}));export default i();
@@ -0,0 +1 @@
1
+ import{t as e}from"./rolldown-runtime-BKuNeK48.js";import*as t from"react";var n=/* @__PURE__ */ e(((e,n)=>{n.exports=Object.prototype.hasOwnProperty.call(t,`module.exports`)?t[`module.exports`]:{...t}}));export{n as t};