allyhub 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/bin/allyhub.js +10 -0
  3. package/dist/args.js +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/cloud-tools.js +1 -1
  8. package/dist/commands/cloud.js +1 -1
  9. package/dist/commands/contributed.js +1 -1
  10. package/dist/commands/found-extensions.js +2 -0
  11. package/dist/commands/frames/common.js +1 -1
  12. package/dist/commands/frames/doc.js +1 -1
  13. package/dist/commands/frames.js +9 -9
  14. package/dist/commands/index.js +1 -1
  15. package/dist/commands/inspect/common.js +3 -3
  16. package/dist/commands/inspect/index.js +1 -1
  17. package/dist/commands/inspect/layout.js +1 -1
  18. package/dist/commands/inspect/views.js +1 -1
  19. package/dist/commands/list.js +2 -0
  20. package/dist/commands/mail.js +1 -1
  21. package/dist/commands/render.js +1 -1
  22. package/dist/commands/run-context.js +2 -0
  23. package/dist/commands.json +1 -0
  24. package/dist/fields.js +1 -1
  25. package/dist/main.js +7 -7
  26. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  27. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  28. package/dist/node_modules/@allyhub/3d-extension/package.json +3 -2
  29. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  30. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  31. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  32. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  33. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  34. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  35. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  36. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  37. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  38. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  39. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  40. package/dist/node_modules/@allyhub/build/package.json +9 -1
  41. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  42. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  43. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  44. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  45. package/dist/node_modules/@allyhub/check/package.json +1 -1
  46. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  47. package/dist/node_modules/@allyhub/cloud/dist/call.js +1 -1
  48. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  49. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  50. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  51. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  52. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  53. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  54. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  55. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  56. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  57. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  58. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  59. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  60. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  61. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  62. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +1 -1
  63. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  64. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  65. package/dist/node_modules/@allyhub/components/package.json +1 -1
  66. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  67. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  68. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  69. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  70. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  71. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  72. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  73. package/dist/node_modules/@allyhub/export/package.json +1 -1
  74. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  75. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  76. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  77. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +24 -7
  78. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  79. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  80. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  81. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  82. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  83. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  84. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  85. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  86. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  87. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  88. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  89. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  90. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  91. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  92. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  93. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  94. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  95. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  96. package/dist/node_modules/@allyhub/media/package.json +5 -1
  97. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  98. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  99. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  100. package/dist/node_modules/@allyhub/model/package.json +1 -1
  101. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  102. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  103. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  104. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +1 -1
  105. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -2
  106. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  107. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  108. package/dist/node_modules/@allyhub/project/package.json +1 -1
  109. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  110. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  111. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  112. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  113. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  114. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  115. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  116. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  117. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  118. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  119. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  120. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  121. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  122. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  123. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  124. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  126. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  127. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  128. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  129. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  130. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  131. package/dist/node_modules/@allyhub/render/package.json +9 -1
  132. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  133. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  134. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  135. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  136. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  137. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  138. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  139. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  140. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  141. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  142. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  143. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  144. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  145. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  146. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  147. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  148. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  149. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  150. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  151. package/dist/node_modules/@allyhub/sheet/dist/html.js +6 -6
  152. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  153. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  154. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  155. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  156. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  157. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  158. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  159. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  160. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  161. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  162. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  163. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  164. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  165. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  166. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  167. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  168. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  169. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  170. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  171. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  172. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  173. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  174. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  175. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  176. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  177. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  178. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  179. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  180. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  181. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  182. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  183. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  184. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  185. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  186. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  187. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  188. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  189. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  190. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  191. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  192. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  193. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  194. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  195. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  196. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  197. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  198. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  199. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  200. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  201. package/dist/node_modules/@allyhub/video-extension/package.json +6 -2
  202. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  203. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  204. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  205. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  206. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  207. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  208. package/dist/node_modules/@allyhub/website/package.json +1 -1
  209. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  210. package/dist/node_modules/@allyhub/website-extension/package.json +4 -4
  211. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  212. package/dist/node_modules/@allyhub/x-extension/package.json +8 -2
  213. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  214. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  215. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  216. package/dist/package.json +14 -14
  217. package/dist/project.js +1 -1
  218. package/dist/resources.js +1 -1
  219. package/dist/sdk-docs.js +1 -1
  220. package/dist/slot.js +4 -0
  221. package/dist/telemetry.js +1 -1
  222. package/dist/version.js +1 -1
  223. package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-DYaMS_BB.js} +1 -1
  224. package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-g_Tjfl_y.js} +1 -1
  225. package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-CqdhofOL.js} +1 -1
  226. package/editor-web/assets/{article-CS48wwvk.js → article-8evPh712.js} +1 -1
  227. package/editor-web/assets/{article-Cyle57uq.js → article-BhRtWYMd.js} +1 -1
  228. package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-Bc-28Bci.js} +1 -1
  229. package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-CTGJb8FB.js} +1 -1
  230. package/editor-web/assets/{calc-worker-BdHh5LXM.js → calc-worker-oEIqrrTM.js} +1 -1
  231. package/editor-web/assets/channel-wIj_OqDm.js +1 -0
  232. package/editor-web/assets/{chart-file-CfbWK9l1.js → chart-file-dGiRgFcH.js} +1 -1
  233. package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-B2MPOVTU.js} +1 -1
  234. package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-BUV1ZHP0.js} +1 -1
  235. package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-BZlpspL5.js} +1 -1
  236. package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-CpKeisWE.js} +1 -1
  237. package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BJqwAPyo.js} +1 -1
  238. package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-D6oPWl_W.js} +1 -1
  239. package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-B5pk4MZF.js} +1 -1
  240. package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-DHbSPvxQ.js} +1 -1
  241. package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-CcL_GcRA.js} +1 -1
  242. package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-YgiOL6XE.js} +1 -1
  243. package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-p14b4UYc.js} +1 -1
  244. package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-BWW0x-XH.js} +1 -1
  245. package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-oG3qd68C.js} +1 -1
  246. package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-CpcheH0u.js} +1 -1
  247. package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-cWQvLl1w.js} +1 -1
  248. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-7PG7YcdU.js} +1 -1
  249. package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-CtcknEQ_.js} +1 -1
  250. package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-Ca7VIsjN.js} +1 -1
  251. package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-BzcSLtsr.js} +1 -1
  252. package/editor-web/assets/deck-C7fN0Qtn.js +1 -0
  253. package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DpRmTGlG.js} +1 -1
  254. package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-BTrs_AX8.js} +1 -1
  255. package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-CkIVjPqH.js} +1 -1
  256. package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BlFMbAG1.js} +1 -1
  257. package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-D3f8VJ-D.js} +1 -1
  258. package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-Bbpngj6F.js} +1 -1
  259. package/editor-web/assets/{dist-DGKjn59H.js → dist-3iovns9K.js} +1 -1
  260. package/editor-web/assets/dist-BkHnbOEj.js +4 -0
  261. package/editor-web/assets/dist-BvOrNcK-.js +19 -0
  262. package/editor-web/assets/dist-CEIszq39.js +1 -0
  263. package/editor-web/assets/{dist-BI8QjOsV.js → dist-CU5RbLNH.js} +1 -1
  264. package/editor-web/assets/dist-CWZj8IAm.js +1 -0
  265. package/editor-web/assets/{dist-NQNQ5HqZ.js → dist-C_Mtrnif.js} +3 -3
  266. package/editor-web/assets/{dist-BajH5QfK.js → dist-CdqpwdCV.js} +4 -4
  267. package/editor-web/assets/{dist-SV0sOVIC.js → dist-CjT76RAw.js} +1 -1
  268. package/editor-web/assets/{dist-elglzHMT.js → dist-CpzEn9T8.js} +1 -1
  269. package/editor-web/assets/dist-CrFYWl5-.js +3 -0
  270. package/editor-web/assets/{dist-hHcrvNn9.js → dist-D4eBFGVL.js} +1 -1
  271. package/editor-web/assets/dist-DTcjb3cP.js +18 -0
  272. package/editor-web/assets/dist-D_WSM29I.js +17 -0
  273. package/editor-web/assets/{dist-Y_XZZa8q.js → dist-Dp_9ISjP.js} +10 -10
  274. package/editor-web/assets/{dist-BBshIz1Q.js → dist-J-tPYKGS.js} +4 -4
  275. package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-CoK1oqQD.js} +1 -1
  276. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-BaKj-yL6.js} +1 -1
  277. package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Cn2qv1_U.js} +1 -1
  278. package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-Bd7AEIDo.js} +1 -1
  279. package/editor-web/assets/{esm-DzxAod8Q.js → esm-Cjv8ogpP.js} +1 -1
  280. package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-Sfp7_461.js} +1 -1
  281. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +1 -0
  282. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CBqcGdHI.js} +1 -1
  283. package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-WTokXKTW.js} +1 -1
  284. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BIWZHD9q.js} +1 -1
  285. package/editor-web/assets/index-BQWZnyAQ.js +28 -0
  286. package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-COC6G-_J.js} +1 -1
  287. package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-DpaqdKBD.js} +1 -1
  288. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js} +1 -1
  289. package/editor-web/assets/{iso-ahTwmFwH.js → iso-DoC-ZoBr.js} +1 -1
  290. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-DeSVfmm7.js} +1 -1
  291. package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Bfg0lj7B.js} +1 -1
  292. package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-CyhovuYE.js} +3 -3
  293. package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-Dx1fBVUG.js} +4 -4
  294. package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-QEU2HF_m.js} +1 -1
  295. package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-ReJTa_hw.js} +1 -1
  296. package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-Bo1jFrvb.js} +1 -1
  297. package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-BrtYafNA.js} +1 -1
  298. package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-Cj0zQqs_.js} +1 -1
  299. package/editor-web/assets/{props-form-DUFxM5eb.js → props-form-BpSXbrSF.js} +1 -1
  300. package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-D5npDAVn.js} +1 -1
  301. package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-C8RDrRqi.js} +1 -1
  302. package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-ebDrmYTK.js} +1 -1
  303. package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-BxKuqg6V.js} +1 -1
  304. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-DOclnfpr.js} +1 -1
  305. package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-DN0A1fpq.js} +1 -1
  306. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-B3PjoVWw.js} +1 -1
  307. package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-DLdzkQk5.js} +1 -1
  308. package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-Dip4Piv_.js} +1 -1
  309. package/editor-web/assets/schemas-CQ_UU8-Z.js +1 -0
  310. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-QnPcoybL.js} +1 -1
  311. package/editor-web/assets/{session-Beijw9EK.js → session-DMlLCFWg.js} +1 -1
  312. package/editor-web/assets/slides-7xWhREpt.js +1 -0
  313. package/editor-web/assets/snapshots-BLX4NTQC.js +1 -0
  314. package/editor-web/assets/{split-zARio3J8.js → split-tFGKk-x8.js} +1 -1
  315. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-D103CiMX.js} +1 -1
  316. package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-y4gCqEoa.js} +1 -1
  317. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +8 -0
  318. package/editor-web/assets/{tabs-BHBvbekZ.js → tabs-CuEawka3.js} +1 -1
  319. package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-BMp76v4V.js} +1 -1
  320. package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-Q_GYyk0b.js} +1 -1
  321. package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-B5lRWdQB.js} +1 -1
  322. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX--QRllA-U.js} +1 -1
  323. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-CzkATPA3.js} +1 -1
  324. package/editor-web/assets/{video-oJ3qa1Qv.js → video-D0uTbHWx.js} +1 -1
  325. package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BXzwcdJa.js} +1 -1
  326. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-BQvC8Agx.js} +1 -1
  327. package/editor-web/assets/{words-0Ww2RyT4.js → words-CaUHhQHf.js} +1 -1
  328. package/editor-web/assets/workbook-CiCXkjmN.js +45 -0
  329. package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-aY-lsD5o.js} +1 -1
  330. package/editor-web/index.html +3 -3
  331. package/package.json +2 -2
  332. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  333. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  334. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  335. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  336. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  337. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  338. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  339. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  340. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  341. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  342. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  343. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  344. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  345. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  346. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  347. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  348. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  349. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  350. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  351. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  352. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  353. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  354. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  355. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  356. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  357. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  358. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  359. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  360. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  361. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  362. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  363. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  364. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  365. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  366. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  367. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  368. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  369. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  370. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
  371. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  372. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  373. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  374. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  375. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  376. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  377. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  378. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  379. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  380. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
  381. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  382. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  383. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  384. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  385. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  386. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  387. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  388. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  389. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  390. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  391. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  392. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  393. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  394. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  395. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  396. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  397. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  398. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  399. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  400. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  401. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  402. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  403. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  404. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  405. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  406. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  407. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  408. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  409. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  410. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  411. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  412. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  413. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  414. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  415. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  416. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  417. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  418. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  419. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  420. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  421. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  422. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  423. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  424. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  425. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  426. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  427. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  428. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  429. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  430. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  431. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  432. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  433. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  434. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  435. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  436. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  437. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  438. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  439. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  440. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  441. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  442. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  443. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  444. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  445. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  446. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  447. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  448. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  449. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  450. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  451. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  452. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  453. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  454. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  455. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  456. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  457. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  458. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  459. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  460. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  461. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  462. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  463. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  464. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  465. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  466. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  467. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  468. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  469. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  470. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  471. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  472. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  473. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  474. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  475. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  476. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  477. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  478. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  479. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  480. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  481. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  482. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  483. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  484. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
  485. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  486. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  487. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  488. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  489. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  490. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  491. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  492. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  493. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  494. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  495. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  496. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  497. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  498. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  499. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  500. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  501. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  502. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  503. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  504. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  505. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
  506. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  507. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  508. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  509. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  510. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  511. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  512. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  513. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
  514. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  515. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  516. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  517. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  518. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  519. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  520. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  521. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  522. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  523. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  524. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  525. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  526. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  527. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  528. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  529. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  530. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  531. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  532. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  533. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  534. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  535. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  536. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  537. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  538. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  539. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  540. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  541. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  542. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  543. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  544. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  545. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  546. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  547. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  548. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  549. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  550. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  551. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  552. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  553. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  554. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  555. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  556. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  557. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  558. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  559. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  560. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  561. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  562. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  563. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  564. package/editor-web/assets/channel-HUlo15J7.js +0 -1
  565. package/editor-web/assets/deck-CtEtDHo2.js +0 -1
  566. package/editor-web/assets/dist-Bl74xqMW.js +0 -19
  567. package/editor-web/assets/dist-BrUtQth3.js +0 -18
  568. package/editor-web/assets/dist-CN5A7Au2.js +0 -1
  569. package/editor-web/assets/dist-CcL6r6l3.js +0 -1
  570. package/editor-web/assets/dist-D2E3cgRP.js +0 -4
  571. package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
  572. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  573. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
  574. package/editor-web/assets/index-q7X6hdHp.js +0 -28
  575. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  576. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  577. package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
  578. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
  579. package/editor-web/assets/workbook-DznVDqoE.js +0 -45
  580. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
