@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,8 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,t as n}from"./createLucideIcon-BtwfYE6A.js";var r,i;function a(){return(a=e((()=>{
2
+ /**
3
+ * @license lucide-react v1.53.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ t(),r={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]},r.node,i=n(r)})))()}export{a as n,i as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{w as t}from"./chunk-FOHPRMQF-B8MMrnxV.js";import{n,r}from"./chunk-IH6LHLGP-tD-j3Rsy.js";function i(){return(i=e((()=>{r(),t()})))()}i();export{n as createTreeViewServices};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{w as t}from"./chunk-FOHPRMQF-B8MMrnxV.js";import{n,r}from"./chunk-6K3QC6MW-DtaQ52mY.js";function i(){return(i=e((()=>{r(),t()})))()}i();export{n as createTreemapServices};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{jsx as t}from"react/jsx-runtime";import{Typography as n}from"antd";function r({type:e,size:r,ellipsis:i,copyable:a,...o}){let s=typeof i==`object`?{...i,tooltip:i.showTooltip??i.tooltip}:i,c=typeof a==`object`?{...a,text:a.content??a.text,icon:a.successTip?[void 0,a.successTip]:a.icon}:a;return/* @__PURE__ */ t(n.Text,{...o,ellipsis:s,copyable:c,type:e===`primary`?void 0:e===`tertiary`||e===`quaternary`?`secondary`:e,style:{...o.style,fontSize:r===`small`?12:o.style?.fontSize}})}function i({type:e,...r}){return/* @__PURE__ */ t(n.Paragraph,{...r,type:e===`primary`?void 0:e===`tertiary`||e===`quaternary`?`secondary`:e})}var a;function o(){return(o=e((()=>{a={Text:r,Paragraph:i,Title:({heading:e,...r})=>/* @__PURE__ */ t(n.Title,{...r,level:e===6?5:e})}})))()}export{o as n,a as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{l as t}from"./controls-C5dPckUT.js";import{n}from"./typography-DKK_iHcj.js";import{n as r}from"./skeleton-CrjMjJNr.js";import{a as i}from"./feedback-BnjMKZpz.js";import{r as a}from"./tabs-BobA_IcO.js";import{n as o}from"./json-viewer-DHYRjY8I.js";import{a as s}from"./media-DoGe_p4O.js";import{m as c}from"./ConfigurableTable-DzmZDd8F.js";import{l,r as u}from"./form-CQutQFiD.js";import{n as d}from"./date-picker-CPUxgHVv.js";import{r as f}from"./list-0CbyOlT9.js";import{isValidElement as p,useCallback as m,useEffect as h,useLayoutEffect as g,useRef as _,useState as v}from"react";import{Fragment as y,jsx as b,jsxs as x}from"react/jsx-runtime";import*as S from"antd";function C({type:e,theme:t,size:n,iconPosition:r,...i}){return/* @__PURE__ */ b(S.Button,{...i,iconPlacement:r===`right`?`end`:r===`left`?`start`:i.iconPlacement,size:D(n),danger:e===`danger`,type:t===`borderless`?`text`:t===`solid`?`primary`:t===`outline`?`default`:e===`primary`?`primary`:`default`})}function w({tagList:e=[],maxTagCount:t,showPopover:n,popoverProps:r,size:i,...a}){let o=t??e.length,s=e.slice(o),c=(e,t)=>/* @__PURE__ */ b(M,{...a,...e,size:i},e.tagKey??t);return/* @__PURE__ */ x(O,{spacing:4,children:[e.slice(0,o).map(c),s.length>0&&(n?/* @__PURE__ */ b(S.Popover,{...r,content:/* @__PURE__ */ b(O,{children:s.map(c)}),children:/* @__PURE__ */ x(S.Tag,{children:[`+`,s.length]})}):/* @__PURE__ */ x(S.Tag,{children:[`+`,s.length]}))]})}function T({render:e,trigger:t,visible:n,onVisibleChange:r,position:i,clickToHide:a,rePosKey:o,closeOnEsc:s,onClickOutSide:c,...l}){let[u,d]=v(!1),f=n??u,g=_(null),y=_(null),x=m(e=>{d(e),r?.(e)},[r]);return h(()=>{if(!f)return;let e=e=>{e.target instanceof Node&&!g.current?.contains(e.target)&&!y.current?.contains(e.target)&&(x(!1),c?.())},t=e=>{e.key===`Escape`&&s!==!1&&!e.defaultPrevented&&!e.isComposing&&(e.preventDefault(),x(!1))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[f,s,x,c]),/* @__PURE__ */ b(`span`,{ref:y,style:{display:`inline-flex`},children:/* @__PURE__ */ b(S.Dropdown,{...l,trigger:t===`custom`?[]:typeof t==`string`?[t]:t,open:f,onOpenChange:x,placement:i,popupRender:()=>/* @__PURE__ */ b(`div`,{ref:g,onClickCapture:e=>{a&&e.target.closest(`[role="menuitem"]`)&&x(!1)},children:e}),children:p(l.children)?l.children:/* @__PURE__ */ b(`span`,{children:l.children})})})}function E({items:e,visibleItemRenderer:t,overflowRenderer:n,minVisibleItems:r=0,style:i,className:a}){let o=_(null),s=_(null),[c,l]=v(e.length);return g(()=>{let t=()=>{let t=o.current?.clientWidth??0;if(!t)return;let n=Array.from(s.current?.children??[]).map(e=>e.getBoundingClientRect().width),i=0,a=0;for(let e of n){if(i+e+(a?6:0)>t-36)break;i+=e+(a?6:0),a++}n.reduce((e,t)=>e+t+6,0)-6<=t&&(a=e.length),l(Math.min(e.length,Math.max(r,a)))};t();let n=new ResizeObserver(t);return o.current&&n.observe(o.current),()=>n.disconnect()},[e,r]),/* @__PURE__ */ x(`div`,{ref:o,className:a,style:{display:`flex`,minWidth:0,width:`100%`,position:`relative`,...i},children:[/* @__PURE__ */ b(`div`,{ref:s,"aria-hidden":!0,style:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`,display:`flex`,gap:6,width:`max-content`},children:e.map((e,n)=>/* @__PURE__ */ b(`span`,{children:t(e,n)},n))}),/* @__PURE__ */ x(O,{spacing:6,children:[e.slice(0,c).map(t),c<e.length&&n(e.slice(c))]})]})}var D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K;function q(){return(q=e((()=>{t(),n(),r(),i(),a(),o(),s(),c(),u(),l(),d(),f(),D=e=>e==="default"?`middle`:e===`large`?`large`:e===`small`?`small`:void 0,O=({vertical:e,spacing:t,align:n,...r})=>/* @__PURE__ */ b(S.Space,{...r,orientation:e?`vertical`:`horizontal`,size:typeof t==`number`?t:t===`tight`?8:t===`loose`?24:16,align:n===`stretch`?void 0:n}),k=S.Row,A=S.Col,j=({children:e,...t})=>/* @__PURE__ */ b(S.Space.Compact,{...t,children:e}),M=({color:e,prefixIcon:t,...n})=>/* @__PURE__ */ b(S.Tag,{...n,icon:t,color:e===`violet`?`purple`:e===`grey`?void 0:e}),N=({margin:e,layout:t,align:n,...r})=>/* @__PURE__ */ b(S.Divider,{...r,titlePlacement:n===`left`?`start`:n===`right`?`end`:void 0,type:t===`vertical`?`vertical`:`horizontal`,style:{...r.style,margin:e}}),P=({spinning:e,tip:t,...n})=>/* @__PURE__ */ b(S.Spin,{...n,spinning:e,description:t}),F=({image:e,darkModeImage:t,description:n,title:r,...i})=>/* @__PURE__ */ b(S.Empty,{...i,image:e??S.Empty.PRESENTED_IMAGE_SIMPLE,description:r?/* @__PURE__ */ x(y,{children:[/* @__PURE__ */ b(`strong`,{children:r}),/* @__PURE__ */ b(`div`,{children:n})]}):n}),I=({content:e,position:t,...n})=>/* @__PURE__ */ b(S.Tooltip,{...n,placement:t,title:e??n.title}),L=({position:e,trigger:t,visible:n,onVisibleChange:r,showArrow:i,...a})=>/* @__PURE__ */ b(S.Popover,{...a,arrow:i,placement:e,trigger:t,open:n,onOpenChange:r}),R=({type:e,description:t,title:n,fullMode:r,bordered:i,closeIcon:a,...o})=>/* @__PURE__ */ b(S.Alert,{...o,closable:a!==null&&{closeIcon:a},type:e===`danger`?`error`:e,title:n??t,description:n?t:void 0}),z=/* @__PURE__ */ Object.assign(({color:e,size:t,title:n,...r})=>/* @__PURE__ */ b(`span`,{title:n,style:{display:`inline-flex`},children:/* @__PURE__ */ b(S.Avatar,{...r,size:t===`extra-small`?24:t===`extra-extra-small`?20:t,style:{backgroundColor:e,...r.style}})}),{Group:S.Avatar.Group}),B=({size:e,overlapFrom:t,maxCount:n,...r})=>/* @__PURE__ */ b(S.Avatar.Group,{...r,size:e===`extra-small`?24:e===`extra-extra-small`?20:e,max:{count:n}}),V=({type:e,percent:t,stroke:n,...r})=>/* @__PURE__ */ b(S.Progress,{...r,strokeColor:n,percent:t,type:e===`circle`?`circle`:`line`}),H=/* @__PURE__ */ Object.assign(({data:e,children:t,size:n,align:r,row:i,...a})=>/* @__PURE__ */ b(S.Descriptions,{...a,size:n===`medium`||n==="default"?`middle`:n,layout:i?`horizontal`:a.layout,items:e?.filter(e=>!e.hidden).map((e,t)=>({key:t,label:e.key,children:e.value,span:e.span})),children:t}),{Item:S.Descriptions.Item}),U=/* @__PURE__ */ Object.assign(T,{Menu:({children:e})=>/* @__PURE__ */ b(`div`,{role:`menu`,className:`ant-dropdown-menu`,children:e}),Item:({children:e,onClick:t,disabled:n,type:r,icon:i,...a})=>/* @__PURE__ */ x(`button`,{...a,className:`ant-dropdown-menu-item`,role:`menuitem`,style:{...a.style,color:r===`danger`?`var(--arc-antd-color-danger)`:void 0},disabled:n,onClick:t,children:[i,e]}),Divider:()=>/* @__PURE__ */ b(S.Divider,{style:{margin:4}}),Title:({children:e})=>/* @__PURE__ */ b(`div`,{className:`ant-dropdown-menu-item-group-title`,children:e})}),W=({onChange:e,value:t,max:n,separator:r,allowDuplicates:i,addOnBlur:a,...o})=>/* @__PURE__ */ b(S.Select,{...o,value:t,onChange:e,mode:`tags`,maxCount:n,tokenSeparators:r,style:{width:`100%`,...o.style}}),G=/* @__PURE__ */ Object.assign(({value:e,onChange:t,alpha:n,usePopover:r,popoverProps:i,...a})=>/* @__PURE__ */ b(S.ColorPicker,{...a,defaultValue:a.defaultValue??(n===!1?`#1677ff`:void 0),placement:i?.position,styles:{popup:{root:{zIndex:i?.zIndex}}},disabledAlpha:n===!1,value:typeof e==`object`?e.hex:e,onChange:e=>t?.({hex:e.toHexString()})}),{colorStringToValue:e=>({hex:e})}),K=S.Breadcrumb})))()}export{q as C,I as S,P as _,C as a,w as b,H as c,F as d,E as f,O as g,k as h,K as i,N as l,V as m,B as n,A as o,L as p,R as r,G as s,z as t,U as u,j as v,W as x,M as y};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";function t(e){var n,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`){if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(r=t(e[n]))&&(i&&(i+=` `),i+=r)}else for(r in e)e[r]&&(i&&(i+=` `),i+=r)}return i}function n(){for(var e,n,r=0,i=``,a=arguments.length;r<a;r++)(e=arguments[r])&&(n=t(e))&&(i&&(i+=` `),i+=n);return i}function r(){return(r=e((()=>{})))()}export{r as n,n as t};
@@ -0,0 +1,8 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,t as n}from"./createLucideIcon-BtwfYE6A.js";var r,i;function a(){return(a=e((()=>{
2
+ /**
3
+ * @license lucide-react v1.53.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ t(),r={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]},r.node,i=n(r)})))()}export{a as n,i as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,t as n}from"./ResponsiveTableActions-y54aSdhs.js";import{n as r,r as i}from"./deleteAction-CCocr5uV.js";import{usePermission as a}from"@fudanda/react-core/hooks/usePermission";function o(e){let{hasPermission:t}=a(),{permission:i,permissions:o,allow:c,hidden:l,edit:u,remove:d,label:f,title:p,content:m,successMessage:h,onDeleted:g,disabled:_,extra:v,extraBetween:y,extraAfter:b,width:x,desktopInlineKeys:S,editLabel:C,removeLabel:w,columnTitle:T,menuAriaLabel:E,emptyContent:D}=e,O=o?.edit??(i?`${i}:update`:void 0),k=o?.remove??(i?`${i}:delete`:void 0),A=!!u&&(c?.edit??!0)&&(!O||t(O)),j=!!d&&(c?.remove??!0)&&(!k||t(k)),M=typeof u==`function`?u:u?u.openEdit:void 0,N=typeof d==`function`?d:d?e=>d.mutateAsync([e.id]):void 0;return n({title:T,width:x??150+(+!!v+ +!!y+ +!!b)*60,desktopInlineKeys:S,menuAriaLabel:E,emptyContent:D,actions:e=>[...v?v(e):[],...M?[{key:`edit`,label:C??`编辑`,hidden:!A||!!l?.edit?.(e),onClick:()=>M(e)}]:[],...y?y(e):[],...N?[r({hidden:!j||!!l?.remove?.(e),disabled:_?.remove?.(e),disabledReason:s(_?.reason,e),label:w,title:s(p,e)??(f?`确定要删除「${f(e)}」吗?`:`确定要删除吗?`),content:s(m,e),run:()=>N(e),...h===void 0?{}:{successMessage:h},...g?{onDeleted:t=>g(e,t)}:{}})]:[],...b?b(e):[]]})}var s;function c(){return(c=e((()=>{t(),i(),s=(e,t)=>typeof e==`function`?e(t):e})))()}export{o as n,c as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{a as t,f as n}from"./parse-6ZQGx714.js";import{n as r}from"./listTableProps-DDynsnLF.js";import{useCallback as i,useMemo as a}from"react";import{contractKey as o}from"@fudanda/react-core/lib/contract-query";import{useFilterQuery as s}from"@fudanda/react-core/hooks/useFilterQuery";import{useListSearch as c}from"@fudanda/react-core/hooks/useListSearch";import{formatDateTimeRangeValuesForApi as l}from"@fudanda/react-core/utils/date";function u(e){return`contract`in e}function d(e){return`op`in e}function f(e){let t=u(e)?e.contract.list:d(e)?e.op:void 0,{useList:f,params:p,enabled:m,table:h}=e,g=t?{...e,defaults:e.defaults??{},listKey:o(t)}:e,_=c(g),v=t?_.submittedParams:e.toQuery(_.submittedParams),y=s(v),b=f({page:_.page,pageSize:_.pageSize,...p,...y},m),x=r(b,{pagination:_.buildPagination,...h}),S=t?.query,{draftParams:C,setDraftParams:w,handleSearch:T,handleReset:E}=_,D=i(e=>{let[t,r]=e,i=C[t],a=C[r];return{value:typeof i==`string`&&i&&typeof a==`string`&&a?[new Date(i),new Date(a)]:null,onChange:e=>{let[i,a]=l(e,``),o=(e,t)=>{if(!t)return;let r=S?.shape[e];if(!r||n(r,t).success)return t;let i=new Date(t);if(!Number.isFinite(i.getTime()))return t;let a=i.toISOString();return n(r,a).success?a:t};w(e=>({...e,[t]:o(t,i),[r]:o(r,a)}))}}},[C,w,S]),O=a(()=>({onSearch:T,onReset:E}),[T,E]);return{..._,filterQuery:y,listQuery:b,tableProps:x,toolbarProps:O,filterSchema:S,bindRange:D}}function p(){return(p=e((()=>{t()})))()}export{f as n,p as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{useEffect as t,useRef as n}from"react";function r(e,r=!0,i){let a=n(!1),o=n(null);return t(()=>{if(r&&e&&!a.current){let e=document.querySelector(`.admin-content`);e&&(o.current={container:e,scrollTop:e.scrollTop})}a.current=!!e},[r,e]),()=>{i?.();let e=o.current;o.current=null,r&&e?.container.isConnected&&(e.container.scrollTop=e.scrollTop)}}function i(){return(i=e((()=>{})))()}export{r as n,i as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{useCallback as t,useMemo as n,useState as r}from"react";function i(e={}){let[i,a]=r([]),o=t(()=>a([]),[]),{extra:s}=e,c=n(()=>({...s,selectedRowKeys:i,onChange:e=>a(e??[])}),[s,i]);return{selectedRowKeys:i,setSelectedRowKeys:a,hasSelection:i.length>0,clear:o,rowSelection:c}}function a(){return(a=e((()=>{})))()}export{i as n,a as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{s as t}from"./controls-C5dPckUT.js";import{i as n,n as r}from"./feedback-BnjMKZpz.js";import{C as i}from"./ui-BFsHoY7a.js";import{i as a,t as o}from"./confirm-BtBBEqk8.js";import{useCallback as s,useState as c}from"react";import{jsx as l}from"react/jsx-runtime";function u(e,t,n){return e===null?null:e===void 0?t:typeof e==`function`?e(n):e}function d(e){let{getKey:i,isEnabled:a,toggle:d,confirmDisable:f,confirmEnable:p,disabled:m,messages:h}=e,[g,_]=c(null),v=s(e=>i?i(e):e.id,[i]),y=s(e=>a?a(e):e.status===`enabled`,[a]),b=s(e=>typeof m==`function`?m(e):!!m,[m]),x=s(async(e,t)=>{let r=v(e);_(r);try{await d(e,t);let r=t?u(h?.enabled,`已启用`,e):u(h?.disabled,`已停用`,e);r&&n.success(r)}catch{}finally{_(e=>e===r?null:e)}},[v,h,d]),S=s((e,t)=>{let n=t?p?.(e):f?.(e);if(!n){x(e,t);return}let{danger:i,...a}=n;(i?o:r.confirm)({...a,onOk:()=>{x(e,t)}})},[f,p,x]),C=s(e=>/* @__PURE__ */ l(t,{size:`small`,checked:y(e),loading:g===v(e),disabled:b(e),onChange:t=>S(e,t)}),[b,y,v,g,S]);return{pendingKey:g,request:S,renderSwitch:C,column:s((e={})=>({title:e.title??`状态`,dataIndex:e.dataIndex??`status`,width:e.width??80,...e.fixed===!1?{}:{fixed:`right`},render:(e,t)=>C(t)}),[C])}}function f(){return(f=e((()=>{i(),a()})))()}export{d as n,f as t};
@@ -0,0 +1,15 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,t as n}from"./createLucideIcon-BtwfYE6A.js";var r,i;function a(){return(a=e((()=>{
2
+ /**
3
+ * @license lucide-react v1.53.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ t(),r={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]},r.node,i=n(r)})))()}var o,s;function c(){return(c=e((()=>{
9
+ /**
10
+ * @license lucide-react v1.53.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ t(),o={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]},o.node,s=n(o)})))()}export{a as i,c as n,i as r,s as t};
@@ -0,0 +1,8 @@
1
+ import{n as e}from"./rolldown-runtime-BKuNeK48.js";import{n as t,t as n}from"./createLucideIcon-BtwfYE6A.js";var r,i;function a(){return(a=e((()=>{
2
+ /**
3
+ * @license lucide-react v1.53.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ t(),r={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]},r.node,i=n(r)})))()}export{a as n,i as t};
@@ -0,0 +1,34 @@
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}from"./src-C1iDJpBK.js";import{U as o,W as s,a as c,at as l,b as u,c as d,et as f,f as p,it as m,j as h,nt as g,ot as _,q as v,rt as y,st as b,tt as x,v as S,w as C,y as w}from"./chunk-DU6HZSFF-Bx48E1rg.js";import{d as T,i as E}from"./chunk-75Z2AOVW-IO9R6faP.js";import{n as D,t as O}from"./chunk-CLGD4ZFX-tRS89bnq.js";import{n as k,t as A}from"./rough.esm-CVrpq1dW.js";var j;function M(){return(M=e((()=>{l(),j=(e,t)=>m(e,`a`,-t)})))()}function N(e,t){let n=F(e),r=n.filter(t=>P(t,e)),i=0,a=0,o=[];if(r.length>1){let t=te(r);for(let e=0;e<r.length;++e){let n=r[e];n.angle=Math.atan2(n.x-t.x,n.y-t.y)}r.sort((e,t)=>t.angle-e.angle);let n=r[r.length-1];for(let t=0;t<r.length;++t){let s=r[t];a+=(n.x+s.x)*(s.y-n.y);let c={x:(s.x+n.x)/2,y:(s.y+n.y)/2},l=null;for(let t=0;t<s.parentIndex.length;++t)if(n.parentIndex.includes(s.parentIndex[t])){let r=e[s.parentIndex[t]],i=Math.atan2(s.x-r.x,s.y-r.y),a=Math.atan2(n.x-r.x,n.y-r.y),o=a-i;o<0&&(o+=2*Math.PI);let u=a-o/2,d=L(c,{x:r.x+r.radius*Math.sin(u),y:r.y+r.radius*Math.cos(u)});d>r.radius*2&&(d=r.radius*2),(l==null||l.width>d)&&(l={circle:r,width:d,p1:s,p2:n,large:d>r.radius,sweep:!0})}l!=null&&(o.push(l),i+=I(l.circle.radius,l.width),n=s)}}else{let t=e[0];for(let n=1;n<e.length;++n)e[n].radius<t.radius&&(t=e[n]);let n=!1;for(let r=0;r<e.length;++r)if(L(e[r],t)>Math.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-Fe,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function P(e,t){return t.every(t=>L(e,t)<t.radius+Fe)}function F(e){let t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){let i=ee(e[n],e[r]);for(let e of i)e.parentIndex=[n,r],t.push(e)}return t}function I(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function L(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function R(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return I(e,r)+I(t,i)}function ee(e,t){let n=L(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,c=e.y+a*(t.y-e.y)/n,l=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function te(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function ne(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),c=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n<i;++n){c/=2;let n=t+c,r=e(n);if(r*o>=0&&(t=n),Math.abs(c)<a||r===0)return n}return t+c}function re(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function ie(e,t){return re(e).map(()=>re(t))}function z(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function B(e){return Math.sqrt(z(e,e))}function V(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function H(e,t,n,r,i){for(let a=0;a<e.length;++a)e[a]=t*n[a]+r*i[a]}function ae(e,t,n){n||={};let r=n.maxIterations||t.length*200,i=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,o=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,c=n.rho===void 0?1:n.rho,l=n.chi===void 0?2:n.chi,u=n.psi===void 0?-.5:n.psi,d=n.sigma===void 0?.5:n.sigma,f,p=t.length,m=Array(p+1);m[0]=t,m[0].fx=e(t),m[0].id=0;for(let n=0;n<p;++n){let r=t.slice();r[n]=r[n]?r[n]*i:a,m[n+1]=r,m[n+1].fx=e(r),m[n+1].id=n+1}function h(e){for(let t=0;t<e.length;t++)m[p][t]=e[t];m[p].fx=e.fx}let g=(e,t)=>e.fx-t.fx,_=t.slice(),v=t.slice(),y=t.slice(),b=t.slice();for(let t=0;t<r;++t){if(m.sort(g),n.history){let e=m.map(e=>{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:m[0].slice(),fx:m[0].fx,simplex:e})}f=0;for(let e=0;e<p;++e)f=Math.max(f,Math.abs(m[0][e]-m[1][e]));if(Math.abs(m[0].fx-m[p].fx)<o&&f<s)break;for(let e=0;e<p;++e){_[e]=0;for(let t=0;t<p;++t)_[e]+=m[t][e];_[e]/=p}let t=m[p];if(H(v,1+c,_,-c,t),v.fx=e(v),v.fx<m[0].fx)H(b,1+l,_,-l,t),b.fx=e(b),b.fx<v.fx?h(b):h(v);else if(v.fx>=m[p-1].fx){let n=!1;if(v.fx>t.fx?(H(y,1+u,_,-u,t),y.fx=e(y),y.fx<t.fx?h(y):n=!0):(H(y,1-u*c,_,u*c,t),y.fx=e(y),y.fx<v.fx?h(y):n=!0),n){if(d>=1)break;for(let t=1;t<m.length;++t)H(m[t],1-d,m[0],d,m[t]),m[t].fx=e(m[t])}}else h(v)}return m.sort(g),{fx:m[0].fx,x:m[0]}}function oe(e,t,n,r,i,a,o){let s=n.fx,c=z(n.fxprime,t),l=s,u=s,d=c,f=0;i||=1,a||=1e-6,o||=.1;function p(u,f,p){for(let m=0;m<16;++m)if(i=(u+f)/2,H(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=z(r.fxprime,t),l>s+a*i*c||l>=p)f=i;else{if(Math.abs(d)<=-o*c)return i;d*(f-u)>=0&&(f=u),u=i,p=l}return 0}for(let m=0;m<10;++m){if(H(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=z(r.fxprime,t),l>s+a*i*c||m&&l>=u)return p(f,i,u);if(Math.abs(d)<=-o*c)return i;if(d>=0)return p(i,f,l);u=l,f=i,i*=2}return i}function se(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,c=1,l;n||={},l=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),V(o,r.fxprime,-1);for(let t=0;t<l;++t){if(c=oe(e,o,r,i,c),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),!c)V(o,r.fxprime,-1);else{H(a,1,i.fxprime,-1,r.fxprime);let e=z(r.fxprime,r.fxprime),t=Math.max(0,z(a,i.fxprime)/e);H(o,t,o,-1,i.fxprime),s=r,r=i,i=s}if(B(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),r}function ce(e,t={}){t.maxIterations=t.maxIterations||500;let n=t.initialLayout||fe,r=t.lossFunction||W,i=le(e,t),a=n(i,t),o=Object.keys(a),s=[];for(let e of o)s.push(a[e].x),s.push(a[e].y);let c=ae(e=>{let t={};for(let n=0;n<o.length;++n){let r=o[n];t[r]={x:e[2*n],y:e[2*n+1],radius:a[r].radius}}return r(t,i)},s,t).x;for(let e=0;e<o.length;++e){let t=o[e];a[t].x=c[2*e],a[t].y=c[2*e+1]}return a}function U(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+Ie?Math.abs(e-t):ne(r=>R(e,t,r)-n,0,e+t)}function le(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=/* @__PURE__ */ new Map;for(let t of r)for(let n=0;n<t.sets.length;n++){let r=String(t.sets[n]);e.set(r,t.size+(e.get(r)||0));for(let i=n+1;i<t.sets.length;i++){let n=String(t.sets[i]),a=`${r};${n}`,o=`${n};${r}`;e.set(a,t.size+(e.get(a)||0)),e.set(o,t.size+(e.get(o)||0))}}for(let t of r)t.sets.length<3&&(t.size=e.get(i(t.sets)))}let a=[],o=/* @__PURE__ */ new Set;for(let e of r)if(e.sets.length===1)a.push(e.sets[0]);else if(e.sets.length===2){let t=e.sets[0],n=e.sets[1];o.add(i(e.sets)),o.add(i([n,t]))}a.sort((e,t)=>e===t?0:e<t?-1:1);for(let e=0;e<a.length;++e){let t=a[e];for(let n=e+1;n<a.length;++n){let e=a[n];o.has(i([t,e]))||r.push({sets:[t,e],size:0})}}return r}function ue(e,t,n){let r=ie(t.length,t.length),i=ie(t.length,t.length);return e.filter(e=>e.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=U(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let c=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?c=1:e.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c}),{distances:r,constraints:i}}function de(e,t,n,r){for(let e=0;e<t.length;++e)t[e]=0;let i=0;for(let a=0;a<n.length;++a){let o=e[2*a],s=e[2*a+1];for(let c=a+1;c<n.length;++c){let l=e[2*c],u=e[2*c+1],d=n[a][c],f=r[a][c],p=(l-o)*(l-o)+(u-s)*(u-s),m=Math.sqrt(p),h=p-d*d;f>0&&m<=d||f<0&&m>=d||(i+=2*h*h,t[2*a]+=4*h*(o-l),t[2*a+1]+=4*h*(s-u),t[2*c]+=4*h*(l-o),t[2*c+1]+=4*h*(u-s))}}return i}function fe(e,t={}){let n=me(e,t),r=t.lossFunction||W;if(e.length>=8){let i=pe(e,t),a=r(i,e),o=r(n,e);a+1e-8<o&&(n=i)}return n}function pe(e,t={}){let n=t.restarts||10,r=[],i={};for(let t of e)t.sets.length===1&&(i[t.sets[0]]=r.length,r.push(t));let{distances:a,constraints:o}=ue(e,r,i),s=B(a.map(B))/a.length;a=a.map(e=>e.map(e=>e/s));let c=(e,t)=>de(e,t,a,o),l=null;for(let e=0;e<n;++e){let e=se(c,re(a.length*2).map(Math.random),t);(!l||e.fx<l.fx)&&(l=e)}let u=l.x,d={};for(let e=0;e<r.length;++e){let t=r[e];d[t.sets[0]]={x:u[2*e]*s,y:u[2*e+1]*s,radius:Math.sqrt(t.size/Math.PI)}}if(t.history)for(let e of t.history)V(e.x,s);return d}function me(e,t){let n=t&&t.lossFunction?t.lossFunction:W,r={},i={};for(let t of e)if(t.sets.length===1){let e=t.sets[0];r[e]={x:1e10,y:1e10,rowid:r.length,size:t.size,radius:Math.sqrt(t.size/Math.PI)},i[e]=[]}e=e.filter(e=>e.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+Ie>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;n<i[e].length;++n)t+=i[e][n].size*i[e][n].weight;a.push({set:e,size:t})});function o(e,t){return t.size-e.size}a.sort(o);let s={};function c(e){return e.set in s}function l(e,t){r[t].x=e.x,r[t].y=e.y,s[t]=!0}l({x:0,y:0},a[0].set);for(let t=1;t<a.length;++t){let s=a[t].set,d=i[s].filter(c),f=r[s];if(d.sort(o),d.length===0)throw`ERROR: missing pairwise overlap information`;let p=[];for(var u=0;u<d.length;++u){let e=r[d[u].set],t=U(f.radius,e.radius,d[u].size);p.push({x:e.x+t,y:e.y}),p.push({x:e.x-t,y:e.y}),p.push({y:e.y+t,x:e.x}),p.push({y:e.y-t,x:e.x});for(let n=u+1;n<d.length;++n){let i=r[d[n].set],a=U(f.radius,i.radius,d[n].size),o=ee({x:e.x,y:e.y,radius:t},{x:i.x,y:i.y,radius:a});p.push(...o)}}let m=1e50,h=p[0];for(let t of p){r[s].x=t.x,r[s].y=t.y;let i=n(r,e);i<m&&(m=i,h=t)}l(h,s)}return r}function W(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=R(n.radius,i.radius,L(n,i))}else t=N(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function he(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=R(n.radius,i.radius,L(n,i))}else t=N(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function ge(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&L(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function _e(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t<e.length;++t)for(let r=t+1;r<e.length;++r){let i=e[t].radius+e[r].radius;L(e[t],e[r])+1e-10<i&&n(e[r],e[t])}let r=/* @__PURE__ */ new Map;for(let n=0;n<e.length;++n){let i=t(e[n]).parent.setid;r.has(i)||r.set(i,[]),r.get(i).push(e[n])}return e.forEach(e=>{delete e.parent}),Array.from(r.values())}function ve(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function ye(e,t,n){t??=Math.PI/2;let r=Se(e).map(e=>Object.assign({},e)),i=_e(r);for(let e of i){ge(e,t,n);let r=ve(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,c;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)c=a.yRange.max-i.yRange.min+o;else{c=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(c+=e)}for(let t of e)t.x+=s,t.y+=c,r.push(t)}let c=1;for(;c<i.length;)s(i[c],!0,!1),s(i[c+1],!1,!0),s(i[c+2],!0,!0),c+=3,a=ve(r);return xe(r)}function be(e,t,n,r,i){let a=Se(e);t-=2*r,n-=2*r;let{xRange:o,yRange:s}=ve(a);if(o.max===o.min||s.max===s.min)return console.log(`not scaling solution: zero size detected`),e;let c,l;if(i){let e=Math.sqrt(i/Math.PI)*2;c=t/e,l=n/e}else c=t/(o.max-o.min),l=n/(s.max-s.min);let u=Math.min(l,c),d=(t-(o.max-o.min)*u)/2,f=(n-(s.max-s.min)*u)/2;return xe(a.map(e=>({radius:u*e.radius,x:r+d+(e.x-o.min)*u,y:r+f+(e.y-s.min)*u,setid:e.setid})))}function xe(e){let t={};for(let n of e)t[n.setid]=n;return t}function Se(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function Ce(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,c=null,l=!0,u=!0,d=null,f=null,p=!1,m=null,h=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,g={},_=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],v=0,y=function(e){if(e in g)return g[e];var t=g[e]=_[v];return v+=1,v>=_.length&&(v=0),t},b=ce,x=W;function S(g){let _=g.datum(),v=/* @__PURE__ */ new Set;_.forEach(e=>{e.size==0&&e.sets.length==1&&v.add(e.sets[0])}),_=_.filter(e=>!e.sets.some(e=>v.has(e)));let S={},C={};if(_.length>0){let e=b(_,{lossFunction:x,distinct:p});s&&(e=ye(e,o,f)),S=be(e,n,r,i,c),C=Oe(S,_,h)}let w={};_.forEach(e=>{e.label&&(w[e.sets]=e.label)});function T(e){if(e.sets in w)return w[e.sets];if(e.sets.length==1)return``+e.sets[0]}g.selectAll(`svg`).data([S]).enter().append(`svg`);let E=g.select(`svg`);t?E.attr(`viewBox`,`0 0 ${n} ${r}`):E.attr(`width`,n).attr(`height`,r);let D={},O=!1;E.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!p&&(O=!0,D[e.sets[0]]=Ae(t))});function k(e){return t=>Ne(e.sets.map(e=>{let i=D[e],a=S[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),m)}let A=E.selectAll(`.venn-area`).data(_,e=>e.sets),j=A.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),M=j.append(`path`),N=j.append(`text`).attr(`class`,`label`).text(e=>T(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);u&&(M.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:y(e.sets)).style(`fill-opacity`,`.25`),N.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?y(t.sets):`#444`));function P(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let F=g;O&&typeof F.transition==`function`?(F=P(g),F.selectAll(`path`).attrTween(`d`,k)):F.selectAll(`path`).attr(`d`,e=>Ne(e.sets.map(e=>S[e])),m);let I=F.selectAll(`text`).filter(e=>e.sets in C).text(e=>T(e)).attr(`x`,e=>Math.floor(C[e.sets].x)).attr(`y`,e=>Math.floor(C[e.sets].y));l&&(O?`on`in I?I.on(`end`,we(S,T)):I.each(`end`,we(S,T)):I.each(we(S,T)));let L=P(A.exit()).remove();typeof A.transition==`function`&&L.selectAll(`path`).attrTween(`d`,k);let R=L.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return d!==null&&(N.style(`font-size`,`0px`),I.style(`font-size`,d),R.style(`font-size`,`0px`)),{circles:S,textCentres:C,nodes:A,enter:j,update:F,exit:L}}return S.wrap=function(e){return arguments.length?(l=e,S):l},S.useViewBox=function(){return t=!0,S},S.width=function(e){return arguments.length?(n=e,S):n},S.height=function(e){return arguments.length?(r=e,S):r},S.padding=function(e){return arguments.length?(i=e,S):i},S.distinct=function(e){return arguments.length?(p=e,S):p},S.colours=function(e){return arguments.length?(y=e,S):y},S.colors=function(e){return arguments.length?(y=e,S):y},S.fontSize=function(e){return arguments.length?(d=e,S):d},S.round=function(e){return arguments.length?(m=e,S):m},S.duration=function(e){return arguments.length?(a=e,S):a},S.layoutFunction=function(e){return arguments.length?(b=e,S):b},S.normalize=function(e){return arguments.length?(s=e,S):s},S.scaleToFit=function(e){return arguments.length?(c=e,S):c},S.styled=function(e){return arguments.length?(u=e,S):u},S.orientation=function(e){return arguments.length?(o=e,S):o},S.orientationOrder=function(e){return arguments.length?(f=e,S):f},S.lossFunction=function(e){return arguments.length?(x=e==="default"?W:e===`logRatio`?he:e,S):x},S}function we(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,c=o.pop(),l=[c],u=0,d=1.1;r.textContent=null;let f=[];function p(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,f.push(t),r.append(t),t}let m=p(c);for(;c=o.pop(),c;){l.push(c);let e=l.join(` `);m.textContent=e,e.length>s&&m.getComputedTextLength()>i&&(l.pop(),m.textContent=l.join(` `),l=[c],m=p(c),u++)}let h=.35-u*d/2,g=r.getAttribute(`x`),_=r.getAttribute(`y`);f.forEach((e,t)=>{e.setAttribute(`x`,g),e.setAttribute(`y`,_),e.setAttribute(`dy`,`${h+t*d}em`)})}}function Te(e,t,n){let r=t[0].radius-L(t[0],e);for(let n=1;n<t.length;++n){let i=t[n].radius-L(t[n],e);i<=r&&(r=i)}for(let t=0;t<n.length;++t){let i=L(n[t],e)-n[t].radius;i<=r&&(r=i)}return r}function Ee(e,t,n){let r=[];for(let t of e)r.push({x:t.x,y:t.y}),r.push({x:t.x+t.radius/2,y:t.y}),r.push({x:t.x-t.radius/2,y:t.y}),r.push({x:t.x,y:t.y+t.radius/2}),r.push({x:t.x,y:t.y-t.radius/2});let i=r[0],a=Te(r[0],e,t);for(let n=1;n<r.length;++n){let o=Te(r[n],e,t);o>=a&&(i=r[n],a=o)}let o=ae(n=>-1*Te({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},c=!0;for(let t of e)if(L(s,t)>t.radius){c=!1;break}for(let e of t)if(L(s,e)<e.radius){c=!1;break}if(c)return s;if(e.length==1)return{x:e[0].x,y:e[0].y};let l={};return N(e,l),l.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:l.arcs.length==1?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:t.length?Ee(e,[]):te(l.arcs.map(e=>e.p1))}function De(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r<n.length;r++){let i=n[r],a=e[i];for(let o=r+1;o<n.length;++o){let r=n[o],s=e[r],c=L(a,s);c+s.radius<=a.radius+1e-10?t[r].push(i):c+a.radius<=s.radius+1e-10&&t[i].push(r)}}return t}function Oe(e,t,n){let r={},i=De(e);for(let a=0;a<t.length;++a){let o=t[a].sets,s={},c={};for(let e=0;e<o.length;++e){s[o[e]]=!0;let t=i[o[e]];for(let e=0;e<t.length;++e)c[t[e]]=!0}let l=[],u=[];for(let t in e)t in s?l.push(e[t]):t in c||u.push(e[t]);let d=Ee(l,u,n);r[o]=d,d.disjoint&&t[a].size>0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function ke(e,t,n){let r=[];return r.push(`
2
+ M`,e,t),r.push(`
3
+ m`,-n,0),r.push(`
4
+ a`,n,n,0,1,0,n*2,0),r.push(`
5
+ a`,n,n,0,1,0,-n*2,0),r.join(` `)}function Ae(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function je(e){if(e.length===0)return[];let t={};return N(e,t),t.arcs}function Me(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return ke(r(t.x),r(t.y),r(t.radius))}let i=[`
6
+ M`,r(e[0].p2.x),r(e[0].p2.y)];for(let t of e){let e=r(t.circle.radius);i.push(`
7
+ A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}function Ne(e,t){return Me(je(e),t)}function Pe(e,t={}){let{lossFunction:n,layoutFunction:r=ce,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:o,width:s=600,height:c=350,padding:l=15,scaleToFit:u=!1,symmetricalTextCentre:d=!1,distinct:f,round:p=2}=t,m=r(e,{lossFunction:n==="default"||!n?W:n===`logRatio`?he:n,distinct:f});i&&(m=ye(m,a,o));let h=be(m,s,c,l,u),g=Oe(h,e,d),_=new Map(Object.keys(h).map(e=>[e,{set:e,x:h[e].x,y:h[e].y,radius:h[e].radius}])),v=e.map(e=>{let t=e.sets.map(e=>_.get(e)),n=je(t);return{circles:t,arcs:n,path:Me(n,p),area:e,has:new Set(e.sets)}});function y(e){let t=``;for(let n of v)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return v.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:g[r.sets],circles:e,arcs:t,path:n,distinctPath:n+y(r.sets)}))}var Fe,Ie;function Le(){return(Le=e((()=>{Fe=1e-10,Ie=1e-10})))()}function Re(){return E(tt,u().venn)}function ze(e){let t=/* @__PURE__ */ new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}function G(e){return e.join(`|`)}function Be(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),c=/* @__PURE__ */ new Map;for(let e of r){let t=G(e.sets),n=c.get(t);n?n.push(e):c.set(t,[e])}for(let[e,n]of c.entries()){let r=t.get(e);if(!r?.text)continue;let c=r.text.x,l=r.text.y,u=Math.min(...r.circles.map(e=>e.radius)),d=Math.min(...r.circles.map(e=>e.radius-Math.hypot(c-e.x,l-e.y))),f=Number.isFinite(d)?Math.max(0,d):0;f===0&&Number.isFinite(u)&&(f=u*.6);let p=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&p.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,c).attr(`cy`,l).attr(`r`,f).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let m=Math.max(80*i,f*2*.95),h=Math.max(60*i,f*2*.95),g=(r.data.label&&r.data.label.length>0?Math.min(32*i,f*.25):0)+(n.length<=2?30*i:0),_=c-m/2,v=l-h/2+g,y=Math.max(1,Math.ceil(Math.sqrt(n.length))),b=Math.max(1,Math.ceil(n.length/y)),x=m/y,S=h/b;for(let[e,t]of n.entries()){let n=e%y,r=Math.floor(e/y),s=_+x*(n+.5),c=v+S*(r+.5);o&&p.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,_+x*n).attr(`y`,v+S*r).attr(`width`,x).attr(`height`,S).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let l=x*.9,u=S*.9,d=p.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,l).attr(`height`,u).attr(`x`,s-l/2).attr(`y`,c-u/2).attr(`overflow`,`visible`),f=a.get(t.id)?.color,m=d.append(`xhtml:span`).attr(`class`,`venn-text-node`).style(`display`,`flex`).style(`width`,`100%`).style(`height`,`100%`).style(`white-space`,`normal`).style(`align-items`,`center`).style(`justify-content`,`center`).style(`text-align`,`center`).style(`overflow-wrap`,`normal`).style(`word-break`,`normal`).text(t.label??t.id);f&&m.style(`color`,f)}}}function Ve(e){let t=new Set(e.map(e=>[...e.sets].sort().join(`|`))),n=new Map(e.filter(e=>e.sets.length===1&&e.size!==void 0).map(e=>[e.sets[0],e.size])),r=[];for(let i of e){if(i.sets.length<3)continue;let e=[...i.sets].sort();for(let i=0;i<e.length-1;i++)for(let a=i+1;a<e.length;a++){let o=[e[i],e[a]],s=o.join(`|`);if(!t.has(s)){t.add(s);let e=n.get(o[0]),i=n.get(o[1]),a=e!==void 0&&i!==void 0?Math.min(e,i)/4:2.5;r.push({sets:o,size:a,label:``})}}}return r.length>0?[...e,...r]:e}var K,He,q,J,Y,X,Ue,Z,We,Ge,Q,Ke,qe,Je,Ye,$,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at;function ot(){return(ot=e((()=>{O(),T(),h(),r(),n(),a(),_(),g(),x(),M(),Le(),k(),K=(function(){var e=/* @__PURE__ */ t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],a=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],c=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:/* @__PURE__ */ t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:`error`,5:`VENN`,7:`EOF`,8:`NEWLINE`,11:`TITLE`,12:`SET`,14:`BRACKET_LABEL`,15:`COLON`,16:`NUMERIC`,17:`UNION`,19:`TEXT`,20:`IDENTIFIER`,21:`STRING`,22:`INDENT_TEXT`,24:`STYLE`,27:`COMMA`,31:`HEXCOLOR`,32:`RGBCOLOR`,33:`RGBACOLOR`},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:/* @__PURE__ */ t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var c=r.getCurrentSets();if(!c)throw Error(`text requires set`);r.addTextData(c,a[s],void 0);break;case 27:case 28:var c=r.getCurrentSets();if(!c)throw Error(`text requires set`);r.addTextData(c,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s]}},`anonymous`),table:[e(n,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(r,[2,4],{6:5}),e(n,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(r,[2,5]),e(r,[2,6]),e(r,[2,7]),e(r,[2,8]),{13:16,20:i,21:a},{13:20,18:19,20:i,21:a},{13:20,18:21,20:i,21:a},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:a},e(r,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(r,[2,13],{14:[1,29],15:[1,30],27:s}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},e(r,[2,22]),e(r,[2,24],{14:[1,35]}),e(r,[2,25],{14:[1,36]}),e(r,[2,26]),{20:c,25:37,26:38,27:s},e(r,[2,10],{15:[1,40]}),{16:[1,41]},e(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:a},e(r,[2,17],{14:[1,45]}),e(r,[2,18],{14:[1,46]}),e(r,[2,19]),e(r,[2,27]),e(r,[2,28]),e(r,[2,23],{27:[1,47]}),e(l,[2,29]),{15:[1,48]},{16:[1,49]},e(r,[2,11]),{16:[1,50]},e(r,[2,15]),e(o,[2,42]),e(r,[2,20]),e(r,[2,21]),{20:c,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},e(r,[2,12]),e(r,[2,16]),e(l,[2,30]),e(l,[2,31]),e(l,[2,32]),e(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),e(h,[2,34]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),e(h,[2,39]),e(h,[2,40]),e(h,[2,35])],defaultActions:{6:[2,1]},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)+`:
8
+ `+h.showPosition()+`
9
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};g.lexer=/* @__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).
10
+ `+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()+`
11
+ `+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.
12
+ `+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:{"case-insensitive":!0},performAction:/* @__PURE__ */ t(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}}})();function _(){this.yy={}}return t(_,`Parser`),_.prototype=g,g.Parser=_,new _})(),K.parser=K,He=K,q=[],J=[],Y=[],X=/* @__PURE__ */ new Set,Z=!1,We=/* @__PURE__ */ t((e,t,n)=>{let r=$(e).sort(),i=n??10/e.length**2;Ue=r,r.length===1&&X.add(r[0]),q.push({sets:r,size:i,label:t?Q(t):void 0})},`addSubsetData`),Ge=/* @__PURE__ */ t(()=>q,`getSubsetData`),Q=/* @__PURE__ */ t(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),Ke=/* @__PURE__ */ t(e=>e&&Q(e),`normalizeStyleValue`),qe=/* @__PURE__ */ t((e,t,n)=>{let r=Q(t);J.push({sets:$(e).sort(),id:r,label:n?Q(n):void 0})},`addTextData`),Je=/* @__PURE__ */ t((e,t)=>{let n=$(e).sort(),r={};for(let[e,n]of t)r[e]=Ke(n)??n;Y.push({targets:n,styles:r})},`addStyleData`),Ye=/* @__PURE__ */ t(()=>Y,`getStyleData`),$=/* @__PURE__ */ t(e=>e.map(e=>Q(e)),`normalizeIdentifierList`),Xe=/* @__PURE__ */ t(e=>{let t=$(e).filter(e=>!X.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),Ze=/* @__PURE__ */ t(()=>J,`getTextData`),Qe=/* @__PURE__ */ t(()=>Ue,`getCurrentSets`),$e=/* @__PURE__ */ t(()=>Z,`getIndentMode`),et=/* @__PURE__ */ t(e=>{Z=e},`setIndentMode`),tt=p.venn,t(Re,`getConfig`),nt={getConfig:Re,clear:/* @__PURE__ */ t(()=>{c(),q.length=0,J.length=0,Y.length=0,X.clear(),Ue=void 0,Z=!1},`customClear`),setAccTitle:s,getAccTitle:w,setDiagramTitle:v,getDiagramTitle:C,getAccDescription:S,setAccDescription:o,addSubsetData:We,getSubsetData:Ge,addTextData:qe,addStyleData:Je,validateUnionIdentifiers:Xe,getTextData:Ze,getStyleData:Ye,getCurrentSets:Qe,getIndentMode:$e,setIndentMode:et},rt=/* @__PURE__ */ t(e=>`
13
+ .venn-title {
14
+ font-size: 32px;
15
+ fill: ${e.vennTitleTextColor};
16
+ font-family: ${e.fontFamily};
17
+ }
18
+
19
+ .venn-circle text {
20
+ font-size: 48px;
21
+ font-family: ${e.fontFamily};
22
+ }
23
+
24
+ .venn-intersection text {
25
+ font-size: 48px;
26
+ fill: ${e.vennSetTextColor};
27
+ font-family: ${e.fontFamily};
28
+ }
29
+
30
+ .venn-text-node {
31
+ font-family: ${e.fontFamily};
32
+ color: ${e.vennSetTextColor};
33
+ }
34
+ `,`getStyles`),t(ze,`buildStyleByKey`),it=/* @__PURE__ */ t((e,t,n,r)=>{let a=r.db,o=a.getConfig?.(),{themeVariables:s,look:c,handDrawnSeed:l}=u(),p=c===`handDrawn`,m=[s.venn1,s.venn2,s.venn3,s.venn4,s.venn5,s.venn6,s.venn7,s.venn8].filter(Boolean),h=a.getDiagramTitle?.(),g=a.getSubsetData(),_=a.getTextData(),v=ze(a.getStyleData()),x=Ve(g),S=o?.width??800,C=o?.height??450,w=S/1600,T=h?48*w:0,E=s.primaryTextColor??s.textColor,O=D(t);O.attr(`viewBox`,`0 0 ${S} ${C}`),h&&O.append(`text`).text(h).attr(`class`,`venn-title`).attr(`font-size`,`${32*w}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*w).style(`fill`,s.vennTitleTextColor||s.titleColor);let k=i(document.createElement(`div`)),M=Ce().width(S).height(C-T);k.datum(x).call(M);let N=p?A.svg(k.select(`svg`).node()):void 0,P=Pe(x,{width:S,height:C-T,padding:o?.padding??15}),F=/* @__PURE__ */ new Map;for(let e of P){let t=G([...e.data.sets].sort());F.set(t,e)}_.length>0&&Be(o,F,k,_,w,v);let I=b(s.background||`#f4f4f4`);k.selectAll(`.venn-circle`).each(function(e,t){let n=i(this),r=G([...e.sets].sort()),a=v.get(r),o=a?.fill||m[t%m.length]||s.primaryColor;n.classed(`venn-set-${t%8}`,!0);let c=a?.[`fill-opacity`]??.1,u=a?.stroke||o,d=a?.[`stroke-width`]||`${5*w}`;if(p&&N){let e=F.get(r);if(e&&e.circles.length>0){let r=e.circles[0],i=N.circle(r.x,r.y,r.radius*2,{roughness:.7,seed:l,fill:j(o,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+t*60,stroke:u,strokeWidth:parseFloat(String(d))});n.select(`path`).remove(),n.node()?.insertBefore(i,n.select(`text`).node())}}else n.select(`path`).style(`fill`,o).style(`fill-opacity`,c).style(`stroke`,u).style(`stroke-width`,d).style(`stroke-opacity`,.95);let h=a?.color||(I?y(o,30):f(o,30));n.select(`text`).style(`font-size`,`${48*w}px`).style(`fill`,h)}),p&&N?k.selectAll(`.venn-intersection`).each(function(e){let t=i(this),n=G([...e.sets].sort()),r=v.get(n),a=r?.fill;if(a){let e=t.select(`path`),n=e.attr(`d`);if(n){let t=N.path(n,{roughness:.7,seed:l,fill:j(a,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(t,r),e.remove()}}else t.select(`path`).style(`fill-opacity`,0);t.select(`text`).style(`font-size`,`${48*w}px`).style(`fill`,r?.color??s.vennSetTextColor??E)}):(k.selectAll(`.venn-intersection text`).style(`font-size`,`${48*w}px`).style(`fill`,e=>{let t=G([...e.sets].sort());return v.get(t)?.color??s.vennSetTextColor??E}),k.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=G([...e.sets].sort());return+!!v.get(t)?.fill}).style(`fill`,e=>{let t=G([...e.sets].sort());return v.get(t)?.fill??`transparent`}));let L=O.append(`g`).attr(`transform`,`translate(0, ${T})`),R=k.select(`svg`).node();if(R&&`childNodes`in R)for(let e of[...R.childNodes])L.node()?.appendChild(e);d(O,C,S,o?.useMaxWidth??!0)},`draw`),t(G,`stableSetsKey`),t(Be,`renderTextNodes`),t(Ve,`ensurePairwiseSubsets`),at={parser:He,db:nt,renderer:{draw:it},styles:rt}})))()}ot();export{at as diagram};
@@ -0,0 +1 @@
1
+ import{n as e,o as t}from"./rolldown-runtime-BKuNeK48.js";import{n,t as r}from"./preload-helper-C-73SErw.js";import{a as i,i as a,n as o,t as s}from"./tinycolor-CG1wnM-U.js";var c;function l(){return(l=e((()=>{c=(e,t={})=>{let n=e(),r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set,o=(e,t)=>{n?.postMessage({type:e,payload:t})},s=e=>{let{type:t,payload:n}=e.data||{};r.get(t)?.forEach(e=>e(n)),i.forEach(t=>t(e))},c=e=>{t.logErrors!==!1&&console.error(e),a.forEach(t=>t(e))};return n?.addEventListener(`message`,s),n?.addEventListener(`error`,c),{instance:n,worker:{emit:o},emit:o,onWorkerMessage(e){return i.add(e),()=>{i.delete(e)}},onWorkerError(e){return a.add(e),()=>{a.delete(e)}},onWorkerEvent(e,t){let n=r.get(e);return n||(n=/* @__PURE__ */ new Set,r.set(e,n)),n.add(t),()=>{n?.delete(t),n?.size===0&&r.delete(e)}},mapEvents(e){return Array.isArray(e)?e.reduce((e,t)=>(e[t]=e=>o(t,e),e),{}):Object.keys(e).reduce((t,n)=>{let r=e[n];return t[r]=e=>o(n,e),t},{})},destroy(){n?.removeEventListener(`message`,s),n?.removeEventListener(`error`,c),n?.terminate(),r.clear(),i.clear(),a.clear()}}}})))()}var u,d,f,p,m,h,g,_,v,y,b,ee,x,S,te,ne,re,ie,ae,oe,C,se,ce,le,ue;function de(){return(de=e((()=>{i(),u=`http://www.w3.org/2000/svg`,d=[`#4472c4`,`#ed7d31`,`#70ad47`,`#ffc000`,`#5b9bd5`,`#a5a5a5`],f=2,p=(e,t,n={})=>{let r=e.createElementNS(u,t);return Object.entries(n).forEach(([e,t])=>r.setAttribute(e,`${t}`)),r},m=(e,t,n,r,i={})=>{let a=p(e,`text`,{x:n,y:r,"text-anchor":i.anchor||`start`,"font-family":`Aptos, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif`,"font-size":i.size||11,"font-weight":i.weight||`400`,fill:i.fill||`#5f6368`});return i.rotate&&a.setAttribute(`transform`,`rotate(${i.rotate} ${n} ${r})`),a.textContent=t,a},h=(e,t)=>e.color||d[t%d.length],g=e=>Math.min(8,Math.max(.5,e.lineWidth||2.5)),_=e=>{switch(e.lineDash){case`dash`:case`sysDash`:return`8 4`;case`dashDot`:case`sysDashDot`:return`8 4 2 4`;case`dot`:case`sysDot`:return`2 3`;case`lgDash`:return`12 5`;case`lgDashDot`:return`12 5 2 5`;case`lgDashDotDot`:return`12 5 2 5 2 5`;default:return}},v=(e,t)=>t.lineVisible===!1?!1:e.type!==`scatter`||e.scatterStyle?.toLowerCase()!==`marker`,y=(e,t)=>{if(t.marker)return t.marker.symbol.toLowerCase()!==`none`;if(e.type!==`scatter`)return!1;let n=(e.scatterStyle||`lineMarker`).toLowerCase();return n===`marker`||n.endsWith(`marker`)},b=(e,t)=>{let n=Math.max(2,Math.floor(t/28));return e<=n?Array.from({length:e},(e,t)=>t):Array.from(new Set(Array.from({length:n},(t,r)=>Math.round(r*(e-1)/(n-1)))))},ee=(e,t,n,r,i,a)=>{let o=n.marker?.symbol.toLowerCase()||`circle`,s=Math.min(10,Math.max(1.5,(n.marker?.size||5)*4/6)),c={class:`excel-chart-marker`,"data-marker-symbol":o};switch(o){case`square`:t.appendChild(p(e,`rect`,{...c,x:i-s,y:a-s,width:s*2,height:s*2,fill:r}));break;case`diamond`:t.appendChild(p(e,`polygon`,{...c,points:`${i},${a-s} ${i+s},${a} ${i},${a+s} ${i-s},${a}`,fill:r}));break;case`triangle`:t.appendChild(p(e,`polygon`,{...c,points:`${i},${a-s} ${i+s},${a+s} ${i-s},${a+s}`,fill:r}));break;case`dash`:t.appendChild(p(e,`line`,{...c,x1:i-s,y1:a,x2:i+s,y2:a,stroke:r,"stroke-width":2}));break;case`plus`:t.appendChild(p(e,`path`,{...c,d:`M${i-s},${a} L${i+s},${a} M${i},${a-s} L${i},${a+s}`,fill:`none`,stroke:r,"stroke-width":1.5}));break;case`x`:t.appendChild(p(e,`path`,{...c,d:`M${i-s},${a-s} L${i+s},${a+s} M${i+s},${a-s} L${i-s},${a+s}`,fill:`none`,stroke:r,"stroke-width":1.5}));break;default:t.appendChild(p(e,`circle`,{...c,cx:i,cy:a,r:o===`dot`?Math.max(1,s/2):s,fill:r}))}},x=e=>{let t=e.series.find(e=>e.categories.length)?.categories||[],n=e.series.reduce((e,t)=>Math.max(e,t.values.length),0);return t.length?t:Array.from({length:n},(e,t)=>`${t+1}`)},S=e=>{let t=0,n=0;return e.series.forEach(e=>{e.values.forEach(e=>{Number.isFinite(e)&&(t=Math.min(t,e),n=Math.max(n,e))})}),t===n?{min:0,max:Math.max(1,n),span:Math.max(1,n)}:{min:t,max:n,span:n-t}},te=e=>{let t=!!e.title,n=!!e.legendPosition,r=e.legendPosition===`right`,i=t?48:24,a=n&&!r?302:326,o=e.valueAxisTitle?76:58;return{left:o,top:i,width:(r?492:612)-o,height:a-i,bottom:a}},ne=(e,t,n,r)=>{for(let i=0;i<=5;i+=1){let a=i/5,o=n.bottom-a*n.height,s=r.min+a*r.span;t.appendChild(p(e,`line`,{x1:n.left,y1:o,x2:n.left+n.width,y2:o,stroke:i===0?`#9ca3af`:`#e5e7eb`,"stroke-width":1})),t.appendChild(m(e,Number.isInteger(s)?`${s}`:s.toFixed(1),n.left-8,o+4,{anchor:`end`,size:10}))}},re=(e,t,n,r,i=!1)=>{let a=x(n);if(!a.length)return;let o=n.series.find(e=>e.categories.length),s=Math.max(o?.sourcePointCount||a.length,a.length),c=r.width/a.length;b(a.length,r.width).forEach(n=>{let l=a[n],u=a.length>8?8:14,d=l.length>u?`${l.slice(0,u-1)}…`:l,f=o?.sourcePointIndexes?.[n]??n,p=i&&a.length>1?r.left+f/Math.max(s-1,1)*r.width:r.left+(n+.5)*c,h=m(e,d,p,r.bottom+17,{anchor:`middle`,size:10});h.classList.add(`excel-chart-category-label`),h.dataset.categoryIndex=`${f}`,t.appendChild(h)})},ie=(e,t,n,r)=>{let i=S(n),a=x(n),o=Math.max(a.length,n.series.reduce((e,t)=>Math.max(e,t.values.length),0),1),s=r.width/o,c=Math.max(n.series.length,1),l=s*.76/c,u=r.bottom-(0-i.min)/i.span*r.height;ne(e,t,r,i),n.series.forEach((n,a)=>{n.values.forEach((o,c)=>{let d=r.bottom-(o-i.min)/i.span*r.height,f=r.left+c*s+s*.12+a*l,m=p(e,`rect`,{x:f,y:Math.min(u,d),width:Math.max(1,l-2),height:Math.max(1,Math.abs(u-d)),fill:h(n,a),rx:1}),g=p(e,`title`);g.textContent=`${n.name}: ${o}`,m.appendChild(g),t.appendChild(m)})}),re(e,t,n,r)},ae=(e,t,n,r)=>{let i=S(n),a=x(n),o=Math.max(a.length,n.series.reduce((e,t)=>Math.max(e,t.values.length),0),1),s=r.height/o,c=Math.max(n.series.length,1),l=s*.76/c,u=r.left+(0-i.min)/i.span*r.width;for(let n=0;n<=5;n+=1){let i=n/5,a=r.left+i*r.width;t.appendChild(p(e,`line`,{x1:a,y1:r.top,x2:a,y2:r.bottom,stroke:`#e5e7eb`,"stroke-width":1}))}n.series.forEach((n,a)=>{n.values.forEach((o,c)=>{let d=r.left+(o-i.min)/i.span*r.width,f=r.top+c*s+s*.12+a*l;t.appendChild(p(e,`rect`,{x:Math.min(u,d),y:f,width:Math.max(1,Math.abs(d-u)),height:Math.max(1,l-2),fill:h(n,a),rx:1}))})}),a.forEach((n,i)=>{t.appendChild(m(e,n,r.left-8,r.top+(i+.5)*s+4,{anchor:`end`,size:10}))})},oe=(e,t,n,r,i)=>{let o=S(n),s=Math.max(n.series.reduce((e,t)=>Math.max(e,t.sourcePointCount||t.values.length),0),1),c=s>1?r.width/(s-1):r.width;ne(e,t,r,o),n.series.forEach((l,u)=>{let d=a(l.values,Math.max(64,Math.floor(r.width*f))).map(e=>{let t=l.values[e],n=l.sourcePointIndexes?.[e]??e;return{x:r.left+(s>1?n*c:r.width/2),y:r.bottom-(t-o.min)/o.span*r.height}});if(!d.length)return;let m=d.map((e,t)=>`${t?`L`:`M`}${e.x},${e.y}`).join(` `);i&&d.length>1&&t.appendChild(p(e,`path`,{d:`${m} L${d[d.length-1].x},${r.bottom} L${d[0].x},${r.bottom} Z`,fill:h(l,u),opacity:.2}));let b=h(l,u),x=_(l);v(n,l)&&t.appendChild(p(e,`path`,{class:`excel-chart-series-line`,"data-source-point-count":l.sourcePointCount||l.values.length,"data-transferred-point-count":l.values.length,"data-rendered-point-count":d.length,d:m,fill:`none`,stroke:b,"stroke-width":g(l),...x?{"stroke-dasharray":x}:{},"stroke-linejoin":`round`,"stroke-linecap":`round`})),y(n,l)&&d.forEach(n=>ee(e,t,l,b,n.x,n.y))}),re(e,t,n,r,!0)},C=(e,t,n,r)=>{let i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},se=(e,t,n,r,i,a)=>{let o=C(e,t,n,a),s=C(e,t,n,i),c=+(a-i>180);if(!r)return`M${e},${t} L${o.x},${o.y} A${n},${n} 0 ${c},0 ${s.x},${s.y} Z`;let l=C(e,t,r,i),u=C(e,t,r,a);return`M${o.x},${o.y} A${n},${n} 0 ${c},0 ${s.x},${s.y} L${l.x},${l.y} A${r},${r} 0 ${c},1 ${u.x},${u.y} Z`},ce=(e,t,n,r)=>{let i=n.series[0],a=i?.values||[],o=i?.categories||[],s=a.reduce((e,t)=>e+Math.max(0,t),0)||1,c=n.legendPosition===`right`?260:320,l=n.title?180:170,u=0;a.forEach((n,i)=>{let a=u+Math.max(0,n)/s*360,f=d[i%d.length],m=p(e,`path`,{d:se(c,l,120,r?62:0,u,a),fill:f,stroke:`#ffffff`,"stroke-width":1.5}),h=p(e,`title`);h.textContent=`${o[i]||i+1}: ${n}`,m.appendChild(h),t.appendChild(m),u=a})},le=(e,t,n)=>{if(!n.legendPosition)return;let r=n.legendPosition===`right`;n.series.slice(0,8).forEach((i,a)=>{let o=r?510:76+a%4*136,s=r?72+a*28:342-Math.floor(a/4)*20,c=h(i,a);if(n.type===`line`||n.type===`scatter`||n.type===`radar`){if(v(n,i)){let n=_(i);t.appendChild(p(e,`line`,{x1:o,y1:s-5,x2:o+12,y2:s-5,stroke:c,"stroke-width":g(i),...n?{"stroke-dasharray":n}:{}}))}y(n,i)&&ee(e,t,i,c,o+6,s-5)}else t.appendChild(p(e,`rect`,{x:o,y:s-10,width:10,height:10,fill:c}));let l=i.name.length>16?`${i.name.slice(0,15)}…`:i.name;t.appendChild(m(e,l,o+18,s,{size:10}))})},ue=(e,t)=>{let n=e.createElement(`div`);n.className=`excel-chart`,n.dataset.chartId=t.id,n.dataset.chartType=t.type,n.dataset.seriesNames=JSON.stringify(t.series.map(e=>e.name)),n.dataset.seriesMarkers=JSON.stringify(t.series.map(e=>e.marker?.symbol||null)),n.setAttribute(`role`,`img`),n.setAttribute(`aria-label`,t.title||t.id||`Spreadsheet chart`);let r=p(e,`svg`,{viewBox:`0 0 640 360`,preserveAspectRatio:`xMidYMid meet`,focusable:`false`,"aria-hidden":`true`});r.appendChild(p(e,`rect`,{x:.5,y:.5,width:639,height:359,fill:`#ffffff`,stroke:`#d1d5db`})),t.title&&r.appendChild(m(e,t.title,320,28,{anchor:`middle`,size:16,weight:`600`,fill:`#1f2937`}));let i=te(t);switch(t.type){case`pie`:ce(e,r,t,!1);break;case`doughnut`:ce(e,r,t,!0);break;case`line`:case`scatter`:case`radar`:oe(e,r,t,i,!1);break;case`area`:oe(e,r,t,i,!0);break;default:t.barDirection===`bar`?ae(e,r,t,i):ie(e,r,t,i)}return t.categoryAxisTitle&&t.type!==`pie`&&t.type!==`doughnut`&&r.appendChild(m(e,t.categoryAxisTitle,i.left+i.width/2,324,{anchor:`middle`,size:11,fill:`#374151`})),t.valueAxisTitle&&t.type!==`pie`&&t.type!==`doughnut`&&r.appendChild(m(e,t.valueAxisTitle,18,i.top+i.height/2,{anchor:`middle`,size:11,fill:`#374151`,rotate:-90})),le(e,r,t),n.appendChild(r),n}})))()}var fe,pe,me,he,ge,_e,ve,w,ye,be,xe;function Se(){return(Se=e((()=>{n(),fe=33554432,pe=16384,me=24e6,he=e=>{let t=/^data:([^;,]*);base64,([\s\S]*)$/i.exec(e);if(t)return{mime:t[1].toLowerCase(),payload:t[2]}},ge=(e,t)=>{try{return t(e.slice(0,12))}catch{return``}},_e=e=>e.length>=4&&(e.charCodeAt(0)===73&&e.charCodeAt(1)===73&&e.charCodeAt(2)===42&&e.charCodeAt(3)===0||e.charCodeAt(0)===77&&e.charCodeAt(1)===77&&e.charCodeAt(2)===0&&e.charCodeAt(3)===42),ve=(e,t)=>{if(Math.floor(e.length*3/4)>fe)throw Error(`TIFF source exceeds the embedded-image safety limit.`);let n=t(e);if(n.length>fe)throw Error(`TIFF source exceeds the embedded-image safety limit.`);let r=new Uint8Array(n.length);for(let e=0;e<n.length;e+=1)r[e]=n.charCodeAt(e);return r},w=(e,t,n)=>{let r=e[t],i=Array.isArray(r)?r[0]:r,a=Number(i??e[n]);return Number.isFinite(a)?a:0},ye=(e,t)=>{if(!Number.isInteger(e)||!Number.isInteger(t)||e<=0||t<=0||e>pe||t>pe||e*t>me)throw Error(`TIFF dimensions exceed the embedded-image safety limit.`)},be=async()=>{let e=await r(()=>import(`./UTIF-QUtClmQd.js`).then(e=>/* @__PURE__ */ t(e.default,1)),[],import.meta.url);return e.default||e},xe=e=>{let t=e.defaultView,n=t?.atob.bind(t)||globalThis.atob.bind(globalThis),r=t?.URL||URL,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Set,o=!1,s=async(t,i)=>{let s=ve(i,n),c=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength),l=await be(),u=l.decode(c)[0];if(!u)throw Error(`TIFF image does not contain a decodable page.`);let d=w(u,`t256`,`width`),f=w(u,`t257`,`height`);ye(d,f),l.decodeImage(c,u);let p=w(u,`t256`,`width`),m=w(u,`t257`,`height`);ye(p,m);let h=l.toRGBA8(u);if(h.byteLength!==p*m*4)throw Error(`TIFF decoder returned an unexpected pixel buffer.`);let g=e.createElement(`canvas`);g.width=p,g.height=m;let _=g.getContext(`2d`);if(!_)throw Error(`Canvas 2D is unavailable for TIFF conversion.`);let v=_.createImageData(p,m);v.data.set(h),_.putImageData(v,0,0);let y=await new Promise(e=>g.toBlob(e,`image/png`));if(!y)throw Error(`Unable to encode the TIFF preview as PNG.`);let b=r.createObjectURL(y);return o?(r.revokeObjectURL(b),t):(a.add(b),b)};return{resolve(e){let t=he(e.src);if(!t)return Promise.resolve(e.src);let r=/image\/(?:tif|tiff)/i.test(e.contentType||t.mime),a=_e(ge(t.payload,n));if(!r&&!a)return Promise.resolve(e.src);let o=i.get(e.src);return o||(o=s(e.src,t.payload).catch(()=>e.src),i.set(e.src,o)),o},dispose(){o=!0,a.forEach(e=>r.revokeObjectURL(e)),a.clear(),i.clear()}}}})))()}var Ce,we,T,Te,E,D,O,Ee,De,k,A,Oe,ke;function Ae(){return(Ae=e((()=>{Ce=`__index`,we={rowHeight:20,colWidth:64},T={Placeholder:0,Loading:1,Loaded:2},Te=()=>({active:!1,totalRows:0,totalCols:0,indexOffset:0,defaults:{...we},dataKeys:[],rows:[],columns:[],cellCache:/* @__PURE__ */ new Map,mergeStartMap:/* @__PURE__ */ new Map,mergeCoveredMap:/* @__PURE__ */ new Map,rowHeightCache:/* @__PURE__ */ new Map,windowRows:/* @__PURE__ */ new Map,windowCells:/* @__PURE__ */ new Map,loadedWindows:/* @__PURE__ */ new Set,loadingWindows:/* @__PURE__ */ new Set}),E=(e,t)=>`${e}-${t}`,D=e=>`c${e}`,O=e=>e?.__s??T.Placeholder,Ee=e=>{let t=Array(e);for(let n=0;n<e;n+=1)t[n]={__k:`${n}`,__s:T.Placeholder};return t},De=e=>e?Math.floor(Math.max(e-1,0)/500)*500:0,k=(e=0,t=0)=>Math.min(Math.max(e,0),De(t)),A=(e=0,t=0)=>{let n=Math.floor(Math.max(e,0)/500)*500;return k(n,t)},Oe=({startRow:e,endRow:t,direction:n,totalRows:r,far:i=!1})=>{let a=/* @__PURE__ */ new Set,o=A(e,r),s=A(t,r);for(let e=o;e<=s;e+=500)a.add(e);let c=i?4:3,l=i?2:1,u=n>0?s:o;for(let e=1;e<=c;e+=1)a.add(k(u+n*e*500,r));for(let e=1;e<=l;e+=1)a.add(k(u-n*e*500,r));return Array.from(a)},ke=(e,t,n,r)=>{let i=Math.min(n+500,t);for(let t=n;t<i;t+=1){let n=e[t];n&&(n.__s=r)}}})))()}var je,Me,j,M,Ne,Pe,N,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,P,We,Ge,Ke,qe,Je,F,Ye,Xe,Ze,I,L,R,z,Qe,B,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,V,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,H,U,wt,Tt,Et,Dt,Ot,W,G,K,q,J,Y,kt,At,X,jt,Z,Mt,Nt,Q,Pt,$,Ft,It,Lt,Rt,zt,Bt;function Vt(){return(Vt=e((()=>{s(),Ae(),je=.25,Me=2.5,j=`Aptos, Calibri, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif`,M=11,Ne=8,Pe=.1,N=2,Fe=1.2,Ie=`#f3f3f3`,Le=`#5f6368`,Re=`#d7dbe0`,ze=`#1f2937`,Be=`#cbd5e1`,Ve=`#374151`,He=`#111827`,Ue=`#e5e7eb`,P=`#21a366`,We=`rgba(33, 163, 102, 0.1)`,Ge=1,Ke=`#000000`,qe={double:8,solid:7,dashed:5,dotted:4},Je=`bold 12px ${j}`,F=`${M}px ${j}`,Ye=32,Ze=/* @__PURE__ */ new Map,I=(e=1)=>Number.isFinite(e)?Math.min(Me,Math.max(je,e)):1,L=(e,t)=>Math.max(1,Math.round(e*I(t))),R=(e,t)=>{if(!e)return e;let n=I(t);return e.replace(/(\d+(?:\.\d+)?)px/g,(e,t)=>`${Number(t)*n}px`)},z=(e,t)=>{if(e)return{...e,width:Math.max(.5,e.width*I(t))}},Qe=(e,t)=>{if(!e?.length)return;let n=I(t);return e.map(e=>({...e,...e.fontSize?{fontSize:e.fontSize*n}:{}}))},B=(e,t)=>{if(e)return{...e,font:R(e.font,t),richText:Qe(e.richText,t),borderTop:z(e.borderTop,t),borderRight:z(e.borderRight,t),borderBottom:z(e.borderBottom,t),borderLeft:z(e.borderLeft,t)}},$e=e=>R(Je,e)||Je,et=e=>R(F,e)||F,tt=(e,t=!1)=>({backgroundColor:t?ze:Ie,color:t?Be:Le,font:$e(e)}),nt=(e,t=!1)=>({backgroundColor:t?`#18212f`:`#f4f7f9`,color:t?`#94a3b8`:`#73808d`,font:R(`italic ${M}px ${j}`,e)}),rt=e=>e.map(e=>({...e,...e.children?.length?{children:rt(e.children)}:{}})),it=/* @__PURE__ */ new Set([`caption`,`cursive`,`emoji`,`fangsong`,`fantasy`,`icon`,`math`,`menu`,`message-box`,`monospace`,`sans-serif`,`serif`,`small-caption`,`status-bar`,`system-ui`,`ui-monospace`,`ui-rounded`,`ui-sans-serif`,`ui-serif`]),at=e=>{let t=typeof e==`string`?e.trim():``;return t?t.includes(`,`)||it.has(t.toLowerCase())||t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t:`"${t.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:j},ot=e=>{if(typeof e.font==`string`&&e.font.trim())return e.font;if(e.fontFamily===void 0&&e.fontSize===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0)return;let t=(()=>{let{fontWeight:t}=e;if(typeof t==`number`)return t>=600?`bold`:`normal`;if(typeof t==`string`){let e=t.trim();return/^\d+$/.test(e)?Number(e)>=600?`bold`:`normal`:e}return`normal`})();return[e.fontStyle||`normal`,t,`${Number.parseInt(e.fontSize,10)||M}px`,at(e.fontFamily)].join(` `)},st=e=>{if(e){if(e.includes(`htLeft`))return`left`;if(e.includes(`htRight`))return`right`;if(e.includes(`htCenter`))return`center`}},ct=e=>{if(e){if(e.includes(`htTop`))return`top`;if(e.includes(`htBottom`))return`bottom`;if(e.includes(`htMiddle`))return`middle`}},lt=(e,t)=>!!e?.split(/\s+/).includes(t),ut=(e,t,n)=>typeof e==`number`?e:e?.[t]??n,V=e=>{let t=Number(e?.width);return Number.isFinite(t)&&t>0?t:0},dt=e=>!!e&&!e.hide&&V(e)>0,ft=e=>e.structure?.columns?.length?e.structure.columns:e.columns,pt=e=>e.structure?.colWidths??e.colWidths,mt=(e,t,n)=>typeof e==`number`?e:e?.[t]??n,ht=(e,t)=>typeof e==`number`&&Number.isFinite(e)?e<=0?Pe:Math.max(Math.ceil(e),Ne):Math.max(Math.ceil(t),Ne),gt=e=>{if(e==null)return!1;let t=`${e}`.trim();return t?!/^\d+([./:-]\d+)*$/.test(t):!1},_t=e=>{let t=e.meta,n=e.data||[];if(!t||n.length<2||(e.merge||[]).length)return 0;let r=n[0]||[],i=n[1]||[],a=r.filter(e=>`${e??``}`.trim()!==``),o=i.filter(e=>`${e??``}`.trim()!==``);return a.length<Math.min(Math.max(Math.floor(t.totalCols/2),3),6)||!a.every(gt)||o.length<2?0:1},vt=e=>{let t=ft(e),n=pt(e),r=[{key:Ce,title:``,type:`index`,fixed:`left`,width:68,minWidth:68,maxWidth:68,widthFillDisable:!0,headerAlign:`center`,align:`center`,headerVerticalAlign:`middle`,verticalAlign:`middle`,overflowTooltipShow:!1,overflowTooltipHeaderShow:!1}],i=[];for(let a=0;a<(e.meta?.totalCols||0);a+=1){let o=D(a),s=t?.[a],c=ut(n,a,e.defaults.colWidth),l=!!s?.hidden||c<=0,u=ct(s?.className)||`middle`;i.push(o),r.push({key:o,title:s?.title||`${a+1}`,width:l?0:Math.max(Math.ceil(c),1),hide:l,widthFillDisable:!0,renderType:`both`,headerAlign:`center`,headerVerticalAlign:`middle`,align:st(s?.className)||`left`,verticalAlign:u,overflowTooltipShow:!0,overflowTooltipHeaderShow:!0})}return{columns:r,dataKeys:i}},yt=(e,t)=>{let n={...e,...e.children?.length?{children:e.children.map(e=>yt(e,t))}:{}},r=Number(e.width);Number.isFinite(r)&&r>0&&(n.width=L(r,t));let i=Number(e.minWidth);Number.isFinite(i)&&i>0&&(n.minWidth=L(i,t));let a=Number(e.maxWidth);return Number.isFinite(a)&&a>0&&(n.maxWidth=L(a,t)),n},bt=(e,t=1)=>{let n=I(t);return n===1?rt(e):e.map(e=>yt(e,n))},xt=(e,t)=>{let n=0,r=e=>{for(let i of e)if(!i.hide){if(i.children?.length){let e=r(i.children);if(e!==void 0)return e}else{if(`${i.key}`===t)return n;n+=Number(i.width)||0}}};return r(e)},St=e=>{if(typeof e==`number`&&Number.isFinite(e))return Math.max(e,0);if(typeof e==`string`){let t=Number.parseFloat(e);return Number.isFinite(t)?Math.max(t,0):0}return 0},Ct=e=>{if(typeof e!=`string`)return`solid`;let t=e.trim();switch(t){case`double`:case`dashed`:case`dotted`:case`solid`:return t;default:return`solid`}},H=(e,t)=>{let n=St(e[`border${t}Width`]);if(n)return{width:n,style:Ct(e[`border${t}Style`]),color:e[`border${t}Color`]||Ke}},U=e=>e?!!(e.borderTop||e.borderRight||e.borderBottom||e.borderLeft):!1,wt=e=>e?!!(e.horizontalAlign||e.verticalAlign||e.wrapText||e.shrinkToFit):!1,Tt=(e,t)=>e?.richText?.length?!0:wt(e)?!!(e?.wrapText||e?.shrinkToFit||e?.horizontalAlign&&e.horizontalAlign!==(t?.align||`left`)||e?.verticalAlign&&e.verticalAlign!==(t?.verticalAlign||`middle`)):!1,Et=e=>{switch(e){case`center`:return`center`;case`right`:return`flex-end`;default:return`flex-start`}},Dt=e=>{switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return`center`}},Ot=(e,t,n,r)=>{switch(e){case`right`:return t-n;case`center`:return-Math.min(r,Math.max((n-t)/2,0));default:return 0}},W=e=>typeof e._height==`number`&&e._height<=Pe,G=(e,t)=>{let n=e?.key;if(typeof n==`string`&&n.startsWith(`c`)){let e=Number(n.slice(1));if(Number.isInteger(e)&&e>=0)return e}return Math.max(t-1,0)},K=(e,t,n)=>E(e,G(n,t)+1),q=(e,t)=>E(e,t+1),J=e=>e==null?``:`${e}`,Y=e=>J(e).trim()!==``,kt=e=>/^[+-]?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?%?$/.test(e.trim()),At=(e,t,n,r)=>{let i=`${t}\n${n}\n${e}`,a=Ze.get(i);if(a!==void 0)return a;!Xe&&r&&(Xe=r.createElement(`canvas`));let o=Xe?.getContext(`2d`);if(!o)return e.length*M;o.font=t;let s=o.measureText(e).width+n*2;return Ze.set(i,s),s},X=(e,t,n,r)=>{let i=e.columns[r+1];if(!dt(i))return!1;let a=q(n,r);return e.mergeStartMap.has(a)||e.mergeCoveredMap.has(a)?!1:!Y(t[D(r)])},jt=(e,t,n,r,i)=>{let a=0;for(let o=1;o<=Ye;o+=1){let s=r+o*i;if(s<0||s>=e.totalCols||!X(e,t,n,s))break;a+=V(e.columns[s+1])}return a},Z=(e,t,n,r,i,a,o,s,c)=>{let l=J(o);if(!l||a?.wrapText||a?.shrinkToFit||kt(l))return;let u=q(n,r);if(e.mergeStartMap.has(u)||e.mergeCoveredMap.has(u))return;let d=V(i);if(!d)return;let f=a?.font||F,p=Math.ceil(At(l,f,L(N,s),c));if(p<=d)return;let m=a?.horizontalAlign||i?.align||`left`,h=m===`right`||m===`center`?jt(e,t,n,r,-1):0,g=m===`right`?0:jt(e,t,n,r,1),_=d+h+g;if(_<=d)return;let v=Math.min(p,_);return{left:Ot(m,d,v,h),width:v}},Mt=(e,t,n)=>{let r=0;for(let i=t;i<n;i+=1)r+=V(e.columns[i+1]);return r},Nt=(e,t,n,r,i,a)=>{if(!X(e,t,n,r))return;let o=e.columns[r+1],s=V(o);if(s)for(let o=1;o<=Ye;o+=1){let c=r-o;if(c<0)break;let l=e.columns[c+1];if(!dt(l))break;let u=t[D(c)];if(!Y(u)){if(!X(e,t,n,c))break;continue}let d=q(n,c),f=e.cellCache.get(d),p={...B(f,i)||{},horizontalAlign:f?.horizontalAlign||l?.align,verticalAlign:f?.verticalAlign||l?.verticalAlign},m=Z(e,t,n,c,l,p,u,i,a);if(!m)return;let h=Mt(e,c,r),g=m.left,_=m.left+m.width,v=h;return g<h+s&&_>v?{value:u,style:p,overflowLayout:{left:m.left-h,width:m.width}}:void 0}},Q=e=>e?e.width*100+(qe[e.style]||1):0,Pt=(e,t,n,r,i)=>{let a=B(e.cellCache.get(E(t-1,n+1)),i),o=B(e.cellCache.get(E(t+1,n+1)),i),s=B(e.cellCache.get(E(t,n)),i),c=B(e.cellCache.get(E(t,n+2)),i),l=Q(r.borderTop)>=Q(a?.borderBottom)?r.borderTop:void 0,u=Q(r.borderBottom)>Q(o?.borderTop)?r.borderBottom:void 0,d=Q(r.borderLeft)>=Q(s?.borderRight)?r.borderLeft:void 0,f=Q(r.borderRight)>Q(c?.borderLeft)?r.borderRight:void 0;return{...r,borderTop:l,borderRight:f,borderBottom:u,borderLeft:d}},$=(e,t,n)=>{let r=e.createElement(`span`),i=n.width/2;return Object.assign(r.style,{position:`absolute`,pointerEvents:`none`,boxSizing:`border-box`}),t===`top`||t===`bottom`?(Object.assign(r.style,{left:`${-i}px`,width:`calc(100% + ${n.width}px)`,height:`0`}),r.style[t]=`${-i}px`,r.style.borderTop=`${n.width}px ${n.style} ${n.color}`):(Object.assign(r.style,{top:`${-i}px`,height:`calc(100% + ${n.width}px)`,width:`0`}),r.style[t]=`${-i}px`,r.style.borderLeft=`${n.width}px ${n.style} ${n.color}`),r},Ft=(e,t,n,r)=>{let i=e.createElement(`span`);if(Object.assign(i.style,{position:`relative`,zIndex:`1`,width:`100%`,height:`100%`,boxSizing:`border-box`,display:`flex`,alignItems:Dt(n.verticalAlign),justifyContent:Et(n.horizontalAlign),padding:`0 ${r}px`,overflow:`hidden`,textOverflow:n.wrapText?`clip`:`ellipsis`,whiteSpace:n.wrapText?`pre-wrap`:`nowrap`,wordBreak:n.wrapText?`break-word`:`normal`,lineHeight:`${Fe}`,textAlign:n.horizontalAlign||`left`,color:n.color||`inherit`,font:n.font||F,transform:n.shrinkToFit?`scale(0.92)`:`none`,transformOrigin:`${n.horizontalAlign||`left`} center`}),n.richText?.length){let t=e.createElement(`span`);t.dataset.fileViewerRichText=`true`,Object.assign(t.style,{display:`inline-block`,maxWidth:`100%`,minWidth:`0`,whiteSpace:`inherit`,wordBreak:`inherit`}),n.richText.forEach(n=>{let r=e.createElement(`span`);r.textContent=n.text,r.dataset.fileViewerRichTextRun=`true`,n.fontFamily&&(r.style.fontFamily=n.fontFamily),n.fontSize&&(r.style.fontSize=`${n.fontSize}px`),n.color&&(r.style.color=n.color),n.bold&&(r.style.fontWeight=`bold`),n.italic&&(r.style.fontStyle=`italic`);let i=[n.underline?`underline`:``,n.strike?`line-through`:``].filter(Boolean);i.length&&(r.style.textDecoration=i.join(` `)),n.verticalAlign&&(r.style.verticalAlign=n.verticalAlign),t.appendChild(r)}),i.appendChild(t)}else i.textContent=J(t);return i},It=(e,t)=>{t&&Object.assign(e.style,{position:`absolute`,left:`${t.left}px`,top:`0`,width:`${t.width}px`,overflow:`hidden`,textOverflow:`clip`})},Lt=(e,t,n,r,i,a,o)=>{let s=e.ownerDocument;e.replaceChildren(),Object.assign(e.style,{pointerEvents:`none`,overflow:a?`hidden`:`visible`,background:`transparent`});let c=s.createDocumentFragment();if(i){let e=Ft(s,r,n,L(N,o));It(e,a),c.appendChild(e)}t.borderTop&&c.appendChild($(s,`top`,t.borderTop)),t.borderRight&&c.appendChild($(s,`right`,t.borderRight)),t.borderBottom&&c.appendChild($(s,`bottom`,t.borderBottom)),t.borderLeft&&c.appendChild($(s,`left`,t.borderLeft)),e.appendChild(c)},Rt=e=>{if(!Array.isArray(e))return;let t=e.flatMap(e=>{if(!e||typeof e!=`object`)return[];let t=e;if(typeof t.text!=`string`||!t.text)return[];let n=typeof t.fontSize==`number`&&Number.isFinite(t.fontSize)&&t.fontSize>0?t.fontSize:void 0;return[{text:t.text,...typeof t.fontFamily==`string`&&t.fontFamily?{fontFamily:t.fontFamily}:{},...n?{fontSize:n}:{},...typeof t.color==`string`&&t.color?{color:t.color}:{},...t.bold?{bold:!0}:{},...t.italic?{italic:!0}:{},...t.underline?{underline:!0}:{},...t.strike?{strike:!0}:{},...t.verticalAlign===`sub`||t.verticalAlign===`super`?{verticalAlign:t.verticalAlign}:{}}]});return t.length?t:void 0},zt=e=>{if(!e)return;let t=e.style||{},n={},r=Rt(e.richText);r&&(n.richText=r),t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.color?n.color=t.color:t.backgroundColor&&o(t.backgroundColor).isDark()&&(n.color=`#ffffff`);let i=ot(t);i?n.font=i:t.backgroundColor&&o(t.backgroundColor).isDark()&&(n.font=`bold ${M}px ${j}`);let a=H(t,`Top`);a&&(n.borderTop=a);let s=H(t,`Right`);s&&(n.borderRight=s);let c=H(t,`Bottom`);c&&(n.borderBottom=c);let l=H(t,`Left`);l&&(n.borderLeft=l);let u=st(e.className);u&&(n.horizontalAlign=u);let d=ct(e.className);if(d&&(n.verticalAlign=d),lt(e.className,`htWrap`)&&(n.wrapText=!0),lt(e.className,`htShrink`)&&(n.shrinkToFit=!0),n.richText?.length||n.backgroundColor||n.color||n.font||U(n)||wt(n))return n},Bt=({hostHeight:e,darkMode:t=!1,resizableColumns:n=!1,resizableRows:r=!1,copySelection:i,searchCell:a,sheetDefaults:o,virtualState:s,zoomScale:c=1})=>{let l=I(c),u=L(N,l),d=L(34,l),f=L(ht(o.rowHeight,o.rowHeight),l),p=L(o.colWidth,l),m=tt(l,t),h=nt(l,t);return{ROW_KEY:`__k`,DISABLED:!0,HEIGHT:Math.max(e,240),MAX_HEIGHT:Math.max(e,240),HEADER_HEIGHT:d,CELL_HEIGHT:f,CELL_WIDTH:p,CELL_PADDING:u,CELL_LINE_HEIGHT:Fe,COLUMNS_VERTICAL_ALIGN:`middle`,HEADER_FONT:$e(l),BODY_FONT:et(l),BORDER_RADIUS:0,BORDER_COLOR:t?Ve:Re,HEADER_BG_COLOR:t?ze:Ie,BODY_BG_COLOR:t?He:`#ffffff`,HEADER_TEXT_COLOR:t?Be:Le,BODY_TEXT_COLOR:t?Ue:`#202124`,READONLY_COLOR:t?He:`#ffffff`,READONLY_TEXT_COLOR:t?Ue:`#202124`,EDIT_BG_COLOR:t?`#18212f`:`#ffffff`,PLACEHOLDER_COLOR:t?`#94a3b8`:`#8a94a3`,SCROLLER_COLOR:t?`#475569`:`#c1c7d0`,SCROLLER_FOCUS_COLOR:t?`#64748b`:`#9aa0a6`,SELECT_ROW_COL_BG_COLOR:We,SELECT_AREA_COLOR:`rgba(33, 163, 102, 0.14)`,SELECT_BORDER_COLOR:P,AUTOFILL_POINT_BORDER_COLOR:P,ENABLE_SELECTOR:!0,ENABLE_SELECTOR_SINGLE:!1,ENABLE_SELECTOR_SPAN_COL:!0,ENABLE_SELECTOR_SPAN_ROW:!0,ENABLE_SELECTOR_ALL_ROWS:!0,ENABLE_SELECTOR_ALL_COLS:!0,SELECTOR_AREA_MIN_X:Ge,ENABLE_CONTEXT_MENU:!1,ENABLE_HEADER_CONTEXT_MENU:!1,ENABLE_AUTOFILL:!0,ENABLE_AUTOFILL_SPAN_COL:!0,ENABLE_AUTOFILL_SPAN_ROW:!0,ENABLE_PASTER:!1,ENABLE_HISTORY:!1,ENABLE_RESIZE_COLUMN:n,ENABLE_RESIZE_COLUMN_TEXT:n,RESIZE_COLUMN_LINE_COLOR:P,RESIZE_COLUMN_TEXT_BG_COLOR:P,RESIZE_COLUMN_MIN_WIDTH:40,ENABLE_RESIZE_ROW:r,RESIZE_ROW_LINE_COLOR:P,RESIZE_ROW_MIN_HEIGHT:L(18,l),ENABLE_KEYBOARD:!0,ENABLE_FINDER:!1,ENABLE_COPY:!0,BEFORE_COPY_METHOD:i?e=>{i(e)}:void 0,BEFORE_AUTOFILL_DATA_METHOD:()=>[],SPAN_METHOD:({rowIndex:e,colIndex:t,column:n})=>{if(t===0)return;let r=K(e,t,n);if(s.mergeCoveredMap.has(r))return{rowspan:0,colspan:0};let i=s.mergeStartMap.get(r);if(i)return{rowspan:i.rowspan,colspan:i.colspan}},HEADER_CELL_STYLE_METHOD:()=>m,BODY_CELL_STYLE_METHOD:({row:e,rowIndex:t,colIndex:n,column:r})=>{if(n===0)return m;let i=e;if(W(i))return;if(O(i)!==T.Loaded)return h;let o=B(s.cellCache.get(K(t,n,r)),l),c=a?.(t,G(r,n));return c?{...o,backgroundColor:c===`active`?`#ffbf47`:`#fff1a8`,color:`#202124`}:o},BODY_CELL_RENDER_METHOD:({row:e,rowIndex:t,colIndex:n,column:r,value:i})=>{let o=e;if(n===0||W(o)||O(o)!==T.Loaded)return;let c=K(t,n,r);if(s.mergeCoveredMap.has(c))return;let u=B(s.cellCache.get(c),l),d=G(r,n),f=typeof document>`u`?void 0:document,p=Z(s,o,t,d,r,u,i,l,f),m=Y(i)?void 0:Nt(s,o,t,d,l,f),h=a?.(t,d),g=Tt(u,r)||!!p||!!m||!!h;if(U(u)||g)return(e=>{let n={...u||{},font:u?.font||et(l),color:h?`#202124`:u?.color,horizontalAlign:u?.horizontalAlign||r?.align,verticalAlign:u?.verticalAlign||r?.verticalAlign},a=U(u)?Pt(s,t,d,n,l):n;Lt(e,a,m?.style||a,m?m.value:i,g,m?.overflowLayout||p,l),e.style.boxShadow=h===`active`?`inset 0 0 0 2px #9a5700`:``,h?(e.dataset.spreadsheetSearch=h,e.dataset.spreadsheetRow=`${t}`,e.dataset.spreadsheetCol=`${d}`,e.style.background=h===`active`?`#ffbf47`:`#fff1a8`):(delete e.dataset.spreadsheetSearch,delete e.dataset.spreadsheetRow,delete e.dataset.spreadsheetCol)})},BODY_CELL_FORMATTER_METHOD:({row:e,rowIndex:t,colIndex:n,column:r,value:i})=>{if(W(e))return``;if(n===0){let e=t+1-s.indexOffset;return e>0?`${e}`:``}if(O(e)!==T.Loaded)return``;let o=e,c=B(s.cellCache.get(K(t,n,r)),l),u=G(r,n),d=typeof document>`u`?void 0:document,f=Z(s,o,t,u,r,c,i,l,d),p=Y(i)?void 0:Nt(s,o,t,u,l,d);return Tt(c,r)||f||p||a?.(t,u)||i==null?``:`${i}`}}}})))()}export{ke as C,ue as D,de as E,c as O,Ae as S,Se as T,Oe as _,_t as a,D as b,xt as c,ht as d,we as f,k as g,Ee as h,Bt as i,l as k,Vt as l,T as m,je as n,bt as o,Ce as p,vt as r,mt as s,Me as t,zt as u,Te as v,xe as w,A as x,E as y};