@hiai-gg/docsmint 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/backend/index.js +49330 -66661
- package/dist/backend-account-runtime-cleanup.js +291 -291
- package/dist/backend-api-key-facade.js +4 -4
- package/dist/backend-pipeline-cancellation.js +285 -285
- package/dist/frontend/CategoryDialog-CVJi5PJu.js +602 -0
- package/dist/frontend/{ConfirmDialog-B1MjKlVQ.js → ConfirmDialog-0JwB8mKN.js} +5 -8
- package/dist/frontend/{CreateSnapshotDialog-BTMoPFdj.js → CreateSnapshotDialog-BLrtuYs5.js} +63 -68
- package/dist/frontend/{DatePicker-Bmjko3X7.js → DatePicker-BwSb8TRv.js} +17 -29
- package/dist/frontend/{DeleteDialog-BkfIeKXO.js → DeleteDialog-s7Dr6bXg.js} +51 -56
- package/dist/frontend/{FolderNode-Do8pIfyA.js → FolderNode-Y7cV9xeX.js} +105 -106
- package/dist/frontend/{FolderTreeSelector-FyxhcHjr.js → FolderTreeSelector-BR3lYmPU.js} +18 -20
- package/dist/frontend/HiAiEditor-BQERr-cd.js +3077 -0
- package/dist/frontend/{HiaiDocsExtensionProvider-Cc3yzW5I.js → HiaiDocsExtensionProvider-A2nGddUR.js} +2 -3
- package/dist/frontend/{Icon-3EYzvNyk.js → Icon-CiHcxcpv.js} +1 -2
- package/dist/frontend/SettingsDialog-BvS74JZu.js +978 -0
- package/dist/frontend/{ShareDialog-Ddvl7xvb.js → ShareDialog-Bo50h_Oe.js} +23 -25
- package/dist/frontend/Sidebar-i0kbanpg.js +2123 -0
- package/dist/frontend/{TagCreateDialog-DQmMJe_E.js → TagCreateDialog-DhKfsfv3.js} +78 -86
- package/dist/frontend/action_cancel-BdsWzQKU.js +4 -0
- package/dist/frontend/action_close-CVhfLPRQ.js +4 -0
- package/dist/frontend/action_create-ByaroO1_.js +4 -0
- package/dist/frontend/action_delete-SRloglWY.js +4 -0
- package/dist/frontend/action_go_to-DO1bicF-.js +4 -0
- package/dist/frontend/action_loading-iQ0KsN6i.js +4 -0
- package/dist/frontend/action_save-DeqrZQwV.js +4 -0
- package/dist/frontend/api/attachments.js +1 -2
- package/dist/frontend/api/categories.js +1 -2
- package/dist/frontend/api/documents.js +1 -2
- package/dist/frontend/api/folders.js +1 -2
- package/dist/frontend/api/settings.js +1 -2
- package/dist/frontend/api/share.js +1 -2
- package/dist/frontend/api/tags.js +1 -2
- package/dist/frontend/{api-keys-DIwAdYkg.js → api-keys-B63imiLr.js} +2 -3
- package/dist/frontend/app-shell.js +55 -79
- package/dist/frontend/{attachments-C225gTA7.js → attachments-Bfly-sam.js} +2 -3
- package/dist/frontend/{auth-client-C5EyWdAF.js → auth-client-Dx7d9Tzo.js} +252 -253
- package/dist/frontend/{bundle-mjs-CZ3g1Uzr.js → bundle-mjs-clTO1WW-.js} +5 -23
- package/dist/frontend/{camera-DtgHzfVI.js → camera-DsdOPOcD.js} +2 -3
- package/dist/frontend/{categories-C8AAkhCR.js → categories-CusvHb5Y.js} +3 -4
- package/dist/frontend/{categories_update_error-4aSI8PTr.js → categories_update_error-Cn8DBBHv.js} +2 -3
- package/dist/frontend/{check-DVx65aSv.js → check-DiMZRkKS.js} +2 -3
- package/dist/frontend/{chevron-down-C2tbZ8Ol.js → chevron-down-CxFrMFDJ.js} +2 -3
- package/dist/frontend/{circle-check-BAN-D7yg.js → circle-check-B4F_qgPx.js} +2 -3
- package/dist/frontend/{client-GbtOH90i.js → client-BDdDd84W.js} +1 -2
- package/dist/frontend/{clipboard-Cgzxc0_R.js → clipboard-Dt1oW6nm.js} +1 -2
- package/dist/frontend/{clock-ByiB0SwQ.js → clock-dcpueRk-.js} +2 -3
- package/dist/frontend/collaboration.js +6 -12
- package/dist/frontend/components/category-dialog.js +1 -2
- package/dist/frontend/components/create-snapshot-dialog.js +1 -2
- package/dist/frontend/components/delete-dialog.js +1 -2
- package/dist/frontend/components/editor/compact-editor.js +2 -3
- package/dist/frontend/components/editor/document-editor.js +1 -2
- package/dist/frontend/components/editor/document-title.js +3 -4
- package/dist/frontend/components/editor/docx-serializer.js +123 -167
- package/dist/frontend/components/editor/extensions.js +1 -2
- package/dist/frontend/components/editor/markdown-toggle.js +5 -6
- package/dist/frontend/components/editor/markdown.js +1 -2
- package/dist/frontend/components/folder-node.js +1 -2
- package/dist/frontend/components/folder-tree-selector.js +1 -2
- package/dist/frontend/components/save-as-dialog.js +86 -90
- package/dist/frontend/components/settings.js +1 -2
- package/dist/frontend/components/share-dialog.js +1 -2
- package/dist/frontend/components/sidebar.js +1 -2
- package/dist/frontend/components/tag-create-dialog.js +1 -2
- package/dist/frontend/components/version-history.js +177 -180
- package/dist/frontend/{context-D0zPFXZ4.js → context-BguSRnCt.js} +1 -2
- package/dist/frontend/{copy-CRzvfZGb.js → copy-Bag46YaR.js} +2 -3
- package/dist/frontend/dashboard.js +666 -690
- package/dist/frontend/{db-CgTtukT4.js → db-B1ZV452J.js} +22 -39
- package/dist/frontend/{dialog-a_ZcpEC5.js → dialog-C0Bpok1d.js} +10 -18
- package/dist/frontend/{dist-CcHOStsA.js → dist-BlcV_BOY.js} +2 -3
- package/dist/frontend/{dist-qd_OnyUC.js → dist-DjId3RKL.js} +8 -21
- package/dist/frontend/dist-Dl9qg10h.js +301 -0
- package/dist/frontend/{dndzone-CDhrbpTg.js → dndzone-C62yjeG3.js} +38 -53
- package/dist/frontend/doc-tabs.js +1 -2
- package/dist/frontend/doc_title_label-BOuZzvqv.js +4 -0
- package/dist/frontend/doc_title_placeholder-ZxpdWWEn.js +4 -0
- package/dist/frontend/{document-drop-coordinator-Da7HcXgv.js → document-drop-coordinator-C_o93kKW.js} +3 -4
- package/dist/frontend/document-drop-coordinator.js +1 -2
- package/dist/frontend/{documents-CwCs1rA7.js → documents-CDJb8dv-.js} +4 -8
- package/dist/frontend/{dropdown-menu-DrHYReIC.js → dropdown-menu-B3nk2aM-.js} +13 -24
- package/dist/frontend/{editor-content-sanitizer-CWjqiz0T.js → editor-content-sanitizer-5MjSVPVn.js} +1 -2
- package/dist/frontend/editor-preferences.js +1 -2
- package/dist/frontend/{editor-preferences.svelte-Bt_A9k7n.js → editor-preferences.svelte-BpTE4mbz.js} +3 -5
- package/dist/frontend/{editorExtensions-DPR-CjMu.js → editorExtensions-DbiFj4tn.js} +3 -4
- package/dist/frontend/{editor_markdown_placeholder-BIWDUF1E.js → editor_markdown_placeholder-BztIY9Ci.js} +2 -3
- package/dist/frontend/{ellipsis-vertical-qxNgoXu-.js → ellipsis-vertical-Oymsv1R4.js} +2 -3
- package/dist/frontend/{error_dismiss-Dx_JbRjs.js → error_dismiss-C651ZdWI.js} +2 -3
- package/dist/frontend/error_generic-BlWqOE-a.js +4 -0
- package/dist/frontend/extension.js +1 -2
- package/dist/frontend/{folder-D74E-Kdp.js → folder-BpmB_sAy.js} +3 -5
- package/dist/frontend/folder-refresh.js +1 -2
- package/dist/frontend/{folders-CC0UWkZH.js → folders-DgKSovXa.js} +2 -3
- package/dist/frontend/{folders_rename-BJo4Gipq.js → folders_rename-Cxbg5GIw.js} +2 -3
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +144 -145
- package/dist/frontend/{identity-CNhtuCJV.js → identity-B7HeOzDJ.js} +4 -5
- package/dist/frontend/{input-Q_7qCfnU.js → input-CbeB9220.js} +2 -3
- package/dist/frontend/keyboard.js +1 -2
- package/dist/frontend/{keyboard.svelte-CApmX0vl.js → keyboard.svelte-BBUdhTsM.js} +2 -3
- package/dist/frontend/{label-Dj8FDEhf.js → label-CfBWf3gI.js} +2 -3
- package/dist/frontend/{lib-aUbBbIW2.js → lib-CITdCbKa.js} +176 -365
- package/dist/frontend/{loader-circle-D3t5NkvC.js → loader-circle-skKwfRCB.js} +2 -3
- package/dist/frontend/markdown-6E9TWC6V.js +11 -0
- package/dist/frontend/offline/identity.js +1 -2
- package/dist/frontend/{popper-layer-force-mount-CNtiLgbV.js → popper-layer-force-mount-BG0eyrCk.js} +112 -284
- package/dist/frontend/{resolve-BG4HgzpN.js → resolve-DbT-KhGZ.js} +2 -3
- package/dist/frontend/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-CwxnZyOB.js} +2 -3
- package/dist/frontend/{rotate-ccw-B1ybQ8oQ.js → rotate-ccw-DAUX7np7.js} +2 -3
- package/dist/frontend/{route-context-DYQlUfzL.js → route-context-6OHiGtfb.js} +2 -4
- package/dist/frontend/{runtime-CwWSo6c9.js → runtime-CGUiMzK6.js} +1 -2
- package/dist/frontend/{schemas-1Na35n71.js → schemas-YXxhj5o8.js} +850 -880
- package/dist/frontend/scroll_to_top_aria-lJc2RSx_.js +4 -0
- package/dist/frontend/{search-preferences-B1GdbdUc.js → search-preferences-DuLDczRu.js} +1 -2
- package/dist/frontend/search.js +277 -292
- package/dist/frontend/{search_title-DOC0cPlQ.js → search_title-BETwQYJq.js} +2 -3
- package/dist/frontend/{select-value-BkI1W1bn.js → select-value-BY5Hw6Rl.js} +28 -65
- package/dist/frontend/{settings-CHx4wBwb.js → settings-DyePuqjp.js} +3 -4
- package/dist/frontend/{share-D5yo0JOh.js → share-3gWTTYvH.js} +2 -3
- package/dist/frontend/{share-context-BJ4GF4yT.js → share-context-C2xyVP9M.js} +29 -37
- package/dist/frontend/{share_copied-DPxVzfWh.js → share_copied-BuAnmpbz.js} +2 -3
- package/dist/frontend/{share_toggle_password-DdxfIjj1.js → share_toggle_password-LEYUeHWr.js} +2 -3
- package/dist/frontend/shared-document.js +27 -36
- package/dist/frontend/{sidebar_uncategorized-qJ2_Aonf.js → sidebar_uncategorized-C5PGOflV.js} +2 -3
- package/dist/frontend/{sort_relevance-DwYX5MO9.js → sort_relevance-DpCVLby_.js} +2 -3
- package/dist/frontend/{subfolders-refresh-store.svelte-DxP21a1c.js → subfolders-refresh-store.svelte-CeyqvNpu.js} +1 -2
- package/dist/frontend/{tag-qbTBLj-g.js → tag-Wdfe0rKU.js} +3 -5
- package/dist/frontend/{tag-store.svelte-ogVCMCbv.js → tag-store.svelte-C9VYWqLQ.js} +2 -3
- package/dist/frontend/{tags-CF_cqzSV.js → tags-DlDVothf.js} +3 -4
- package/dist/frontend/{tags_load_error-BKjA1pI0.js → tags_load_error-BINNpPPV.js} +2 -3
- package/dist/frontend/{tags_new-BiNAJ9Bx.js → tags_new-Dw0Uy43-.js} +2 -3
- package/dist/frontend/{textarea-BNK0LFUK.js → textarea-D6emvAwM.js} +2 -3
- package/dist/frontend/theme.js +2 -3
- package/dist/frontend/{theme.svelte-BRdxXd-B.js → theme.svelte-BiXvrqwh.js} +7 -23
- package/dist/frontend/{theme_system-BBNUhYKh.js → theme_system-YIfa_2Xt.js} +2 -3
- package/dist/frontend/utils/clipboard.js +1 -2
- package/dist/frontend/utils/dndzone.js +1 -2
- package/dist/frontend/{utils-BovMJHdA.js → utils-CnAmIMwr.js} +2 -3
- package/dist/frontend/utils-DH0uqK40.js +6 -0
- package/dist/frontend/utils.js +1 -2
- package/dist/frontend/version_create_snapshot-D8xjbuCq.js +4 -0
- package/dist/frontend/{version_restored_from-dVRN3Zdk.js → version_restored_from-DYFFSuQj.js} +2 -3
- package/dist/frontend/{version_snapshot_label_placeholder-DrMikux0.js → version_snapshot_label_placeholder-BhKq1NQ7.js} +2 -3
- package/dist/frontend/{weekday_we-C5H_M-df.js → weekday_we-BxbzNVWR.js} +2 -3
- package/dist/frontend/{x-CvSSnrjl.js → x-CBUgPygC.js} +2 -3
- package/dist/frontend/{yjs-VUcKqaKW.js → yjs-BbwnvxgY.js} +9 -23
- package/dist/frontend-ssr/api/attachments.js +2 -3
- package/dist/frontend-ssr/api/categories.js +1 -2
- package/dist/frontend-ssr/api/documents.js +1 -2
- package/dist/frontend-ssr/api/folders.js +1 -2
- package/dist/frontend-ssr/api/settings.js +1 -2
- package/dist/frontend-ssr/api/share.js +2 -3
- package/dist/frontend-ssr/api/tags.js +1 -2
- package/dist/frontend-ssr/app-shell.js +19 -28
- package/dist/frontend-ssr/assets/{CategoryDialog-DuZLLlt7.js → CategoryDialog-2CCX508O.js} +17 -20
- package/dist/frontend-ssr/assets/{ConfirmDialog-0WVu9BCE.js → ConfirmDialog-Cc6lcY1N.js} +8 -14
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-3vhDTFNu.js → CreateSnapshotDialog-BB8fXF9W.js} +9 -10
- package/dist/frontend-ssr/assets/{DatePicker-t12leL2Y.js → DatePicker-CfzKzipR.js} +9 -15
- package/dist/frontend-ssr/assets/{DeleteDialog-B0AU1fJR.js → DeleteDialog-DRU4UgOW.js} +4 -5
- package/dist/frontend-ssr/assets/{FolderNode-C-B-s8x1.js → FolderNode-Dg_5-orQ.js} +11 -12
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DdQuEcj0.js → FolderTreeSelector-D0reTdFS.js} +5 -7
- package/dist/frontend-ssr/assets/{HiAiEditor-Cj3B2Dt6.js → HiAiEditor-DeHWAIj-.js} +44 -69
- package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-BRKWmcDd.js → HiaiDocsExtensionProvider-D6cGL-9s.js} +2 -3
- package/dist/frontend-ssr/assets/{Icon-DE_3EnuF.js → Icon-CrIRbT5O.js} +4 -8
- package/dist/frontend-ssr/assets/{SettingsDialog-DAT-Zxu0.js → SettingsDialog-BpHY3IMb.js} +29 -40
- package/dist/frontend-ssr/assets/{ShareDialog-CpE9zd_f.js → ShareDialog-CY40nWZJ.js} +7 -9
- package/dist/frontend-ssr/assets/{Sidebar-B_Ey6QNL.js → Sidebar-fpYk5MGO.js} +55 -63
- package/dist/frontend-ssr/assets/{TagCreateDialog-DBHO1DPU.js → TagCreateDialog-C2tpdEuj.js} +13 -14
- package/dist/frontend-ssr/assets/{action_cancel-OVgQDP5Q.js → action_cancel-CsBbxW0m.js} +2 -3
- package/dist/frontend-ssr/assets/{action_close-DagDyMXk.js → action_close-lFKBqBwg.js} +2 -3
- package/dist/frontend-ssr/assets/{action_create-hqJWjyqh.js → action_create-BV4ZOcQW.js} +2 -3
- package/dist/frontend-ssr/assets/{action_delete-B1-16jSo.js → action_delete-CNmRhKQP.js} +2 -3
- package/dist/frontend-ssr/assets/{action_go_to-DQScgw7P.js → action_go_to-tN5I26xM.js} +2 -3
- package/dist/frontend-ssr/assets/{action_save-Bx7vlLZI.js → action_save-YCfMiKb4.js} +2 -3
- package/dist/frontend-ssr/assets/{api-keys-CHOrbU-Q.js → api-keys-G6oimJIv.js} +2 -3
- package/dist/frontend-ssr/assets/{auth-client-CITU3xkE.js → auth-client-BnnnJDAb.js} +102 -71
- package/dist/frontend-ssr/assets/{camera-B6ldo_Js.js → camera-OYNSMvMd.js} +2 -3
- package/dist/frontend-ssr/assets/{categories-C_dxFoHi.js → categories-bBPviKjl.js} +2 -3
- package/dist/frontend-ssr/assets/{categories_update_error-DkKgsqdD.js → categories_update_error-Bfx5vtvt.js} +11 -21
- package/dist/frontend-ssr/assets/{chevron-down-DQcr6JUc.js → chevron-down-DB6YsSbQ.js} +2 -3
- package/dist/frontend-ssr/assets/{chevron-right-9szrliZx.js → chevron-right-DOt2uY6b.js} +2 -3
- package/dist/frontend-ssr/assets/{circle-check-BgP9MRRv.js → circle-check-DQhTm9YR.js} +2 -3
- package/dist/frontend-ssr/assets/{client-rfwQYYHY.js → client-B2AniXwV.js} +1 -2
- package/dist/frontend-ssr/assets/{clipboard-CXOaoz2W.js → clipboard-CXKnyYba.js} +1 -2
- package/dist/frontend-ssr/assets/{clock-roNtGlT6.js → clock-B08dVWtf.js} +2 -3
- package/dist/frontend-ssr/assets/{context-Bi_mO-NS.js → context-C_xxvxnR.js} +1 -2
- package/dist/frontend-ssr/assets/{copy-BYqYnBIQ.js → copy-2jsznHar.js} +2 -3
- package/dist/frontend-ssr/assets/{db-DxRzq-kx.js → db-BEKLU5Fc.js} +2 -3
- package/dist/frontend-ssr/assets/{dialog-SqCnTT43.js → dialog-C6U-DqLr.js} +9 -17
- package/dist/frontend-ssr/assets/{dist-CaZQ1FhA.js → dist-DqXTz_zE.js} +9 -12
- package/dist/frontend-ssr/assets/{dist-CqxHwOlp.js → dist-ip9bPdma.js} +3 -6
- package/dist/frontend-ssr/assets/{dndzone-CnTCMhPd.js → dndzone-Dx3jt_e4.js} +4 -6
- package/dist/frontend-ssr/assets/{doc_title_label-Ev_ltlh3.js → doc_title_label-CE_l-Gum.js} +2 -3
- package/dist/frontend-ssr/assets/{doc_title_placeholder-DSHpUb7w.js → doc_title_placeholder-7_i7PtG6.js} +2 -3
- package/dist/frontend-ssr/assets/{document-drop-coordinator-CEaYACsC.js → document-drop-coordinator-BVytYy2K.js} +1 -2
- package/dist/frontend-ssr/assets/{documents-CEuA1V6N.js → documents-B_wpQFTh.js} +2 -3
- package/dist/frontend-ssr/assets/{dropdown-menu-CE6U0f1b.js → dropdown-menu-BS5fcN9l.js} +12 -23
- package/dist/frontend-ssr/assets/{editor-content-sanitizer-Gjm93iR-.js → editor-content-sanitizer-CIdFjBSC.js} +1 -2
- package/dist/frontend-ssr/assets/{editor-preferences.svelte-iI5jJM1x.js → editor-preferences.svelte-CdAXTd-I.js} +2 -4
- package/dist/frontend-ssr/assets/{editorExtensions-rhletNji.js → editorExtensions-2O7O2Nhv.js} +2 -3
- package/dist/frontend-ssr/assets/{editor_markdown_placeholder-BpezdkOr.js → editor_markdown_placeholder-CAeLJjFT.js} +3 -5
- package/dist/frontend-ssr/assets/{editor_toolbar_undo-CKJAOqv2.js → editor_toolbar_undo-CVCfQIS1.js} +29 -57
- package/dist/frontend-ssr/assets/{ellipsis-vertical-Cg1MrZsl.js → ellipsis-vertical-IFHt2NM1.js} +2 -3
- package/dist/frontend-ssr/assets/{error_generic-DTK0kwxT.js → error_generic-BB80i0Vk.js} +3 -5
- package/dist/frontend-ssr/assets/{folder-DHB-CEcQ.js → folder-CXa1_bm5.js} +2 -3
- package/dist/frontend-ssr/assets/{folders-BOXeb9hz.js → folders-CTLqWbMm.js} +2 -3
- package/dist/frontend-ssr/assets/{folders_rename-DvciOb6K.js → folders_rename-ydbfwQlj.js} +7 -13
- package/dist/frontend-ssr/assets/{identity-B7ngLQzZ.js → identity-DTz1SQwC.js} +2 -3
- package/dist/frontend-ssr/assets/{input-DVrBVPgs.js → input-Bxw9sFF0.js} +2 -3
- package/dist/frontend-ssr/assets/{keyboard.svelte-BgF47N3L.js → keyboard.svelte-njehUCm3.js} +1 -2
- package/dist/frontend-ssr/assets/{label-vtCK3pTp.js → label-CMWedjs6.js} +2 -3
- package/dist/frontend-ssr/assets/{loader-circle-D3NWhCif.js → loader-circle-zbKj9Qb-.js} +2 -3
- package/dist/frontend-ssr/assets/{markdown-Co31-Tl2.js → markdown-BmIhDQp7.js} +2 -3
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-C4dMMt-f.js → popper-layer-force-mount-CSHZsG2E.js} +78 -156
- package/dist/frontend-ssr/assets/{resolve-BqHozBXl.js → resolve-Wqdff4CL.js} +1 -2
- package/dist/frontend-ssr/assets/{rotate-ccw-DNf3nwMD.js → rotate-ccw-B7SaTFWf.js} +2 -3
- package/dist/frontend-ssr/assets/{route-context-BPRerEtZ.js → route-context-BsqLFt5Y.js} +2 -4
- package/dist/frontend-ssr/assets/{runtime-O78RzRqx.js → runtime-BX6-jTn_.js} +1 -2
- package/dist/frontend-ssr/assets/{scroll_to_top_aria-BN4ZfOnM.js → scroll_to_top_aria-CAYSiGHO.js} +2 -3
- package/dist/frontend-ssr/assets/{search_title-CKUsQDT0.js → search_title-C7NVXXq3.js} +2 -3
- package/dist/frontend-ssr/assets/{search_toggle_filters-hS9rvQhC.js → search_toggle_filters-Bq_YVD8s.js} +15 -29
- package/dist/frontend-ssr/assets/{select-value-Ce5c_fuA.js → select-value-TgslfiUB.js} +18 -34
- package/dist/frontend-ssr/assets/{settings-BRxvn30Y.js → settings-B1MA_FjO.js} +3 -4
- package/dist/frontend-ssr/assets/{share-context-B4UpvTSw.js → share-context-RVh8AExX.js} +17 -22
- package/dist/frontend-ssr/assets/{share_copied-BxU9rjXG.js → share_copied-CrwEwkb3.js} +31 -61
- package/dist/frontend-ssr/assets/{share_toggle_password-C6OmroqR.js → share_toggle_password-Co56z0Ha.js} +11 -21
- package/dist/frontend-ssr/assets/{sidebar_uncategorized-Dx-LTd5w.js → sidebar_uncategorized-COWdmZ3d.js} +6 -11
- package/dist/frontend-ssr/assets/{subfolders-refresh-store.svelte-CXHxQWKh.js → subfolders-refresh-store.svelte-LxG18U0n.js} +1 -2
- package/dist/frontend-ssr/assets/{tag-Cqv0fWVG.js → tag-BGhtDKpP.js} +3 -5
- package/dist/frontend-ssr/assets/{tag-store.svelte-QRysvGKe.js → tag-store.svelte-CUUgAaDD.js} +2 -3
- package/dist/frontend-ssr/assets/{tags-BBCoFYro.js → tags-C7u-LBsl.js} +2 -3
- package/dist/frontend-ssr/assets/{tags_load_error-CPrc6Gzs.js → tags_load_error-DW4FbHvr.js} +19 -37
- package/dist/frontend-ssr/assets/{tags_new-VmMr9v2V.js → tags_new-Dr3ByMPZ.js} +4 -7
- package/dist/frontend-ssr/assets/{textarea-BdjOJJVb.js → textarea-Bz5Tz4rw.js} +2 -3
- package/dist/frontend-ssr/assets/{theme.svelte-D6bbaJ9m.js → theme.svelte-CdHah46l.js} +3 -5
- package/dist/frontend-ssr/assets/{theme_system-BucaNntV.js → theme_system-E97FASeq.js} +19 -37
- package/dist/frontend-ssr/assets/{utils-DvZnctjz.js → utils-085zSPe5.js} +1 -2
- package/dist/frontend-ssr/assets/{utils-D3X7I8nz.js → utils-DF6CmRDX.js} +1 -2
- package/dist/frontend-ssr/assets/{version_create_snapshot-COHzwjle.js → version_create_snapshot-DeeYB7bb.js} +2 -3
- package/dist/frontend-ssr/assets/{version_restored_from-CertjFDl.js → version_restored_from-CTt2LM4A.js} +13 -25
- package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-Cy_rMCij.js → version_snapshot_label_placeholder-BbGD9YuN.js} +12 -23
- package/dist/frontend-ssr/assets/{weekday_we-DrI3U230.js → weekday_we-BzGQ-iFc.js} +22 -43
- package/dist/frontend-ssr/collaboration.js +2 -4
- package/dist/frontend-ssr/components/category-dialog.js +1 -2
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -2
- package/dist/frontend-ssr/components/delete-dialog.js +1 -2
- package/dist/frontend-ssr/components/editor/compact-editor.js +2 -3
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -2
- package/dist/frontend-ssr/components/editor/document-title.js +3 -4
- package/dist/frontend-ssr/components/editor/docx-serializer.js +1 -2
- package/dist/frontend-ssr/components/editor/extensions.js +1 -2
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +4 -5
- package/dist/frontend-ssr/components/editor/markdown.js +1 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -2
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -2
- package/dist/frontend-ssr/components/save-as-dialog.js +12 -13
- package/dist/frontend-ssr/components/settings.js +1 -2
- package/dist/frontend-ssr/components/share-dialog.js +1 -2
- package/dist/frontend-ssr/components/sidebar.js +1 -2
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -2
- package/dist/frontend-ssr/components/version-history.js +18 -21
- package/dist/frontend-ssr/dashboard.js +64 -88
- package/dist/frontend-ssr/doc-tabs.js +1 -2
- package/dist/frontend-ssr/document-drop-coordinator.js +1 -2
- package/dist/frontend-ssr/editor-preferences.js +1 -2
- package/dist/frontend-ssr/extension.js +1 -2
- package/dist/frontend-ssr/folder-refresh.js +1 -2
- package/dist/frontend-ssr/i18n.js +315 -603
- package/dist/frontend-ssr/keyboard.js +1 -2
- package/dist/frontend-ssr/offline/identity.js +1 -2
- package/dist/frontend-ssr/search.js +17 -20
- package/dist/frontend-ssr/shared-document.js +5 -8
- package/dist/frontend-ssr/theme.js +2 -3
- package/dist/frontend-ssr/utils/clipboard.js +1 -2
- package/dist/frontend-ssr/utils/dndzone.js +1 -2
- package/dist/frontend-ssr/utils.js +1 -2
- package/dist/lifecycle-runtime.js +3996 -17873
- package/dist/mcp-cli.js +64 -64
- package/dist/mcp-server.js +68 -68
- package/package.json +4 -4
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/CategoryDialog-CJeAYxcd.js +0 -630
- package/dist/frontend/HiAiEditor-D6ad_auS.js +0 -3129
- package/dist/frontend/SettingsDialog-B8Oswuqb.js +0 -991
- package/dist/frontend/Sidebar-BV0IDqTS.js +0 -2149
- package/dist/frontend/action_cancel-Cuxsznzz.js +0 -5
- package/dist/frontend/action_close-BJm_52wm.js +0 -5
- package/dist/frontend/action_create-CtBQrRuj.js +0 -5
- package/dist/frontend/action_delete-BXBIzvn0.js +0 -5
- package/dist/frontend/action_go_to-VmK5jmEk.js +0 -5
- package/dist/frontend/action_loading-BLCGJVA9.js +0 -5
- package/dist/frontend/action_save-BRN2Z_GP.js +0 -5
- package/dist/frontend/dist-DcHl92QO.js +0 -316
- package/dist/frontend/doc_title_label-DS9jSIh2.js +0 -5
- package/dist/frontend/doc_title_placeholder-DBQpM1aH.js +0 -5
- package/dist/frontend/error_generic-CzNtmBT4.js +0 -5
- package/dist/frontend/markdown-O9YJA70S.js +0 -12
- package/dist/frontend/scroll_to_top_aria-CvkNF_Hu.js +0 -5
- package/dist/frontend/utils-BlHvR6OL.js +0 -7
- package/dist/frontend/version_create_snapshot-3bu-0qzH.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "../../rolldown-runtime-
|
|
2
|
-
|
|
1
|
+
import { r as e } from "../../rolldown-runtime-CwxnZyOB.js";
|
|
2
|
+
// ../node_modules/.bun/docx@9.7.1/node_modules/docx/dist/index.mjs
|
|
3
3
|
var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, a = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, s = (e, t) => () => (e && (t = e(e = 0)), t), c = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), l = (e, t, a, s) => {
|
|
4
4
|
if (t && typeof t == "object" || typeof t == "function") for (var c = i(t), l = 0, u = c.length, d; l < u; l++) d = c[l], !o.call(e, d) && d !== a && n(e, d, {
|
|
5
5
|
get: ((e) => t[e]).bind(null, d),
|
|
@@ -363,7 +363,7 @@ function N(e) {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
function P() {
|
|
366
|
-
|
|
366
|
+
U && W && (U = !1, W.length ? H = W.concat(H) : G = -1, H.length && F());
|
|
367
367
|
}
|
|
368
368
|
function F() {
|
|
369
369
|
if (!U) {
|
|
@@ -431,8 +431,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
431
431
|
return (t + n) * 3 / 4 - n;
|
|
432
432
|
}
|
|
433
433
|
function u(e) {
|
|
434
|
-
var t, i = s(e), a = i[0], o = i[1], c = new r(l(e, a, o)), u = 0, d = o > 0 ? a - 4 : a, f;
|
|
435
|
-
for (f = 0; f < d; f += 4) t = n[e.charCodeAt(f)] << 18 | n[e.charCodeAt(f + 1)] << 12 | n[e.charCodeAt(f + 2)] << 6 | n[e.charCodeAt(f + 3)], c[u++] = t >> 16 & 255, c[u++] = t >> 8 & 255, c[u++] = t & 255;
|
|
434
|
+
for (var t, i = s(e), a = i[0], o = i[1], c = new r(l(e, a, o)), u = 0, d = o > 0 ? a - 4 : a, f = 0; f < d; f += 4) t = n[e.charCodeAt(f)] << 18 | n[e.charCodeAt(f + 1)] << 12 | n[e.charCodeAt(f + 2)] << 6 | n[e.charCodeAt(f + 3)], c[u++] = t >> 16 & 255, c[u++] = t >> 8 & 255, c[u++] = t & 255;
|
|
436
435
|
return o === 2 && (t = n[e.charCodeAt(f)] << 2 | n[e.charCodeAt(f + 1)] >> 4, c[u++] = t & 255), o === 1 && (t = n[e.charCodeAt(f)] << 10 | n[e.charCodeAt(f + 1)] << 4 | n[e.charCodeAt(f + 2)] >> 2, c[u++] = t >> 8 & 255, c[u++] = t & 255), c;
|
|
437
436
|
}
|
|
438
437
|
function d(e) {
|
|
@@ -947,7 +946,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
947
946
|
R(this, e, t, n, i - 1, -i);
|
|
948
947
|
}
|
|
949
948
|
var a = 0, o = 1, s = 0;
|
|
950
|
-
for (this[t] = e & 255; ++a < n && (o *= 256);) e < 0 && s === 0 && this[t + a - 1] !== 0 && (s = 1), this[t + a] = (e / o
|
|
949
|
+
for (this[t] = e & 255; ++a < n && (o *= 256);) e < 0 && s === 0 && this[t + a - 1] !== 0 && (s = 1), this[t + a] = (e / o | 0) - s & 255;
|
|
951
950
|
return t + n;
|
|
952
951
|
}, s.prototype.writeIntBE = function(e, t, n, r) {
|
|
953
952
|
if (e = +e, t >>>= 0, !r) {
|
|
@@ -955,7 +954,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
955
954
|
R(this, e, t, n, i - 1, -i);
|
|
956
955
|
}
|
|
957
956
|
var a = n - 1, o = 1, s = 0;
|
|
958
|
-
for (this[t + a] = e & 255; --a >= 0 && (o *= 256);) e < 0 && s === 0 && this[t + a + 1] !== 0 && (s = 1), this[t + a] = (e / o
|
|
957
|
+
for (this[t + a] = e & 255; --a >= 0 && (o *= 256);) e < 0 && s === 0 && this[t + a + 1] !== 0 && (s = 1), this[t + a] = (e / o | 0) - s & 255;
|
|
959
958
|
return t + n;
|
|
960
959
|
}, s.prototype.writeInt8 = function(e, t, n) {
|
|
961
960
|
return e = +e, t >>>= 0, n || R(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
@@ -1027,11 +1026,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
1027
1026
|
for (var n, r = e.length, i = null, a = [], o = 0; o < r; ++o) {
|
|
1028
1027
|
if (n = e.charCodeAt(o), n > 55295 && n < 57344) {
|
|
1029
1028
|
if (!i) {
|
|
1030
|
-
if (n > 56319) {
|
|
1031
|
-
(t -= 3) > -1 && a.push(239, 191, 189);
|
|
1032
|
-
continue;
|
|
1033
|
-
}
|
|
1034
|
-
if (o + 1 === r) {
|
|
1029
|
+
if (n > 56319 || o + 1 === r) {
|
|
1035
1030
|
(t -= 3) > -1 && a.push(239, 191, 189);
|
|
1036
1031
|
continue;
|
|
1037
1032
|
}
|
|
@@ -1478,7 +1473,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
1478
1473
|
for (var d = 1, f = !0; d < n.length; d += 1) {
|
|
1479
1474
|
var p = n[d], m = B(p, 0, 1), h = B(p, -1);
|
|
1480
1475
|
if ((m === "\"" || m === "'" || m === "`" || h === "\"" || h === "'" || h === "`") && m !== h) throw new c("property names with quotes must have matching quotes");
|
|
1481
|
-
if (
|
|
1476
|
+
if (p !== "constructor" && f || (s = !0), r += "." + p, a = "%" + r + "%", I(M, a)) o = M[a];
|
|
1482
1477
|
else if (o != null) {
|
|
1483
1478
|
if (!(p in o)) {
|
|
1484
1479
|
if (!t) throw new l("base intrinsic for " + e + " exists, but the property is not available.");
|
|
@@ -2966,8 +2961,8 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
2966
2961
|
s.call(e, t);
|
|
2967
2962
|
}, g = function() {
|
|
2968
2963
|
var t;
|
|
2969
|
-
if (c && !p) return
|
|
2970
|
-
if (l && !d) return
|
|
2964
|
+
if (c && !p) return e._readableState && e._readableState.ended || (t = new n()), s.call(e, t);
|
|
2965
|
+
if (l && !d) return e._writableState && e._writableState.ended || (t = new n()), s.call(e, t);
|
|
2971
2966
|
}, _ = function() {
|
|
2972
2967
|
e.req.on("finish", f);
|
|
2973
2968
|
};
|
|
@@ -3021,11 +3016,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3021
3016
|
function _(e, t) {
|
|
3022
3017
|
return function(n, r) {
|
|
3023
3018
|
e.then(function() {
|
|
3024
|
-
|
|
3025
|
-
n(m(void 0, !0));
|
|
3026
|
-
return;
|
|
3027
|
-
}
|
|
3028
|
-
t[f](n, r);
|
|
3019
|
+
t[u] ? n(m(void 0, !0)) : t[f](n, r);
|
|
3029
3020
|
}, r);
|
|
3030
3021
|
};
|
|
3031
3022
|
}
|
|
@@ -3057,11 +3048,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3057
3048
|
var e = this;
|
|
3058
3049
|
return new Promise(function(t, n) {
|
|
3059
3050
|
e[p].destroy(null, function(e) {
|
|
3060
|
-
|
|
3061
|
-
n(e);
|
|
3062
|
-
return;
|
|
3063
|
-
}
|
|
3064
|
-
t(m(void 0, !0));
|
|
3051
|
+
e ? n(e) : t(m(void 0, !0));
|
|
3065
3052
|
});
|
|
3066
3053
|
});
|
|
3067
3054
|
}), n), v);
|
|
@@ -3092,10 +3079,10 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3092
3079
|
if (e && e.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
3093
3080
|
var t = n[c];
|
|
3094
3081
|
t !== null && (n[d] = null, n[s] = null, n[c] = null, t(e)), n[l] = e;
|
|
3095
|
-
|
|
3082
|
+
} else {
|
|
3083
|
+
var r = n[s];
|
|
3084
|
+
r !== null && (n[d] = null, n[s] = null, n[c] = null, r(m(void 0, !0))), n[u] = !0;
|
|
3096
3085
|
}
|
|
3097
|
-
var r = n[s];
|
|
3098
|
-
r !== null && (n[d] = null, n[s] = null, n[c] = null, r(m(void 0, !0))), n[u] = !0;
|
|
3099
3086
|
}), e.on("readable", g.bind(null, n)), n;
|
|
3100
3087
|
};
|
|
3101
3088
|
})), ht = /* @__PURE__ */ c(((e, t) => {
|
|
@@ -3292,7 +3279,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3292
3279
|
A.prototype.unpipe = function(e) {
|
|
3293
3280
|
var t = this._readableState, n = { hasUnpiped: !1 };
|
|
3294
3281
|
if (t.pipesCount === 0) return this;
|
|
3295
|
-
if (t.pipesCount === 1) return e && e !== t.pipes
|
|
3282
|
+
if (t.pipesCount === 1) return e && e !== t.pipes || (e ||= t.pipes, t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, n)), this;
|
|
3296
3283
|
if (!e) {
|
|
3297
3284
|
var r = t.pipes, i = t.pipesCount;
|
|
3298
3285
|
t.pipes = null, t.pipesCount = 0, t.flowing = !1;
|
|
@@ -3300,7 +3287,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3300
3287
|
return this;
|
|
3301
3288
|
}
|
|
3302
3289
|
var o = ce(t.pipes, e);
|
|
3303
|
-
return o === -1
|
|
3290
|
+
return o === -1 || (t.pipes.splice(o, 1), --t.pipesCount, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n)), this;
|
|
3304
3291
|
}, A.prototype.on = function(e, t) {
|
|
3305
3292
|
var n = i.prototype.on.call(this, e, t), r = this._readableState;
|
|
3306
3293
|
return e === "data" ? (r.readableListening = this.listenerCount("readable") > 0, r.flowing !== !1 && this.resume()) : e === "readable" && !r.endEmitted && !r.readableListening && (r.readableListening = r.needReadable = !0, r.flowing = !1, r.emittedReadable = !1, u("on readable", r.length, r.reading), r.length ? R(this) : r.reading || K.nextTick(W, this)), n;
|
|
@@ -3344,7 +3331,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3344
3331
|
}
|
|
3345
3332
|
t.push(null);
|
|
3346
3333
|
}), e.on("data", function(i) {
|
|
3347
|
-
u("wrapped data"), n.decoder && (i = n.decoder.write(i)),
|
|
3334
|
+
u("wrapped data"), n.decoder && (i = n.decoder.write(i)), n.objectMode && i == null || (n.objectMode || i && i.length) && (t.push(i) || (r = !0, e.pause()));
|
|
3348
3335
|
}), e) this[i] === void 0 && typeof e[i] == "function" && (this[i] = function(t) {
|
|
3349
3336
|
return function() {
|
|
3350
3337
|
return e[t].apply(e, arguments);
|
|
@@ -3518,7 +3505,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3518
3505
|
var n, r = e.map(function(i, a) {
|
|
3519
3506
|
var o = a < e.length - 1;
|
|
3520
3507
|
return l(i, o, a > 0, function(e) {
|
|
3521
|
-
n ||= e, e && r.forEach(u),
|
|
3508
|
+
n ||= e, e && r.forEach(u), o || (r.forEach(u), t(n));
|
|
3522
3509
|
});
|
|
3523
3510
|
});
|
|
3524
3511
|
return e.reduce(d);
|
|
@@ -3540,7 +3527,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
3540
3527
|
function a() {
|
|
3541
3528
|
r.readable && r.resume && r.resume();
|
|
3542
3529
|
}
|
|
3543
|
-
e.on("drain", a),
|
|
3530
|
+
e.on("drain", a), e._isStdio || t && t.end === !1 || (r.on("end", s), r.on("close", c));
|
|
3544
3531
|
var o = !1;
|
|
3545
3532
|
function s() {
|
|
3546
3533
|
o || (o = !0, e.end());
|
|
@@ -4061,26 +4048,25 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
4061
4048
|
};
|
|
4062
4049
|
}
|
|
4063
4050
|
function F(e) {
|
|
4064
|
-
if (e.strict || (e.attribName = e.attribName[e.looseCase]()), e.attribList.indexOf(e.attribName) !== -1 || e.tag.attributes.hasOwnProperty(e.attribName))
|
|
4051
|
+
if (e.strict || (e.attribName = e.attribName[e.looseCase]()), e.attribList.indexOf(e.attribName) !== -1 || e.tag.attributes.hasOwnProperty(e.attribName)) e.attribName = e.attribValue = "";
|
|
4052
|
+
else {
|
|
4053
|
+
if (e.opt.xmlns) {
|
|
4054
|
+
var t = P(e.attribName, !0), n = t.prefix, r = t.local;
|
|
4055
|
+
if (n === "xmlns") {
|
|
4056
|
+
if (r === "xml" && e.attribValue !== f) M(e, "xml: prefix must be bound to " + f + "\nActual: " + e.attribValue);
|
|
4057
|
+
else if (r === "xmlns" && e.attribValue !== p) M(e, "xmlns: prefix must be bound to " + p + "\nActual: " + e.attribValue);
|
|
4058
|
+
else {
|
|
4059
|
+
var i = e.tag, a = e.tags[e.tags.length - 1] || e;
|
|
4060
|
+
i.ns === a.ns && (i.ns = Object.create(a.ns)), i.ns[r] = e.attribValue;
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
e.attribList.push([e.attribName, e.attribValue]);
|
|
4064
|
+
} else e.tag.attributes[e.attribName] = e.attribValue, D(e, "onattribute", {
|
|
4065
|
+
name: e.attribName,
|
|
4066
|
+
value: e.attribValue
|
|
4067
|
+
});
|
|
4065
4068
|
e.attribName = e.attribValue = "";
|
|
4066
|
-
return;
|
|
4067
4069
|
}
|
|
4068
|
-
if (e.opt.xmlns) {
|
|
4069
|
-
var t = P(e.attribName, !0), n = t.prefix, r = t.local;
|
|
4070
|
-
if (n === "xmlns") {
|
|
4071
|
-
if (r === "xml" && e.attribValue !== f) M(e, "xml: prefix must be bound to " + f + "\nActual: " + e.attribValue);
|
|
4072
|
-
else if (r === "xmlns" && e.attribValue !== p) M(e, "xmlns: prefix must be bound to " + p + "\nActual: " + e.attribValue);
|
|
4073
|
-
else {
|
|
4074
|
-
var i = e.tag, a = e.tags[e.tags.length - 1] || e;
|
|
4075
|
-
i.ns === a.ns && (i.ns = Object.create(a.ns)), i.ns[r] = e.attribValue;
|
|
4076
|
-
}
|
|
4077
|
-
}
|
|
4078
|
-
e.attribList.push([e.attribName, e.attribValue]);
|
|
4079
|
-
} else e.tag.attributes[e.attribName] = e.attribValue, D(e, "onattribute", {
|
|
4080
|
-
name: e.attribName,
|
|
4081
|
-
value: e.attribValue
|
|
4082
|
-
});
|
|
4083
|
-
e.attribName = e.attribValue = "";
|
|
4084
4070
|
}
|
|
4085
4071
|
function I(e, t) {
|
|
4086
4072
|
if (e.opt.xmlns) {
|
|
@@ -4108,40 +4094,38 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
4108
4094
|
e.tag.isSelfClosing = !!t, e.sawRoot = !0, e.tags.push(e.tag), D(e, "onopentag", e.tag), t || (e.state = !e.noscript && e.tagName.toLowerCase() === "script" ? w.SCRIPT : w.TEXT, e.tag = null, e.tagName = ""), e.attribName = e.attribValue = "", e.attribList.length = 0;
|
|
4109
4095
|
}
|
|
4110
4096
|
function L(e) {
|
|
4111
|
-
if (!e.tagName)
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4097
|
+
if (!e.tagName) M(e, "Weird empty close tag."), e.textNode += "</>", e.state = w.TEXT;
|
|
4098
|
+
else {
|
|
4099
|
+
if (e.script) {
|
|
4100
|
+
if (e.tagName !== "script") {
|
|
4101
|
+
e.script += "</" + e.tagName + ">", e.tagName = "", e.state = w.SCRIPT;
|
|
4102
|
+
return;
|
|
4103
|
+
}
|
|
4104
|
+
D(e, "onscript", e.script), e.script = "";
|
|
4105
|
+
}
|
|
4106
|
+
var t = e.tags.length, n = e.tagName;
|
|
4107
|
+
e.strict || (n = n[e.looseCase]());
|
|
4108
|
+
for (var r = n; t-- && e.tags[t].name !== r;) M(e, "Unexpected close tag");
|
|
4109
|
+
if (t < 0) M(e, "Unmatched closing tag: " + e.tagName), e.textNode += "</" + e.tagName + ">", e.state = w.TEXT;
|
|
4110
|
+
else {
|
|
4111
|
+
e.tagName = n;
|
|
4112
|
+
for (var i = e.tags.length; i-- > t;) {
|
|
4113
|
+
var a = e.tag = e.tags.pop();
|
|
4114
|
+
e.tagName = e.tag.name, D(e, "onclosetag", e.tagName);
|
|
4115
|
+
var o = {};
|
|
4116
|
+
for (var s in a.ns) o[s] = a.ns[s];
|
|
4117
|
+
var c = e.tags[e.tags.length - 1] || e;
|
|
4118
|
+
e.opt.xmlns && a.ns !== c.ns && Object.keys(a.ns).forEach(function(t) {
|
|
4119
|
+
var n = a.ns[t];
|
|
4120
|
+
D(e, "onclosenamespace", {
|
|
4121
|
+
prefix: t,
|
|
4122
|
+
uri: n
|
|
4123
|
+
});
|
|
4124
|
+
});
|
|
4125
|
+
}
|
|
4126
|
+
t === 0 && (e.closedRoot = !0), e.tagName = e.attribValue = e.attribName = "", e.attribList.length = 0, e.state = w.TEXT;
|
|
4119
4127
|
}
|
|
4120
|
-
D(e, "onscript", e.script), e.script = "";
|
|
4121
|
-
}
|
|
4122
|
-
var t = e.tags.length, n = e.tagName;
|
|
4123
|
-
e.strict || (n = n[e.looseCase]());
|
|
4124
|
-
for (var r = n; t-- && e.tags[t].name !== r;) M(e, "Unexpected close tag");
|
|
4125
|
-
if (t < 0) {
|
|
4126
|
-
M(e, "Unmatched closing tag: " + e.tagName), e.textNode += "</" + e.tagName + ">", e.state = w.TEXT;
|
|
4127
|
-
return;
|
|
4128
|
-
}
|
|
4129
|
-
e.tagName = n;
|
|
4130
|
-
for (var i = e.tags.length; i-- > t;) {
|
|
4131
|
-
var a = e.tag = e.tags.pop();
|
|
4132
|
-
e.tagName = e.tag.name, D(e, "onclosetag", e.tagName);
|
|
4133
|
-
var o = {};
|
|
4134
|
-
for (var s in a.ns) o[s] = a.ns[s];
|
|
4135
|
-
var c = e.tags[e.tags.length - 1] || e;
|
|
4136
|
-
e.opt.xmlns && a.ns !== c.ns && Object.keys(a.ns).forEach(function(t) {
|
|
4137
|
-
var n = a.ns[t];
|
|
4138
|
-
D(e, "onclosenamespace", {
|
|
4139
|
-
prefix: t,
|
|
4140
|
-
uri: n
|
|
4141
|
-
});
|
|
4142
|
-
});
|
|
4143
4128
|
}
|
|
4144
|
-
t === 0 && (e.closedRoot = !0), e.tagName = e.attribValue = e.attribName = "", e.attribList.length = 0, e.state = w.TEXT;
|
|
4145
4129
|
}
|
|
4146
4130
|
function R(e) {
|
|
4147
4131
|
var t = e.entity, n = t.toLowerCase(), r, i = "";
|
|
@@ -4173,7 +4157,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
4173
4157
|
for (var a = n - 1; i && i !== "<" && i !== "&";) i = B(e, n++), i && t.trackPosition && (t.position++, i === "\n" ? (t.line++, t.column = 0) : t.column++);
|
|
4174
4158
|
t.textNode += e.substring(a, n - 1);
|
|
4175
4159
|
}
|
|
4176
|
-
i === "<" && !(t.sawRoot && t.closedRoot && !t.strict) ? (t.state = w.OPEN_WAKA, t.startTagPosition = t.position) : (
|
|
4160
|
+
i === "<" && !(t.sawRoot && t.closedRoot && !t.strict) ? (t.state = w.OPEN_WAKA, t.startTagPosition = t.position) : (y(i) || t.sawRoot && !t.closedRoot || M(t, "Text data outside of root node."), i === "&" ? t.state = w.TEXT_ENTITY : t.textNode += i);
|
|
4177
4161
|
continue;
|
|
4178
4162
|
case w.SCRIPT:
|
|
4179
4163
|
i === "<" ? t.state = w.SCRIPT_ENDING : t.script += i;
|
|
@@ -4348,7 +4332,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
4348
4332
|
return n;
|
|
4349
4333
|
},
|
|
4350
4334
|
ensureFlagExists: function(e, t) {
|
|
4351
|
-
|
|
4335
|
+
e in t && typeof t[e] == "boolean" || (t[e] = !1);
|
|
4352
4336
|
},
|
|
4353
4337
|
ensureSpacesExists: function(e) {
|
|
4354
4338
|
(!("spaces" in e) || typeof e.spaces != "number" && typeof e.spaces != "string") && (e.spaces = 0);
|
|
@@ -4357,7 +4341,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
4357
4341
|
(!("alwaysArray" in e) || typeof e.alwaysArray != "boolean" && !n(e.alwaysArray)) && (e.alwaysArray = !1);
|
|
4358
4342
|
},
|
|
4359
4343
|
ensureKeyExists: function(e, t) {
|
|
4360
|
-
|
|
4344
|
+
e + "Key" in t && typeof t[e + "Key"] == "string" || (t[e + "Key"] = t.compact ? "_" + e : e);
|
|
4361
4345
|
},
|
|
4362
4346
|
checkFnExists: function(e, t) {
|
|
4363
4347
|
return e + "Fn" in t;
|
|
@@ -4434,7 +4418,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
4434
4418
|
n[o.parentKey] = c, c = n;
|
|
4435
4419
|
}
|
|
4436
4420
|
function h(e) {
|
|
4437
|
-
o.ignoreText ||
|
|
4421
|
+
o.ignoreText || (e.trim() || o.captureSpacesBetweenElements) && (o.trim && (e = e.trim()), o.nativeType && (e = u(e)), o.sanitize && (e = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">")), d("text", e));
|
|
4438
4422
|
}
|
|
4439
4423
|
function g(e) {
|
|
4440
4424
|
o.ignoreComment || (o.trim && (e = e.trim()), d("comment", e));
|
|
@@ -5125,27 +5109,22 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
5125
5109
|
}, Hn = class extends v {
|
|
5126
5110
|
constructor(e) {
|
|
5127
5111
|
if (super("w:r"), h(this, "properties", void 0), this.properties = new Ln(e), this.root.push(this.properties), e.break) for (let t = 0; t < e.break; t++) this.root.push(sn());
|
|
5128
|
-
if (e.children) for (let t of e.children) {
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
break;
|
|
5143
|
-
default: this.root.push(new Bn(t));
|
|
5144
|
-
}
|
|
5145
|
-
continue;
|
|
5146
|
-
}
|
|
5147
|
-
this.root.push(t);
|
|
5112
|
+
if (e.children) for (let t of e.children) if (typeof t == "string") switch (t) {
|
|
5113
|
+
case Vn.CURRENT:
|
|
5114
|
+
this.root.push(un()), this.root.push(new hn()), this.root.push(dn()), this.root.push(fn());
|
|
5115
|
+
break;
|
|
5116
|
+
case Vn.TOTAL_PAGES:
|
|
5117
|
+
this.root.push(un()), this.root.push(new gn()), this.root.push(dn()), this.root.push(fn());
|
|
5118
|
+
break;
|
|
5119
|
+
case Vn.TOTAL_PAGES_IN_SECTION:
|
|
5120
|
+
this.root.push(un()), this.root.push(new _n()), this.root.push(dn()), this.root.push(fn());
|
|
5121
|
+
break;
|
|
5122
|
+
case Vn.CURRENT_SECTION:
|
|
5123
|
+
this.root.push(un()), this.root.push(new vn()), this.root.push(dn()), this.root.push(fn());
|
|
5124
|
+
break;
|
|
5125
|
+
default: this.root.push(new Bn(t));
|
|
5148
5126
|
}
|
|
5127
|
+
else this.root.push(t);
|
|
5149
5128
|
else e.text !== void 0 && this.root.push(new Bn(e.text));
|
|
5150
5129
|
}
|
|
5151
5130
|
}, Z = class extends Hn {
|
|
@@ -7462,7 +7441,7 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
7462
7441
|
}), Da = class extends y {
|
|
7463
7442
|
constructor(e) {
|
|
7464
7443
|
if (super("w:pPr", e?.includeIfEmpty), h(this, "numberingReferences", []), !e) return this;
|
|
7465
|
-
e.heading && this.push(ta(e.heading)), e.bullet && this.push(ta("ListParagraph")), e.numbering &&
|
|
7444
|
+
e.heading && this.push(ta(e.heading)), e.bullet && this.push(ta("ListParagraph")), e.numbering && (e.style || e.heading || e.numbering.custom || this.push(ta("ListParagraph"))), e.style && this.push(ta(e.style)), e.keepNext !== void 0 && this.push(new q("w:keepNext", e.keepNext)), e.keepLines !== void 0 && this.push(new q("w:keepLines", e.keepLines)), e.pageBreakBefore && this.push(new Qi()), e.frame && this.push(Ea(e.frame)), e.widowControl !== void 0 && this.push(new q("w:widowControl", e.widowControl)), e.bullet && this.push(new oa(1, e.bullet.level)), e.numbering ? (this.numberingReferences.push({
|
|
7466
7445
|
reference: e.numbering.reference,
|
|
7467
7446
|
instance: e.numbering.instance ?? 0
|
|
7468
7447
|
}), this.push(new oa(`${e.numbering.reference}-${e.numbering.instance ?? 0}`, e.numbering.level))) : e.numbering === !1 && this.push(new oa(0, 0)), e.border && this.push(new rn(e.border)), e.thematicBreak && this.push(new an()), e.shading && this.push(yn(e.shading)), e.wordWrap && this.push(Ta()), e.overflowPunctuation && this.push(new q("w:overflowPunct", e.overflowPunctuation));
|
|
@@ -7497,15 +7476,11 @@ var R, z, B, V, H, U, W, G, ee, K, te = s((() => {
|
|
|
7497
7476
|
}, ka = class extends la {
|
|
7498
7477
|
constructor(e) {
|
|
7499
7478
|
if (super("w:p"), h(this, "properties", void 0), typeof e == "string") return this.properties = new Da({}), this.root.push(this.properties), this.root.push(new Z(e)), this;
|
|
7500
|
-
if (this.properties = new Da(e), this.root.push(this.properties), e.text && this.root.push(new Z(e.text)), e.children) for (let t of e.children) {
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
continue;
|
|
7506
|
-
}
|
|
7507
|
-
this.root.push(t);
|
|
7508
|
-
}
|
|
7479
|
+
if (this.properties = new Da(e), this.root.push(this.properties), e.text && this.root.push(new Z(e.text)), e.children) for (let t of e.children) if (t instanceof ga) {
|
|
7480
|
+
this.root.push(t.start);
|
|
7481
|
+
for (let e of t.children) this.root.push(e);
|
|
7482
|
+
this.root.push(t.end);
|
|
7483
|
+
} else this.root.push(t);
|
|
7509
7484
|
}
|
|
7510
7485
|
prepForXml(e) {
|
|
7511
7486
|
for (let t of this.root) if (t instanceof pa) {
|
|
@@ -10805,8 +10780,7 @@ var lo = (e) => new J({
|
|
|
10805
10780
|
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw Error("Multi-volumes zip are not supported");
|
|
10806
10781
|
},
|
|
10807
10782
|
readLocalFiles: function() {
|
|
10808
|
-
var e, t;
|
|
10809
|
-
for (e = 0; e < this.files.length; e++) t = this.files[e], this.reader.setIndex(t.localHeaderOffset), this.checkSignature(a.LOCAL_FILE_HEADER), t.readLocalPart(this.reader), t.handleUTF8(), t.processAttributes();
|
|
10783
|
+
for (var e = 0, t; e < this.files.length; e++) t = this.files[e], this.reader.setIndex(t.localHeaderOffset), this.checkSignature(a.LOCAL_FILE_HEADER), t.readLocalPart(this.reader), t.handleUTF8(), t.processAttributes();
|
|
10810
10784
|
},
|
|
10811
10785
|
readCentralDir: function() {
|
|
10812
10786
|
var e;
|
|
@@ -11175,8 +11149,8 @@ var lo = (e) => new J({
|
|
|
11175
11149
|
var n = r.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
|
|
11176
11150
|
if (n !== l) throw Error(o[n]);
|
|
11177
11151
|
if (t.header && r.deflateSetHeader(this.strm, t.header), t.dictionary) {
|
|
11178
|
-
var m;
|
|
11179
|
-
if (
|
|
11152
|
+
var m = typeof t.dictionary == "string" ? a.string2buf(t.dictionary) : c.call(t.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t.dictionary) : t.dictionary;
|
|
11153
|
+
if ((n = r.deflateSetDictionary(this.strm, m)) !== l) throw Error(o[n]);
|
|
11180
11154
|
this._dict_set = !0;
|
|
11181
11155
|
}
|
|
11182
11156
|
}
|
|
@@ -11275,8 +11249,7 @@ var lo = (e) => new J({
|
|
|
11275
11249
|
else for (var a = 0; a < r; a++) e[i + a] = t[n + a];
|
|
11276
11250
|
},
|
|
11277
11251
|
flattenChunks: function(e) {
|
|
11278
|
-
var t, n, r, i, a, o;
|
|
11279
|
-
for (t = r = 0, n = e.length; t < n; t++) r += e[t].length;
|
|
11252
|
+
for (var t = r = 0, n = e.length, r, i, a, o; t < n; t++) r += e[t].length;
|
|
11280
11253
|
for (o = new Uint8Array(r), t = i = 0, n = e.length; t < n; t++) a = e[t], o.set(a, i), i += a.length;
|
|
11281
11254
|
return o;
|
|
11282
11255
|
}
|
|
@@ -11337,11 +11310,11 @@ var lo = (e) => new J({
|
|
|
11337
11310
|
}, { "./common": 41 }],
|
|
11338
11311
|
43: [function(e, t, n) {
|
|
11339
11312
|
t.exports = function(e, t, n, r) {
|
|
11340
|
-
for (var i = 65535 & e
|
|
11313
|
+
for (var i = 65535 & e, a = e >>> 16 & 65535, o = 0; n !== 0;) {
|
|
11341
11314
|
for (n -= o = 2e3 < n ? 2e3 : n; a = a + (i = i + t[r++] | 0) | 0, --o;);
|
|
11342
11315
|
i %= 65521, a %= 65521;
|
|
11343
11316
|
}
|
|
11344
|
-
return i | a << 16
|
|
11317
|
+
return i | a << 16;
|
|
11345
11318
|
};
|
|
11346
11319
|
}, {}],
|
|
11347
11320
|
44: [function(e, t, n) {
|
|
@@ -11421,8 +11394,8 @@ var lo = (e) => new J({
|
|
|
11421
11394
|
do
|
|
11422
11395
|
if (l[(n = t) + o] === m && l[n + o - 1] === p && l[n] === l[a] && l[++n] === l[a + 1]) {
|
|
11423
11396
|
a += 2, n++;
|
|
11424
|
-
do
|
|
11425
|
-
while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && a < f);
|
|
11397
|
+
do;
|
|
11398
|
+
while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && a < f);
|
|
11426
11399
|
if (r = w - (f - a), a = f - w, o < r) {
|
|
11427
11400
|
if (e.match_start = t, s <= (o = r)) break;
|
|
11428
11401
|
p = l[a + o - 1], m = l[a + o];
|
|
@@ -11590,8 +11563,8 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
11590
11563
|
}
|
|
11591
11564
|
if (e.match_length = 0, e.lookahead >= C && 0 < e.strstart && (r = s[i = e.strstart - 1]) === s[++i] && r === s[++i] && r === s[++i]) {
|
|
11592
11565
|
o = e.strstart + w;
|
|
11593
|
-
do
|
|
11594
|
-
while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && i < o);
|
|
11566
|
+
do;
|
|
11567
|
+
while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && i < o);
|
|
11595
11568
|
e.match_length = w - (o - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
|
|
11596
11569
|
}
|
|
11597
11570
|
if (e.match_length >= C ? (n = a._tr_tally(e, 1, e.match_length - C), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (I(e, !1), e.strm.avail_out === 0)) return O;
|
|
@@ -12093,7 +12066,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
12093
12066
|
if (v === 0) break e;
|
|
12094
12067
|
v--, b += p[g++] << x, x += 8;
|
|
12095
12068
|
}
|
|
12096
|
-
if (b !== (
|
|
12069
|
+
if (b !== (0 | n.total)) {
|
|
12097
12070
|
e.msg = "incorrect length check", n.mode = 30;
|
|
12098
12071
|
break;
|
|
12099
12072
|
}
|
|
@@ -12273,7 +12246,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
12273
12246
|
for (w = 0; w < c; w++) t[n + w] !== 0 && (d[I[t[n + w]]++] = w);
|
|
12274
12247
|
if (v = e === 0 ? (N = L = d, 19) : e === 1 ? (N = i, P -= 257, L = a, R -= 257, 256) : (N = o, L = s, -1), C = T, _ = u, k = w = M = 0, h = -1, g = (j = 1 << (O = D)) - 1, e === 1 && 852 < j || e === 2 && 592 < j) return 1;
|
|
12275
12248
|
for (;;) {
|
|
12276
|
-
for (y = C - k, x = d[w] < v ? (b = 0, d[w]) : d[w] > v ? (b = L[R + d[w]], N[P + d[w]]) : (b = 96, 0), p = 1 << C - k, T = m = 1 << O; l[_ + (M >> k) + (m -= p)] = y << 24 | b << 16 | x
|
|
12249
|
+
for (y = C - k, x = d[w] < v ? (b = 0, d[w]) : d[w] > v ? (b = L[R + d[w]], N[P + d[w]]) : (b = 96, 0), p = 1 << C - k, T = m = 1 << O; l[_ + (M >> k) + (m -= p)] = y << 24 | b << 16 | x, m !== 0;);
|
|
12277
12250
|
for (p = 1 << C - 1; M & p;) p >>= 1;
|
|
12278
12251
|
if (p === 0 ? M = 0 : (M &= p - 1, M += p), w++, --F[C] == 0) {
|
|
12279
12252
|
if (C === E) break;
|
|
@@ -12282,7 +12255,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
12282
12255
|
if (D < C && (M & g) !== h) {
|
|
12283
12256
|
for (k === 0 && (k = D), _ += T, A = 1 << (O = C - k); O + k < E && !((A -= F[O + k]) <= 0);) O++, A <<= 1;
|
|
12284
12257
|
if (j += 1 << O, e === 1 && 852 < j || e === 2 && 592 < j) return 1;
|
|
12285
|
-
l[h = M & g] = D << 24 | O << 16 | _ - u
|
|
12258
|
+
l[h = M & g] = D << 24 | O << 16 | _ - u;
|
|
12286
12259
|
}
|
|
12287
12260
|
}
|
|
12288
12261
|
return M !== 0 && (l[_ + M] = C - k << 24 | 4194304), f.bits = D, 0;
|
|
@@ -12449,8 +12422,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
12449
12422
|
}
|
|
12450
12423
|
}
|
|
12451
12424
|
function H(e) {
|
|
12452
|
-
var t;
|
|
12453
|
-
for (t = 0; t < u; t++) e.dyn_ltree[2 * t] = 0;
|
|
12425
|
+
for (var t = 0; t < u; t++) e.dyn_ltree[2 * t] = 0;
|
|
12454
12426
|
for (t = 0; t < d; t++) e.dyn_dtree[2 * t] = 0;
|
|
12455
12427
|
for (t = 0; t < f; t++) e.bl_tree[2 * t] = 0;
|
|
12456
12428
|
e.dyn_ltree[2 * _] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
@@ -12506,7 +12478,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
12506
12478
|
var re = !1;
|
|
12507
12479
|
function ie(e, t, n, i) {
|
|
12508
12480
|
R(e, (s << 1) + +!!i, 3), function(e, t, n, i) {
|
|
12509
|
-
U(e),
|
|
12481
|
+
U(e), L(e, n), L(e, ~n), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
|
|
12510
12482
|
}(e, t, n, !0);
|
|
12511
12483
|
}
|
|
12512
12484
|
n._tr_init = function(e) {
|
|
@@ -13413,11 +13385,7 @@ var rl = new Yc(), il = (e) => (0, Ot.xml2js)(e, {
|
|
|
13413
13385
|
let o = t instanceof Wc.default ? t : yield Wc.default.loadAsync(t), s = /* @__PURE__ */ new Map(), c = { Media: new Fs() }, l = /* @__PURE__ */ new Map(), u = [], d = [], f = !1, p = /* @__PURE__ */ new Map();
|
|
13414
13386
|
for (let [e, t] of Object.entries(o.files)) {
|
|
13415
13387
|
let o = yield t.async("uint8array"), m = o.slice(0, 2);
|
|
13416
|
-
if (Pl(m, Ml) || Pl(m, Nl)) {
|
|
13417
|
-
p.set(e, o);
|
|
13418
|
-
continue;
|
|
13419
|
-
}
|
|
13420
|
-
if (!e.endsWith(".xml") && !e.endsWith(".rels")) {
|
|
13388
|
+
if (Pl(m, Ml) || Pl(m, Nl) || !e.endsWith(".xml") && !e.endsWith(".rels")) {
|
|
13421
13389
|
p.set(e, o);
|
|
13422
13390
|
continue;
|
|
13423
13391
|
}
|
|
@@ -13536,7 +13504,7 @@ var Fl = (e) => (0, Ot.js2xml)(e, { attributeValueFn: (e) => String(e).replace(/
|
|
|
13536
13504
|
(function() {
|
|
13537
13505
|
var e = el(function* ({ data: e }) {
|
|
13538
13506
|
let t = e instanceof Wc.default ? e : yield Wc.default.loadAsync(e), n = /* @__PURE__ */ new Set();
|
|
13539
|
-
for (let [e, r] of Object.entries(t.files))
|
|
13507
|
+
for (let [e, r] of Object.entries(t.files)) (e.endsWith(".xml") || e.endsWith(".rels")) && e.startsWith("word/") && !e.endsWith(".xml.rels") && Sl(il(yield r.async("text"))).forEach((e) => Ll(e.text).forEach((e) => n.add(e)));
|
|
13540
13508
|
return Array.from(n);
|
|
13541
13509
|
});
|
|
13542
13510
|
return function(t) {
|
|
@@ -13547,8 +13515,7 @@ var Ll = (e) => {
|
|
|
13547
13515
|
let t = /* @__PURE__ */ RegExp("(?<=\\{\\{).+?(?=\\}\\})", "gs");
|
|
13548
13516
|
return e.match(t) ?? [];
|
|
13549
13517
|
};
|
|
13550
|
-
|
|
13551
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/utilities.js
|
|
13518
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/utilities.js
|
|
13552
13519
|
function Rl(e, t, n) {
|
|
13553
13520
|
return e.byteLength >= t + n;
|
|
13554
13521
|
}
|
|
@@ -13622,8 +13589,7 @@ function ql(e) {
|
|
|
13622
13589
|
for (let n of e) n.width * n.height > t.width * t.height && (t = n);
|
|
13623
13590
|
return t;
|
|
13624
13591
|
}
|
|
13625
|
-
|
|
13626
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/png.js
|
|
13592
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/png.js
|
|
13627
13593
|
var Jl = (e) => e[0] === 137 && e[1] === 80 && e[2] === 78 && e[3] === 71 && e[4] === 13 && e[5] === 10 && e[6] === 26 && e[7] === 10, Yl = (e) => e[12] === 67 && e[13] === 103 && e[14] === 66 && e[15] === 73;
|
|
13628
13594
|
function Xl(e) {
|
|
13629
13595
|
if (!Jl(e)) return;
|
|
@@ -13634,8 +13600,7 @@ function Xl(e) {
|
|
|
13634
13600
|
type: "png"
|
|
13635
13601
|
};
|
|
13636
13602
|
}
|
|
13637
|
-
|
|
13638
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/jpeg.js
|
|
13603
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/jpeg.js
|
|
13639
13604
|
var Zl = 65472, Ql = 65475, $l = (e) => e[0] === 255 && e[1] === 216 && e[2] === 255;
|
|
13640
13605
|
function eu(e) {
|
|
13641
13606
|
if (!$l(e)) return;
|
|
@@ -13654,8 +13619,7 @@ function eu(e) {
|
|
|
13654
13619
|
if (r === void 0 || (n += r, n > t.byteLength)) return;
|
|
13655
13620
|
}
|
|
13656
13621
|
}
|
|
13657
|
-
|
|
13658
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/gif.js
|
|
13622
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/gif.js
|
|
13659
13623
|
var tu = (e) => e[0] === 71 && e[1] === 73 && e[2] === 70 && e[3] === 56 && (e[4] === 55 || e[4] === 57) && e[5] === 97;
|
|
13660
13624
|
function nu(e) {
|
|
13661
13625
|
if (!tu(e)) return;
|
|
@@ -13666,8 +13630,7 @@ function nu(e) {
|
|
|
13666
13630
|
type: "gif"
|
|
13667
13631
|
};
|
|
13668
13632
|
}
|
|
13669
|
-
|
|
13670
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/webp.js
|
|
13633
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/webp.js
|
|
13671
13634
|
var ru = (e) => e[0] === 82 && e[1] === 73 && e[2] === 70 && e[3] === 70 && e[8] === 87 && e[9] === 69 && e[10] === 66 && e[11] === 80, iu = (e) => e[12] === 86 && e[13] === 80 && e[14] === 56 && e[15] === 32, au = (e) => e[12] === 86 && e[13] === 80 && e[14] === 56 && e[15] === 76, ou = (e) => e[12] === 86 && e[13] === 80 && e[14] === 56 && e[15] === 88;
|
|
13672
13635
|
function su(e, t) {
|
|
13673
13636
|
let n = e.getUint8(t), r = e.getUint8(t + 1);
|
|
@@ -13695,8 +13658,7 @@ function cu(e) {
|
|
|
13695
13658
|
type: "webp"
|
|
13696
13659
|
} : void 0;
|
|
13697
13660
|
}
|
|
13698
|
-
|
|
13699
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/avif.js
|
|
13661
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/avif.js
|
|
13700
13662
|
var lu = /* @__PURE__ */ new Set([
|
|
13701
13663
|
"avif",
|
|
13702
13664
|
"avis",
|
|
@@ -13713,8 +13675,7 @@ function du(e) {
|
|
|
13713
13675
|
type: "avif"
|
|
13714
13676
|
};
|
|
13715
13677
|
}
|
|
13716
|
-
|
|
13717
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/heic.js
|
|
13678
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/types/heic.js
|
|
13718
13679
|
var fu = /* @__PURE__ */ new Set([
|
|
13719
13680
|
"mif1",
|
|
13720
13681
|
"msf1",
|
|
@@ -13738,13 +13699,11 @@ function mu(e) {
|
|
|
13738
13699
|
type: "heic"
|
|
13739
13700
|
};
|
|
13740
13701
|
}
|
|
13741
|
-
|
|
13742
|
-
//#region ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/index.js
|
|
13702
|
+
// ../node_modules/.bun/image-dimensions@2.5.1/node_modules/image-dimensions/index.js
|
|
13743
13703
|
function hu(e) {
|
|
13744
13704
|
if (!(e.length < 3)) return e = new Uint8Array(e), Xl(e) ?? nu(e) ?? eu(e) ?? cu(e) ?? du(e) ?? mu(e);
|
|
13745
13705
|
}
|
|
13746
|
-
|
|
13747
|
-
//#region ../node_modules/.bun/prosemirror-docx@0.6.1+8216c3395a8951fd/node_modules/prosemirror-docx/dist/esm/numbering.js
|
|
13706
|
+
// ../node_modules/.bun/prosemirror-docx@0.6.1+8216c3395a8951fd/node_modules/prosemirror-docx/dist/esm/numbering.js
|
|
13748
13707
|
function gu(e) {
|
|
13749
13708
|
return {
|
|
13750
13709
|
alignment: Y.START,
|
|
@@ -13815,8 +13774,7 @@ function xu(e) {
|
|
|
13815
13774
|
e.isText && (t += e.text);
|
|
13816
13775
|
}), t;
|
|
13817
13776
|
}
|
|
13818
|
-
|
|
13819
|
-
//#region ../node_modules/.bun/prosemirror-docx@0.6.1+8216c3395a8951fd/node_modules/prosemirror-docx/dist/esm/serializer.js
|
|
13777
|
+
// ../node_modules/.bun/prosemirror-docx@0.6.1+8216c3395a8951fd/node_modules/prosemirror-docx/dist/esm/serializer.js
|
|
13820
13778
|
var Su = function(e, t, n, r) {
|
|
13821
13779
|
function i(e) {
|
|
13822
13780
|
return e instanceof n ? e : new n(function(t) {
|
|
@@ -13888,7 +13846,7 @@ var wu = class {
|
|
|
13888
13846
|
this.current = [...t.stack, e], t = void 0;
|
|
13889
13847
|
}, r = (e) => {
|
|
13890
13848
|
let r = e === t?.link;
|
|
13891
|
-
this.addRunOptions({ style: "Hyperlink" }),
|
|
13849
|
+
this.addRunOptions({ style: "Hyperlink" }), t && r || (t && !r && n(), t = {
|
|
13892
13850
|
link: e,
|
|
13893
13851
|
stack: this.current
|
|
13894
13852
|
}, this.current = []);
|
|
@@ -14092,7 +14050,7 @@ var wu = class {
|
|
|
14092
14050
|
this.current = [...t.stack, e], t = void 0;
|
|
14093
14051
|
}, r = (e) => {
|
|
14094
14052
|
let r = e === t?.link;
|
|
14095
|
-
this.addRunOptions({ style: "Hyperlink" }),
|
|
14053
|
+
this.addRunOptions({ style: "Hyperlink" }), t && r || (t && !r && n(), t = {
|
|
14096
14054
|
link: e,
|
|
14097
14055
|
stack: this.current
|
|
14098
14056
|
}, this.current = []);
|
|
@@ -14480,8 +14438,7 @@ var wu = class {
|
|
|
14480
14438
|
}
|
|
14481
14439
|
};
|
|
14482
14440
|
new Tu(ku, ju), new Du(Au, ju);
|
|
14483
|
-
|
|
14484
|
-
//#region src/lib/components/editor/docx-serializer.ts
|
|
14441
|
+
// src/lib/components/editor/docx-serializer.ts
|
|
14485
14442
|
function Mu(e) {
|
|
14486
14443
|
let t = e?.attrs?.textAlign;
|
|
14487
14444
|
if (t === "center") return Y.CENTER;
|
|
@@ -14576,7 +14533,7 @@ var Pu = {
|
|
|
14576
14533
|
},
|
|
14577
14534
|
async image(e, t) {
|
|
14578
14535
|
let n = t?.attrs?.src;
|
|
14579
|
-
if (
|
|
14536
|
+
if (typeof n == "string" && n) try {
|
|
14580
14537
|
let r = await e.options.getImageType?.(n);
|
|
14581
14538
|
await e.image(n, void 0, void 0, void 0, r), e.closeBlock(t);
|
|
14582
14539
|
} catch {}
|
|
@@ -14611,5 +14568,4 @@ var Pu = {
|
|
|
14611
14568
|
strike: ju.strikethrough,
|
|
14612
14569
|
highlight: (e, t) => ({ highlight: t.attrs?.color || "yellow" })
|
|
14613
14570
|
}, Lu = new Tu(Pu, Iu), Ru = new Du(Fu, Iu);
|
|
14614
|
-
//#endregion
|
|
14615
14571
|
export { Fu as customAsyncNodes, Iu as customMarks, Pu as customNodes, Lu as customSerializer, Ru as customSerializerAsync };
|