@@ -1 +0,0 @@
1
- import{C as e,E as t,S as n,T as r,_ as i,a as ee,c as a,d as o,g as s,h as c,i as l,m as u,n as te,o as d,p as f,u as ne,v as p,w as m,x as h,y as g}from"./iso-ahTwmFwH.js";import{M as re,P as ie,S as _,_ as ae,a as v,i as oe,o as se,r as ce,s as y,x as le}from"./slides-oQ_C0SVJ.js";var b=n().regex(/^[0-9a-f]{64}$/u,`A sha256 is 64 lowercase hexadecimal digits.`),x=s().nonnegative(),ue=te({offset:!0});function S(e){return h({$schema:n().optional(),...e})}var de=`allyhub.yaml`,fe=h({kind:n().min(1).optional().describe(`What it is: a kind's id (video, slides, image, doc, sheet, scenery, model, website, or an extension's); none for a file an editor opens by its name (a canvas, *.canvas)`),file:n().min(1).describe(`Its file, from the project's root: a video's, a deck's or an image's module, a doc's MDX, a sheet's YAML, a website's JSON, a canvas`),title:n().min(1).optional().describe(`Its name where people see it; none: the title its file says, else its file's name`)}),pe=f(()=>m([fe,h({group:n().min(1).describe(`A heading, as people see it`),items:d(pe)})])),me=S({work:d(pe).default([]).describe(`The work a person sees, in order: pieces, and groups of them`)}),he=h({fonts:d(n().min(1)).default([]),text:n().optional(),locales:d(n().min(2)).min(1).optional(),look:g(n(),r()).optional(),defaults:g(n(),r()).optional()}),C=s(),w=d(h({name:l(se),value:s()})),ge=m([l(v),h({theme_color:l(v),brightness:s().min(-1).max(1)}),h({theme_color:l(v),transforms:w}),h({rgb:n().regex(/^#?[0-9A-Fa-f]{6}$/u),transforms:w.optional()})]),T=p(l(v),l(_)),_e=h({left:C,top:C,width:C,height:C}),ve=c({text:n()}),E=c({level:s().int().min(0).max(8),runs:d(ve)}),ye=c({paragraphs:d(E),levels:d(c({}))}),D=c({name:n(),kind:l([`placeholder`,`textbox`,`picture`,`movie`,`autoshape`,`table`,`chart`,`component`]),frame:_e.optional(),placeholder:h({type:n(),idx:s().int(),orient:u(`vert`).optional()}).optional(),text:ye.optional(),media:c({path:n(),base:n()}).optional(),component:h({name:n(),props:g(n(),r())}).optional()}),be=c({name:n(),master:n(),color_map:T.optional(),shapes:d(D)}),xe=c({name:n(),background:ge,color_map:T.optional(),text_styles:h({title:d(c({})),body:d(c({})),other:d(c({}))}),shapes:d(D),layouts:d(be)}),O=f(()=>c({type:n(),optional:a().optional(),of:O.optional(),fields:g(n(),O).optional(),kind:n().optional()})),Se=c({id:n(),layout:n(),shapes:d(D),text:g(n(),d(E)),notes:n().optional()}),k=h({slide_width:C.positive(),slide_height:C.positive(),theme:h({name:n().optional(),colors:p(l(_),n()).optional(),fonts:g(n(),n()).optional()}).optional(),masters:d(xe),components:g(n(),h({props:g(n(),O)})),generators:g(n(),m([d(Se),h({error:n(),stack:n().optional()})]))}),A=h({from:x,to:x}).refine(e=>e.to>e.from,{message:`A stretch ends after its start.`,path:[`to`]}),j=s().min(0).max(2),Ce=S({version:u(1),take:n().optional(),remove:d(h({from:o().nonnegative(),to:o().nonnegative(),text:n().optional()}).refine(e=>e.to>=e.from,{message:`A range ends at or after its start.`,path:[`to`]})).optional(),sounds:d(A).optional(),inWord:d(A).optional(),maxPause:s().min(.05).max(10).optional(),pad:h({before:j.optional(),after:j.optional()}).optional()}),we=e([s(),s(),s().nonnegative(),s().nonnegative()]),Te=g(n().min(1),we);h({omitted:u(!0),sha256:b,bytes:o().nonnegative()});var Ee=S({version:u(1),ai:a(),tool:n().optional(),model:n().optional(),input:g(n(),r()).optional(),inputHash:b.optional(),output:g(n(),r()).optional(),credits:s().nonnegative().optional(),at:ue,sha256:b,bytes:o().nonnegative(),source:h({library:n(),page:t(),authors:d(n()).default([]),license:n()}).optional()}),De=e([s(),s(),s(),s()]),M=i({t:x,score:s()}),N=s().nullable(),P=s().int().nonnegative(),Oe=i({index:P,start:x,end:x,words:e([s().int(),s().int()]),text:n(),punctuation:a(),pauseAfter:x.optional()}),F=i({after:P,start:x,end:x,dur:x}),ke=i({t:x,cut:M.optional(),weak:M.optional(),pause:i({start:x,end:x,dur:x}).optional(),sentence:P.optional()}),Ae=i({id:P,text:n(),box:De,height:s(),words:P,upper:s().min(0).max(1),start:x,end:x,spans:d(e([x,x])),seconds:x,seen:s().int().positive(),frames:s().min(0).max(1),spread:s().min(0).max(1),said:s().min(0).max(1)}),je=i({start:x,end:x,dur:x,said:n(),words:P,wordsPerMinute:s().nonnegative(),cuts:d(x),shots:s().int().positive(),cutsPerMinute:s().nonnegative(),text:d(P),textSeconds:x}).extend({index:P,name:n(),sentences:e([s().int(),s().int()]).optional()}),Me=i({cutsPerMinute:s().nonnegative(),meanShot:x,medianShot:x,wordsPerMinute:s().nonnegative(),speakingRate:s().nonnegative(),timeToFirstWord:x.optional(),timeToFirstCut:x.optional(),textShare:s().min(0).max(1),speechShare:s().min(0).max(1),tempo:i({bpm:s().positive(),confidence:s().min(0),candidates:d(i({bpm:s(),r:s(),score:s()})).optional(),prior:s().optional()}).optional(),onsetsPerMinute:s().nonnegative()}),I=i({seconds:x,p10:s(),median:s(),p90:s()}),Ne=i({gap:x,edge:x,voiced:s().min(0).max(100),whole:I,words:I.optional(),between:I.extend({voicedShare:s().min(0).max(1),onsetsPerMinute:s().nonnegative()}).optional(),floor:s()}),Pe=i({params:g(n(),r()),frames:i({tone:P,color:P,motion:P}),luma:i({p1:N,p50:N,p99:N}),blackShare:N,noise:N,sharpness:N,saturation:N,warmth:N,motion:i({speed:i({p50:N,p90:N}),shake:i({p50:N,p90:N}),stillShare:N,runs:P}),sharpnessBySpeed:d(i({from:s(),to:N,frames:P,sharpness:N})),noiseByLuma:d(i({from:s(),to:s(),blocks:P,noise:N,median:N})),shake:d(i({start:x,end:x,rms:s(),peaks:d(i({hz:s(),share:s()})),flatness:s()}))}),L=i({frames:P,reach:d(i({drop:s(),hz:N})),rolloff95:N,rolloff99:N,steps:d(i({hz:s(),db:s()}))}),Fe=i({loudness:i({integrated:N,range:N,truePeak:N}),recording:i({params:g(n(),r()),spectrum:d(i({hz:s(),db:s()})),dynamics:i({spread:s(),crest:s()})}).loose(),bandwidth:L.extend({params:g(n(),r())}),voice:L.optional()});i({version:u(1),id:n(),source:i({file:n(),url:n().optional(),title:n().optional(),sha256:b}),analysedAt:n(),duration:x,width:s().int().positive(),height:s().int().positive(),fps:s().positive(),encoding:i({codec:n().optional(),bitrate:s().positive().optional(),audio:i({codec:n().optional(),profile:n().optional(),bitrate:s().positive().optional(),rate:s().positive().optional(),channels:s().int().positive().optional()}).optional()}).optional(),words:n().optional(),wordCount:P,asr:n().optional(),wordsMissing:i({code:n().optional(),message:n(),hint:n().optional(),instead:n()}).optional(),textMissing:i({code:n().optional(),message:n(),hint:n().optional(),instead:n()}).optional(),shots:i({threshold:s().min(0).max(1),minShot:s().nonnegative(),weakFloor:s().min(0).max(1),prominence:s().nonnegative(),cuts:d(M),weak:d(M),candidates:d(i({t:x,score:s(),source:l([`jump`,`change`]),around:s(),passes:a()})).optional()}),speech:i({pause:x,sentences:d(Oe),pauses:d(F),gaps:d(F).optional()}),boundaries:i({cutWithin:x,candidates:d(ke)}),ocr:i({engine:n(),frames:P,unread:P.optional(),samePlace:s(),saidWithin:x}),text:d(Ae),pacing:Me,sound:Ne.optional(),segments:i({rule:n(),pause:x,cutWithin:x,minLength:x,list:d(je).min(1)}),sheets:d(n()),picture:Pe,audio:Fe.optional()});var Ie=h({start:x,end:x,name:n().min(1).optional(),role:n().min(1).optional(),picture:n().optional(),onScreen:d(n()).optional(),notes:n().optional()}),Le=S({version:u(1).default(1),summary:n().optional(),layout:n().optional(),hook:n().optional(),sections:d(Ie).min(1),captions:h({lines:d(P).optional(),style:n().optional()}).optional(),watermarks:d(P).optional(),notes:n().optional(),labels:g(n(),m([n(),s(),a(),d(n())])).optional()}),R=n().regex(/^#[0-9a-fA-F]{6}$/u,`A colour is #RRGGBB.`),Re=[`general`,`left`,`center`,`right`,`fill`,`justify`,`centerContinuous`,`distributed`],ze=[`top`,`center`,`bottom`,`justify`,`distributed`],Be=[`single`,`double`,`singleAccounting`,`doubleAccounting`],Ve=[`none`,`thin`,`medium`,`thick`,`double`,`hair`,`dotted`,`dashed`,`dashDot`,`dashDotDot`,`mediumDashed`,`mediumDashDot`,`mediumDashDotDot`,`slantDashDot`],He=[`solid`,`darkDown`,`darkGray`,`darkGrid`,`darkHorizontal`,`darkTrellis`,`darkUp`,`darkVertical`,`gray0625`,`gray125`,`lightDown`,`lightGray`,`lightGrid`,`lightHorizontal`,`lightTrellis`,`lightUp`,`lightVertical`,`mediumGray`],z=h({style:l(Ve),color:R.optional()}),B={bold:a().optional(),italic:a().optional(),underline:m([a(),l(Be)]).optional(),strike:a().optional(),font:n().min(1).optional(),size:s().positive().optional(),color:R.optional(),fill:m([R,h({pattern:l(He),color:R.optional(),background:R.optional()})]).optional(),align:l(Re).optional(),valign:l(ze).optional(),wrap:a().optional(),shrink:a().optional(),indent:s().int().min(0).optional(),rotation:s().int().min(-90).max(180).optional(),border:h({left:z.optional(),right:z.optional(),top:z.optional(),bottom:z.optional()}).optional(),locked:a().optional(),hide_formula:a().optional()},V={...B,format:n().min(1).optional()},H=m([s(),a(),n(),ee()]),Ue=h({text:n(),bold:B.bold,italic:B.italic,underline:B.underline,strike:B.strike,font:B.font,size:B.size,color:B.color,script:l([`superscript`,`subscript`]).optional()}),We=h({value:H.optional(),formula:n().min(1).optional(),name:n().min(1).optional(),start:H.optional(),runs:d(Ue).min(1).optional(),...V}).refine(e=>e.value===void 0||e.formula===void 0,{message:`A cell has a value or a formula, not both.`}).refine(e=>e.runs===void 0||e.value===void 0&&e.formula===void 0,{message:`A cell's runs are its text: it has no value or formula beside them.`}).refine(e=>e.start===void 0||e.formula!==void 0,{message:`A cell's start is a formula's.`}),Ge=m([H,We]),Ke=h({range:n().min(1),...V}),U=m([u(!0),h({separator:n().min(1).optional(),height:s().positive().optional()})]),qe=h({formula:n().min(1).optional(),...V,width:s().positive().optional(),files:U.optional()}),W=[`equal`,`notEqual`,`greaterThan`,`greaterThanOrEqual`,`lessThan`,`lessThanOrEqual`],G=h({values:d(n()).optional(),blanks:a().optional(),conditions:d(h({operator:l(W),value:m([n(),s()])})).min(1).max(2).optional(),or:a().optional(),top:h({count:s().positive(),percent:a().optional(),bottom:a().optional()}).optional(),average:l([`above`,`below`]).optional(),color:h({fill:R.optional(),font:R.optional()}).optional()}),Je=h({name:n().min(1),at:n().min(1),rows:n().min(1),key:n().min(1).optional(),style:n().min(1).optional(),banded_rows:a().optional(),banded_columns:a().optional(),first_column:a().optional(),last_column:a().optional(),columns:g(n(),qe).optional(),filter:m([u(!1),h({columns:g(n(),G)})]).optional()}),Ye=h({at:n().min(1),rows:n().min(1)}),Xe=h({width:s().positive().optional(),hidden:a().optional(),level:s().int().min(1).max(7).optional(),...V,files:U.optional()}),Ze=h({height:s().positive().optional(),hidden:a().optional(),level:s().int().min(1).max(7).optional(),...V}),Qe=h({range:n().min(1),columns:g(n(),G).optional()}),K=[`between`,`notBetween`,`equal`,`notEqual`,`greaterThan`,`lessThan`,`greaterThanOrEqual`,`lessThanOrEqual`],q=m([s(),n()]),J={bold:a().optional(),italic:a().optional(),underline:a().optional(),strike:a().optional(),color:R.optional(),fill:R.optional(),border:B.border,format:n().min(1).optional()},Y={range:n().min(1),stop:a().optional()},X=h({at:l([`min`,`max`,`num`,`percent`,`percentile`,`formula`]),value:q.optional()}),$e=[`3Arrows`,`3ArrowsGray`,`3Flags`,`3TrafficLights1`,`3TrafficLights2`,`3Signs`,`3Symbols`,`3Symbols2`,`4Arrows`,`4ArrowsGray`,`4RedToBlack`,`4Rating`,`4TrafficLights`,`5Arrows`,`5ArrowsGray`,`5Rating`,`5Quarters`],et=ne(`type`,[h({...Y,...J,type:u(`cellIs`),operator:l(K),formula:d(q).min(1).max(2)}),h({...Y,...J,type:u(`containsText`),operator:l([`contains`,`notContains`,`beginsWith`,`endsWith`]).optional(),text:n()}),h({...Y,...J,type:l([`duplicateValues`,`uniqueValues`])}),h({...Y,...J,type:u(`top10`),rank:s().int().positive(),percent:a().optional(),bottom:a().optional()}),h({...Y,...J,type:u(`aboveAverage`),below:a().optional(),equal:a().optional()}),h({...Y,...J,type:u(`expression`),formula:n().min(1)}),h({...Y,type:u(`dataBar`),color:R,min:X.optional(),max:X.optional(),show:a().optional()}),h({...Y,type:u(`colorScale`),stops:d(h({...X.shape,color:R})).min(2).max(3)}),h({...Y,type:u(`iconSet`),icons:l($e),stops:d(X).min(3).max(5).optional(),reverse:a().optional(),show:a().optional()})]),tt=[`whole`,`decimal`,`list`,`date`,`time`,`textLength`,`custom`],nt=h({range:n().min(1),type:l(tt),operator:l(K).optional(),formula:d(q).max(2).optional(),values:d(n()).optional(),multiple:a().optional(),separator:n().min(1).optional(),blank:a().optional(),dropdown:a().optional(),prompt:h({title:n().optional(),message:n().optional(),show:a().optional()}).optional(),error:h({style:l([`stop`,`warning`,`information`]).optional(),title:n().optional(),message:n().optional(),show:a().optional()}).optional()}),rt=ce,it=h({values:n().min(1),x:n().min(1).optional(),name:n().optional(),color:R.optional(),format:n().min(1).optional(),smooth:a().optional(),line_width:s().positive().optional(),marker_size:s().int().min(2).max(72).optional(),type:l(rt).optional(),secondary:a().optional()}),Z=h({title:n().optional(),min:s().optional(),max:s().optional(),major:s().positive().optional(),gridlines:a().optional(),visible:a().optional(),format:n().min(1).optional(),reverse:a().optional()}),at=h({type:l(ae),at:n().min(1),x:s().min(0).optional(),y:s().min(0).optional(),width:s().positive().optional(),height:s().positive().optional(),title:n().optional(),categories:n().min(1).optional(),series:d(it).min(1),legend:l(oe).optional(),labels:y.shape.labels,gap_width:y.shape.gap_width,overlap:y.shape.overlap,vary_by_categories:y.shape.vary_by_categories,hole_size:y.shape.hole_size,value_axis:Z.optional(),category_axis:Z.optional(),secondary_axis:Z.optional(),size:s().positive().optional(),title_size:s().positive().optional(),color:R.optional()}),ot={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},st={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},Q=h({left:n().optional(),center:n().optional(),right:n().optional()}),ct=h({area:n().min(1).optional(),title_rows:n().regex(/^\d+:\d+$/u).optional(),title_cols:n().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:l([`portrait`,`landscape`]).optional(),paper:l(Object.keys(ot)).optional(),fit:h({width:s().int().min(0).optional(),height:s().int().min(0).optional()}).optional(),scale:s().int().min(10).max(400).optional(),breaks:h({rows:d(s().int().min(2)).optional(),cols:d(n().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:h({left:s().min(0).optional(),right:s().min(0).optional(),top:s().min(0).optional(),bottom:s().min(0).optional(),header:s().min(0).optional(),footer:s().min(0).optional()}).optional(),header:Q.optional(),footer:Q.optional()}),lt=h({file:n().min(1),at:n().min(1),x:s().min(0).optional(),y:s().min(0).optional(),width:s().positive().optional(),height:s().positive().optional()}),ut=m([n().min(1),h({text:n().min(1),author:n().optional()})]),dt=h({name:n().min(1),hidden:a().optional(),outline:h({summary_below:a().optional(),summary_right:a().optional()}).optional(),gridlines:a().optional(),tab:R.optional(),freeze:n().min(1).optional(),tables:d(Je).optional(),columns:g(n(),Xe).optional(),rows:g(n(),Ze).optional(),cells:g(n(),Ge).optional(),format:d(Ke).optional(),merges:d(n().min(1)).optional(),blocks:d(Ye).optional(),filter:Qe.optional(),conditional:d(et).optional(),validations:d(nt).optional(),charts:d(at).optional(),pictures:d(lt).optional(),links:g(n(),n().min(1)).optional(),notes:g(n(),ut).optional(),print:ct.optional(),protect:a().optional(),names:g(n(),H).optional(),hidden_names:d(n().min(1)).optional()}),ft=h({name:n().min(1),formula:n().min(1)}),pt=m([u(!0),h({max_iterations:s().int().min(1).max(32767).optional(),max_change:s().min(0).optional()})]),mt=h({title:n().optional(),code:n().min(1).optional(),names:g(n(),H).optional(),hidden_names:d(n().min(1)).optional(),sheets:d(dt).min(1),checks:d(ft).optional(),scenarios:g(n(),g(n(),H)).optional(),iteration:pt.optional()}),ht=h({$schema:n().optional(),title:n().min(1).optional().describe(`The website's name where people see it (Studio's list of a project's work); none: its entry file's name.`),dev:n().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:n().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: the output folder is used as it is."),output:n().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:n().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")}),gt=h({text:n().min(1),start:x,end:x,confidence:s().min(0).max(1).optional()}).refine(e=>e.end>=e.start,{message:`A word ends at or after its start.`,path:[`end`]}),_t=S({version:u(1),language:n().min(2).optional(),duration:x.optional(),model:n().optional(),words:d(gt)}).refine(e=>e.words.every((t,n)=>n===0||t.start>=(e.words[n-1]?.start??0)),{message:`Words are in the order they are said.`,path:[`words`]});function vt(e){let t=e.lastIndexOf(`/`),n=e.lastIndexOf(`.`);return`${n>t?e.slice(0,n):e}.words.json`}var yt={work:{schema:me,files:[de],about:`The work a person sees of the project: each piece's kind, file and title, in groups.`},words:{schema:_t,files:[`**/*.words.json`],about:`The words said in an audio or video file, with their times.`},edits:{schema:Ce,files:[`**/edits/*.json`],about:`A recording's cut list.`},elements:{schema:Te,files:[`**/*.elements.json`],about:`A page screenshot's named elements, each its box in the picture's pixels.`},gen:{schema:Ee,files:[`**/*.provenance`],about:`How a media file was made, and where it came from.`},script:{schema:re,files:[],about:`An item's words in one language.`},messages:{schema:ie,files:[`assets/text/*.json`],about:`Words several items share, in one language.`},sheet:{schema:mt,files:[],about:`A workbook: its sheets, cells, formulas, formats, names, checks and scenarios.`},slides:{schema:le,files:[],about:`A deck's pages: their order, layouts, values and what was placed on them.`},website:{schema:ht,files:[],about:`A website: how it is served while it is made, how it is built, and where the built site is.`},interpretation:{schema:Le,files:[`**/reference/*/interpretation.json`],about:`What the agent concludes of a reference video: its sections, captions, watermarks and labels.`},"deck-code":{schema:k,files:[],about:`What a deck's module and its generators made, as data: what its code host sends the editor.`},config:{schema:he,files:[],about:`allyhub.config.ts's settings.`}};function $(e){if(e.code!==`invalid_union`)return e.message;let t=e.errors.flatMap(e=>e.slice(0,1).map(e=>{let t=e.path.map(String).join(`.`);return t===``?$(e):`${t}: ${$(e)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join(`; `)}`}function bt(e,t){let n=yt[e].schema.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,problems:n.error.issues.map(e=>({path:e.path.map(String).join(`.`),message:$(e)}))}}export{$e as a,ot as c,W as i,tt as l,vt as n,st as o,rt as r,K as s,bt as t,k as u};
@@ -1 +0,0 @@
1
- import{C as e,S as t,T as n,_ as r,a as i,c as a,d as o,g as s,i as c,m as l,o as u,p as d,w as f,x as p,y as m}from"./iso-ahTwmFwH.js";var ee=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/u,te=p({display:t(),speak:t()}),h=p({declarations:u(t()).default([]),selectors:u(t()).default([]),match:m(t(),t()).refine(e=>Object.keys(e).length>0,`A match needs at least one case.`)}),ne=f([t(),te,e([h])]),re=m(t(),n()).superRefine((e,t)=>{for(let[n,r]of Object.entries(e)){if(n===`$schema`){typeof r!=`string`&&t.addIssue({code:`custom`,path:[n],message:`$schema is a string.`});continue}ee.test(n)||t.addIssue({code:`custom`,path:[n],message:`"${n}" is not a message key: letters, digits, _ and -, in segments joined by dots.`});let e=ne.safeParse(r);e.success||t.addIssue({code:`custom`,path:[n],message:Array.isArray(r)?`A message with variants is [{ "declarations": […], "selectors": […], "match": {…} }]: ${e.error.issues.map(e=>e.message).join(`; `)}`:`A message is a string, { display, speak }, or [{ declarations, selectors, match }].`})}}).transform(e=>{let t={...e};return delete t.$schema,t}),g=/^[A-Za-z0-9_-]+$/u,_=t().regex(g,`A name is letters, digits, _ and -.`),v=d(()=>f([t(),te,h,u(v),m(_,v)])),ie=p({id:_,say:f([t(),h]).optional(),screen:m(_,v).optional()}),y=p({id:_,text:m(_,v).optional(),alt:m(_,t()).optional(),notes:f([t(),h]).optional()}),ae=p({id:_,text:m(_,v).optional()}),oe=p({title:t().optional(),text:m(_,v).optional(),parts:u(ie).default([]),slides:u(y).default([]),boards:u(ae).default([])}).superRefine((e,t)=>{let n=new Set;e.parts.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`parts`,r,`id`],message:`Two parts are "${e.id}".`}),n.add(e.id)});let r=new Set;e.slides.forEach((e,n)=>{r.has(e.id)&&t.addIssue({code:`custom`,path:[`slides`,n,`id`],message:`Two slides are "${e.id}".`}),r.add(e.id)});let i=new Set;e.boards.forEach((e,n)=>{i.has(e.id)&&t.addIssue({code:`custom`,path:[`boards`,n,`id`],message:`Two boards are "${e.id}".`}),i.add(e.id)})}),b=t().regex(g,`A name is letters, digits, _ and -.`),x=[`dk1`,`lt1`,`dk2`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`],se=[`l`,`ctr`,`r`,`just`],ce=`line.lineInv.triangle.rtTriangle.rect.diamond.parallelogram.trapezoid.nonIsoscelesTrapezoid.pentagon.hexagon.heptagon.octagon.decagon.dodecagon.star4.star5.star6.star7.star8.star10.star12.star16.star24.star32.roundRect.round1Rect.round2SameRect.round2DiagRect.snipRoundRect.snip1Rect.snip2SameRect.snip2DiagRect.plaque.ellipse.teardrop.homePlate.chevron.pieWedge.pie.blockArc.donut.noSmoking.rightArrow.leftArrow.upArrow.downArrow.stripedRightArrow.notchedRightArrow.bentUpArrow.leftRightArrow.upDownArrow.leftUpArrow.leftRightUpArrow.quadArrow.leftArrowCallout.rightArrowCallout.upArrowCallout.downArrowCallout.leftRightArrowCallout.upDownArrowCallout.quadArrowCallout.bentArrow.uturnArrow.circularArrow.leftCircularArrow.leftRightCircularArrow.curvedRightArrow.curvedLeftArrow.curvedUpArrow.curvedDownArrow.swooshArrow.cube.can.lightningBolt.heart.sun.moon.smileyFace.irregularSeal1.irregularSeal2.foldedCorner.bevel.frame.halfFrame.corner.diagStripe.chord.arc.leftBracket.rightBracket.leftBrace.rightBrace.bracketPair.bracePair.straightConnector1.bentConnector2.bentConnector3.bentConnector4.bentConnector5.curvedConnector2.curvedConnector3.curvedConnector4.curvedConnector5.callout1.callout2.callout3.accentCallout1.accentCallout2.accentCallout3.borderCallout1.borderCallout2.borderCallout3.accentBorderCallout1.accentBorderCallout2.accentBorderCallout3.wedgeRectCallout.wedgeRoundRectCallout.wedgeEllipseCallout.cloudCallout.cloud.ribbon.ribbon2.ellipseRibbon.ellipseRibbon2.leftRightRibbon.verticalScroll.horizontalScroll.wave.doubleWave.plus.flowChartProcess.flowChartDecision.flowChartInputOutput.flowChartPredefinedProcess.flowChartInternalStorage.flowChartDocument.flowChartMultidocument.flowChartTerminator.flowChartPreparation.flowChartManualInput.flowChartManualOperation.flowChartConnector.flowChartPunchedCard.flowChartPunchedTape.flowChartSummingJunction.flowChartOr.flowChartCollate.flowChartSort.flowChartExtract.flowChartMerge.flowChartOfflineStorage.flowChartOnlineStorage.flowChartMagneticTape.flowChartMagneticDisk.flowChartMagneticDrum.flowChartDisplay.flowChartDelay.flowChartAlternateProcess.flowChartOffpageConnector.actionButtonBlank.actionButtonHome.actionButtonHelp.actionButtonInformation.actionButtonForwardNext.actionButtonBackPrevious.actionButtonEnd.actionButtonBeginning.actionButtonReturn.actionButtonDocument.actionButtonSound.actionButtonMovie.gear6.gear9.funnel.mathPlus.mathMinus.mathMultiply.mathDivide.mathEqual.mathNotEqual.cornerTabs.squareTabs.plaqueTabs.chartX.chartStar.chartPlus`.split(`.`),S=[`appear`,`fade`,`fly-in`,`float-in`,`split`,`wipe`,`zoom`,`disappear`,`fade-out`,`fly-out`,`float-out`,`split-out`,`wipe-out`,`zoom-out`,`pulse`,`grow-shrink`,`spin`,`transparency`,`path`],le=[`word`,`letter`],ue=[`until-next-click`,`until-end-of-slide`],de=[`on-click`,`with-previous`,`after-previous`],C=[`from-bottom`,`from-top`,`from-left`,`from-right`,`from-top-right`,`from-bottom-right`,`from-top-left`,`from-bottom-left`,`vertical-out`,`vertical-in`,`horizontal-out`,`horizontal-in`,`in`,`out`,`rotate`,`up`,`down`,`clockwise`,`counterclockwise`,`both`,`horizontal`,`vertical`],w=[`solid`,`sysDot`,`sysDash`,`dash`,`dashDot`,`lgDash`,`lgDashDot`,`lgDashDotDot`,`dot`,`sysDashDot`,`sysDashDotDot`],T=[`flat`,`rnd`,`sq`],E=[`round`,`bevel`,`miter`],D=[`sng`,`dbl`,`thickThin`,`thinThick`,`tri`],O=[`none`,`triangle`,`arrow`,`stealth`,`diamond`,`oval`],k=[`sm`,`med`,`lg`],A=p({w:c(k).optional(),len:c(k).optional()}),fe=p({x:s(),y:s(),w:s().nonnegative(),h:s().nonnegative()}),j=[`tx1`,`bg1`,`tx2`,`bg2`],M=[...x,...j],N=[`tint`,`shade`,`lumMod`,`lumOff`,`lum`,`satMod`,`satOff`,`sat`,`hueMod`,`hueOff`,`hue`,`alpha`,`alphaMod`,`alphaOff`],P=`(?:${M.join(`|`)})`,pe=`(?:${N.join(`|`)}) -?\\d+(?:\\.\\d+)?(?:%|°)`,F=RegExp(`^(${P}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,`u`),I=RegExp(`^(${P}|#[0-9A-Fa-f]{6})((?: ${pe})+)$`,`u`),L=/^#[0-9A-Fa-f]{6}$/u,R=e=>M.includes(e),me=e=>N.includes(e),z=new Set([`hue`,`hueOff`]);function B(e){if(R(e))return e;if(L.test(e))return{rgb:e.toUpperCase()};let t=I.exec(e);if(t){let[,e=``,n=``]=t,r=[];for(let e of n.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){let[,t=``,n=``,i]=e;if(!me(t)||i===`°`!==z.has(t))return;let a=Number(n);r.push({name:t,value:i===`%`?Math.round(a*1e3)/1e5:a})}return R(e)?{theme_color:e,transforms:r}:{rgb:e.toUpperCase(),transforms:r}}let n=F.exec(e),[,r=``,i,a=``]=n??[],o=Math.round(Number(a)*1e3);if(!(!n||!R(r)||o<=0||o>1e5))return{theme_color:r,brightness:(i===`lighter`?o:-o)/1e5}}var V=e=>z.has(e.name)?`${e.name} ${String(Math.round(e.value*1e3)/1e3)}°`:`${e.name} ${String(Math.round(e.value*1e5)/1e3)}%`;function he(e){if(typeof e==`string`)return e;if(`rgb`in e)return e.transforms&&e.transforms.length>0?`${e.rgb} ${e.transforms.map(V).join(` `)}`:e.rgb;if(`transforms`in e)return e.transforms.length===0?e.theme_color:`${e.theme_color} ${e.transforms.map(V).join(` `)}`;let t=Math.round(Math.abs(e.brightness)*1e5)/1e3;return t===0?e.theme_color:`${e.theme_color} ${e.brightness>0?`lighter`:`darker`} ${String(t)}%`}var H=`A colour is one of the theme's (${x.join(`, `)}) or the colour map's (${j.join(`, `)}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${N.join(`, `)}).`,U=f([c(M),t().regex(F,H),t().regex(L,H),t().regex(I,H)]).refine(e=>B(e)!==void 0,H),W=`alphaLcParenBoth.alphaUcParenBoth.alphaLcParenR.alphaUcParenR.alphaLcPeriod.alphaUcPeriod.arabicParenBoth.arabicParenR.arabicPeriod.arabicPlain.romanLcParenBoth.romanUcParenBoth.romanLcParenR.romanUcParenR.romanLcPeriod.romanUcPeriod.circleNumDbPlain.circleNumWdBlackPlain.circleNumWdWhitePlain.arabicDbPeriod.arabicDbPlain.ea1ChsPeriod.ea1ChsPlain.ea1ChtPeriod.ea1ChtPlain.ea1JpnChsDbPeriod.ea1JpnKorPlain.ea1JpnKorPeriod.arabic1Minus.arabic2Minus.hebrew2Minus.thaiAlphaPeriod.thaiAlphaParenR.thaiAlphaParenBoth.thaiNumPeriod.thaiNumParenR.thaiNumParenBoth.hindiAlphaPeriod.hindiNumPeriod.hindiNumParenR.hindiAlpha1Period`.split(`.`),ge=[`sng`,`dbl`,`heavy`,`dotted`,`dottedHeavy`,`dash`,`dashHeavy`,`dashLong`,`dashLongHeavy`,`dotDash`,`dotDashHeavy`,`dotDotDash`,`dotDotDashHeavy`,`wavy`,`wavyHeavy`,`wavyDbl`,`words`],_e=[`sngStrike`,`dblStrike`],G=[`all`,`small`,`none`],ve=[`horz`,`vert`,`vert270`,`eaVert`,`wordArtVert`,`wordArtVertRtl`,`mongolianVert`],ye=[`t`,`ctr`,`b`],K=f([s().min(0).max(1584),r({lines:s().min(0).max(100)})]),q=p({size:s().positive().max(4e3).optional(),bold:a().optional(),italic:a().optional(),underline:f([a(),c(ge)]).optional(),strike:f([a(),c(_e)]).optional(),caps:c(G).optional(),color:U.optional(),font:t().min(1).optional(),align:c(se).optional(),line_spacing:s().positive().max(10).optional(),space_before:K.optional(),space_after:K.optional(),anchor:c(ye).optional(),orientation:c(ve).optional(),bullet:f([l(!1),t().min(1).max(2)]).optional(),numbered:c(W).optional(),bullet_color:U.optional(),bullet_size:s().min(.25).max(4).optional(),start_at:o().min(1).max(32767).optional()}),be=p({left:s().lt(1).optional(),top:s().lt(1).optional(),right:s().lt(1).optional(),bottom:s().lt(1).optional()}).refine(e=>(e.left??0)+(e.right??0)<1,{message:`left and right together cut the whole picture away`}).refine(e=>(e.top??0)+(e.bottom??0)<1,{message:`top and bottom together cut the whole picture away`}),J=d(()=>f([t(),s(),a(),i(),u(J),m(t(),J)])),Y=[`column-clustered`,`column-stacked`,`column-stacked-100`,`bar-clustered`,`bar-stacked`,`bar-stacked-100`,`line`,`line-markers`,`area`,`area-stacked`,`area-stacked-100`,`pie`,`doughnut`,`scatter`,`scatter-lines`,`scatter-smooth`],X=[`bottom`,`top`,`left`,`right`],Z=[`column-clustered`,`column-stacked`,`column-stacked-100`,`line`,`line-markers`,`area`,`area-stacked`,`area-stacked-100`],Q=p({min:s().optional(),max:s().optional(),major:s().positive().optional(),gridlines:a().optional(),visible:a().optional(),format:t().min(1).optional(),reverse:a().optional(),gridline_color:U.optional(),line_color:U.optional()}),xe=p({type:c(Y),data:t().min(1).optional(),categories:f([t().min(1),u(t())]).optional(),series:u(f([t().min(1),p({name:t().min(1),values:u(s().nullable()).optional(),x:u(s().nullable()).optional(),color:U.optional(),format:t().min(1).optional(),smooth:a().optional(),line_width:s().positive().optional(),marker_size:s().int().min(2).max(72).optional(),type:c(Z).optional(),secondary:a().optional()})])).min(1),legend:c(X).optional(),labels:f([a(),p({value:a().optional(),percentage:a().optional(),category:a().optional(),series:a().optional(),format:t().min(1).optional(),position:c([`outEnd`,`inEnd`,`ctr`,`inBase`,`t`,`b`,`l`,`r`,`bestFit`]).optional(),size:s().positive().optional(),color:U.optional()})]).optional(),gap_width:s().min(0).max(500).optional(),overlap:s().min(-100).max(100).optional(),vary_by_categories:a().optional(),category_colors:u(U).min(1).optional(),hole_size:s().min(10).max(90).optional(),value_axis:Q.optional(),category_axis:Q.optional(),secondary_axis:Q.optional(),size:s().positive().optional(),title_size:s().positive().optional(),color:U.optional()}),$=s().min(0).max(1),Se=[`circle`,`rect`,`shape`],Ce=p({angle:s().min(0).max(360).optional(),path:c(Se).optional(),focus:p({left:s().optional(),top:s().optional(),right:s().optional(),bottom:s().optional()}).optional(),stops:u(p({at:$,color:U,transparency:$.optional()})).min(2).max(10)}),we=`pct5.pct10.pct20.pct25.pct30.pct40.pct50.pct60.pct70.pct75.pct80.pct90.horz.vert.ltHorz.ltVert.dkHorz.dkVert.narHorz.narVert.dashHorz.dashVert.cross.dnDiag.upDiag.ltDnDiag.ltUpDiag.dkDnDiag.dkUpDiag.wdDnDiag.wdUpDiag.dashDnDiag.dashUpDiag.diagCross.smCheck.lgCheck.smGrid.lgGrid.dotGrid.smConfetti.lgConfetti.horzBrick.diagBrick.solidDmnd.openDmnd.dotDmnd.plaid.sphere.weave.divot.shingle.wave.trellis.zigZag`.split(`.`),Te=p({preset:c(we),fg:U.optional(),bg:U.optional()}),Ee=[`tl`,`t`,`tr`,`l`,`ctr`,`r`,`bl`,`b`,`br`],De=p({path:t().min(1),tile:p({scale_x:s().positive().max(100).optional(),scale_y:s().positive().max(100).optional(),x:s().optional(),y:s().optional(),align:c(Ee).optional()}).optional(),transparency:$.optional()}),Oe=p({fill:U.optional(),gradient:Ce.optional(),picture:t().min(1).optional()}).refine(e=>[e.fill,e.gradient,e.picture].filter(e=>e!==void 0).length===1,{message:`A background is a fill, a gradient or a picture: one of them.`}),ke=p({color:U.optional(),blur:s().min(0).max(100).optional(),distance:s().min(0).max(200).optional(),angle:s().min(0).max(360).optional(),transparency:$.optional()}),Ae=p({color:U.optional(),blur:s().min(0).max(100).optional(),distance:s().min(0).max(200).optional(),angle:s().min(0).max(360).optional(),transparency:$.optional()}),je=p({color:U.optional(),size:s().min(0).max(150).optional(),transparency:$.optional()}),Me=p({transparency:$.optional(),size:$.optional(),distance:s().min(0).max(100).optional(),blur:s().min(0).max(100).optional()}),Ne=f([p({shape:t().min(1),site:o().min(0)}),l(`none`)]),Pe=r({row:o().min(0),column:o().min(0),rows:o().min(1).optional(),columns:o().min(1).optional()});function Fe(e,t,n,r){let i=e.rows??1,a=e.columns??1;if(i*a<2)return`A merge takes two cells or more.`;if(e.row+i>t||e.column+a>n)return`A merge from row ${String(e.row)}, column ${String(e.column)} goes past the table's ${String(t)} rows and ${String(n)} columns.`;for(let t=e.row;t<e.row+i;t++)for(let n=e.column;n<e.column+a;n++){let e=`${String(t)},${String(n)}`;if(r.has(e))return`Two merges take the cell at row ${String(t)}, column ${String(n)}.`;r.add(e)}}var Ie=[`auto`,`on-click`],Le=p({start:c(Ie).optional(),trim:p({start:s().min(0).optional(),end:s().positive().optional()}).refine(e=>e.start===void 0||e.end===void 0||e.end>e.start,{message:`A trim ends after it starts.`}).optional(),loop:a().optional(),volume:s().min(0).max(1).optional(),fullscreen:a().optional(),hide:a().optional()}),Re=p({frame:fe.optional(),rotation:s().min(0).lt(360).optional(),flip_h:l(!0).optional(),flip_v:l(!0).optional(),connect:p({begin:Ne.optional(),end:Ne.optional()}).optional(),z:o().optional(),fill:f([U,l(`none`)]).optional(),fill_transparency:$.optional(),gradient:Ce.optional(),pattern:Te.optional(),picture_fill:De.optional(),shadow:ke.optional(),inner_shadow:Ae.optional(),glow:je.optional(),soft_edges:s().positive().max(100).optional(),reflection:Me.optional(),line:f([U,l(`none`)]).optional(),line_width:s().positive().max(1584).optional(),line_dash:c(w).optional(),line_cap:c(T).optional(),line_join:c(E).optional(),line_compound:c(D).optional(),line_begin:c(O).optional(),line_end:c(O).optional(),line_begin_size:A.optional(),line_end_size:A.optional(),text:q.optional(),textbox:l(!0).optional(),picture:t().min(1).optional(),crop:be.optional(),movie:t().min(1).optional(),audio:t().min(1).optional(),item:t().min(1).optional(),poster:s().min(0).optional(),playback:Le.optional(),geometry:c(ce).optional(),adjustments:u(s()).max(8).optional(),path:p({w:s().positive(),h:s().positive(),d:t().min(1)}).optional(),table:p({columns:u(s().positive()).min(1),rows:u(p({height:s().positive(),fill:U.optional(),text:q.optional(),line:U.optional()})).min(1),merged:u(Pe).optional(),data:t().min(1).optional(),fields:u(t().min(1)).min(1).optional(),head:a().optional(),style:t().min(1).optional(),first_row:a().optional(),last_row:a().optional(),first_col:a().optional(),last_col:a().optional(),horz_banding:a().optional(),vert_banding:a().optional()}).superRefine((e,t)=>{let n=new Set;e.data===void 0&&(e.fields!==void 0||e.head!==void 0)&&t.addIssue({code:`custom`,path:[e.fields===void 0?`head`:`fields`],message:`fields and head say how a table shows its data: give it data.`}),(e.merged??[]).forEach((r,i)=>{let a=Fe(r,e.rows.length,e.columns.length,n);a!==void 0&&t.addIssue({code:`custom`,path:[`merged`,i],message:a})})}).optional(),chart:xe.optional(),link:t().trim().min(1).optional(),group:t().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,`A group is a name of letters, digits, _ and -; a group in a group is outer/inner.`).optional(),locked:l(!0).optional(),component:f([b,t().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,`A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.`)]).optional(),props:m(t(),J).optional(),dur:s().positive().optional()}),ze=e=>e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)),Be=(e,t)=>e!==void 0&&(e===t||e.startsWith(`${t}/`)),Ve=[`firstslide`,`lastslide`,`nextslide`,`previousslide`,`endshow`],He=e=>`ppaction://hlinkshowjump?jump=${e}`;function Ue(e){let t=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(e);return Ve.find(e=>e===t?.[1])}var We=e=>e.startsWith(`#`)&&e.length>1?e.slice(1):void 0,Ge=[`textbox`,`picture`,`movie`,`audio`,`geometry`,`path`,`table`,`chart`,`component`,`item`],Ke=[`fade`,`push`,`wipe`,`split`,`reveal`,`cut`,`cover`,`uncover`,`zoom`,`morph`],qe=p({type:c(Ke),direction:c(C).optional(),through_black:l(!0).optional(),duration:s().min(0).optional()}),Je=p({shape:t().min(1),paragraph:o().min(0).optional(),effect:c(S),direction:c(C).optional(),amount:s().positive().max(36e3).optional(),start:c(de).optional(),duration:s().min(0).optional(),delay:s().min(0).optional(),path:t().min(1).optional(),animate_text:c(le).optional(),text_delay:s().min(0).max(100).optional(),repeat:f([s().min(1).max(1e4),c(ue)]).optional(),rewind:l(!0).optional()}),Ye=p({id:b,layout:t().min(1).optional(),generate:b.optional(),hidden:f([l(!0),u(t())]).optional(),shapes:m(t().min(1),Re).optional(),animations:u(Je).optional(),transition:qe.optional(),advance_after:s().min(0).max(86400).optional(),background:Oe.optional(),section:t().trim().min(1).max(255).optional()}),Xe=p({slides:u(Ye).default([])}).superRefine((e,t)=>{let n=new Set;e.slides.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`slides`,r,`id`],message:`Two slides are "${e.id}".`}),n.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!=1&&t.addIssue({code:`custom`,path:[`slides`,r],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&t.addIssue({code:`custom`,path:[`slides`,r,`hidden`],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(let[n,i]of Object.entries(e.shapes??{})){let a=Ge.filter(e=>i[e]!==void 0);a.length>1&&t.addIssue({code:`custom`,path:[`slides`,r,`shapes`,n],message:`Shape ${n} is one kind of shape, not ${a.join(` and `)}.`});let o=n.includes(`/`)?n.split(`/`):[n];(!(o.length<=2&&o.every(e=>g.test(e)))||o.length===2&&e.generate===void 0)&&t.addIssue({code:`custom`,path:[`slides`,r,`shapes`,n],message:`A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block.`})}})});export{Ue as A,Ee as C,ze as D,B as E,oe as M,y as N,Be as O,re as P,x as S,he as T,Y as _,M as a,Ye as b,Se as c,w as d,O as f,we as g,W as h,X as i,We as j,He as k,T as l,Ie as m,G as n,N as o,E as p,Z as r,xe as s,S as t,D as u,Ve as v,ge as w,Xe as x,Ke as y};
@@ -1 +0,0 @@
1
- import{E as e,S as t,T as n,_ as r,a as i,c as a,d as o,g as s,h as c,i as l,it as ee,m as u,n as d,o as f,s as p,t as m,u as te,w as h,x as g,y as _}from"./iso-ahTwmFwH.js";g({jsonrpc:u(`2.0`),id:h([t(),o()]),method:t().min(1),params:n().optional()}),g({jsonrpc:u(`2.0`),method:t().min(1),params:n().optional()});var ne=g({code:o(),message:t(),data:n().optional()});h([g({jsonrpc:u(`2.0`),id:h([t(),o()]),result:n()}),g({jsonrpc:u(`2.0`),id:h([t(),o(),i()]),error:ne})]);var v={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},y=(e,t,n)=>({params:e,result:t,about:n}),b=(e,t)=>({params:e,about:t}),x=class extends Error{code;data;constructor(e,t,n){super(t),this.name=`RpcError`,this.code=e,this.data=n}};async function re(e,t,n){let{id:r}=n,i=Object.hasOwn(e,n.method)?e[n.method]:void 0;if(!i)return{jsonrpc:`2.0`,id:r,error:{code:v.methodNotFound,message:`There is no method "${n.method}".`}};let a=i.params.safeParse(n.params??{});if(!a.success)return{jsonrpc:`2.0`,id:r,error:{code:v.invalidParams,message:ee(a.error)}};try{let e=t[n.method],o=await e(a.data);return{jsonrpc:`2.0`,id:r,result:i.result.parse(o)}}catch(e){return e instanceof x?{jsonrpc:`2.0`,id:r,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}:{jsonrpc:`2.0`,id:r,error:{code:v.internal,message:e instanceof Error?e.message:String(e)}}}}var S=t().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(`/`).includes(`..`),{message:`A path is inside the project.`}),C=h([u(``),S]),w=t().regex(/^[0-9a-f]{64}$/u).nullable(),ie=g({kind:l([`person`,`agent`,`tool`]),name:t().min(1)}),ae=g({path:S,size:o().nonnegative(),modified:s()}),oe={"files/read":y(g({path:S}),g({text:t(),version:w}),`A text file, with its version; a file that is not there reads as empty with version null.`),"files/write":y(g({path:S,text:t(),over:w}),g({version:w}),`Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it.`),"files/upload":y(g({dir:S,name:t().min(1),data:p()}),g({path:S}),`Keeps a file the person added, under a free name in the folder.`),"files/url":y(g({path:S}),g({url:t()}),`An address a page can load the file from (a picture, a video).`),"files/list":y(g({dir:t()}),g({files:f(ae),dirs:f(S)}),`A folder's files and folders, as on disk.`),"files/move":y(g({from:S,to:S}),g({rewritten:f(S)}),`Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does.`),"files/remove":y(g({path:S}),g({trash:t()}),`Moves a file or folder to the recycle bin (nothing is deleted).`),"files/trash":y(g({}),g({entries:f(g({id:t(),path:S,removed:s()}))}),`What the recycle bin holds.`),"files/restore":y(g({id:t()}),g({path:S}),`Puts a removed thing back where it was; refused while something is there.`),"files/watch":y(g({paths:f(S).min(1)}),g({watch:t()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":y(g({watch:t()}),g({}),`Stops a watch.`)},se={"files/changed":b(g({watch:t(),changes:f(g({path:S,version:w,by:ie.optional()}))}),`Files under a watch changed, other than by this client's own writes.`)},ce=r({name:t().min(1),only:f(t().min(1)),values:f(t().min(1)).optional()}),le=r({types:f(t().min(1)),extras:f(t().min(1)),options:f(ce),names:_(t(),_(t(),t())).optional()}),T={noun:t().min(1),icon:t().min(1).optional(),color:t().min(1).optional(),editor:t().min(1).optional(),exports:le.optional(),share:a().optional()},ue=r({name:t().min(1),...T}),E=r({name:_(t(),t().min(1)),plural:_(t(),t().min(1)).optional(),starter:r({files:_(t().min(1),t()),entry:t().min(1)}).optional(),order:s().optional(),turnInto:a().optional(),...T}),de=E.extend({id:t().min(1)}),D=(e,t)=>e.name[t]??e.name.en??e.noun,fe=/\.(ya?ml|json)$/u;function pe(e,t,n,r){let i=e=>e.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r);return{files:Object.entries(e.files).map(([e,a])=>{let o=i(e),s=fe.test(o)?JSON.stringify(t):t;return{path:o,text:a.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r).replaceAll(`{{title}}`,()=>s)}}),entry:i(e.entry)}}function me(e,t,n){return t===void 0?{name:e??`file`,noun:e??`file`}:{name:D(t,n),noun:t.noun,...t.icon===void 0?{}:{icon:t.icon},...t.color===void 0?{}:{color:t.color},...t.editor===void 0?{}:{editor:t.editor},...t.exports===void 0?{}:{exports:t.exports},...t.share===void 0?{}:{share:t.share}}}function he(e){return e.kindInfo?.exports===void 0?e.kind===void 0?`file as it is`:`nothing`:`formats`}var ge=[`script`,`style`,`font`,`img`,`media`,`connect`],_e=[`agent`,`project`,`piece`,`plugin`,`skill`,`website`,`studio`],ve=[`download`,`wake`,`export`,`update`,`install`,`start`,`publish`],ye=[`queued`,`running`,`paused`,`done`,`failed`,`cancelled`],be=[`bytes`,`files`,`share`],O=[`offline`,`no-space`,`no-credits`,`unavailable`,`other`],k=[`first-setup`],A=g({kind:l(_e),id:t()}),j=g({id:t(),about:A,what:l(ve),name:t().optional(),state:l(ye),completed:s().min(0),total:s().min(0).optional(),unit:l(be),left:s().min(0).optional(),stalled:a().optional(),step:l(k).optional(),cancellable:a(),pausable:a().optional(),quiet:a().optional(),retryable:a(),failure:g({reason:l(O),details:t()}).optional(),made:t().optional(),started:s(),ended:s().optional()}),M=g({mime:t().regex(/^image\//u),data:p()}),N=te(`type`,[g({type:u(`picture`),image:M,width:o().positive(),height:o().positive(),duration:s().nonnegative().optional()}),g({type:u(`text`),lines:f(t())}),g({type:u(`table`),columns:f(t()),rows:f(f(t())),count:o().nonnegative()})]);g({id:S,kind:t().min(1),dir:C,entry:S,title:t().optional()});var P={item:S,version:t().optional()},xe=c({code:t(),level:l([`error`,`warn`]),message:t(),piece:t().optional(),part:t().optional(),t:s().optional()}),Se=c({kind:t(),data:n()}),F=g({status:l([`off`,`waiting`,`running`,`done`,`failed`]),revision:o().nonnegative(),problems:f(xe),facts:f(Se),versions:g({total:o(),loaded:o(),reused:o()}).optional(),error:t().optional()}),Ce=[`queued`,`running`,`done`,`failed`,`cancelled`],I=_(t(),h([t(),a()])),L=g({id:t(),item:S,versions:f(t()),types:f(t()),options:I.optional(),state:l(Ce),progress:s().min(0).max(1),files:f(S),error:t().optional()}),we=g({file:S,status:l([`running`,`done`,`failed`]),message:t(),share:s().min(0).max(1).optional()}),R=g({url:t(),probe:t()}),Te={"project/items":y(g({}),g({items:f(g({id:S,kind:t().min(1).optional(),dir:C,entry:S,title:t().optional(),groups:f(t()),files:f(r({path:t().min(1),role:t().min(1).optional()})).optional(),kindInfo:E.optional()})),kinds:f(de).optional(),name:t(),scope:t(),revision:o().nonnegative()}),`The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name.`),"project/file":y(g({path:S}),g({item:g({id:S,kind:t().min(1).optional(),dir:C,entry:S,title:t().optional(),groups:f(t()),kindInfo:E.optional()})}),"A file of the project as it opens in an editor, whether the list names it or not: the item it is, else the file in the editor that opens it by its name (an `editors` contribution's `files`); not found for a file that is not there or that no editor opens."),"items/preview":y(g({item:S}),g({preview:N.optional()}),`What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none.`),"items/page":y(g({item:S,folder:C.optional(),file:S.optional()}),g({url:t()}),"The address of an item's page, for a frame (an HTML file's page, a website built as files): `item` an item of a kind or a file of the project an editor opens by its name (its path), `folder` served as the root of an origin of its own, the project's files alone (a file's page also what it names on https; its own requests the project's files alone), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":y(g({kind:t().min(1),file:S,title:t().min(1).optional()}),g({}),`Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already.`),"components/list":y(g({item:S}),g({components:f(g({of:t(),name:t(),label:h([t(),_(t(),t())]).optional()}))}),`The components an item may place: every one the project's files define, by the reference it would write.`),"components/stage":y(g(P),R,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":y(g({...P,components:f(g({name:t(),props:_(t(),n()),width:s().positive(),height:s().positive(),t:s().nonnegative()})).min(1).max(64)}),g({stills:f(g({key:t(),url:e()}).nullable())}),`An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses.`),"check/results":y(g({}),F,`The check run after edits, as it stands.`),"check/run":y(g({}),g({}),`Runs the check again now.`),"export/start":y(g({item:S,versions:f(t()).optional(),types:f(t().min(1)).max(10).optional(),options:I.optional()}),g({job:L}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":y(g({job:t()}),g({}),`Stops an export.`),"export/list":y(g({}),g({jobs:f(L),reveal:a()}),`The exports asked for since the server started.`),"export/reveal":y(g({path:S}),g({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},Ee={"project/items":`project`,"project/file":`asleep`,"items/preview":`asleep`,"items/page":`asleep`,"work/add":`machine`,"components/list":`asleep`,"components/stage":`asleep`,"components/stills":`project`,"check/results":`project`,"check/run":`machine`,"export/start":`machine`,"export/cancel":`machine`,"export/list":`asleep`,"export/reveal":`machine`};function De(e){return async(t,n,r)=>{let{result:i}=await t[`tools/call`]({name:n,arguments:r}),a=e[n]?.result.safeParse(i);if(!a?.success)throw new x(v.internal,`The answer to the tool ${n} is not what the protocol says.`);return a.data}}var Oe={"project/changed":b(g({revision:o().nonnegative()}),`The build saw a change: a stage or a timeline asked for now is the new one's.`),"items/changed":b(g({item:S,paths:f(t())}),`One of an item's inputs changed (docs/design/item-files.md, "An item's inputs"): a file its build lists, or one its pages loaded.`),"check/changed":b(F,`The check started, ended or failed.`),"export/changed":b(g({job:L}),`An export moved on.`),"index/changed":b(g({jobs:f(we)}),`Making what the media index lacks moved on.`),"jobs/changed":b(g({job:j,item:S}),`A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.`)},z=e=>h([l(e),t().min(1).brand()]),B=e=>f(n()).transform(t=>t.flatMap(t=>{let n=e.safeParse(t);return n.success?[n.data]:[]})),ke=[`no_card`,`saving_card`,`not_a_card`,`declined`,`needs_authentication`,`not_charged`,`under_line`,`refunded`,`disputed`,`monthly_limit`],V=[`month`,`year`];r({credits:s(),held:s(),owed:s(),frozen:t().nullable().default(null),plan:r({id:t(),name:t(),interval:z(V),status:t(),renewsAt:d().nullable(),endsAt:d().nullable(),monthlyCredits:s().default(0),price:r({amountCents:s(),currency:t()}).nullable().default(null)}).nullable(),allowance:r({total:s(),used:s(),renewsAt:d()}).nullable().default(null),bought:s().default(0),expiring:f(r({credits:s(),expiresAt:d()})).default([]),customer:a().default(!1),autoTopUp:r({below:s(),amountCents:s(),monthlyLimitCents:s().nullable().default(null),chargedThisMonthCents:s().default(0),stopped:z(ke).nullable()}).nullable()}),r({plans:f(r({id:t(),name:t(),family:t().nullable().default(null),recommended:a().default(!1),monthlyCredits:s(),storageBytes:s().optional(),prices:f(r({interval:z(V),amountCents:s(),currency:t()}))})),topUp:r({currency:t(),creditsPerDollar:s(),minCents:s(),maxCents:s(),presetsCents:f(s()).default([])}),welcomeCredits:s().optional(),freeStorageBytes:s().optional()}),r({days:f(r({day:m(),credits:s(),byKind:_(t(),s()).default({})}))}),r({spends:f(r({at:t(),kind:z([`models`,`tools`,`studio`,`other`]),what:t().nullable(),seconds:s().nullable(),member:t().nullable(),credits:s()})),more:a()}),h([g({plan:t(),interval:l(V)}),g({topUpCents:s().int()})]),h([g({flow:l([`home`,`payment_method`,`cancel`])}),g({flow:u(`change_plan`),plan:t(),interval:l(V)})]).default({flow:`home`}),r({card:r({brand:t(),last4:t(),expMonth:s(),expYear:s()}).nullable(),email:t().nullable()}),r({invoices:f(r({id:t(),number:t().nullable(),createdAt:t(),kind:z([`plan`,`credits`]),totalCents:s(),currency:t(),status:t(),pdf:t().nullable(),url:t().nullable()}))}),g({topUpCents:s().int()}),g({below:s().nonnegative(),amountCents:s().int().positive(),monthlyLimitCents:s().int().positive().nullable().optional(),newCard:a().optional()});var H={tier:z([`premium`,`standard`,`efficient`]).optional(),maker:t().min(1).optional(),retired:a().optional()},Ae=r({type:z([`toggle`,`effort`,`budget_tokens`]),values:f(t().min(1)).optional(),min:s().int().nonnegative().optional(),max:s().int().positive().optional()});r({models:f(c({id:t().min(1),name:t().min(1),...H,reasoning:a().optional(),reasoningOptions:B(Ae).optional(),input:f(t()).optional(),contextWindow:s().int().positive().optional(),maxOutput:s().int().positive().optional()})).min(1),defaultModel:t().min(1),needPlan:f(c({id:t().min(1),name:t().min(1),...H})).default([])});var U=_(t(),n()),je=[`call`,`result`,`page`,`second`,`minute`,`thousand_characters`,`image`,`frame`,`megapixel`,`question`,`phrase`],Me=[`video`,`image`,`voice`,`music`],Ne=r({id:t().min(1),title:t().min(1),description:t().min(1),kind:z([`data`,`ai`]).default(`data`),line:t().optional()}),Pe=r({name:t().min(1),work:t().min(1),title:t().min(1),description:t().min(1),input:U,output:U,long:a(),example:_(t(),n()).optional(),price:r({credits:s().nonnegative(),per:z(je),varies:a()}).optional(),shown:r({name:t(),line:t(),section:z(Me)}).optional()});r({version:t().min(1),works:f(Ne),tools:f(Pe)}),r({off:r({works:f(t()),tools:f(t())})}),h([g({work:t().min(1),on:a()}),g({tool:t().min(1),on:a()})]),r({editors:f(r({id:t().min(1),name:_(t(),t()),plural:_(t(),t()).optional(),line:_(t(),t()),icon:t().optional(),color:t().optional()}))}),g({input:_(t(),n())}),r({id:t().min(1),tool:t().min(1),status:z([`working`,`completed`,`failed`]),output:n().optional(),error:r({kind:t().min(1),message:t().min(1)}).optional(),credits:s().nonnegative().optional(),pollAfterMs:s().int().nonnegative().optional(),createdAt:t(),endedAt:t().optional()});var W=1073741824;g({name:t().min(1).max(255),size:o().positive().max(W),sha256:t().regex(/^[0-9a-f]{64}$/u),contentType:t().min(1).max(255)}),r({id:t().min(1),upload:r({url:e(),headers:_(t(),t())}).nullable()}),r({id:t().min(1),name:t()}),r({url:e()});var G=t().regex(/^[0-9a-f]{64}$/u),K=t().min(1).max(1024).refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`),`a relative path of forward slashes, without . or ..`),q=r({sha256:G,size:o().nonnegative().max(W)}),J=q.extend({type:t().min(1).max(255),immutable:u(!0).optional()});g({blobs:f(q.extend({contentType:t().min(1).max(255)})).min(1).max(1e3)}),r({uploads:f(r({sha256:G,url:e(),headers:_(t(),t())}))});var Fe=r({sessionId:t().min(1),agent:t().min(1),title:t().optional(),createdAt:d(),updatedAt:d(),transcript:G});r({sessionId:t().min(1),messages:f(r({method:t().min(1),params:n()}))});var Y=[`project`,`home`];t().regex(/^[a-z][a-z0-9-]*\/$/u,`one lower-case word and /`).refine(e=>!Object.values(X).includes(e)&&!Object.values($).includes(e),`a folder of the core's`),z(ge);var Ie=_(t(),f(t())),Le=t().refine(e=>e.endsWith(`/`)&&K.safeParse(e.slice(0,-1)).success,`a folder of the tree, ending in /`),Re=r({tree:f(K),files:f(K),own:_(K,J)}),ze=r({shared:f(Le),items:_(t(),Re)}),Be=r({format:u(1),kind:l(Y),project:r({name:t().min(1).max(255)}),host:r({version:t().min(1)}),madeAt:d(),files:_(K,q),tree:_(K,J),conversations:f(Fe),reach:ze.optional(),routes:Ie.optional()}),X={editor:`editor/`,runtime:`runtime/`,build:`build/`,media:`media/`,matte:`matte/`,stills:`stills/`,answers:`answers/`,previews:`previews/`,pages:`pages/`};function Z(e){return Array.isArray(e)?e.map(Z):typeof e==`object`&&e?Object.fromEntries(Object.keys(e).sort().map(t=>[t,Z(e[t])])):e}var Ve=(e,t)=>`${X.answers}${e}/${encodeURIComponent(JSON.stringify(Z(t??{})))}.json`,He=r({result:n().optional(),error:r({code:s(),message:t(),data:n().optional()}).optional()}),Ue=e=>`${X.stills}${e}.webp`,We=(e,t)=>`${X.stills}index/${encodeURIComponent(e)}/${encodeURIComponent(t)}.json`,Ge=r({stills:_(t(),t().regex(/^[0-9a-f]{64}$/u))}),Q=e=>JSON.stringify(Z(e)),Ke=r({name:t(),props:_(t(),n()),width:s().positive(),height:s().positive(),t:s().nonnegative()});r({stills:f(r({version:t(),components:f(Ke)})).optional(),shows:r({media:f(t()),data:f(t())}).optional(),routes:_(t(),f(t().min(1))).optional(),page:r({folder:t().optional(),file:t().optional()}).optional()}),`${X.runtime}`,`${X.runtime}`,`${X.runtime}`;var qe=e=>e.split(`/`).map(encodeURIComponent).join(`/`),Je=r({kind:z([`cloud`,`computer`]),here:a()});g({project:g({id:t().min(1).optional(),idMadeByMachine:a().optional(),kind:l(Y),name:t().min(1).max(255)}),manifest:G}),r({id:t().min(1),projectId:t().min(1)}),r({missing:f(G)});var Ye=r({id:t().min(1),madeAt:d(),hostVersion:t()}),Xe=r({id:t().min(1),kind:l(Y),name:t(),latest:Ye.nullable(),executor:Je.optional()});r({projects:B(Xe)}),r({keptBytes:s(),capBytes:s().nullable(),clearingBytes:s().optional()}),g({page:o().min(1)});var Ze=r({id:t().min(1),kind:l(Y),name:t(),bytes:s(),versions:s(),madeAt:d().nullable()});r({items:B(Ze),total:s()});var Qe=r({id:t().min(1),name:t(),contentType:t(),size:s(),keptUntil:d()});r({items:B(Qe),total:s()}),r({origin:e(),expiresAt:d()});var $={manifest:`manifest.json`,files:`files/`,pages:`pages/`,conversations:`conversations/`},$e=-32010,et=e=>typeof e==`object`&&!!e&&e.code===-32010;export{C as A,ue as C,pe as D,D as E,y as F,b as I,v as M,x as N,oe as O,re as P,M as S,me as T,Te as _,Ge as a,P as b,Ue as c,qe as d,G as f,R as g,z as h,Be as i,S as j,se as k,Q as l,K as m,He as n,et as o,J as p,$ as r,Ve as s,$e as t,We as u,Ee as v,he as w,De as x,Oe as y};
@@ -1,8 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-NIGsJ2cK.js";import"./chunk-YZO67HFG-Csbx1-pi.js";import"./chunk-7S6XSTFO-R5HW6X5I.js";import"./chunk-AQDTSKZB-C98F2BUb.js";import"./chunk-UHW7PFBP-C_8bui28.js";import"./chunk-HAGFOTED-BtHxtfW5.js";import"./chunk-ZAUX2LTX-BO1kcV3w.js";import"./chunk-WQQL4CDK-Ff4DgCht.js";import"./chunk-55XCU76K-BHXxBBtm.js";import"./chunk-VQ5W62QI-CKZgzWB2.js";import"./chunk-HNE4Q36P-BI8i7Vkk.js";import{r as t,t as n}from"./chunk-NQOKRVIF-DP_Z_zEA.js";import"./mermaid.core-DFf_Vg5X.js";var r=n({styles:e(e=>`${t(e)}
2
- .swimlane.cluster:not([data-color-id]) rect {
3
- stroke: ${e.clusterBorder} !important;
4
- }
5
- [data-look="neo"].cluster rect {
6
- filter: none;
7
- }
8
- `,`getStyles`)});export{r as diagram};
@@ -1,45 +0,0 @@
1
- import{a as e,c as t,i as n,l as r,o as i,s as a}from"./schemas-moE_A7Nj.js";import{a as o,i as s,t as c}from"./browser-C1XuTMlp.js";import{t as l}from"./chart-amT4lgX3.js";import{i as u,n as d,r as f}from"./dist-NQNQ5HqZ.js";import{Dn as p,En as m,Gt as h,Kt as g,Qt as _,Sn as v,Tn as ee,Z as y,an as b,bn as x,cn as S,fn as te,gn as C,pn as w,qt as ne,un as T,vn as E,yn as D,zt as O}from"./dist-d4dayaWE.js";var re=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function k(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e<a;e++)i.push(r[e]);n.push(i),r=t.exec(e)}return n}var ie=function(e){return re.exec(e)!=null};function ae(e){return e!==void 0}var A=[`hasOwnProperty`,`toString`,`valueOf`,`__defineGetter__`,`__defineSetter__`,`__lookupGetter__`,`__lookupSetter__`],oe=[`__proto__`,`constructor`,`prototype`],j={allowBooleanAttributes:!1,unpairedTags:[]};function se(e,t){t=Object.assign({},j,t);let n=[],r=!1,i=!1;e[0]===``&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]===`<`&&e[a+1]===`?`){if(a+=2,a=ce(e,a),a.err)return a}else if(e[a]===`<`){let o=a;if(a++,e[a]===`!`){a=le(e,a);continue}{let s=!1;e[a]===`/`&&(s=!0,a++);let c=``;for(;a<e.length&&e[a]!==`>`&&e[a]!==` `&&e[a]!==` `&&e[a]!==`
2
- `&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!ve(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,N(`InvalidTag`,t,P(e,a))}let l=fe(e,a);if(l===!1)return N(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,P(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=me(u,t);if(i===!0)r=!0;else return N(i.err.code,i.err.msg,P(e,n+i.err.line))}else if(s){if(!l.tagClosed)return N(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,P(e,a));if(u.trim().length>0)return N(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,P(e,o));if(n.length===0)return N(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,P(e,o));{let t=n.pop();if(c!==t.tagName){let n=P(e,t.tagStartPos);return N(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,P(e,o))}n.length==0&&(i=!0)}}else{let s=me(u,t);if(s!==!0)return N(s.err.code,s.err.msg,P(e,a-u.length+s.err.line));if(i===!0)return N(`InvalidXml`,`Multiple possible root nodes found.`,P(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a<e.length;a++)if(e[a]===`<`){if(e[a+1]===`!`){a++,a=le(e,a);continue}if(e[a+1]===`?`){if(a=ce(e,++a),a.err)return a}else break}else if(e[a]===`&`){let t=ge(e,a);if(t==-1)return N(`InvalidChar`,`char '&' is not expected.`,P(e,a));a=t}else if(i===!0&&!M(e[a]))return N(`InvalidXml`,`Extra text at the end`,P(e,a));e[a]===`<`&&a--}}else{if(M(e[a]))continue;return N(`InvalidChar`,`char '`+e[a]+`' is not expected.`,P(e,a))}return r?n.length==1?N(`InvalidTag`,`Unclosed tag '`+n[0].tagName+`'.`,P(e,n[0].tagStartPos)):n.length>0?N(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:N(`InvalidXml`,`Start tag expected.`,1)}function M(e){return e===` `||e===` `||e===`
3
- `||e===`\r`}function ce(e,t){let n=t;for(;t<e.length;t++)if(e[t]==`?`||e[t]==` `){let r=e.substr(n,t-n);if(t>5&&r===`xml`)return N(`InvalidXml`,`XML declaration allowed only at the start of the document.`,P(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}continue}return t}function le(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t<e.length;t++)if(e[t]===`-`&&e[t+1]===`-`&&e[t+2]===`>`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t<e.length;t++)if(e[t]===`<`)n++;else if(e[t]===`>`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t<e.length;t++)if(e[t]===`]`&&e[t+1]===`]`&&e[t+2]===`>`){t+=2;break}}return t}var ue=`"`,de=`'`;function fe(e,t){let n=``,r=``,i=!1;for(;t<e.length;t++){if(e[t]===ue||e[t]===de)r===``?r=e[t]:r!==e[t]||(r=``);else if(e[t]===`>`&&r===``){i=!0;break}n+=e[t]}return r===``&&{value:n,index:t,tagClosed:i}}function pe(e){let t=[],n=e.length,r=0;for(;r<n;){let i=r;for(;r<n&&M(e[r]);)r++;if(r>=n)break;if(e[r]===`=`){r=i+1;continue}let a=e.slice(i,r),o=r;for(;r<n&&!M(e[r])&&e[r]!==`=`;)r++;let s=e.slice(o,r),c,l=r;for(;l<n&&M(e[l]);)l++;l<n&&e[l]===`=`&&(c=e.slice(r,l+1),r=l+1);let u,d,f=r;for(;f<n&&M(e[f]);)f++;if(f<n&&(e[f]===`"`||e[f]===`'`)){let t=f+1,n=e.indexOf(e[f],t);n!==-1&&(u=e[f],d=e.slice(t,n),r=n+1)}let p={startIndex:i};p[1]=a,p[2]=s,p[3]=c,p[4]=u!==void 0||void 0,p[5]=u,p[6]=d,t.push(p)}return t}function me(e,t){let n=pe(e),r={};for(let e=0;e<n.length;e++){if(n[e][1].length===0)return N(`InvalidAttr`,`Attribute '`+n[e][2]+`' has no space in starting.`,ye(n[e]));if(n[e][3]!==void 0&&n[e][4]===void 0)return N(`InvalidAttr`,`Attribute '`+n[e][2]+`' is without value.`,ye(n[e]));if(n[e][3]===void 0&&!t.allowBooleanAttributes)return N(`InvalidAttr`,`boolean attribute '`+n[e][2]+`' is not allowed.`,ye(n[e]));let i=n[e][2];if(!_e(i))return N(`InvalidAttr`,`Attribute '`+i+`' is an invalid name.`,ye(n[e]));if(!Object.prototype.hasOwnProperty.call(r,i))r[i]=1;else return N(`InvalidAttr`,`Attribute '`+i+`' is repeated.`,ye(n[e]))}return!0}function he(e,t){let n=/\d/;for(e[t]===`x`&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===`;`)return t;if(!e[t].match(n))break}return-1}function ge(e,t){if(t++,e[t]===`;`)return-1;if(e[t]===`#`)return t++,he(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===`;`)break;return-1}return t}function N(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function _e(e){return ie(e)}function ve(e){return ie(e)}function P(e,t){let n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function ye(e){return e.startIndex+e[1].length}var be={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},xe={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Se={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},Ce=Object.freeze({ALLOW:`allow`,BLOCK:`block`,THROW:`throw`}),we=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Te(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(we.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Ee(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}var De=`external`,Oe=`base`,ke=`all`;function Ae(e){return!e||e===De?new Set([De]):e===ke?new Set([ke]):e===Oe?new Set([Oe]):Array.isArray(e)?new Set(e):new Set([De])}var F=Object.freeze({allow:0,leave:1,remove:2,throw:3}),je=new Set([9,10,13]);function Me(e){if(!e)return{xmlVersion:1,onLevel:F.allow,nullLevel:F.remove};let t=e.xmlVersion===1.1?1.1:1,n=F[e.onNCR]??F.allow,r=F[e.nullNCR]??F.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,F.remove)}}var Ne=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Ae(this._limit.applyLimitsTo??De),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ee(xe,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Me(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel,this._onExternalEntity=typeof e.onExternalEntity==`function`?e.onExternalEntity:null,this._onInputEntity=typeof e.onInputEntity==`function`?e.onInputEntity:null}_applyRegistrationHook(e,t,n,r){if(!e)return!0;let i=e(t,n);if(i===Ce.BLOCK)return!1;if(i===Ce.THROW)throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);return!0}setExternalEntities(e){if(e)for(let t of Object.keys(e))Te(t);if(!this._onExternalEntity){this._externalMap=Ee(e);return}let t=Ee(e),n=Object.create(null);for(let[e,r]of Object.entries(t))this._applyRegistrationHook(this._onExternalEntity,e,r,`external`)&&(n[e]=r);this._externalMap=n}addExternalEntity(e,t){Te(e),typeof t==`string`&&t.indexOf(`&`)===-1&&this._applyRegistrationHook(this._onExternalEntity,e,t,`external`)&&(this._externalMap[e]=t)}addInputEntities(e){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity){this._inputMap=Ee(e);return}let t=Ee(e),n=Object.create(null);for(let[e,r]of Object.entries(t))this._applyRegistrationHook(this._onInputEntity,e,r,`input`)&&(n[e]=r);this._inputMap=n}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0||e.indexOf(`&`)===-1)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a<r;){if(e.charCodeAt(a)!==38){a++;continue}let t=a+1;for(;t<r&&e.charCodeAt(t)!==59&&t-a<=32;)t++;if(t>=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=De);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Oe}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0)a++;else if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i<r&&n.push(e.slice(i));let l=n.length===0?e:n.join(``);return this._postCheck(l,t)}_tierCounts(e){return this._limitTiers.has(ke)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:De};if(e in this._externalMap)return{value:this._externalMap[e],tier:De};if(e in this._baseMap)return{value:this._baseMap[e],tier:Oe}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!je.has(e)?F.remove:-1}_applyNCRAction(e,t,n){switch(e){case F.allow:return String.fromCodePoint(n);case F.remove:return``;case F.leave:return;case F.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r<F.remove)return;let i=r===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,r);return this._applyNCRAction(i,e,n)}},Pe=e=>A.includes(e)?`__`+e:e,Fe={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Pe};function Ie(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(A.some(e=>n===e.toLowerCase())||oe.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Le(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:Le(!0)}var Re=function(e){let t=Object.assign({},Fe,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Ie(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=Pe),t.processEntities=Le(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t},ze=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`,I=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),this.addStartIndex(t)}addStartIndex(e){e!==void 0&&(this.child[this.child.length-1][ze]={startIndex:e})}addEndIndex(e){let t=this.child[this.child.length-1];t!==void 0&&t[ze]!==void 0&&t[ze].endIndex===void 0&&(t[ze].endIndex=e)}static getMetaDataSymbol(){return ze}},Be=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,Ve=Be+`\\-\\.\\d·̀-ͯ‿-⁀`,He=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,Ue=He+`\\-\\.\\d·̀-ͯ҇‿-⁀`,We=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Ge=We(Be,Ve),Ke=We(He,Ue,`u`),qe=We(`:A-Za-z_`,`:A-Za-z_\\-\\.\\d`),Je=(e=`1.0`,t=!1)=>t?qe:e===`1.1`?Ke:Ge,Ye=(e,{xmlVersion:t=`1.0`,asciiOnly:n=!1}={})=>Je(t,n).qName.test(e),Xe=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=null,c=``;for(;t<e.length;t++)if(s!==null)e[t]===s&&(s=null),c+=e[t];else if(!a&&!o&&(e[t]===`"`||e[t]===`'`))s=e[t],c+=e[t];else if(e[t]===`<`&&!o){if(a&&Ze(e,`!ENTITY`,t)){t+=7;let i,a;if([i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),a.indexOf(`&`)===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&r>=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&Ze(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&Ze(e,`!ATTLIST`,t))t+=8;else if(a&&Ze(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(Ze(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,c=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:c+=e[t];if(s!==null||i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t])&&e[t]!==`"`&&e[t]!==`'`;)t++;let r=e.substring(n,t);if(Qe(r,{xmlVersion:this.xmlVersion}),t=L(e,t),!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()===`SYSTEM`)throw Error(`External entities are not supported`);if(e[t]===`%`)throw Error(`Parameter entities are not supported`)}let i=``;if([t,i]=this.readIdentifierVal(e,t,`entity`),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&i.length>this.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);!this.suppressValidationErr&&Qe(r,{xmlVersion:this.xmlVersion}),t=L(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&i!==`SYSTEM`&&i!==`PUBLIC`)throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=L(e,t);let a=null,o=null;if(i===`PUBLIC`)[t,a]=this.readIdentifierVal(e,t,`publicIdentifier`),t=L(e,t),(e[t]===`"`||e[t]===`'`)&&([t,o]=this.readIdentifierVal(e,t,`systemIdentifier`));else if(i===`SYSTEM`&&([t,o]=this.readIdentifierVal(e,t,`systemIdentifier`),!this.suppressValidationErr&&!o))throw Error(`Missing mandatory system identifier for SYSTEM notation`);return{notationName:r,publicIdentifier:a,systemIdentifier:o,index:--t}}readIdentifierVal(e,t,n){let r=``,i=e[t];if(i!==`"`&&i!==`'`)throw Error(`Expected quoted string, found "${i}"`);t++;let a=t;for(;t<e.length&&e[t]!==i;)t++;if(r=e.substring(a,t),e[t]!==i)throw Error(`Unterminated ${n} value`);return t++,[t,r]}readElementExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);if(!this.suppressValidationErr&&!Ye(r,{xmlVersion:this.xmlVersion}))throw Error(`Invalid element name: "${r}"`);t=L(e,t);let i=``;if(e[t]===`E`&&Ze(e,`MPTY`,t))t+=4;else if(e[t]===`A`&&Ze(e,`NY`,t))t+=2;else if(e[t]===`(`){t++;let n=t;for(;t<e.length&&e[t]!==`)`;)t++;if(i=e.substring(n,t),e[t]!==`)`)throw Error(`Unterminated content model`)}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:r,contentModel:i.trim(),index:t}}readAttlistExp(e,t){t=L(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);for(Qe(r,{xmlVersion:this.xmlVersion}),t=L(e,t),n=t;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!Qe(i,{xmlVersion:this.xmlVersion}))throw Error(`Invalid attribute name: "${i}"`);t=L(e,t);let a=``;if(e.substring(t,t+8).toUpperCase()===`NOTATION`){if(a=`NOTATION`,t+=8,t=L(e,t),e[t]!==`(`)throw Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&e[t]!==`)`;){let r=t;for(;t<e.length&&e[t]!==`|`&&e[t]!==`)`;)t++;let i=e.substring(r,t);if(i=i.trim(),!Qe(i,{xmlVersion:this.xmlVersion}))throw Error(`Invalid notation name: "${i}"`);n.push(i),e[t]===`|`&&(t++,t=L(e,t))}if(e[t]!==`)`)throw Error(`Unterminated list of notations`);t++,a+=` (`+n.join(`|`)+`)`}else{let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;if(a+=e.substring(n,t),!this.suppressValidationErr&&![`CDATA`,`ID`,`IDREF`,`IDREFS`,`ENTITY`,`ENTITIES`,`NMTOKEN`,`NMTOKENS`].includes(a.toUpperCase()))throw Error(`Invalid attribute type: "${a}"`)}t=L(e,t);let o=``;return e.substring(t,t+8).toUpperCase()===`#REQUIRED`?(o=`#REQUIRED`,t+=8):e.substring(t,t+7).toUpperCase()===`#IMPLIED`?(o=`#IMPLIED`,t+=7):[t,o]=this.readIdentifierVal(e,t,`ATTLIST`),{elementName:r,attributeName:i,attributeType:a,defaultValue:o,index:t}}},L=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function Ze(e,t,n){for(let r=0;r<t.length;r++)if(t[r]!==e[n+r+1])return!1;return!0}function Qe(e,t){if(Ye(e,{xmlVersion:t}))return e;throw Error(`Invalid entity name ${e}`)}var $e=[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032],et=new Map,tt=65535,nt=1632,rt=new Uint8Array(63904).fill(255);for(let e of $e)for(let t=0;t<10;t++){let n=e+t;n<=tt?rt[n-nt]=t:et.set(n,t)}var it=48,at=57,ot=45,st=new Set([8722,65293,65123]);function ct(e){if(typeof e!=`string`)return e;let t=e.length;if(t===0)return e;let n=-1;for(let r=0;r<t;r++){let i=e.charCodeAt(r);if(!(i>=it&&i<=at||i===ot)){if(i<1632){if(st.has(i)){n=r;break}}else if(i>=55296&&i<=56319){if(r+1<t){let t=e.charCodeAt(r+1);if(t>=56320&&t<=57343){let e=65536+(i-55296<<10)+(t-56320);if(et.has(e)){n=r;break}}}}else if(rt[i-1632]!==255||st.has(i)){n=r;break}}}if(n===-1)return e;let r=[];n>0&&r.push(e.slice(0,n));for(let i=n;i<t;i++){let n=e.charCodeAt(i);if(n>=it&&n<=at||n===ot){r.push(e[i]);continue}if(n<1632){r.push(st.has(n)?`-`:e[i]);continue}if(n>=55296&&n<=56319){if(i+1<t){let t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){let e=65536+(n-55296<<10)+(t-56320),a=et.get(e);if(a!==void 0){r.push(String.fromCharCode(a+48)),i++;continue}}}r.push(e[i]);continue}if(st.has(n)){r.push(`-`);continue}let a=rt[n-nt];r.push(a===255?e[i]:String.fromCharCode(a+48))}return r.join(``)}var lt=/^[-+]?0x[a-fA-F0-9]+$/,ut=/^0b[01]+$/,dt=/^0o[0-7]+$/,ft=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,pt={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:`.`,eNotation:!0,infinity:`original`,unicode:!1};function mt(e,t={}){if(t=Object.assign({},pt,t),!e||typeof e!=`string`)return e;let n=e.trim();if(n.length===0||t.skipLike!==void 0&&t.skipLike.test(n))return e;if(n===`0`||t.unicode&&(n=ct(n),n===`0`))return 0;if(t.hex&&lt.test(n))return vt(n,16);if(t.binary&&ut.test(n))return vt(n,2);if(t.octal&&dt.test(n))return vt(n,8);if(!isFinite(n)){let r=Number(n);return Number.isNaN(r)?e:yt(e,r,t)}if(n.includes(`e`)||n.includes(`E`))return gt(e,n,t);{let r=ft.exec(n);if(r){let i=r[1]||``,a=r[2],o=_t(r[3]),s=i?n[a.length+1]===`.`:n[a.length]===`.`;if(!t.leadingZeros&&(a.length>1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}return e}}var ht=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function gt(e,t,n){if(!n.eNotation)return e;let r=t.match(ht);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?t[o.length+1]===a:t[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?Number(t):e:Number(t)}return e}function _t(e){if(e&&e.indexOf(`.`)!==-1){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===48;)t--;return e=e.slice(0,t),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e}return e}function vt(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function yt(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function bt(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var xt=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(r.trim()&&(t.push(this._parseSegment(r.trim())),r=``),t.push({type:`deep-wildcard`}),n+=2):(r.trim()&&t.push(this._parseSegment(r.trim())),r=``,n++):(r+=e[n],n++);return r.trim()&&t.push(this._parseSegment(r.trim())),t}_parseSegment(e){let t={type:`tag`},n=null,r=e,i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(r=i[1]+i[3],i[2])){let e=i[2].slice(1,-1);e&&(n=e)}let a,o=r;if(r.includes(`::`)){let t=r.indexOf(`::`);if(a=r.substring(0,t).trim(),o=r.substring(t+2).trim(),!a)throw Error(`Invalid namespace in pattern: ${e}`)}let s,c=null;if(o.includes(`:`)){let e=o.lastIndexOf(`:`),t=o.substring(0,e).trim(),n=o.substring(e+1).trim();[`first`,`last`,`odd`,`even`].includes(n)||/^nth\(\d+\)$/.test(n)?(s=t,c=n):s=o}else s=o;if(!s)throw Error(`Invalid segment pattern: ${e}`);if(t.tag=s,a&&(t.namespace=a),n){if(n.includes(`=`)){let e=n.indexOf(`=`);t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim()}if(c){let e=c.match(/^nth\((\d+)\)$/);e?(t.position=`nth`,t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}},St=class{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._deepByTerminalTag=new Map,this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw TypeError(`ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.`);if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard()){let t=e.segments[e.segments.length-1];if(t&&t.type!==`deep-wildcard`&&t.tag!==`*`){let n=t.tag;this._deepByTerminalTag.has(n)||this._deepByTerminalTag.set(n,[]),this._deepByTerminalTag.get(n).push(e)}else this._deepWildcards.push(e);return this}let t=e.length,n=e.segments[e.segments.length-1]?.tag;if(!n||n===`*`)this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);else{let r=`${t}:${n}`;this._byDepthAndTag.has(r)||this._byDepthAndTag.set(r,[]),this._byDepthAndTag.get(r).push(e)}return this}addAll(e){for(let t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let t=e.getDepth(),n=e.getCurrentTag(),r=`${t}:${n}`,i=this._byDepthAndTag.get(r);if(i){for(let t=0;t<i.length;t++)if(e.matches(i[t]))return i[t]}let a=this._wildcardByDepth.get(t);if(a){for(let t=0;t<a.length;t++)if(e.matches(a[t]))return a[t]}let o=this._deepByTerminalTag.get(n);if(o){for(let t=0;t<o.length;t++)if(e.matches(o[t]))return o[t]}for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}},Ct=class{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},wt=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Ct(this),this._keptAttrs=[]}push(e,t=null,n=null,r=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length,a=this.siblingStacks[i];a||(a={counts:new Map,total:0},this.siblingStacks[i]=a);let o=n?`${n}:${e}`:e,s=a.counts.get(o)||0,c=a.total;a.counts.set(o,s+1),a.total++;let l={tag:e,position:c,counter:s};n!=null&&(l.namespace=n),t!=null&&(l.values=t),this.path.push(l);let u=this.path.length,d=r===null?null:r.keep;if(d!=null&&d.length>0&&t)for(let e=0;e<d.length;e++){let n=d[e];t[n]!==void 0&&this._keptAttrs.push({depth:u,name:n,value:t[n]})}}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);let t=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=t;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return t[n].value}hasAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return!0;return!1}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),this._keptAttrs=(e.keptAttrs||[]).map(e=>({...e}))}readOnly(){return this._view}},Tt=[{id:`html-script-open`,description:`<script opening tag`,pattern:/<script[\s>/]/i},{id:`html-script-close`,description:`<\/script closing tag`,pattern:/<\/script[\s>]/i},{id:`html-javascript-protocol`,description:`javascript: URI scheme (with optional whitespace/encoding)`,pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:`html-vbscript-protocol`,description:`vbscript: URI scheme`,pattern:/vbscript[\t\n\r ]*:/i},{id:`html-data-html`,description:`data:text/html URI — can execute scripts in browsers`,pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:`html-data-xhtml`,description:`data:application/xhtml+xml URI`,pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:`html-data-svg`,description:`data:image/svg+xml URI — can execute scripts`,pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:`html-inline-event-handler`,description:`Inline event handler attributes: onclick=, onerror=, onload=, etc.`,pattern:/\bon\w{1,30}\s*=/i},{id:`html-entity-obfuscated-script`,description:`HTML-entity-encoded <script (e.g. &#x3C;script or &lt;script)`,pattern:/(?:&#x0*3[Cc];?|&#0*60;?|&lt;)\s*script/i},{id:`html-entity-obfuscated-javascript`,description:`HTML-entity-encoded javascript: (partial — catches common &#106; or &#x6a; for "j")`,pattern:/(?:&#x0*6[Aa];?|&#0*106;?)\s*(?:&#x0*61;?|a)[\s\S]{0,80}script\s*:/i},{id:`html-style-expression`,description:`CSS expression() — IE-era code execution in style attributes`,pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:`html-object-embed`,description:`<object or <embed tags that can load active content`,pattern:/<(?:object|embed)[\s>/]/i},{id:`html-base-tag`,description:`<base href= — can hijack all relative URLs on a page`,pattern:/<base[\s>]/i},{id:`html-meta-refresh`,description:`<meta http-equiv="refresh" — can redirect users`,pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:`html-srcdoc`,description:`srcdoc= attribute on iframes — embeds HTML that can run scripts`,pattern:/srcdoc\s*=/i},{id:`html-iframe`,description:`<iframe tag`,pattern:/<iframe[\s>/]/i},{id:`html-form`,description:`<form tag — can be used for phishing / credential harvesting injection`,pattern:/<form[\s>/]/i}],Et=[{id:`xml-cdata-injection`,description:`CDATA section injection: <![CDATA[ breaks out of text node context`,pattern:/<!\[CDATA\[/i},{id:`xml-cdata-close`,description:`CDATA close sequence: ]]> can terminate an enclosing CDATA section`,pattern:/\]\]>/},{id:`xml-processing-instruction`,description:`XML processing instruction: <?xml-stylesheet or <?php etc.`,pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:`xml-doctype-injection`,description:`DOCTYPE declaration embedded in content — can define entities`,pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:`xml-entity-system`,description:`SYSTEM keyword — used in external entity declarations (XXE)`,pattern:/\bSYSTEM\s+["']/i},{id:`xml-entity-public`,description:`PUBLIC keyword — used in external entity declarations (XXE)`,pattern:/\bPUBLIC\s+["']/i},{id:`xml-entity-declaration`,description:`<!ENTITY declaration — defines entities, potential XXE or entity expansion`,pattern:/<!ENTITY[\s%]/i},{id:`xml-billion-laughs`,description:`Entity reference chaining / billion laughs: repeated &eX; style references`,pattern:/(?:&\w{1,20};){3,}/},{id:`xml-namespace-confusion`,description:`xmlns: attribute injection — can redefine namespaces to confuse parsers`,pattern:/\bxmlns(?::\w{1,40})?\s*=/i},{id:`xml-comment-injection`,description:`<!-- comment injection — can hide content from some parsers`,pattern:/<!--/},{id:`xml-comment-close`,description:`--> closes an enclosing XML comment`,pattern:/-->/},{id:`xml-pi-close`,description:`?> closes an enclosing processing instruction`,pattern:/\?>/}],Dt=[{id:`svg-script-element`,description:`<script element inside SVG executes JavaScript`,pattern:/<script[\s>/]/i},{id:`svg-xlink-href-javascript`,description:`xlink:href with javascript: — classic SVG XSS via <a> or <use>`,pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-href-javascript`,description:`href= with javascript: in SVG context (<a>, <animate>, etc.)`,pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-foreignobject`,description:`<foreignObject embeds HTML inside SVG — can execute scripts`,pattern:/<foreignObject[\s>/]/i},{id:`svg-use-external`,description:`<use xlink:href or href pointing to external resource (non-fragment URL)`,pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:`svg-animate-href`,description:`<animate attributeName="href" — can dynamically change href to javascript:`,pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:`svg-animate-xlinkhref`,description:`<animate attributeName="xlink:href"`,pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:`svg-set-javascript`,description:`<set to="javascript:..." — sets an attribute to a javascript: URI`,pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-event-handler`,description:`SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.`,pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:`svg-handler-generic`,description:`Generic on* handler catch-all for SVG attributes`,pattern:/\bon\w{1,30}\s*=/i},{id:`svg-filter-feimage`,description:`<feImage href= — filter primitive that can load external resources`,pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:`svg-image-external`,description:`<image xlink:href with http/https or javascript protocol`,pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:`svg-style-javascript`,description:`style= attribute containing javascript: (e.g. background:url(javascript:...))`,pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],Ot=[{id:`sql-block-comment-open`,description:`SQL block comment open: /* ... */ — unusual in legitimate user text`,pattern:/\/\*/},{id:`sql-union-select`,description:`UNION SELECT — most common SQL injection aggregation attack`,pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:`sql-drop-table`,description:`DROP TABLE — destructive DDL injection`,pattern:/\bDROP\s{1,20}TABLE\b/i},{id:`sql-drop-database`,description:`DROP DATABASE — destructive DDL injection`,pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:`sql-insert-into`,description:`INSERT INTO — data injection`,pattern:/\bINSERT\s{1,20}INTO\b/i},{id:`sql-delete-from`,description:`DELETE FROM — data deletion injection`,pattern:/\bDELETE\s{1,20}FROM\b/i},{id:`sql-update-set`,description:`UPDATE ... SET — data modification injection`,pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:`sql-exec-xp`,description:`EXEC xp_ — MSSQL extended stored procedure execution`,pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:`sql-tautology-string`,description:`Classic string tautology: ' OR '1'='1 or " OR "1"="1"`,pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:`sql-tautology-numeric`,description:`Numeric tautology: OR 1=1`,pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:`sql-always-true-zero`,description:`Numeric tautology: OR 0=0`,pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:`sql-sleep-benchmark`,description:`Time-based blind injection: SLEEP() or BENCHMARK()`,pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:`sql-waitfor-delay`,description:`MSSQL time-based blind injection: WAITFOR DELAY`,pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:`sql-char-function`,description:`CHAR() function — used to obfuscate injected strings`,pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:`sql-information-schema`,description:`INFORMATION_SCHEMA — reconnaissance query for table/column enumeration`,pattern:/\bINFORMATION_SCHEMA\b/i}],kt=[{id:`shell-path-traversal-unix`,description:`Unix path traversal: ../ — climbing the directory tree`,pattern:/\.\.\//},{id:`shell-path-traversal-windows`,description:`Windows path traversal: ..\\ — climbing the directory tree`,pattern:/\.\.\\/},{id:`shell-path-traversal-encoded`,description:`URL-encoded path traversal: %2e%2e or %2f variants`,pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:`shell-null-byte`,description:`Null byte injection: \\x00 or %00 — truncates strings in C-backed functions`,pattern:/\x00|%00/},{id:`shell-semicolon`,description:`Semicolon command separator: cmd1; cmd2`,pattern:/;/},{id:`shell-pipe`,description:`Pipe operator: cmd1 | cmd2`,pattern:/\|/},{id:`shell-and-operator`,description:`AND operator: cmd1 && cmd2`,pattern:/&&/},{id:`shell-or-operator`,description:`OR operator: cmd1 || cmd2`,pattern:/\|\|/},{id:`shell-backtick`,description:"Backtick command substitution: `cmd`",pattern:/`/},{id:`shell-dollar-paren`,description:`Dollar-paren command substitution: $(cmd)`,pattern:/\$\(/},{id:`shell-dollar-brace`,description:"Dollar-brace variable expansion: ${var} — can be abused for injection",pattern:/\$\{/},{id:`shell-redirect-out`,description:`Output redirection: cmd > file or cmd >> file`,pattern:/>{1,2}/},{id:`shell-redirect-in`,description:`Input redirection: cmd < file`,pattern:/</},{id:`shell-newline-injection`,description:`Newline injection: \\n or \\r — can inject new shell commands`,pattern:/[\n\r]/},{id:`shell-glob-star`,description:`Glob expansion: * or ? — can expand to unintended files`,pattern:/[/\\][*?]/},{id:`shell-absolute-root`,description:`Absolute root path injection: string starting with / or \\ (Windows UNC)`,pattern:/^(?:\/|\\\\)/},{id:`shell-windows-drive`,description:`Windows drive letter path injection: C:\\ or D:/`,pattern:/^[a-zA-Z]:[/\\]/},{id:`shell-curl-wget`,description:`curl/wget with URL or flags — can exfiltrate data or download payloads`,pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],At=[{id:`redos-nested-quantifier-plus`,description:`Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.`,pattern:/\([^)]*\+[^)]*\)[+*]/},{id:`redos-nested-quantifier-star`,description:`Nested * quantifier: (a*)* or (a*)+ — catastrophic backtracking`,pattern:/\([^)]*\*[^)]*\)[*+]/},{id:`redos-nested-groups`,description:`Doubly nested quantified groups: ((a+)+) — guaranteed catastrophic`,pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:`redos-alternation-overlap`,description:`Overlapping alternation under quantifier: (a|a)+ — ambiguous NFA paths`,pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:`redos-star-plus-concat`,description:`(x*x)+ pattern — triggers super-linear backtracking`,pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:`redos-dot-star-greedy`,description:`(.*){n,} or (.+){n,} — repeated greedy dot quantifiers`,pattern:/\(\.[*+]\)\{?\d/},{id:`redos-large-repetition`,description:`Very large fixed or range repetition count {1000,} or {1000,n} — denial of service via backtracking`,pattern:/\{\d{4,}(?:,\d*)?\}/},{id:`redos-catastrophic-alternation`,description:`Long alternation with many similar branches — polynomial backtracking risk`,pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}],R=`["'\\s]*:`,jt=[{id:`nosql-where-operator`,description:`$where — executes arbitrary JavaScript server-side in MongoDB`,pattern:RegExp(`\\$where${R}`,`i`)},{id:`nosql-ne-operator`,description:`$ne — "not equal" operator used to bypass equality checks`,pattern:RegExp(`\\$ne${R}`,`i`)},{id:`nosql-gt-operator`,description:`$gt — "greater than" used to bypass password/value checks`,pattern:RegExp(`\\$gte?${R}`,`i`)},{id:`nosql-lt-operator`,description:`$lt / $lte — "less than" bypass variants`,pattern:RegExp(`\\$lte?${R}`,`i`)},{id:`nosql-regex-operator`,description:`$regex — can be used to extract data character by character (blind injection)`,pattern:RegExp(`\\$regex${R}`,`i`)},{id:`nosql-or-operator`,description:`$or — logical OR; used to create always-true conditions`,pattern:RegExp(`\\$or${R}\\s*\\[`,`i`)},{id:`nosql-and-operator`,description:`$and — logical AND operator injection`,pattern:RegExp(`\\$and${R}\\s*\\[`,`i`)},{id:`nosql-nor-operator`,description:`$nor — logical NOR operator injection`,pattern:RegExp(`\\$nor${R}\\s*\\[`,`i`)},{id:`nosql-exists-operator`,description:`$exists — can enumerate fields to determine schema`,pattern:RegExp(`\\$exists${R}`,`i`)},{id:`nosql-in-operator`,description:`$in — matches any value in a list; can enumerate values`,pattern:RegExp(`\\$in${R}\\s*\\[`,`i`)},{id:`nosql-expr-operator`,description:`$expr — allows aggregation expressions in queries (MongoDB 3.6+)`,pattern:RegExp(`\\$expr${R}`,`i`)},{id:`nosql-function-operator`,description:`$function — executes arbitrary JavaScript in MongoDB 4.4+`,pattern:RegExp(`\\$function${R}`,`i`)},{id:`nosql-accumulator-operator`,description:`$accumulator — custom aggregation with arbitrary JS execution`,pattern:RegExp(`\\$accumulator${R}`,`i`)},{id:`nosql-proto-pollution`,description:`__proto__ — prototype pollution via object key injection`,pattern:/__proto__/},{id:`nosql-constructor-prototype`,description:`constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)`,pattern:/constructor[\s"':.,{\[]*prototype/i},{id:`nosql-proto-bracket`,description:`["__proto__"] — bracket-notation prototype pollution`,pattern:/\[["']__proto__["']\]/}],Mt=[{id:`log-crlf-injection`,description:`CRLF injection: literal \\r or \\n embeds fake log lines`,pattern:/[\r\n]/},{id:`log-url-encoded-crlf`,description:`URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers`,pattern:/%0[dDaA]/},{id:`log-unicode-newline`,description:`Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)`,pattern:/[\u2028\u2029]/},{id:`log-log4shell-jndi`,description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:`log-log4shell-obfuscated`,description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:`log-log4j-lookup`,description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:`log-ssti-double-brace`,description:`SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.`,pattern:/\{\{[\s\S]{0,80}\}\}/},{id:`log-ssti-hash-brace`,description:`SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB`,pattern:/#\{[\s\S]{0,80}\}/},{id:`log-ssti-dollar-brace`,description:"SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:`log-ssti-percent-tag`,description:`SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP`,pattern:/<%=[\s\S]{0,80}%>/},{id:`log-null-byte`,description:`Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers`,pattern:/\x00|%00/},{id:`log-ansi-escape`,description:`ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed`,pattern:/\x1b\[/}],Nt=[{id:`sql-line-comment`,description:`SQL line comment: -- followed by whitespace or end of string`,pattern:/--(?:\s|$)/},{id:`sql-stacked-query`,description:`Stacked queries: semicolon immediately followed by a SQL keyword`,pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:`sql-hex-encoding`,description:`Hex-encoded string injection: 0x41414141 style (MySQL)`,pattern:/\b0x[0-9a-f]{4,}/i}],Pt=[...Ot,...Nt];Tt.label=`HTML`,Et.label=`XML`,Dt.label=`SVG`,Ot.label=`SQL`,Pt.label=`SQL-STRICT`,kt.label=`SHELL`,At.label=`REDOS`,jt.label=`NOSQL`,Mt.label=`LOG`,Object.freeze({HTML:Tt,XML:Et,SVG:Dt,SQL:Ot,"SQL-STRICT":Pt,SHELL:kt,REDOS:At,NOSQL:jt,LOG:Mt});function Ft(e){if(typeof e!=`string`)throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`)}function It(e){if(!(e instanceof RegExp)){if(Array.isArray(e)){if(e.length===0)throw TypeError(`is-unsafe: context must not be an empty array`);if(Array.isArray(e[0])){for(let t of e)if(!Array.isArray(t)||t.length===0)throw TypeError(`is-unsafe: each context in the array must be a non-empty pattern array (PatternList)`)}}else throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`)}}function Lt(e){return e instanceof RegExp?{lists:null,regex:e}:Array.isArray(e[0])?{lists:e,regex:null}:{lists:[e],regex:null}}function Rt(e,t){let n=t.label??`CUSTOM`;for(let r of t)if(r.pattern.test(e))return{context:n,id:r.id,description:r.description,pattern:r.pattern};return null}function zt(e,t){Ft(e),It(t);let{lists:n,regex:r}=Lt(t);if(r)return r.test(e);for(let t of n)if(Rt(e,t)!==null)return!0;return!1}function Bt(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Vt(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Ht=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=qt,this.parseTextData=Ut,this.resolveNameSpace=Wt,this.buildAttributesMap=Kt,this.isItStopNode=Zt,this.replaceEntitiesValue=Yt,this.readStopNodeData=nn,this.saveTextToParentTag=Xt,this.addChild=Jt,this.ignoreAttributesFn=bt(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n={...xe};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Se,...be}),this.entityDecoder=new Ne({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:(e,t)=>zt(t,[Tt,Et])?Ce.BLOCK:Ce.ALLOW})),this.matcher=new wt,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new St;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e<r.length;e++){let t=r[e];typeof t==`string`?this.stopNodeExpressionsSet.add(new xt(t)):t instanceof xt&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}};function Ut(e,t,n,r,i,a,o){let s=this.options;if(e!==void 0&&(s.trimValues&&!r&&(e=e.trim()),e.length>0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?rn(e,s.parseTagValue,s.numberParseOptions):e}}function Wt(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}var Gt=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Kt(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=k(e,Gt),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e<a;e++){let t=this.resolveNameSpace(r[e][1]),a=r[e][4];if(t.length&&a!==void 0){let r=a;i.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r,n,this.readonlyMatcher),s[e]=r,l[t]=r,c=!0}}c&&typeof t==`object`&&t.updateCurrent&&t.updateCurrent(l);let u=i.jPath?t.toString():this.readonlyMatcher,d=!1;for(let e=0;e<a;e++){let t=this.resolveNameSpace(r[e][1]);if(this.ignoreAttributesFn(t,u))continue;let n=i.attributeNamePrefix+t;if(t.length){if(i.transformAttributeName&&(n=i.transformAttributeName(n)),n=on(n,i),r[e][4]!==void 0){let r=s[e],a=i.attributeValueProcessor(t,r,u);a==null?o[n]=r:typeof a!=typeof r||a!==r?o[n]=a:o[n]=rn(r,i.parseAttributeValue,i.numberParseOptions),d=!0}else i.allowBooleanAttributes&&(o[n]=!0,d=!0)}}if(!d)return;if(i.attributesGroupName&&!i.preserveOrder){let e={};return e[i.attributesGroupName]=o,e}return o}}var qt=function(e){e=e.replace(/\r\n?/g,`
4
- `);let t=new I(`!xml`),n=t,r=``;this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let i=this.options,a=new Xe(i.processEntities),o=e.length;for(let s=0;s<o;s++)if(e[s]===`<`){let c=e.charCodeAt(s+1);if(c===47){let a=$t(e,`>`,s,`Closing Tag is not closed.`),o=e.substring(s+2,a).trim();if(i.removeNSPrefix){let e=o.indexOf(`:`);e!==-1&&(o=o.substr(e+1))}o=an(i.transformTagName,o,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(o&&i.unpairedTagsSet.has(o))throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);c&&i.unpairedTagsSet.has(c)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop()||t,i.captureMetaData&&n&&n.addEndIndex(a+1),r=``,s=a}else if(c===63){let t=tn(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new I(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s),i.captureMetaData&&n.addEndIndex(t.closeIndex+2)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=$t(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){if(this.doctypefound)throw Error(`Multiple DOCTYPE declarations found.`);this.doctypefound=!0;let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=$t(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=tn(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=an(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Vt(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Bt(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new I(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_),i.captureMetaData&&n.addEndIndex(s+1)}else{if(m){({tagName:c,tagExp:u}=an(i.transformTagName,c,u,i));let e=new I(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),i.captureMetaData&&n.addEndIndex(f+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new I(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),i.captureMetaData&&n.addEndIndex(a.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new I(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Jt(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Yt(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Xt(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Zt(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Qt(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n<i;n++){let t=e.charCodeAt(n);if(r)t===r&&(r=0);else if(t===34||t===39)r=t;else if(t===a){if(o!==-1){if(e.charCodeAt(n+1)===o)return s+=e.substring(c,n),{data:s,index:n}}else return s+=e.substring(c,n),{data:s,index:n}}else t===9&&!r&&(s+=e.substring(c,n)+` `,c=n+1)}}function $t(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i+t.length-1}function en(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i}function tn(e,t,n,r=`>`){let i=Qt(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function nn(e,t,n){let r=n,i=1,a=e.length;for(;n<a;n++)if(e[n]===`<`){let a=e.charCodeAt(n+1);if(a===47){let a=en(e,`>`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=$t(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=$t(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=$t(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=tn(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function rn(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`||t!==`false`&&mt(e,n)}return ae(e)?e:``}function an(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=on(t,r),{tagName:t,tagExp:n}}function on(e,t){if(oe.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return A.includes(e)?t.onDangerousProperty(e):e}var sn=I.getMetaDataSymbol();function cn(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ln(e,t,n,r){return un(e,t,n,r)}function un(e,t,n,r){let i,a={};for(let o=0;o<e.length;o++){let s=e[o],c=dn(s);if(c!==void 0&&c!==t.textNodeName){let e=cn(s[`:@`]||{},t.attributeNamePrefix);n.push(c,e)}if(c===t.textNodeName)i===void 0?i=s[c]:i+=``+s[c];else if(c===void 0)continue;else if(s[c]){let e=un(s[c],t,n,r),i=pn(e,t);if(Object.keys(e).length===0&&t.alwaysCreateTextNode&&(e[t.textNodeName]=``),s[`:@`]?fn(e,s[`:@`],r,t):Object.keys(e).length===1&&e[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?e=e[t.textNodeName]:Object.keys(e).length===0&&(t.alwaysCreateTextNode?e[t.textNodeName]=``:e=``),s[sn]!==void 0&&typeof e==`object`&&e&&(e[sn]=s[sn]),a[c]!==void 0&&Object.prototype.hasOwnProperty.call(a,c))Array.isArray(a[c])||(a[c]=[a[c]]),a[c].push(e);else{let n=t.jPath?r.toString():r;a[c]=t.isArray(c,n,i)?[e]:e}c!==void 0&&c!==t.textNodeName&&n.pop()}}return typeof i==`string`?i.length>0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function dn(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let n=t[e];if(n!==`:@`)return n}}function fn(e,t,n,r){if(t){let i=Object.keys(t),a=i.length;for(let o=0;o<a;o++){let a=i[o],s=a.startsWith(r.attributeNamePrefix)?a.substring(r.attributeNamePrefix.length):a,c=r.jPath?n.toString()+`.`+s:n;e[a]=r.isArray(a,c,!0,!0)?[t[a]]:t[a]}}}function pn(e,t){let{textNodeName:n}=t,r=Object.keys(e).length;return!!(r===0||r===1&&(e[n]||typeof e[n]==`boolean`||e[n]===0))}var mn=class{constructor(e){this.externalEntities={},this.options=Re(e)}parse(e,t){if(typeof e!=`string`&&e.toString)e=e instanceof Uint8Array&&!(typeof Buffer<`u`&&Buffer.isBuffer(e))?new TextDecoder(`utf-8`,{ignoreBOM:!0}).decode(e):e.toString();else if(typeof e!=`string`)throw Error(`XML data is accepted in String or Bytes[] form.`);if(t){t===!0&&(t={});let n=se(e,t);if(n!==!0)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let n=new Ht(this.options,this.externalEntities),r=n.parseXml(e);return this.options.preserveOrder||r===void 0?r:ln(r,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(t.indexOf(`&`)!==-1)throw Error(`Entity value can't have '&'`);if(e.indexOf(`&`)!==-1||e.indexOf(`;`)!==-1)throw Error(`An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'`);if(t===`&`)throw Error(`An entity with value '&' is not permitted`);this.externalEntities[e]=t}static getMetaDataSymbol(){return I.getMetaDataSymbol()}},hn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`},gn=e=>e<32&&e!==9&&e!==10||e===65534||e===65535||e>=55296&&e<=57343,_n=e=>e.toString(16).toUpperCase().padStart(4,`0`);function vn(e){let t=e.replace(/_(?=x[0-9A-Fa-f]{4}_)/gu,`_x005F_`),n=``;for(let e of t){let t=e.codePointAt(0)??0;n+=e.length===1&&gn(t)?`_x${_n(t)}_`:e}return n.replace(/[&<>"]/gu,e=>hn[e]??e)}var yn=e=>vn(e).replace(/[\t\n\r]/gu,e=>`_x${_n(e.charCodeAt(0))}_`),z=e=>e.includes(`_x`)?e.replace(/_x([0-9A-Fa-f]{4})_/gu,(e,t)=>String.fromCharCode(Number.parseInt(t,16))):e;function B(e,t={},...n){let r=``;for(let[e,n]of Object.entries(t))n!==void 0&&(r+=` ${e}="${yn(typeof n==`boolean`?n?`1`:`0`:String(n))}"`);let i=n.join(``);return i===``?`<${e}${r}/>`:`<${e}${r}>${i}</${e}>`}var bn={main:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,rel:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,pkg:`http://schemas.openxmlformats.org/package/2006/relationships`,types:`http://schemas.openxmlformats.org/package/2006/content-types`,drawing:`http://schemas.openxmlformats.org/drawingml/2006/main`},xn=new Set(`c.row.col.cols.si.r.rPh.sheet.definedName.font.fill.border.numFmt.xf.Relationship.Override.Default.mergeCell.tablePart.tableColumn.sheetView.pane.selection.conditionalFormatting.dataValidation.hyperlink.rgbColor.brk.filterColumn.externalReference.gsd`.split(`.`)),Sn=new mn({ignoreAttributes:!1,attributeNamePrefix:``,removeNSPrefix:!0,trimValues:!1,parseTagValue:!1,parseAttributeValue:!1,processEntities:!0,htmlEntities:!0,textNodeName:`#text`,isArray:(e,t,n,r)=>!r&&xn.has(e)});function Cn(e){return Sn.parse(e.replace(/\r\n?/gu,`
5
- `))}var wn=e=>typeof e==`object`?e:{},V=e=>Array.isArray(e)?e.map(wn):e===void 0?[]:[wn(e)],H=e=>{let t=Array.isArray(e)?e[0]:e;return t===void 0?void 0:wn(t)};function U(e){if(typeof e==`string`)return e;if(e==null)return``;if(Array.isArray(e))return e.map(U).join(``);let t=e[`#text`];return typeof t==`string`?t:``}var W=(e,t)=>{let n=e?.[t];return typeof n==`string`?n:void 0},G=(e,t)=>{let n=W(e,t);if(n===void 0||n===``)return;let r=Number(n);return Number.isFinite(r)?r:void 0},K=(e,t)=>{let n=W(e,t);return n===void 0?void 0:n===`1`||n===`true`},Tn=9525;function En(e){if(Array.isArray(e))return e.map(En).join(``);if(typeof e!=`object`||!e)return``;let t=e,n=[];for(let[e,r]of Object.entries(t))e===`t`?n.push(U(r)):typeof r==`object`&&n.push(En(r));return n.join(``)}var Dn=e=>{let t=H(e?.solidFill),n=W(H(t?.srgbClr),`val`);return n===void 0?On[W(H(t?.schemeClr),`val`)??``]:`#${n.toUpperCase()}`},On={accent1:`#4472C4`,accent2:`#ED7D31`,accent3:`#A5A5A5`,accent4:`#FFC000`,accent5:`#5B9BD5`,accent6:`#70AD47`},q=(e,t)=>W(H(e?.[t]),`val`),kn=(e,t)=>G(H(e?.[t]),`val`),An=(e,t)=>K(H(e?.[t]),`val`),jn=e=>/^"(?:[^"]|"")*"$/u.test(e)?e.slice(1,-1).replaceAll(`""`,`"`):void 0,Mn=e=>jn(e)??`=${e}`;function Nn(e){if(!e)return;let t=H(e.tx),n=H(t?.strRef);if(n)return Mn(U(n.f));let r=En(t?.rich);return r===``?void 0:r}function Pn(e){if(!e)return;let t=H(e.scaling),n=H(e.numFmt),r=W(n,`formatCode`),i={},a=Nn(H(e.title));a!==void 0&&(i.title=a);let o=kn(t,`min`),s=kn(t,`max`),c=kn(e,`majorUnit`);return o!==void 0&&(i.min=o),s!==void 0&&(i.max=s),c!==void 0&&c>0&&(i.major=c),An(e,`delete`)===!0&&(i.visible=!1),q(t,`orientation`)===`maxMin`&&(i.reverse=!0),r!==void 0&&r!==`General`&&K(n,`sourceLinked`)!==!0&&(i.format=r),i}var Fn=e=>{let t=H(e?.numRef)??H(e?.strRef),n=t?U(t.f):``;return n===``?void 0:n};function In(e,t){let n=Fn(H(e[t?`yVal`:`val`]));if(n===void 0)return`its numbers are written in the chart`;let r={values:n},i=H(e.tx),a=Fn(i);if(a!==void 0)r.name=Mn(a);else{let e=U(i?.v);e!==``&&(r.name=e)}let o=H(e.spPr),s=H(o?.ln),c=H(e.marker),u=t||c!==void 0,d=Dn(o)??(u?Dn(s)??Dn(H(c?.spPr)):void 0);d!==void 0&&(r.color=d);let f=G(s,`w`);if(u&&f!==void 0&&s?.noFill===void 0){let e=Math.max(.25,Number((f/12700).toFixed(2)));e!==l.lineWidth&&(r.line_width=e)}An(e,`smooth`)===!0&&(r.smooth=!0);let p=kn(c,`size`);p!==void 0&&p!==l.marker&&(r.marker_size=p);let m=t?Fn(H(e.xVal)):void 0;m!==void 0&&(r.x=m);let h=t?void 0:Fn(H(e.cat));return{series:r,...h===void 0?{}:{categories:h}}}function Ln(e,t){let n=V(t.ser),r=e=>H(H(e.spPr)?.ln)?.noFill!==void 0,i=e=>q(H(e.marker),`symbol`)===`none`;switch(e){case`barChart`:return Rn(t);case`lineChart`:return n.every(i)?`line`:`line-markers`;case`areaChart`:return zn(t);case`pieChart`:return`pie`;case`doughnutChart`:return`doughnut`;case`scatterChart`:return n.every(r)?`scatter`:n.some(e=>An(e,`smooth`)===!0)?`scatter-smooth`:`scatter-lines`;default:return}}function Rn(e){let t=q(e,`barDir`)===`bar`?`bar`:`column`,n=q(e,`grouping`);return n===`stacked`?`${t}-stacked`:n===`percentStacked`?`${t}-stacked-100`:`${t}-clustered`}function zn(e){let t=q(e,`grouping`);return t===`stacked`?`area-stacked`:t===`percentStacked`?`area-stacked-100`:`area`}function Bn(e,t,n){if(e===void 0)return;let r=e.replace(/^=/u,``);if(/(?:^|[(,])'?\[\d+\]/u.test(r))return`it reads another workbook`;if(e.includes(`#REF!`))return`its cells were deleted (#REF!)`;let i=/^(?:'((?:[^']|'')+)'|([^!'(),]+))!/u.exec(r),a=i?.[1]?.replaceAll(`''`,`'`)??i?.[2];if(a!==void 0&&!t(a))return`it reads a sheet the workbook does not have (${a})`;let o=h(`=${r}`);if(!o.ok||!Vn(o.node,n))return`it names no cells (${r})`}function Vn(e,t){switch(e.kind){case`ref`:case`structured`:return!0;case`name`:return e.sheet!==void 0||t(e.name);case`paren`:return Vn(e.arg,t);case`binary`:return(e.op===`,`||e.op===`:`)&&Vn(e.left,t)&&Vn(e.right,t);default:return!1}}function Hn(e,t=[],n=()=>!0,r=()=>!0){let i=H(e?.chartSpace),a=H(i?.chart),o=H(a?.plotArea);if(!a||!o)return`it has no plot`;let s=Object.entries(o).filter(([e])=>e.endsWith(`Chart`)).flatMap(([e,t])=>V(t).map(t=>({kind:e,plot:t}))),[c]=s;if(!c)return`it has no plot`;let l=V(o.valAx),u=e=>V(e.axId).map(e=>W(e,`val`)),d=e=>{let t=l.find(t=>u(e).includes(W(H(t.axId),`val`)));return t!==void 0&&q(t,`axPos`)===`r`},f=s.length>1,p=s.map(({kind:e,plot:t})=>({kind:e,plot:t,type:Ln(e,t),secondary:f&&d(t)}));if(f&&p.some(e=>e.type===void 0||!(e.type.startsWith(`column`)||e.type.startsWith(`line`)||e.type.startsWith(`area`))))return`it combines several kinds of chart, not columns, lines and areas`;let{kind:m,plot:h}=p.find(e=>!e.secondary)??p[0]??c,g=m===`scatterChart`,_=[],v,ee,y=p.flatMap(e=>V(e.plot.ser).map(t=>({s:t,of:e}))),b=y.filter(({s:e})=>e.trendline!==void 0).length;b>0&&t.push(b===1?`trendline`:`trendlines of ${String(b)} series`);let x=y.filter(({s:e})=>e.errBars!==void 0).length;x>0&&t.push(x===1?`error bars`:`error bars of ${String(x)} series`);for(let[e,{s:i,of:a}]of y.entries()){let o=In(i,g);if(typeof o==`string`)return o;if(f){let e=a.type;e!==void 0&&e!==Ln(m,h)&&(o.series.type=e),a.secondary&&(o.series.secondary=!0)}let s=Bn(o.series.values,n,r);s===void 0?(o.series.name?.startsWith(`=`)===!0&&Bn(o.series.name,n,r)!==void 0&&delete o.series.name,Bn(o.series.x,n,r)!==void 0&&delete o.series.x,_.push(o.series),Bn(o.categories,n,r)===void 0&&(v??=o.categories)):(t.push(`series ${String(e+1)}, as ${s}`),ee=s)}if(_.length===0)return ee===void 0?`it has no series`:`every series ${ee.replace(/^it /u,``)}`;let S=Ln(m,h);if(!S)return`a sheet has no ${m.replace(/Chart$/u,``)} chart`;let te=Nn(H(a.title)),C=H(a.legend),w=q(C,`legendPos`),ne=H(h.dLbls),T=e=>An(ne,e)===!0,E=T(`showVal`)||T(`showPercent`)||T(`showCatName`)||T(`showSerName`),D=q(ne,`dLblPos`),O=kn(h,`gapWidth`),re=kn(h,`overlap`),k=kn(h,`holeSize`),ie=An(h,`varyColors`),ae=S===`pie`||S===`doughnut`,A=e=>u(h).includes(W(H(e.axId),`val`)),oe=[...V(o.catAx),...V(o.dateAx)],j={value:f?l.find(A)??l[0]:l.find((e,t,n)=>!g||t===n.length-1),category:g?l[0]:f?oe.find(A)??oe[0]:H(o.catAx)??H(o.dateAx),second:p.some(e=>e.secondary)?l.find(e=>q(e,`axPos`)===`r`):void 0},se=Pn(j.value),M=Pn(j.category);se&&j.value?.majorGridlines===void 0&&(se.gridlines=!1),M&&j.category?.majorGridlines!==void 0&&(M.gridlines=!0);let ce=G(H(H(H(H(i?.txPr)?.p)?.pPr)?.defRPr),`sz`),le=e=>e&&Object.keys(e).length>0?e:void 0,ue=le(se),de=le(M),fe=Pn(j.second);fe&&j.second?.majorGridlines!==void 0&&(fe.gridlines=!0);let pe=le(fe);return{type:S,at:`A1`,...te===void 0?{}:{title:te},...v===void 0?{}:{categories:v},series:ae?_.slice(0,1):_,...C?{legend:w===`b`?`bottom`:w===`t`?`top`:w===`l`?`left`:`right`}:{},...E?{labels:{...T(`showVal`)?{value:!0}:{},...T(`showPercent`)?{percentage:!0}:{},...T(`showCatName`)?{category:!0}:{},...T(`showSerName`)?{series:!0}:{},...D===void 0?{}:{position:D}}}:{},...O===void 0||O===150?{}:{gap_width:O},...re===void 0||S.includes(`stacked`)?{}:{overlap:re},...k===void 0||k===50?{}:{hole_size:k},...ie===!0&&m===`barChart`?{vary_by_categories:!0}:{},...ie===!1&&ae?{vary_by_categories:!1}:{},...ue?{value_axis:ue}:{},...de?{category_axis:de}:{},...pe?{secondary_axis:pe}:{},...ce===void 0||ce===900?{}:{size:ce/100}}}var Un=e=>Math.round(e/Tn);function Wn(e,t,n){let r=H(e?.wsDr),i=[],a=[],o=0,s=e=>({col:Number(U(e?.col)),row:Number(U(e?.row)),colOff:Un(Number(U(e?.colOff))),rowOff:Un(Number(U(e?.rowOff)))}),c=e=>W(H(H(H(H(e.graphicFrame)?.graphic)?.graphicData)?.chart),`id`),l=(e,t,n,r)=>{let s={at:{row:t.row,col:t.col},...t.colOff>0?{x:t.colOff}:{},...t.rowOff>0?{y:t.rowOff}:{},width:n,height:r},l=H(e.pic),u=W(H(H(l?.blipFill)?.blip),`embed`);if(l&&u!==void 0){let e=H(H(l.nvPicPr)?.cNvPr),t=W(e,`name`),n=W(e,`descr`);a.push({id:u,...s,...t===void 0?{}:{name:t},...n===void 0?{}:{descr:n}});return}let d=c(e);d===void 0?o+=1:i.push({id:d,...s})};for(let e of V(r?.oneCellAnchor)){let t=H(e.ext);l(e,s(H(e.from)),Un(G(t,`cx`)??0),Un(G(t,`cy`)??0))}for(let e of V(r?.twoCellAnchor)){let r=s(H(e.from)),i=s(H(e.to)),a=i.colOff-r.colOff;for(let e=r.col;e<i.col;e++)a+=t(e);let o=i.rowOff-r.rowOff;for(let e=r.row;e<i.row;e++)o+=n(e);l(e,r,a,o)}return{anchors:i,pictures:a,others:o}}var Gn=`_xlfn._xlws.FILTER _xlfn._xlws.PY
6
- _xlfn._xlws.SORT _xlfn.ACOT _xlfn.ACOTH _xlfn.AGGREGATE _xlfn.ARABIC _xlfn.BASE
7
- _xlfn.BETA.DIST _xlfn.BETA.INV _xlfn.BINOM.DIST _xlfn.BINOM.DIST.RANGE
8
- _xlfn.BINOM.INV _xlfn.BITAND _xlfn.BITLSHIFT _xlfn.BITOR _xlfn.BITRSHIFT
9
- _xlfn.BITXOR _xlfn.BYCOL _xlfn.BYROW _xlfn.CEILING.MATH _xlfn.CEILING.PRECISE
10
- _xlfn.CHISQ.DIST _xlfn.CHISQ.DIST.RT _xlfn.CHISQ.INV _xlfn.CHISQ.INV.RT
11
- _xlfn.CHISQ.TEST _xlfn.CHOOSECOLS _xlfn.CHOOSEROWS _xlfn.COMBINA _xlfn.CONCAT
12
- _xlfn.CONFIDENCE.NORM _xlfn.CONFIDENCE.T _xlfn.COT _xlfn.COTH
13
- _xlfn.COVARIANCE.P _xlfn.COVARIANCE.S _xlfn.CSC _xlfn.CSCH _xlfn.DAYS
14
- _xlfn.DECIMAL _xlfn.DROP ECMA.CEILING _xlfn.ERF.PRECISE _xlfn.ERFC.PRECISE
15
- _xlfn.EXPAND _xlfn.EXPON.DIST _xlfn.F.DIST _xlfn.F.DIST.RT _xlfn.F.INV
16
- _xlfn.F.INV.RT _xlfn.F.TEST _xlfn.FIELDVALUE _xlfn.FILTERXML _xlfn.FLOOR.MATH
17
- _xlfn.FLOOR.PRECISE _xlfn.FORECAST.ETS _xlfn.FORECAST.ETS.CONFINT
18
- _xlfn.FORECAST.ETS.SEASONALITY _xlfn.FORECAST.ETS.STAT _xlfn.FORECAST.LINEAR
19
- _xlfn.FORMULATEXT _xlfn.GAMMA _xlfn.GAMMA.DIST _xlfn.GAMMA.INV
20
- _xlfn.GAMMALN.PRECISE _xlfn.GAUSS _xlfn.HSTACK _xlfn.HYPGEOM.DIST _xlfn.IFNA
21
- _xlfn.IFS _xlfn.IMCOSH _xlfn.IMCOT _xlfn.IMCSC _xlfn.IMCSCH _xlfn.IMSEC
22
- _xlfn.IMSECH _xlfn.IMSINH _xlfn.IMTAN _xlfn.ISFORMULA ISO.CEILING
23
- _xlfn.ISOMITTED _xlfn.ISOWEEKNUM _xlfn.LAMBDA _xlfn.LET _xlfn.LOGNORM.DIST
24
- _xlfn.LOGNORM.INV _xlfn.MAKEARRAY _xlfn.MAP _xlfn.MAXIFS _xlfn.MINIFS
25
- _xlfn.MODE.MULT _xlfn.MODE.SNGL _xlfn.MUNIT _xlfn.NEGBINOM.DIST
26
- NETWORKDAYS.INTL _xlfn.NORM.DIST _xlfn.NORM.INV _xlfn.NORM.S.DIST
27
- _xlfn.NORM.S.INV _xlfn.NUMBERVALUE _xlfn.PDURATION _xlfn.PERCENTILE.EXC
28
- _xlfn.PERCENTILE.INC _xlfn.PERCENTRANK.EXC _xlfn.PERCENTRANK.INC
29
- _xlfn.PERMUTATIONA _xlfn.PHI _xlfn.POISSON.DIST _xlfn.PQSOURCE
30
- _xlfn.PYTHON_STR _xlfn.PYTHON_TYPE _xlfn.PYTHON_TYPENAME _xlfn.QUARTILE.EXC
31
- _xlfn.QUARTILE.INC _xlfn.QUERYSTRING _xlfn.RANDARRAY _xlfn.RANK.AVG
32
- _xlfn.RANK.EQ _xlfn.REDUCE _xlfn.RRI _xlfn.SCAN _xlfn.SEC _xlfn.SECH
33
- _xlfn.SEQUENCE _xlfn.SHEET _xlfn.SHEETS _xlfn.SKEW.P _xlfn.SORTBY
34
- _xlfn.STDEV.P _xlfn.STDEV.S _xlfn.SWITCH _xlfn.T.DIST _xlfn.T.DIST.2T
35
- _xlfn.T.DIST.RT _xlfn.T.INV _xlfn.T.INV.2T _xlfn.T.TEST _xlfn.TAKE
36
- _xlfn.TEXTAFTER _xlfn.TEXTBEFORE _xlfn.TEXTJOIN _xlfn.TEXTSPLIT _xlfn.TOCOL
37
- _xlfn.TOROW _xlfn.UNICHAR _xlfn.UNICODE _xlfn.UNIQUE _xlfn.VAR.P _xlfn.VAR.S
38
- _xlfn.VSTACK _xlfn.WEBSERVICE _xlfn.WEIBULL.DIST WORKDAY.INTL _xlfn.WRAPCOLS
39
- _xlfn.WRAPROWS _xlfn.XLOOKUP _xlfn.XOR _xlfn.Z.TEST`,Kn=`ENCODEURL ARRAYTOTEXT VALUETOTEXT IMAGE REGEXTEST
40
- REGEXEXTRACT REGEXREPLACE GROUPBY PIVOTBY PERCENTOF TRIMRANGE`,qn=new Map;for(let e of Gn.split(/\s+/u)){let t=Jn(e);qn.set(t,e.startsWith(`_xlfn._xlws.`)?e:`_xlfn.${t}`)}for(let e of Kn.split(/\s+/u))qn.set(e,`_xlfn.${e}`);function Jn(e){return e.replace(/^(?:_xlfn\.|_xlws\.|_xludf\.)+/iu,``)}function Yn(e){switch(e.kind){case`ref`:return e.col2!==void 0||e.row2!==void 0;case`structured`:return!e.thisRow||e.columns.length>1;case`paren`:return Yn(e.arg);case`binary`:return e.op===`:`||e.op===`,`;default:return!1}}var Xn=new Set([`+`,`-`,`*`,`/`,`^`,`&`,`=`,`<>`,`<`,`<=`,`>`,`>=`]);new Set(`BYCOL BYROW CHOOSECOLS CHOOSEROWS DROP EXPAND FILTER HSTACK MAKEARRAY MAP
41
- RANDARRAY SCAN SEQUENCE SORT SORTBY TAKE TEXTSPLIT TOCOL TOROW UNIQUE VSTACK
42
- WRAPCOLS WRAPROWS`.split(/\s+/u));var Zn=new Set([`IF`,`IFERROR`,`IFNA`]);function Qn(e,t){let n=O.get(e);if(n?.kind===`scalar`)return!0;if(n?.kind!==`raw`)return!1;let{fixed:r,group:i}=n.params;return t<r.length?r[t]===`value`:i.length>0&&i[(t-r.length)%i.length]===`value`}function $n(e,t=()=>!1){let n=e=>e.kind!==`array`&&(Yn(e)||e.kind===`name`&&t(e.name))?{kind:`unary`,op:`@`,arg:e}:r(e),r=e=>{switch(e.kind){case`unary`:return e.op===`@`?e:{...e,arg:n(e.arg)};case`postfix`:return e.op===`%`?{...e,arg:n(e.arg)}:e;case`paren`:return{...e,arg:r(e.arg)};case`binary`:return Xn.has(e.op)?{...e,left:n(e.left),right:n(e.right)}:e;case`call`:{let[t,...r]=e.args;return Zn.has(e.name)&&t?{...e,args:[n(t),...r]}:e.args.some((t,n)=>Qn(e.name,n))?{...e,args:e.args.map((t,r)=>Qn(e.name,r)?n(t):t)}:e}default:return e}};return n(e)}function J(e){switch(e.kind){case`name`:return e.name.toLowerCase().startsWith(`_xlpm.`)?{...e,name:e.name.slice(6)}:e;case`structured`:return e;case`unary`:case`postfix`:case`paren`:return{...e,arg:J(e.arg)};case`binary`:return{...e,left:J(e.left),right:J(e.right)};case`call`:{let t=Jn(e.written).toUpperCase(),n=e.args.map(J),[r]=n;return t===`ANCHORARRAY`&&r&&n.length===1?{kind:`postfix`,op:`#`,arg:r}:t===`SINGLE`&&r&&n.length===1?{kind:`unary`,op:`@`,arg:r}:{...e,name:t,written:t,args:n}}case`invoke`:return{...e,callee:J(e.callee),args:e.args.map(J)};case`array`:return{...e,rows:e.rows.map(e=>e.map(J))};default:return e}}function er(e,t,n){let r=h(`=${e}`);if(!r.ok)return r;let i=J(r.node);return{ok:!0,node:t?i:$n(i,n)}}function tr(e){let t=h(`=${e}`);return t.ok&&Yn(J(t.node))}var nr=`000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 800000 008000 000080 808000 800080 008080 C0C0C0 808080 9999FF 993366 FFFFCC CCFFFF 660066 FF8080 0066CC CCCCFF 000080 FF00FF FFFF00 00FFFF 800080 800000 008080 0000FF 00CCFF CCFFFF CCFFCC FFFF99 99CCFF FF99CC CC99FF FFCC99 3366FF 33CCCC 99CC00 FFCC00 FF9900 FF6600 666699 969696 003366 339966 003300 333300 993300 993366 333399 333333`.split(` `),rr=[`FFFFFF`,`000000`,`E7E6E6`,`44546A`,`4472C4`,`ED7D31`,`A5A5A5`,`FFC000`,`5B9BD5`,`70AD47`,`0563C1`,`954F72`];function ir(e){let t=H(H(H(Cn(e).theme)?.themeElements)?.clrScheme);if(!t)return[...rr];let n=(e,n)=>{let r=H(t[e]),i=H(r?.srgbClr),a=H(r?.sysClr);return(W(i,`val`)??W(a,`lastClr`)??rr[n]??`000000`).toUpperCase()};return[n(`lt1`,0),n(`dk1`,1),n(`lt2`,2),n(`dk2`,3),...[1,2,3,4,5,6].map(e=>n(`accent${String(e)}`,e+3)),n(`hlink`,10),n(`folHlink`,11)]}function ar(e){let t=Number.parseInt(e.slice(0,2),16)/255,n=Number.parseInt(e.slice(2,4),16)/255,r=Number.parseInt(e.slice(4,6),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return[0,0,o];let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);return[(i===t?(n-r)/s+(n<r?6:0):i===n?(r-t)/s+2:(t-n)/s+4)/6,c,o]}function or(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=e=>{let a=e<0?e+1:e>1?e-1:e,o=t===0?n:a<1/6?i+(r-i)*6*a:a<1/2?r:a<2/3?i+(r-i)*(2/3-a)*6:i;return Math.round(o*255).toString(16).toUpperCase().padStart(2,`0`)};return`${a(e+1/3)}${a(e)}${a(e-1/3)}`}function sr(e,t){if(t===0)return e;let[n,r,i]=ar(e),a=t<0?i*(1+t):i*(1-t)+t;return or(n,r,Math.min(1,Math.max(0,a)))}var cr=(e,t)=>{let n=V(H(H(t?.colors)?.indexedColors)?.rgbColor);return{theme:e,indexed:n.length>0?n.map(e=>(W(e,`rgb`)??`00000000`).slice(-6).toUpperCase()):nr}};function Y(e,t){if(!e||W(e,`auto`)===`1`)return;let n=W(e,`rgb`),r=Number(W(e,`tint`)??0),i;n!==void 0&&(i=n.slice(-6).toUpperCase());let a=W(e,`theme`);i===void 0&&a!==void 0&&(i=t.theme[Number(a)]);let o=W(e,`indexed`);if(i===void 0&&o!==void 0){let e=Number(o);i=e===64?`000000`:e===65?`FFFFFF`:t.indexed[e]}return i===void 0?void 0:`#${sr(i,r)}`}var lr={0:`General`,1:`0`,2:`0.00`,3:`#,##0`,4:`#,##0.00`,9:`0%`,10:`0.00%`,11:`0.00E+00`,12:`# ?/?`,13:`# ??/??`,14:`m/d/yyyy`,15:`d-mmm-yy`,16:`d-mmm`,17:`mmm-yy`,18:`h:mm AM/PM`,19:`h:mm:ss AM/PM`,20:`h:mm`,21:`h:mm:ss`,22:`m/d/yyyy h:mm`,37:`#,##0_);(#,##0)`,38:`#,##0_);[Red](#,##0)`,39:`#,##0.00_);(#,##0.00)`,40:`#,##0.00_);[Red](#,##0.00)`,41:`_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)`,42:`_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)`,43:`_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)`,44:`_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)`,45:`mm:ss`,46:`[h]:mm:ss`,47:`mmss.0`,48:`##0.0E+0`,49:`@`};new Map(Object.entries(lr).map(([e,t])=>[t,Number(e)]));var ur={lt:`<`,gt:`>`,amp:`&`,quot:`"`,apos:`'`};function dr(e){return e.includes(`&`)?e.replace(/&(#x[0-9A-Fa-f]+|#\d+|[A-Za-z]+);/gu,(e,t)=>t.startsWith(`#x`)?String.fromCodePoint(Number.parseInt(t.slice(2),16)):t.startsWith(`#`)?String.fromCodePoint(Number.parseInt(t.slice(1),10)):ur[t]??e):e}var fr=e=>{let t=e.indexOf(`:`);return t<0?e:e.slice(t+1)},pr=e=>e===32||e===9||e===10||e===13;function mr(e,t,n){let r=0,i=e.length;for(;r<i&&!pr(e.charCodeAt(r));)r++;let a=fr(e.slice(0,r)),o={};for(;r<i;){for(;r<i&&pr(e.charCodeAt(r));)r++;if(r>=i)break;let t=e.indexOf(`=`,r);if(t<0)throw Error(`An attribute of <${a}> has no value.`);let n=e.slice(r,t).trim(),s=t+1;for(;s<i&&pr(e.charCodeAt(s));)s++;let c=e[s];if(c!==`"`&&c!==`'`)throw Error(`An attribute of <${a}> is not quoted.`);let l=e.indexOf(c,s+1);if(l<0)throw Error(`An attribute of <${a}> is not closed.`);n!==`xmlns`&&!n.startsWith(`xmlns:`)&&(o[fr(n)]=dr(e.slice(s+1,l))),r=l+1}return t.open(a,o,n),a}var hr=class{capture;buffer=``;handler;depth=0;cr=!1;constructor(e){this.handler=e}push(e){let t=this.cr?`\r${e}`:e;this.cr=t.endsWith(`\r`),this.cr&&(t=t.slice(0,-1)),t=t.replace(/\r\n?/gu,`
43
- `),this.buffer=this.buffer===``?t:this.buffer+t,this.run()}end(){if(this.cr&&(this.cr=!1,this.buffer+=`
44
- `),this.run(),this.buffer.trim()!==``)throw Error(`The XML ends inside a tag or a comment.`);if(this.depth>0)throw Error(`The XML ends before its elements do.`)}emitText(e){e!==``&&(this.capture?.push(e),this.handler.text(dr(e)))}run(){let e=this.buffer,t=e.length,n=0;for(;;){let r=e.indexOf(`<`,n);if(r<0){let r=e.lastIndexOf(`&`),i=r>=n&&!e.includes(`;`,r)?r:t;this.emitText(e.slice(n,i)),n=i;break}r>n&&this.emitText(e.slice(n,r)),n=r;let i=e.charCodeAt(r+1);if(Number.isNaN(i))break;if(i===33){if(e.startsWith(`<!--`,r)){let t=e.indexOf(`-->`,r+4);if(t<0)break;this.capture?.push(e.slice(r,t+3)),n=t+3;continue}if(e.startsWith(`<![CDATA[`,r)){let t=e.indexOf(`]]>`,r+9);if(t<0)break;this.capture?.push(e.slice(r,t+3)),this.handler.text(e.slice(r+9,t)),n=t+3;continue}if(t-r<9)break;let i=e.indexOf(`>`,r);if(i<0)break;if(e.lastIndexOf(`[`,i)>r){let t=e.indexOf(`]>`,r);if(t<0)break;n=t+2}else n=i+1;continue}if(i===63){let t=e.indexOf(`?>`,r+2);if(t<0)break;this.capture?.push(e.slice(r,t+2)),n=t+2;continue}if(i===47){let t=e.indexOf(`>`,r+2);if(t<0)break;this.capture?.push(e.slice(r,t+1)),--this.depth,this.handler.close(fr(e.slice(r+2,t).trim())),n=t+1;continue}let a=r+1,o=0;for(;a<t;a++){let t=e.charCodeAt(a);if(o!==0)t===o&&(o=0);else if(t===34||t===39)o=t;else if(t===62)break}if(a>=t)break;let s=e.charCodeAt(a-1)===47,c=e.slice(r,a+1),l=mr(e.slice(r+1,s?a-1:a),this.handler,s);this.capture?.push(c),s?this.handler.close(l):this.depth+=1,n=a+1}this.buffer=n>=t?``:e.slice(n)}},gr=class{runs=[];inProps=!1;open(e,t){if(e===`r`)return this.runs.push({text:``,props:void 0}),!0;let n=this.runs[this.runs.length-1];return e===`rPr`&&n?(n.props={},this.inProps=!0,!0):this.inProps&&n?.props?(n.props[e]=t,!0):!1}close(e){e===`rPr`&&(this.inProps=!1)}text(e){let t=this.runs[this.runs.length-1];t&&(t.text+=e)}},_r=(e,t)=>{let n=e[t];if(n===void 0)return!1;let r=n.val;return r===void 0||r!==`0`&&r!==`false`},vr=new Set([`double`,`singleAccounting`,`doubleAccounting`]);function yr(e,t){return e.map(({text:e,props:n})=>{let r={text:z(e)};if(!n)return r;let i=n.u,a=i?.val,o=Number(n.sz?.val),s=n.vertAlign?.val;return r.font={bold:_r(n,`b`),italic:_r(n,`i`),strike:_r(n,`strike`),underline:i===void 0||a===`none`?!1:a!==void 0&&vr.has(a)?a:!0,size:Number.isFinite(o)&&o>0?o:void 0,color:Y(n.color,t),name:n.rFont?.val,script:s===`superscript`||s===`subscript`?s:void 0},r})}var br=65536,X=(e,t)=>(e[t]??0)|(e[t+1]??0)<<8,Z=(e,t)=>(X(e,t)|X(e,t+2)<<16)>>>0,xr=(e,t)=>Z(e,t)+Z(e,t+4)*4294967296,Sr=e=>{let t=``;for(let n of e)t+=String.fromCharCode(n);return t},Cr=class{bytes;entries=new Map;lower=new Map;constructor(e,t){this.bytes=e;let n=o(t);for(let e of this.directory())n({name:e.name,originalSize:e.size}),this.entries.set(e.name,e),this.lower.set(e.name.toLowerCase(),e)}get names(){return[...this.entries.keys()]}find(e){return this.entries.get(e)??this.lower.get(e.toLowerCase())}has(e){return this.find(e)!==void 0}*directory(){let e=this.bytes,t=-1;for(let n=e.length-22;n>=Math.max(0,e.length-22-65535);n--)if(Z(e,n)===101010256){t=n;break}if(t<0)throw Error(`It has no zip directory.`);let n=X(e,t+10),r=Z(e,t+16);if((n===65535||r===4294967295)&&Z(e,t-20)===117853008){let i=xr(e,t-12);if(Z(e,i)!==101075792)throw Error(`Its zip64 end is lost.`);n=xr(e,i+32),r=xr(e,i+48)}let i=new TextDecoder,a=r;for(let t=0;t<n;t++){if(Z(e,a)!==33639248)throw Error(`Its zip directory is damaged.`);let t=X(e,a+8),n=X(e,a+10),r=Z(e,a+20),o=Z(e,a+24),s=X(e,a+28),c=X(e,a+30),l=X(e,a+32),u=Z(e,a+42),d=e.subarray(a+46,a+46+s),f=t&2048?i.decode(d):Sr(d),p=a+46+s,m=p+c;for(;p+4<=m;){let t=X(e,p),n=X(e,p+2);if(t===1){let t=p+4;o===4294967295&&(o=xr(e,t),t+=8),r===4294967295&&(r=xr(e,t),t+=8),u===4294967295&&(u=xr(e,t))}p+=4+n}if(a=m+l,Z(e,u)!==67324752)throw Error(`Its part ${f} is lost.`);let h=u+30+X(e,u+26)+X(e,u+28);if(h+r>e.length)throw Error(`Its part ${f} is cut short.`);f.endsWith(`/`)||(yield{name:f,method:n,start:h,compressed:r,size:o})}}stream(e,t){let n=this.find(e);if(!n)return!1;let r=this.bytes.subarray(n.start,n.start+n.compressed);if(n.method===0){if(r.length>n.size)throw new s(`${n.name} holds more than it says.`);return t(r),!0}if(n.method!==8)throw Error(`${n.name} is compressed in a way a zip reader here does not know.`);let i=0,a=new c(e=>{if(i+=e.length,i>n.size)throw new s(`${n.name} unzips to more than it says.`);t(e)});for(let e=0;e<r.length;e+=br)a.push(r.subarray(e,e+br),e+br>=r.length);return r.length===0&&a.push(r,!0),!0}streamText(e,t){let n=new TextDecoder;if(!this.stream(e,e=>{let r=n.decode(e,{stream:!0});r!==``&&t(r)}))return!1;let r=n.decode();return r!==``&&t(r),!0}bytesOf(e){let t=this.find(e);if(!t)return;let n=new Uint8Array(t.size),r=0;return this.stream(e,e=>{n.set(e,r),r+=e.length}),r===n.length?n:n.subarray(0,r)}text(e){let t=this.bytesOf(e);return t===void 0?void 0:new TextDecoder().decode(t)}};function wr(e){if(K(e,`iterate`)!==!0)return;let t=G(e,`iterateCount`),n=G(e,`iterateDelta`),r=t===void 0?void 0:Math.min(32767,Math.max(1,Math.round(t))),i=n===void 0?void 0:Math.max(0,n),a={...r===void 0||r===y.max_iterations?{}:{max_iterations:r},...i===void 0||i===y.max_change?{}:{max_change:i}};return Object.keys(a).length>0?a:!0}var Tr=7,Er=e=>Math.floor((256*e+Math.floor(128/Tr))/256*Tr),Dr=e=>Math.round(e*4/3),Or=5;function kr(e){let t=e.slice(0,Or).join(`, `);return e.length>Or?`${t} and ${String(e.length-Or)} more`:t}var Ar=(e,t,n=`${t}s`)=>`${String(e)} ${e===1?t:n}`,jr=`Excel's grid ends at ${v(E-1)}${String(D)} (${D.toLocaleString(`en-US`)} rows, ${E.toLocaleString(`en-US`)} columns)`;function Mr(e,t){let n=0,r=0,i=e.length;for(;n<i;n++){let t=e.charCodeAt(n),i=t>=65&&t<=90;if(!i&&!(t>=97&&t<=122))break;r=r*26+(i?t-64:t-96)}if(n===0||n===i)return;let a=0;for(let t=n;t<i;t++){let n=e.charCodeAt(t);if(n<48||n>57)return;a=a*10+n-48}if(a!==0){if(n>3||r>16384||a>1048576)throw Error(`${t} has a cell at ${e}, and ${jr}.`);return{row:a-1,col:r-1}}}var Nr=class{zip;constructor(e,t){this.zip=new Cr(e,t)}get names(){return this.zip.names}has(e){return this.zip.has(e)}text(e){return this.zip.text(e)}bytes(e){return this.zip.bytesOf(e)}xml(e){let t=this.text(e);return t===void 0?void 0:Cn(t)}stream(e,t){let n=this.zip.streamText(e,e=>{t.push(e)});return n&&t.end(),n}rels(e){let t=e.lastIndexOf(`/`),n=`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`;return V(H(this.xml(n)?.Relationships)?.Relationship).map(t=>{let n=W(t,`Type`)??``,r=W(t,`Target`)??``,i=W(t,`TargetMode`)===`External`;return{id:W(t,`Id`)??``,type:n.slice(n.lastIndexOf(`/`)+1),target:i?r:Pr(e,r),external:i}})}count(e){return this.names.filter(t=>e.test(t)).length}};function Pr(e,t){if(t.startsWith(`/`))return t.slice(1);let n=e.split(`/`).slice(0,-1);for(let e of t.split(`/`))e===`..`?n.pop():e!==`.`&&n.push(e);return n.join(`/`)}function Fr(e,t,n){let r=[];if(t===void 0)return r;let i,a=0,o=!1;return e.stream(t,new hr({open(e,t){e===`si`?i={text:``,runs:new gr}:i&&(a>0||e===`rPh`||e===`phoneticPr`||e===`extLst`?a+=1:i.runs.open(e,t)||e===`t`&&(o=!0))},close(e){if(a>0)--a;else if(e===`si`){if(i){let{runs:e}=i.runs;r.push({text:z(i.text),...e.length>0?{runs:yr(e,n)}:{}})}i=void 0}else i?.runs.close(e),e===`t`&&(o=!1)},text(e){i&&o&&a===0&&(i.text+=e,i.runs.text(e))}})),r}function Ir(e,t){let n=e[t];if(n===void 0)return!1;let r=W(H(n),`val`);return r===void 0||r!==`0`&&r!==`false`}var Lr=new Set([`double`,`singleAccounting`,`doubleAccounting`]);function Rr(e,t,n){let r={},i=(e,t)=>W(H(e?.[t]),`val`);if(Ir(e,`b`)&&(r.bold=!0),Ir(e,`i`)&&(r.italic=!0),Ir(e,`strike`)&&(r.strike=!0),Ir(e,`u`)){let t=i(e,`u`);r.underline=t!==void 0&&Lr.has(t)?t:!0}let a=i(e,`name`);a!==void 0&&a!==i(t,`name`)&&(r.font=a);let o=i(e,`sz`);o!==void 0&&o!==i(t,`sz`)&&(r.size=Number(o));let s=Y(H(e.color),n);return s!==void 0&&s!==Y(H(t?.color),n)&&(r.color=s),r}function zr(e,t){let n=H(e.patternFill),r=W(n,`patternType`);if(r===void 0||r===`none`)return;let i=Y(H(n?.fgColor),t),a=Y(H(n?.bgColor),t);return r===`solid`&&i!==void 0?i:{pattern:r,...i===void 0?{}:{color:i},...a===void 0?{}:{background:a}}}function Br(e,t){let n={};for(let r of[`left`,`right`,`top`,`bottom`]){let i=H(e[r]),a=W(i,`style`);if(a===void 0||a===`none`)continue;let o=Y(H(i?.color),t);n[r]={style:a,...o===void 0?{}:{color:o}}}return Object.keys(n).length===0?void 0:n}function Vr(e){let t={},n=W(e,`horizontal`);n!==void 0&&n!==`general`&&(t.align=n);let r=W(e,`vertical`);r!==void 0&&r!==`bottom`&&(t.valign=r),K(e,`wrapText`)===!0&&(t.wrap=!0),K(e,`shrinkToFit`)===!0&&(t.shrink=!0);let i=G(e,`indent`);i!==void 0&&i>0&&(t.indent=i);let a=G(e,`textRotation`);return a!==void 0&&a>0&&a<=180&&(t.rotation=a),t}function Hr(e,t){let n={},r=H(e.font);if(r){let e=(e,t)=>{r[e]!==void 0&&(n[t]=Ir(r,e))};e(`b`,`bold`),e(`i`,`italic`),e(`strike`,`strike`),r.u!==void 0&&(n.underline=Ir(r,`u`));let i=Y(H(r.color),t);i!==void 0&&(n.color=i)}let i=H(H(e.fill)?.patternFill),a=Y(H(i?.bgColor),t)??Y(H(i?.fgColor),t);a!==void 0&&(n.fill=a);let o=H(e.border),s=o&&Br(o,t);s!==void 0&&(n.border=s);let c=H(e.numFmt),l=W(c,`formatCode`)??lr[G(c,`numFmtId`)??-1];return c&&l!==void 0&&l!==``&&l!==`General`&&(n.format=l),n}function Ur(e,t){let n=H(e?.styleSheet),r=cr(t,n),i=new Map(V(H(n?.numFmts)?.numFmt).map(e=>[G(e,`numFmtId`)??-1,W(e,`formatCode`)?.replace(/^$/u,`General`)??`General`])),a=V(H(n?.fonts)?.font),o=V(H(n?.fills)?.fill),s=V(H(n?.borders)?.border),c=V(H(n?.cellXfs)?.xf),l=a[G(c[0],`fontId`)??0],u=new Set;o.some(e=>e.gradientFill!==void 0)&&u.add(`gradient fills`);let d=V(H(n?.cellStyles)?.cellStyle),f=new Set(c.map(e=>G(e,`xfId`)??0)),p=d.filter(e=>G(e,`builtinId`)!==0&&f.has(G(e,`xfId`)??-1)).map(e=>z(W(e,`name`)??``)).filter(e=>e!==``);p.length>0&&u.add(`the names of cell styles (${p.slice(0,5).join(`, `)}${p.length>5?`, …`:``}): their looks are kept`);let m=c.map(e=>{let t={},n=a[G(e,`fontId`)??0];n&&(Object.assign(t,Rr(n,l,r)),n.vertAlign!==void 0&&u.add(`superscript and subscript`));let c=o[G(e,`fillId`)??0],d=c&&zr(c,r);d!==void 0&&(t.fill=d);let f=s[G(e,`borderId`)??0],p=f&&Br(f,r);p!==void 0&&(t.border=p),f&&W(H(f.diagonal),`style`)!==void 0&&u.add(`diagonal borders`);let m=H(e.alignment);m&&(Object.assign(t,Vr(m)),G(m,`textRotation`)===255&&u.add(`vertical text`));let h=H(e.protection);K(h,`locked`)===!1&&(t.locked=!1),K(h,`hidden`)===!0&&(t.hide_formula=!0);let g=G(e,`numFmtId`)??0,_=i.get(g)??lr[g];return _!==void 0&&_!==`General`&&(t.format=_),t}),h=W(H(l?.name),`val`),g=W(H(l?.sz),`val`);return{looks:m,dxfs:V(H(n?.dxfs)?.dxf).map(e=>Hr(e,r)),font:{...h===void 0?{}:{name:h},...g===void 0?{}:{size:Number(g)}},lost:[...u]}}var Wr=e=>{let t=Number(e);return e.trim()!==``&&Number.isFinite(t)?t:e};function Gr(e,t){let r=H(e.customFilters);if(r){let e=V(r.customFilter).map(e=>({operator:W(e,`operator`)??`equal`,value:Wr(z(W(e,`val`)??``))}));return e.length===0||e.length>2||e.some(e=>!n.includes(e.operator))?void 0:{conditions:e,...e.length===2&&K(r,`and`)!==!0?{or:!0}:{}}}let i=H(e.top10);if(i){let e=G(i,`val`);return e===void 0||e<=0?void 0:{top:{count:e,...K(i,`percent`)===!0?{percent:!0}:{},...K(i,`top`)===!1?{bottom:!0}:{}}}}let a=W(H(e.dynamicFilter),`type`);if(a===`aboveAverage`)return{average:`above`};if(a===`belowAverage`)return{average:`below`};let o=H(e.colorFilter);if(o){let e=t[G(o,`dxfId`)??-1];return K(o,`cellColor`)===!1?e?.color?{color:{font:e.color}}:void 0:typeof e?.fill==`string`?{color:{fill:e.fill}}:void 0}}function Kr(e,t=[]){let n=new Map,r=0;for(let i of V(e.filterColumn)){let e=G(i,`colId`)??0,a=H(i.filters);if(!a){let a=Gr(i,t);a?n.set(e,a):Object.keys(i).some(e=>e!==`colId`&&e!==`hiddenButton`)&&(r+=1);continue}if(a.dateGroupItem!==void 0){r+=1;continue}let o=V(a.filter).map(e=>z(W(e,`val`)??``));n.set(e,{...o.length===0?{}:{values:o},...K(a,`blank`)===!0?{blanks:!0}:{}})}return{columns:n,unread:r}}function qr(e,t=[]){let n=H(e?.table),r=m(W(n,`ref`)??``),i=W(n,`displayName`)??W(n,`name`);if(!r||i===void 0)return;let a=H(n?.tableStyleInfo),o=H(n?.autoFilter);return{name:i,ref:r,headers:G(n,`headerRowCount`)??1,totals:G(n,`totalsRowCount`)??0,columns:V(H(n?.tableColumns)?.tableColumn).map(e=>({name:z(W(e,`name`)??``).trim(),calculated:e.calculatedColumnFormula!==void 0})),style:W(a,`name`)??`none`,options:{...K(a,`showRowStripes`)===!1?{banded_rows:!1}:{},...K(a,`showColumnStripes`)===!0?{banded_columns:!0}:{},...K(a,`showFirstColumn`)===!0?{first_column:!0}:{},...K(a,`showLastColumn`)===!0?{last_column:!0}:{}},...o?{filter:Kr(o,t)}:{}}}function Jr(e){let t=e.trim();if(t===``)return;let n=/^"((?:[^"]|"")*)"$/u.exec(t);if(n)return(n[1]??``).replaceAll(`""`,`"`);let r=Number(t);if(!Number.isNaN(r))return r;let i=er(t,!0);return i.ok?b(i.node):void 0}var Yr=e=>e!==void 0&&a.includes(e);function Xr(e){let t=W(e,`type`)??`num`,n=W(e,`val`)??(e.f===void 0?void 0:U(e.f)),r=n===void 0?void 0:Jr(n);return{at:t,...r===void 0?{}:{value:r}}}var Zr=e,Qr=e=>{let t=e.formula??e.f;return(Array.isArray(t)?t:t===void 0?[]:[t]).map(U)};function $r(e,t,n,r){let i=W(e,`type`)??``,a={range:t,...K(e,`stopIfTrue`)===!0?{stop:!0}:{}},o={...n.bold===void 0?{}:{bold:n.bold},...n.italic===void 0?{}:{italic:n.italic},...n.underline===void 0?{}:{underline:n.underline!==!1},...n.strike===void 0?{}:{strike:n.strike},...n.color===void 0?{}:{color:n.color},...typeof n.fill==`string`?{fill:n.fill}:{},...n.border===void 0?{}:{border:n.border},...n.format===void 0?{}:{format:n.format}},s=Qr(e);switch(i){case`cellIs`:{let t=W(e,`operator`),n=s.flatMap(e=>{let t=Jr(e);return t===void 0?[]:[t]});return!Yr(t)||n.length===0?`a cellIs rule of ${t??`no operator`}`:{...a,...o,type:`cellIs`,operator:t,formula:n}}case`containsText`:case`notContainsText`:case`beginsWith`:case`endsWith`:{let t=W(e,`text`);return t===void 0?`a ${i} rule with no text`:{...a,...o,type:`containsText`,...i===`containsText`?{}:{operator:i===`notContainsText`?`notContains`:i},text:z(t)}}case`duplicateValues`:case`uniqueValues`:return{...a,...o,type:i};case`top10`:return{...a,...o,type:`top10`,rank:G(e,`rank`)??10,...K(e,`percent`)===!0?{percent:!0}:{},...K(e,`bottom`)===!0?{bottom:!0}:{}};case`aboveAverage`:return G(e,`stdDev`)===void 0?{...a,...o,type:`aboveAverage`,...K(e,`aboveAverage`)===!1?{below:!0}:{},...K(e,`equalAverage`)===!0?{equal:!0}:{}}:`an above or below average rule by standard deviations`;case`expression`:{let e=s[0]===void 0?void 0:er(s[0],!0);return e?.ok?{...a,...o,type:`expression`,formula:b(e.node)}:`an expression rule that cannot be read`}case`dataBar`:{let t=H(e.dataBar),n=Y(H(t?.color??t?.fillColor),r),[i,o]=V(t?.cfvo).map(Xr);return n===void 0?`a data bar with no colour`:{...a,type:`dataBar`,color:n,...i&&i.at!==`min`?{min:i}:{},...o&&o.at!==`max`?{max:o}:{},...K(t,`showValue`)===!1?{show:!1}:{}}}case`colorScale`:{let t=H(e.colorScale),n=V(t?.cfvo).map(Xr),i=V(t?.color).map(e=>Y(e,r)),o=n.flatMap((e,t)=>{let n=i[t];return n===void 0?[]:[{...e,color:n}]});return o.length<2?`a colour scale with too few stops`:{...a,type:`colorScale`,stops:o.slice(0,3)}}case`iconSet`:{let t=H(e.iconSet),n=W(t,`iconSet`)??`3TrafficLights1`;if(!Zr.includes(n))return`the icon set ${n}`;if(t?.cfIcon!==void 0)return`an icon set of icons chosen one by one`;let r=V(t?.cfvo).map(Xr);return{...a,type:`iconSet`,icons:n,...r.length>=3?{stops:r.slice(0,5)}:{},...K(t,`reverse`)===!0?{reverse:!0}:{},...K(t,`showValue`)===!1?{show:!1}:{}}}default:return`a ${i} rule`}}var ei={conditional:`{78C0D931-6437-407d-A8EE-F0AAD7539E65}`,validations:`{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}`},ti=(e,t)=>V(H(e.extLst)?.ext).find(e=>W(e,`uri`)?.toUpperCase()===t.toUpperCase());function ni(e,t,n){let r=[],i=[],a=new Set,o=(e,t,a)=>{let o=$r(e,t,a,n);typeof o==`string`?i.push(`${o} on ${t}`):r.push({priority:G(e,`priority`)??0,rule:o})};for(let n of V(e.conditionalFormatting)){let e=W(n,`sqref`)??``;if(!p(e))i.push(`a rule on ${e}`);else for(let r of V(n.cfRule)){let n=U(H(H(r.extLst)?.ext)?.id);n!==``&&a.add(n.toUpperCase());let i=G(r,`dxfId`);o(r,e,i===void 0?{}:t[i]??{})}}let s=H(ti(e,ei.conditional)?.conditionalFormattings);for(let e of V(s?.conditionalFormatting)){let t=U(e.sqref).trim();for(let r of V(e.cfRule)){if(a.has((W(r,`id`)??``).toUpperCase())){let e=ri(H(r.dataBar));e!==void 0&&i.push(`a data bar's ${e} on ${t}`);continue}if(!p(t)){i.push(`a rule on ${t}`);continue}let e=H(r.dxf);o(r,t,e?Hr(e,n):{})}}return{rules:r.sort((e,t)=>e.priority-t.priority).map(e=>e.rule),unread:i}}function ri(e){if(!e)return;let t=[];K(e,`gradient`)===!1&&t.push(`solid fill`),K(e,`border`)===!0&&t.push(`border`);let n=W(e,`axisPosition`);n!==void 0&&n!==`automatic`&&t.push(`axis ${n}`),K(e,`negativeBarColorSameAsPositive`)===!0&&t.push(`negative bars in its colour`);let r=W(H(e.negativeFillColor),`rgb`);return r!==void 0&&r.toUpperCase()!==`FFFF0000`&&t.push(`negative bars' colour`),W(e,`direction`)===`rightToLeft`&&t.push(`right to left`),t.length===0?void 0:t.join(`, `)}var ii=r;function ai(e,t,n,r){let i=W(e,`type`)??`none`;if(i===`none`&&W(e,`prompt`)===void 0)return;if(!ii.includes(i)||!p(t))return`a ${i} rule on ${t}`;let a=/^"((?:[^"]|"")*)"$/u.exec(n.trim()),o=i===`list`&&a?(a[1]??``).replaceAll(`""`,`"`).split(`,`):void 0,s=[n,r].flatMap(e=>{let t=Jr(e);return t===void 0?[]:[t]}),c=W(e,`operator`),l=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),u=l({title:W(e,`promptTitle`),message:W(e,`prompt`)}),d=l({style:W(e,`errorStyle`),title:W(e,`errorTitle`),message:W(e,`error`)}),f=K(e,`showInputMessage`)!==!0,m=K(e,`showErrorMessage`)!==!0;return{range:t,type:i,...Yr(c)&&c!==`between`?{operator:c}:{},...o?{values:o}:{formula:s},...K(e,`allowBlank`)===!0?{}:{blank:!1},...K(e,`showDropDown`)===!0?{dropdown:!1}:{},...f||Object.keys(u).length>0?{prompt:{...u,...f?{show:!1}:{}}}:{},...m||Object.keys(d).length>0?{error:{...d,...m?{show:!1}:{}}}:{}}}function oi(e){let t=[],n=[],r=e=>{typeof e==`string`?n.push(e):e&&t.push(e)};for(let t of V(H(e.dataValidations)?.dataValidation))r(ai(t,W(t,`sqref`)??``,U(t.formula1),U(t.formula2)));let i=H(ti(e,ei.validations)?.dataValidations);for(let e of V(i?.dataValidation))r(ai(e,U(e.sqref).trim(),U(H(e.formula1)?.f),U(H(e.formula2)?.f)));return{rules:t,unread:n}}function si(e){let t=/^(-?\d{4,})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(e)??/^()()()(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(e);if(!t)return;let n=t[1]===``,r=n?1899:Number(t[1]),i=n?12:Number(t[2]),a=n?30:Number(t[3]),o=Number(t[4]??0)*3600+Number(t[5]??0)*60+Number(t[6]??0)+Number(t[7]??0),s=new Date(Date.UTC(r,i-1,a)+o*1e3);if(Number.isNaN(s.getTime()))return;let c=C(s);return n?c-Math.floor(c):c}var ci;function li(e,t){let n=e.row-t.row,r=e.col-t.col;Object.defineProperty(e,"node",{get:()=>(ci?.cell!==e&&(ci={cell:e,node:g(t.node,n,r)}),ci.node),set:t=>{Object.defineProperty(e,"node",{value:t,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0}),e.key=t.key}function ui(e,t,n){let r=er(e,t,n);return r.ok?{node:r.node}:{unread:e}}function di(e){let t=m(e.ref??``),n=e=>{if(e===void 0||e===``)return``;let t=ee(e.replaceAll(`$`,``));return t?`$${v(t.col)}$${String(t.row+1)}`:void 0},r=n(e.r1),i=n(e.r2);if(!t||r===void 0||r===``||i===void 0)return;let a=e.dt2D===`1`||e.dt2D===`true`,o=e.dtr===`1`||e.dtr===`true`,s=a?`${r},${i}`:o?`${r},`:`,${r}`,c=h(`=TABLE(${s})`);return c.ok?{ref:t,node:c.node}:void 0}function fi(e){for(let{ref:t,node:n}of e.dataTables){let r=new Set;for(let i of e.cells)i.row<t.top||i.row>t.bottom||i.col<t.left||i.col>t.right||(i.node=n,Reflect.deleteProperty(i,`unread`),r.add(`${String(i.row)}:${String(i.col)}`));for(let i=t.top;i<=t.bottom;i++)for(let a=t.left;a<=t.right;a++)r.has(`${String(i)}:${String(a)}`)||e.cells.push({row:i,col:a,value:void 0,node:n,style:0})}}var pi=class{cells=[];rows=[];dataTables=[];outlined=!1;rest=[];xml;masters=new Map;above=new Map;left;strings;palette;name;isRangeName;inData=!1;row=-1;nextRow=0;nextCol=0;cell;target;buffer=``;skip=0;constructor(e,t,n,r){this.strings=e,this.palette=t,this.name=n,this.isRangeName=r,this.xml=new hr(this),this.xml.capture=this.rest}open(e,t){if(!this.inData){e===`sheetData`&&(this.inData=!0,this.xml.capture=void 0);return}let n=this.cell;if(n){if(this.skip>0){this.skip+=1;return}switch(e){case`v`:this.target=`v`,this.buffer=``;return;case`f`:n.f={...t,text:``},this.target=`f`,this.buffer=``;return;case`is`:n.inline={text:``,runs:new gr};return;case`t`:n.inline&&(this.target=`t`,this.buffer=``);return;case`rPh`:case`phoneticPr`:case`extLst`:this.skip=1;return;default:n.inline?.runs.open(e,t);return}}e===`row`?this.openRow(t):e===`c`&&(this.cell={r:t.r,s:t.s,t:t.t,cm:t.cm,v:void 0,f:void 0,inline:void 0})}close(e){if(!this.inData)return;let t=this.cell;t?this.skip>0?--this.skip:e===this.target?(e===`v`?t.v=this.buffer:e===`f`&&t.f?t.f.text=this.buffer:t.inline&&(t.inline.text+=this.buffer,t.inline.runs.text(this.buffer)),this.target=void 0):(t.inline?.runs.close(e),e===`c`&&(this.cell=void 0,this.readCell(t))):e===`sheetData`&&(this.inData=!1,this.xml.capture=this.rest)}text(e){this.target!==void 0&&this.skip===0&&(this.buffer+=e)}openRow(e){let t=e.r,n=t===void 0?void 0:Number(t);if(n!==void 0&&Number.isInteger(n)&&n>1048576)throw Error(`${this.name} has a row ${t??``}, and ${jr}.`);let r=n!==void 0&&Number.isInteger(n)&&n>0?n-1:this.nextRow;this.row=r,this.nextRow=r+1,this.nextCol=0;let i={row:r},a=e.ht===void 0?void 0:Number(e.ht),o=e=>e===`1`||e===`true`;a!==void 0&&Number.isFinite(a)&&o(e.customHeight)&&(i.height=Dr(a)),o(e.hidden)&&(i.hidden=!0);let s=e.s===void 0?void 0:Number(e.s);s!==void 0&&s!==0&&o(e.customFormat)&&(i.style=s);let c=Number(e.outlineLevel??0);c>0&&(i.level=Math.min(7,c),this.outlined=!0),Object.keys(i).length>1&&this.rows.push(i)}value(e,t){let n=e.t??`n`;if(n===`inlineStr`){let t=e.inline;if(!t)return{value:e.v===void 0?``:z(e.v)};let{runs:n}=t.runs;return{value:z(t.text),...n.length>0?{runs:yr(n,this.palette)}:{}}}let r=e.v;if(r===void 0)return{value:void 0};switch(n){case`s`:{let e=this.strings[Number(r)];return e?{value:e.text,...e.runs?{runs:e.runs}:{}}:{value:``}}case`str`:return{value:z(r)};case`b`:return{value:r.trim()===`1`||r.trim()===`true`};case`e`:return{value:w(r.trim())??te.VALUE};case`d`:return{value:si(r.trim())??r};default:{if(r.trim()===``)return{value:void 0};let e=Number(r);if(Number.isNaN(e))throw Error(`${t} says it holds a number and holds ${r}.`);return{value:e}}}}formula(e,t,n,r){let i=e.f;if(i===void 0)return;let a=i.t??`normal`,o=i.text;if(a===`dataTable`){let e=di(i);e?this.dataTables.push(e):r.unread=`a data table's {=TABLE(${i.r1??``})}`;return}if(a===`array`){Object.assign(r,ui(o,!0,this.isRangeName));let t=m(i.ref??``);t&&(r.array=t),e.cm!==void 0&&(r.dynamic=!0);return}if(a===`shared`){let e=i.si??``;if(o!==``){let i=ui(o,!1,this.isRangeName),a=i.node?ne(i.node,t,n):``;this.masters.set(e,{node:i.node,unread:i.unread,row:t,col:n,key:a}),Object.assign(r,i),i.node&&(r.key=a);return}let a=this.masters.get(e);if(!a){r.unread=`a shared formula of a group that has no first cell (${e})`;return}a.node?li(r,{node:a.node,row:a.row,col:a.col,key:a.key}):a.unread!==void 0&&(r.unread=a.unread);return}if(o===``)return;let s=ui(o,!1,this.isRangeName);if(!s.node){Object.assign(r,s);return}let c=ne(s.node,t,n),l=this.left?.row===t?this.left:void 0,u=[this.above.get(n),l].find(e=>e?.key===c);u?li(r,u):(r.node=s.node,r.key=c);let d=u??{node:s.node,row:t,col:n,key:c};this.above.set(n,d),this.left=d}readCell(e){let t=e.r===void 0?void 0:Mr(e.r,this.name),n=t?.row??this.row,r=t?.col??this.nextCol;if(r>=16384)throw Error(`${this.name} has a cell past its last column, and ${jr}.`);this.nextCol=r+1;let i=e.r??x({row:n,col:r}),{value:a,runs:o}=this.value(e,i),s={row:n,col:r,value:a,style:e.s===void 0?0:Number(e.s)||0};o&&(s.runs=o),this.formula(e,n,r,s),this.cells.push(s)}};function mi(e,t){let n=[],r=t=>n.push(`${e}: ${t}`),i=V(H(t.hyperlinks)?.hyperlink).filter(e=>W(e,`tooltip`)!==void 0);i.length>0&&r(`the tooltips of ${Ar(i.length,`link`)} (${kr(i.map(e=>W(e,`ref`)??``))})`),t.sortState!==void 0&&r(`a sort`);let a=H(t.sheetProtection);K(a,`sheet`)===!0&&(W(a,`password`)!==void 0||W(a,`hashValue`)!==void 0)&&r(`its protection's password: it is protected with none`),t.protectedRanges!==void 0&&r(`protected ranges`);let o=H(t.headerFooter);(o?.evenHeader!==void 0||o?.evenFooter!==void 0||o?.firstHeader!==void 0||o?.firstFooter!==void 0)&&r(`its print header and footer of the first or even pages`);let s=H(t.printOptions);s&&[`gridLines`,`headings`,`horizontalCentered`,`verticalCentered`].some(e=>K(s,e)===!0)&&r(`its print options (gridlines, headings, centring)`),t.oleObjects!==void 0&&r(`embedded objects`),t.controls!==void 0&&r(`form controls`),t.dataConsolidate!==void 0&&r(`a consolidation`),t.customSheetViews!==void 0&&r(`custom views`),V(H(t.sheetViews)?.sheetView).some(e=>W(H(e.pane),`state`)===`split`)&&r(`a split, not frozen, window`);let c=JSON.stringify(t.extLst??``);return c.includes(`sparklineGroups`)&&r(`sparklines`),c.includes(`slicerList`)&&r(`slicers`),n}function hi(e,t){let n=[],r=(t,r,i)=>{let a=e.count(t);a>0&&n.push(Ar(a,r,i))};e.has(`xl/vbaProject.bin`)&&n.push(`VBA macros`),r(/^xl\/pivotTables\/pivotTable\d*\.xml$/u,`pivot table`),r(/^xl\/chartsheets\/[^/]+\.xml$/u,`chart sheet`),r(/^xl\/dialogsheets\/[^/]+\.xml$/u,`dialog sheet`),r(/^xl\/macrosheets\/[^/]+\.xml$/u,`macro sheet`);let i=e.names.filter(e=>e.startsWith(`xl/media/`)&&!t.has(e)).length;return i>0&&n.push(Ar(i,`image`)),r(/^xl\/embeddings\//u,`embedded object`),r(/^xl\/slicers\/[^/]+\.xml$/u,`slicer part`),r(/^xl\/timelines\/[^/]+\.xml$/u,`timeline part`),r(/^xl\/ctrlProps\/[^/]+\.xml$/u,`form control`),r(/^xl\/activeX\/[^/]+\.xml$/u,`ActiveX control`),r(/^xl\/queryTables\/[^/]+\.xml$/u,`query table`),e.has(`xl/connections.xml`)&&n.push(`data connections`),e.names.some(e=>e.startsWith(`xl/richData/`))&&n.push(`rich values (data types, pictures in cells)`),e.names.some(t=>/^customXml\/item\d+\.xml$/u.test(t)&&(e.text(t)??``).includes(`DataMashup`))&&n.push(`Power Query queries`),n}function gi(e){let t={left:``,center:``,right:``},n=`center`,r=new Set;for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];a===`&`&&(o===`L`||o===`C`||o===`R`)?(n=o===`L`?`left`:o===`C`?`center`:`right`,r=new Set([...r,n]),i+=1):a===`&`&&o===`&`?(t[n]+=`&&`,i+=1):t[n]+=a??``}return Object.fromEntries(Object.entries(t).filter(([e,t])=>t!==``||r.has(e)))}var _i=new Map(Object.entries(t).map(([e,t])=>[t,e]));function vi(e,t,n){let r={},a=H(e.pageSetup),o=W(a,`orientation`);(o===`portrait`||o===`landscape`)&&(r.orientation=o);let s=G(a,`paperSize`);if(s!==void 0){let e=_i.get(s);e?r.paper=e:n.push(`${t}: its paper size, Excel's number ${String(s)}`)}K(H(H(e.sheetPr)?.pageSetUpPr),`fitToPage`)===!0&&(r.fit={width:G(a,`fitToWidth`)??1,height:G(a,`fitToHeight`)??1});let c=G(a,`scale`);c!==void 0&&c!==100&&c>=10&&c<=400&&(r.scale=Math.round(c));let l=t=>V(H(e[t])?.brk).filter(e=>K(e,`man`)===!0).map(e=>G(e,`id`)).filter(e=>e!==void 0&&e>0).sort((e,t)=>e-t),u=l(`rowBreaks`).map(e=>e+1),d=l(`colBreaks`).map(e=>v(e));(u.length>0||d.length>0)&&(r.breaks={...u.length>0?{rows:u}:{},...d.length>0?{cols:d}:{}});let f=H(e.pageMargins),p={};for(let e of Object.keys(i)){let t=G(f,e);t!==void 0&&t!==i[e]&&(p[e]=t)}Object.keys(p).length>0&&(r.margins=p);let m=H(e.headerFooter),h=U(m?.oddHeader),g=U(m?.oddFooter);return h!==``&&(r.header=gi(z(h))),g!==``&&(r.footer=gi(z(g))),r}function yi(e,t,n,r,i){let a=e.rels(t),o=new Map;for(let t of a.filter(e=>e.type===`comments`)){let n=H(e.xml(t.target)?.comments),r=H(n?.authors)?.author,i=(Array.isArray(r)?r:r===void 0?[]:[r]).map(e=>z(U(e)));for(let e of V(H(n?.commentList)?.comment)){let t=W(e,`ref`)??``,n=H(e.text),r=V(n?.r),a=z(r.length>0?r.map(e=>U(e.t)).join(``):U(n?.t)),s=i[G(e,`authorId`)??-1];t!==``&&a!==``&&o.set(t,{ref:t,text:a,...s===void 0||s===``?{}:{author:s}})}}let s=0;for(let t of a.filter(e=>e.type===`threadedComment`)){let n=H(e.xml(t.target)?.ThreadedComments),i=new Map;for(let e of V(n?.threadedComment)){let t=W(e,`ref`)??``,n=z(U(e.text)),a=i.get(t)??{texts:[]};if(a.texts.length===0){let t=r.get(W(e,`personId`)??``);t!==void 0&&(a.author=t)}a.texts.push(n),i.set(t,a)}for(let[e,t]of i)s+=1,o.set(e,{ref:e,text:t.texts.join(`
45
- `),...t.author===void 0?{}:{author:t.author}})}return s>0&&i.push(`${n}: ${Ar(s,`threaded comment`)}, kept as notes, replies after the first line`),[...o.values()]}function bi(e,t,n,r,i,a,o,s,c,l,u,d){let f=new pi(i,a,n,c);if(!e.stream(t,f.xml))throw Error(`${t} is not in the file.`);fi(f);let p=H(Cn(f.rest.join(``)).worksheet);if(!p)throw Error(`${t} is not a worksheet.`);let h=V(H(p.cols)?.col).map(e=>{let t=G(e,`width`),r=G(e,`style`),i=G(e,`outlineLevel`)??0,a=(G(e,`min`)??1)-1,o=(G(e,`max`)??1)-1;if(o>=16384)throw Error(`${n} sets a column past its last, and ${jr}.`);let s=K(e,`customWidth`),c=t===void 0?void 0:Er(t);return{min:a,max:o,...c!==void 0&&(s===!0||s===void 0&&c!==Si)?{width:c}:{},...K(e,`hidden`)===!0?{hidden:!0}:{},...r===void 0||r===0?{}:{style:r},...i>0?{level:Math.min(7,i)}:{}}}),g=V(H(p.mergeCells)?.mergeCell).flatMap(e=>{let t=m(W(e,`ref`)??``);return t?[t]:[]}),_=V(H(p.sheetViews)?.sheetView)[0],v=H(_?.pane),y,b=W(v,`state`);if(b===`frozen`||b===`frozenSplit`){let e=ee(W(_,`topLeftCell`)??`A1`)??{row:0,col:0};y={row:e.row+(G(v,`ySplit`)??0),col:e.col+(G(v,`xSplit`)??0)}}let x=e.rels(t),S=x.filter(e=>e.type===`table`).flatMap(t=>{let n=qr(e.xml(t.target),o);return n?[n]:[]}),te=Y(H(H(p.sheetPr)?.tabColor),a),C=mi(n,p),w=ni(p,o,a),ne=oi(p);for(let e of w.unread)C.push(`${n}: a conditional format, ${e}`);for(let e of ne.unread)C.push(`${n}: a data validation, ${e}`);let T=H(p.autoFilter),E=m(W(T,`ref`)??``),D=T&&E?{ref:E,...Kr(T,o)}:void 0;D&&D.unread>0&&C.push(`${n}: ${Ar(D.unread,`filter`)} by condition on ${W(T,`ref`)??``}, its rows left as they were hidden`);let{charts:O,pictures:re}=wi(e,t,n,h,f.rows,C,l,u,d),k={},ie=new Map(x.map(e=>[e.id,e]));for(let e of V(H(p.hyperlinks)?.hyperlink)){let t=W(e,`ref`);if(t===void 0)continue;let n=W(e,`location`),r=W(e,`id`),i=r===void 0?void 0:ie.get(r)?.target;i===void 0?n!==void 0&&(k[t]=`#${n}`):k[t]=n===void 0?i:`${i}#${n}`}let ae=H(p.sheetProtection),A=vi(p,n,C);return{sheet:{name:n,state:r,cells:f.cells,merges:g,...y?{freeze:y}:{},...W(_,`showGridLines`)===`0`?{gridlines:!1}:{},...te===void 0?{}:{tab:te},columns:h,rows:f.rows,tables:S,conditional:w.rules,validations:ne.rules,scenarios:V(H(p.scenarios)?.scenario).map(e=>({name:W(e,`name`)??``,cells:V(e.inputCells).map(e=>({at:W(e,`r`)??``,value:W(e,`val`)??``}))})),...D?{filter:D}:{},charts:O,links:k,notes:yi(e,t,n,s,C),pictures:re,...K(ae,`sheet`)===!0?{protect:!0}:{},...Object.keys(A).length>0?{print:A}:{},...xi(H(H(p.sheetPr)?.outlinePr))},lost:C}}function xi(e){let t=K(e,`summaryBelow`)===!1,n=K(e,`summaryRight`)===!1;return t||n?{outline:{...t?{summary_below:!1}:{},...n?{summary_right:!1}:{}}}:{}}var Si=64,Ci=20;function wi(e,t,n,r,i,a,o,s,c){let l=e=>r.find(t=>e>=t.min&&e<=t.max)?.width??Si,u=new Map(i.map(e=>[e.row,e.height])),d=e=>u.get(e)??Ci,f=[],p=[];for(let r of e.rels(t).filter(e=>e.type===`drawing`)){let t=Wn(e.xml(r.target),l,d),i=e.rels(r.target);for(let r of t.anchors){let t=i.find(e=>e.id===r.id),o=x(r.at);if(r.width<=0||r.height<=0){a.push(`${n}: the chart at ${o}, of no size`);continue}let l=[],u=Hn(t?e.xml(t.target):void 0,l,s,c);if(typeof u==`string`)a.push(`${n}: the chart at ${o}, as ${u}`);else{for(let e of l)a.push(`${n}: the chart at ${o} without its ${e}`);f.push({...u,at:o,...r.x===void 0?{}:{x:r.x},...r.y===void 0?{}:{y:r.y},...r.width===_.width?{}:{width:r.width},...r.height===_.height?{}:{height:r.height}})}}for(let r of t.pictures){let t=i.find(e=>e.id===r.id),s=t&&!t.external?e.bytes(t.target):void 0;if(!t||!s){a.push(`${n}: the picture at ${x(r.at)}, whose image is not in the file`);continue}o.add(t.target);let c=t.target.slice(t.target.lastIndexOf(`.`)+1).toLowerCase();p.push({row:r.at.row,col:r.at.col,...r.x===void 0?{}:{x:r.x},...r.y===void 0?{}:{y:r.y},width:r.width,height:r.height,...r.name===void 0?{}:{name:r.name},...r.descr===void 0?{}:{descr:r.descr},bytes:s,type:c})}t.others>0&&a.push(`${n}: ${Ar(t.others,`shape`)} of its drawing`)}return{charts:f,pictures:p}}function Ti(e,t,n){for(let r of e){if(r.sheet===void 0)continue;let e=t[r.sheet];if(!e)continue;let i=r.text.split(`,`).map(e=>e.slice(e.lastIndexOf(`!`)+1).replaceAll(`$`,``));if(r.name===`_xlnm.Print_Area`){let[t]=i;i.length>1&&n.push(`${e.name}: its print area's ranges after the first`),t!==void 0&&m(t)&&(e.print={...e.print,area:t})}else if(r.name===`_xlnm.Print_Titles`)for(let t of i)/^\d+:\d+$/u.test(t)?e.print={...e.print,title_rows:t}:/^[A-Za-z]+:[A-Za-z]+$/u.test(t)&&(e.print={...e.print,title_cols:t})}}function Ei(e,t){let n;try{n=new Nr(e,t)}catch(e){throw e instanceof s?e:Error(`It is not a zip file, as an .xlsx file is.`)}let r=n.rels(``),i=r.find(e=>e.type===`officeDocument`)?.target??`xl/workbook.xml`;if(i.endsWith(`.bin`))throw Error(`It is a binary workbook (.xlsb): save it as .xlsx.`);let a=H(n.xml(i)?.workbook);if(!a)throw Error(`It has no workbook part.`);let o=n.rels(i),c=e=>o.find(t=>t.type===e)?.target,l=(()=>{let e=c(`theme`);return e===void 0?void 0:n.text(e)})(),u=l===void 0?rr:ir(l),d=c(`styles`),f=d===void 0?void 0:n.xml(d),p=Ur(f,u),m=cr(u,H(f?.styleSheet)),h=Fr(n,c(`sharedStrings`),m),g=[];for(let e of p.lost)g.push(e);let _=H(a.workbookPr),v=wr(H(a.calcPr));W(H(a.calcPr),`calcMode`)===`manual`&&g.push(`manual calculation: it computes as its cells change`);let ee=H(a.workbookProtection);(K(ee,`lockStructure`)===!0||K(ee,`lockWindows`)===!0)&&g.push(`the workbook's protection`),a.fileSharing!==void 0&&g.push(`its write protection`);let y=new Map,b=c(`person`);if(b!==void 0)for(let e of V(H(n.xml(b)?.personList)?.person))y.set(W(e,`id`)??``,z(W(e,`displayName`)??``));let x=V(H(a.definedNames)?.definedName).map(e=>{let t=G(e,`localSheetId`);return{name:W(e,`name`)??``,text:z(U(e)),...t===void 0?{}:{sheet:t},...K(e,`hidden`)===!0?{hidden:!0}:{}}}),S=[],te=new Set,C=new Map(o.map(e=>[e.id,e])),w=V(H(a.sheets)?.sheet),ne=new Set(w.filter(e=>C.get(W(e,`id`)??``)?.type===`worksheet`).map(e=>z(W(e,`name`)??``).toLowerCase()));for(let[e,t]of w.entries()){let r=C.get(W(t,`id`)??``),i=z(W(t,`name`)??``);if(r?.type!==`worksheet`){r?.type!==`chartsheet`&&r?.type!==`dialogsheet`&&g.push(`${i}: a sheet of a kind this cannot read`);continue}let a=new Map;for(let t of x)t.sheet!==void 0&&t.sheet!==e||t.sheet===void 0&&a.has(t.name.toLowerCase())||a.set(t.name.toLowerCase(),tr(t.text));let o=W(t,`state`),s=bi(n,r.target,i,o===`hidden`||o===`veryHidden`?o:`visible`,h,m,p.dxfs,y,e=>a.get(e.toLowerCase())===!0,te,e=>ne.has(e.toLowerCase()),e=>a.has(e.toLowerCase()));S[e]=s.sheet,g.push(...s.lost)}Ti(x,S,g);let T=r.find(e=>e.type===`core-properties`)?.target,E=T===void 0?void 0:U(H(n.xml(T)?.coreProperties)?.title).trim(),D=S.filter(e=>e!==void 0),O=new Map;return S.forEach((e,t)=>{e!==void 0&&O.set(t,D.indexOf(e))}),{sheets:D,names:x.flatMap(e=>{if(e.sheet===void 0)return[e];let t=O.get(e.sheet);return t===void 0?[]:[{...e,sheet:t}]}),looks:p.looks,dxfs:p.dxfs,date1904:K(_,`date1904`)===!0,font:p.font,...E===void 0||E===``?{}:{title:E},...v===void 0?{}:{iteration:v},lost:[...hi(n,te),...g]}}var Q=(e,t)=>`<a:${e}>${t}</a:${e}>`,$=e=>B(`a:srgbClr`,{val:e}),Di=[Q(`dk1`,B(`a:sysClr`,{val:`windowText`,lastClr:`000000`})),Q(`lt1`,B(`a:sysClr`,{val:`window`,lastClr:`FFFFFF`})),Q(`dk2`,$(`44546A`)),Q(`lt2`,$(`E7E6E6`)),Q(`accent1`,$(`4472C4`)),Q(`accent2`,$(`ED7D31`)),Q(`accent3`,$(`A5A5A5`)),Q(`accent4`,$(`FFC000`)),Q(`accent5`,$(`5B9BD5`)),Q(`accent6`,$(`70AD47`)),Q(`hlink`,$(`0563C1`)),Q(`folHlink`,$(`954F72`))].join(``),Oi=(e,t)=>`<a:${e}>${B(`a:latin`,{typeface:t})}${B(`a:ea`,{typeface:``})}${B(`a:cs`,{typeface:``})}</a:${e}>`,ki=B(`a:solidFill`,{},B(`a:schemeClr`,{val:`phClr`})),Ai=B(`a:ln`,{w:6350,cap:`flat`,cmpd:`sng`,algn:`ctr`},ki,B(`a:prstDash`,{val:`solid`})),ji=B(`a:effectStyle`,{},B(`a:effectLst`));B(`a:theme`,{"xmlns:a":bn.drawing,name:`Office Theme`},B(`a:themeElements`,{},`<a:clrScheme name="Office">${Di}</a:clrScheme>`,`<a:fontScheme name="Office">${Oi(`majorFont`,`Calibri Light`)}${Oi(`minorFont`,`Calibri`)}</a:fontScheme>`,B(`a:fmtScheme`,{name:`Office`},B(`a:fillStyleLst`,{},ki,ki,ki),B(`a:lnStyleLst`,{},Ai,Ai,Ai),B(`a:effectStyleLst`,{},ji,ji,ji),B(`a:bgFillStyleLst`,{},ki,ki,ki)))),`${bn.rel}`,B(`metadata`,{xmlns:bn.main,"xmlns:xda":`http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray`},B(`metadataTypes`,{count:1},B(`metadataType`,{name:`XLDAPR`,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1})),B(`futureMetadata`,{name:`XLDAPR`,count:1},B(`bk`,{},B(`extLst`,{},B(`ext`,{uri:`{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}`},B(`xda:dynamicArrayProperties`,{fDynamic:1,fCollapsed:0}))))),B(`cellMetadata`,{count:1},B(`bk`,{},B(`rc`,{t:1,v:0})))),RegExp(`^${`AllyHub lists`.replace(/[.*+?^${}()|[\]\\]/gu,`\\$&`)}(?: \\(\\d+\\))?$`,`u`);var Mi=1462,Ni=/^#[0-9a-fA-F]{6}$/u,Pi=e=>typeof e==`string`&&Ni.test(e)?e:void 0;function Fi(e,t){let n=new Map,r=t.merges.filter(e=>e.bottom>e.top||e.right>e.left),i=new Set(r.map(e=>d(e.top,e.left))),a=[],o=0,s=0;for(let r of t.cells){let t=e.looks[r.style]??{},c=r.value??null,l=e.date1904&&typeof c==`number`&&S(t.format)?c+Mi:c,u=T(l,t.format),p=Pi(t.fill);if(u===``&&p===void 0)continue;let m=Pi(t.color),h=t.align===`left`||t.align===`right`||t.align===`center`?t.align:t.align===`centerContinuous`?`center`:typeof c==`number`?`right`:typeof c==`string`||c===null?void 0:`center`;n.set(d(r.row,r.col),{text:u,...h===void 0?{}:{align:h},...t.bold===!0?{bold:!0}:{},...t.italic===!0?{italic:!0}:{},...t.underline===void 0||t.underline===!1?{}:{underline:!0},...t.strike===!0?{strike:!0}:{},...m===void 0?{}:{color:m},...p===void 0?{}:{fill:p}}),o=Math.max(o,r.row+1),s=Math.max(s,r.col+1),r.row<200&&!i.has(d(r.row,r.col))&&(a[r.col]=Math.max(a[r.col]??0,f(u)))}for(let e of r)n.has(d(e.top,e.left))&&(o=Math.max(o,e.bottom+1),s=Math.max(s,e.right+1));let c=Array.from({length:s},(e,t)=>Math.max(64,u(a[t]??0)));for(let e of t.columns)if(e.width!==void 0)for(let t=e.min;t<=Math.min(e.max,s-1);t++)c[t]=Math.max(1,Math.round(e.width));return{name:t.name,rows:o,columns:s,widths:c,cells:n,merges:r}}function Ii(e){let t=e.sheets.filter(e=>e.state===`visible`);return{sheets:(t.length>0?t:e.sheets).map(t=>Fi(e,t))}}function Li(e){return Ii(Ei(e))}export{Li as tableOfWorkbook};